Skip to content
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

Refreshing Weather tiles #110

Open
tomschenkjr opened this issue Sep 8, 2015 · 3 comments
Open

Refreshing Weather tiles #110

tomschenkjr opened this issue Sep 8, 2015 · 3 comments

Comments

@tomschenkjr
Copy link
Contributor

tomschenkjr commented Sep 8, 2015

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 ❗

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
Copy link
Contributor

@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//issues/110.

@rladines
Copy link
Collaborator

rladines commented Sep 9, 2015

@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
Copy link
Contributor Author

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

@PriyaDoIT PriyaDoIT added this to the v1.2.0 milestone Jun 15, 2016
@PriyaDoIT PriyaDoIT removed this from the v1.2.0 milestone Jun 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants