Posts: 951
Threads: 111
Joined: Jan 2008
Since jkish has enhanced his driver to schedule irrigation (Great Job by the way), I am looking at ways to gather weather data to use. I really don’t want to install my own weather station, but the general info from the Weather Channel driver is not area specific enough especially when dealing with amount of precipitation. However there are a number of Personal Weather Stations around me via wunderground.com. See here:
http://www.wunderground.com/weatherstati...KCOPARKE23
http://api.wunderground.com/weatherstati...KCOPARKE23
http://api.wunderground.com/weatherstati...format=XML
http://www.wunderground.com/swf/Rapid_Fi...KCOPARKE23
How can I retrieve their data and make it available in CQC?
Thanks
George M
Posts: 752
Threads: 156
Joined: Aug 2006
Looks like the 2nd link there is an easy XML format with the latest info. You can write a driver that will make the request and then use the CML XML objects to access the info and expose it as fields. Should be a pretty simple driver.
Posts: 752
Threads: 156
Joined: Aug 2006
I just wrote up a driver for this. Makes a request and then use the XML Parsing to expose the response. It works fine when I have it hard-coded against one of the URLs but I want to make it take in the URL as a parameter to the driver. Once I learn how to do that I'll post up the driver.
Posts: 3,473
Threads: 156
Joined: Jun 2005
I'm looking forward to this! I've hoped someone would write this type of driver for a while.
Brian - a long time user that rarely messes with the system now
Other systems used:
SageTV w/ cablecard tuner & multiple extenders for viewing
BlueIris and IP cameras for CCTV
Incredible PBX for home phone
Posts: 951
Threads: 111
Joined: Jan 2008
Same here. Looking forward to it.
Thanks
George M
Posts: 752
Threads: 156
Joined: Aug 2006
OK, I posted it up in the Beta Drivers development section. Once Dean approves the post it will appear in there. Note that it will only work for the personal weather stations, not the NOAA ones (diff data structure). You'll need to use a the URL of
Code:
http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=<stationID>
Posts: 752
Threads: 156
Joined: Aug 2006