Chicago / opengrid

A user-friendly, map-based tool to combine and explore real-time or historical data.
http://opengrid.io
Other
246 stars 53 forks source link

Refreshing Weather tiles #110

Open tomschenkjr opened 9 years ago

tomschenkjr commented 9 years ago

This will allow people to see storms "move" over time.

Based on a cursory overview of weather sites, here are the refresh schedules:

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.

dianaclem commented 9 years ago

@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:notifications@github.com] Sent: Tuesday, September 08, 2015 11:24 AM To: Chicago/opengrid opengrid@noreply.github.com 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:

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.

rladines commented 9 years ago

@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.

tomschenkjr commented 9 years ago

@rladines - good point on the caching tiles. That's going to be pretty difficult to deal with.