Map update development#699
Map update development#699danieldh206 wants to merge 4 commits intojamesoff:developfrom danieldh206:map_update_development
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #699 +/- ##
===========================================
- Coverage 74.79% 74.69% -0.11%
===========================================
Files 40 41 +1
Lines 3861 3955 +94
===========================================
+ Hits 2888 2954 +66
- Misses 973 1001 +28
Continue to review full report at Codecov.
|
|
Added if/else statement at line 49 to choose the green or red pin depending if a site is up or down. If file.py can update the sites.js file to [lat, long, "up", "site_name"], then the map can show up or down. |
|
Is this changing the HTML page to load the data from sites.js instead? Currently this is handled in the jinja template as it's rendered by the HTMLLogger: https://github.com/jamesoff/simplemonitor/blob/develop/simplemonitor/html/status-template.html#L70-L74 |
|
I have been working on updating the sites.js instead. This was my first attempt at modifying the status-template.html. |
James,
Here are the map updates I am working on. This is just the HTML and Java scripts.