Refreshing Weather tiles
This will allow people to see storms "move" over time.
Based on a cursory overview of weather sites, here are the refresh schedules:
- chicagoweathercenter - every 5 minutes
- Accuweather - every 15 minutes
- weather.com - every 15 minutes
- ABC 7 - every minute :exclamation:
Could we aim for updating every 5 minutes? If that's too burdensome/clunky/distracting for the user, we could push it out to every 15 minutes and still be in line with most websites.
@rladines – if the query of the data was refreshing every 30 seconds, wouldn’t it also refresh the layer?
I’m thinking that OpenGrid is about the data that you are querying and the layer comes along with it.
From: Tom Schenk Jr [mailto:[email protected]] Sent: Tuesday, September 08, 2015 11:24 AM To: Chicago/opengrid [email protected] Subject: [opengrid] Refreshing Weather tiles (#110)
This will allow people to see storms "move" over time.
Based on a cursory overview of weather sites, here are the refresh schedules:
- chicagoweathercenter - every 5 minutes
- Accuweather - every 15 minutes
- weather.com - every 15 minutes
- ABC 7 - every minute [:exclamation:]
Could we aim for updating every 5 minutes? If that's too burdensome/clunky/distracting for the user, we could push it out to every 15 minutes and still be in line with most websites.
— Reply to this email directly or view it on GitHubhttps://github.com/Chicago/opengrid/issues/110.
@dianaclem, @tomschenkjr -- the data refresh does not refresh the layer. The rendering of layers is currently controlled by Leaflet while the query submission and scheduling are controlled by the app. We'll need to see if Leaflet exposes an API call to force the refresh of a given layer. If not, we need to test if simply turning a layer off then back on will trigger a re-fetch of the layer's tiles. One thing going against us is the browser caching the tiles (which are really just images) so there are some nuisances to this we'll need to deal with.
@rladines - good point on the caching tiles. That's going to be pretty difficult to deal with.