Integrate a weather XML feed
It would be nice to integrate a weather XML feed on the server, pulling updates from http://
The signs administrator could then select weather; like one would do when selecting an image, rss, or embedded web page; and customize/insert it as a region. More info on the boygenius.com feed can be found at http://
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Discussion
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- 1.7.0-beta
- Started by
- Dan Garner
- Completed by
- Dan Garner
Related branches
Related bugs
Sprints
Whiteboard
Alex H: That's great for US cities - especially since it says the feeds can be used for any purpose. In the past when we've looked at this, we've not been able to find a general world-wide feed that has such liberal licensing terms. Most often they're for personal or non-commercial use which rules them out for digital signage.
Stef : I'm currently working on one for Canadian cities, it's pretty custom for my city and 2 others right now. I make them print out side by side in 3 columns with the logo of the 3 cities (it is very custom to my needs). I could make one more general etc. It caches the xml files locally on the script's server so if the XML is more than X seconds old, the script gets a fresher one so it doesn't hammer the server. And it uses the data from Environment Canada which state that as long as you say the data is from them, you're fine.
It's in french too but i guess i could make an english version too. Users would have to supply their icon packs (forecastfox icons packs would work, i use one of them, problem is i could not find usage policies).
All that to say that one "integration of weather" would probably not be universal. So you'd either have to insert packs for Europe, US, Canada etc. Since there is not many "global" feed providers.
I'd be happy to help with a Canadian english/french version if there is a need and some specs given (number of cities, size of layout needed, etc.)
Look at what i use : http://
I removed the city logos for privacy purposes. The icons are one of the forecastfox icon packs.
It could easily be modified for only one city, you find the weather code on the website, change it, etc.
~~~~~~~~~~~~~~~~
LarryK: For the US, might be better to go direct to the source, the National Weather Service
XML feeds for all cities are available: http://
Data is public domain: http://
The xml feeds even include links to the current, most appropriate weather icon. See: http://
-- Those icons are public domain, so they can be used for the forecast from any source (including non-US forecasts).
Also see the forecast icons that include percentages (for use in forecast. Eg 30% chance rain): http://
For the current forecast, data is also available as XML feed.
Here is an html version of forecast: http://
Here is the xml version of the same forecast: http://
I think best would be to show icons for current conditions and some number of upcoming forecasts. The number of upcoming forecasts would be a parameter since some layouts would only have room for one icon, others would have room for more. Another option would be for a single weather icon (current conditions or a forecast) to be shown for some number of sec, then transition to the "next" icon (an upcoming forecast). That way a limited geographical area on a layout could be used to show lots of weather information.
Some additional information:
US National Weather Service XML forecast data feed information: http://
Retrieving the same data via REST instead of SOAP: http://
I think the best ui for selecting the area for the forecast would be to accept either a US Zip code or lat/long for people who want something more specific.
~~~~~~~~~~~~~~~~
For anyone that is interested; I have created a sript and php file that will download the xml file from noaa once an hour and display it via a web page. Using the python client you can make the background transparent and display the local weather. Details are on my blog below.
http://
~~~~~~~~~~~~~~~~~
Alex H:
Possible options:
http://
Free API, must carry a tagline credit to World Weather Online. API is key protected and limited to 500 req/hr. Not sure how we'd manage keys for that? Perhaps force each install to have to register with their service and push the API key as part of the XLF?
Google iGoogle API:
http://
http://
http://
Investigating whether we can legitimately use this. RISEVision appear to be pulling their data from here so that may set a precident?
~~~~~~~~~~~~~~~~~
iGoogle is dead now and the Google Weather API is dead.
Possible alternative is: http://
Requires a credit at the point of display.
Possible icon set:
http://
http://
http://
RiseVision have switched to TinBu Weather. I've contacted them to see if they'd be able to provide us an XML feed for Xibo
Dan:
Implemented with forecast API and choice of weather icons / sprites