-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map update development #699
base: develop
Are you sure you want to change the base?
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.