PDA

View Full Version : wunderground weather station driver


Sendero
04-25-2010, 12:46 PM
Attached is a driver that I've written up for the wunderground.com individual weather stations that are exposed through their APIs. An example is:
http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=KCOPARKE23

Please let me know of any feedback or issues with the driver. Only my 2nd one so I'm open to any suggestions.

v0.2 attached. Changes
- Fixed bug in the poll interval timing where I was accidentally converting to hours
- Changed install prompt to only ask for the Station ID and not the full URL

wuench
04-25-2010, 03:02 PM
Good job. Works great, except mine doesn't appear to be updating after the initial load. The time is still the same as when loaded.

Some possible enhancements would be to autocreate the URL for the weather graphs....

Sendero
04-25-2010, 03:23 PM
Good job. Works great, except mine doesn't appear to be updating after the initial load. The time is still the same as when loaded.

Some possible enhancements would be to autocreate the URL for the weather graphs....

Hmm, that may be due to a bug in how I set the Poll interval.

edit: Yup, had an extra * 60 in my calc that was converting it to hours instead of minutes. Oops. Driver in first post has been updated with latest version.


Wuench - What URLs are you looking for it to create? All the daily/week/monthly/etc charts shown on this page?
http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=KCOPARKE23

George M
04-25-2010, 06:06 PM
Thanks sendero,
Installed just fine.
Wish the UV was available, but dont see a value for that in the xml file.

Ron Haley
04-25-2010, 06:54 PM
Thanks sendero,
Installed just fine.
Wish the UV was available, but dont see a value for that in the xml file.
agree on the UV

Sendero
04-25-2010, 07:02 PM
If there is another format like the NOAA one that will expose UV just let me know. I can easily adapt the driver to handle the NOAA format as a different driver type.

sic0048
04-26-2010, 05:14 AM
Does anyone know how the <precip_1hr_in> field works? In other words, how often is it updated? Is it every hour on the hour, or is it a running total for the last 60 minutes?

What I would like to do is use that field to determine if it is currently raining, how much it is currently raining, and collect the data for historic rain fall totals.

Any ideas which percipiation field might be easier to use for these purposes?

sic0048
04-26-2010, 05:19 AM
Sendero - the weather station (http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KWAREDMO30) you linked to doesn't appear to have accurate information. Just an FYI in case you were thinking of using that station's data.

As wet and windy as Washington can be, I doubt it has blown 114.6 mph with a wind gust of 229 mph during the month of April. I also doubt it has rained 17.79 inches today or 411.29 inches for the month of April. :-)

Sendero
04-26-2010, 08:05 PM
Sendero - the weather station (http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KWAREDMO30) you linked to doesn't appear to have accurate information. Just an FYI in case you were thinking of using that station's data.

As wet and windy as Washington can be, I doubt it has blown 114.6 mph with a wind gust of 229 mph during the month of April. I also doubt it has rained 17.79 inches today or 411.29 inches for the month of April. :-)

Thanks for letting me know. I actually haven't decided if I'm going to use the driver. Just felt it was similar to another one I'd written and I was a bit bored over the weekend so felt like doing something constructive :)

In any case, I updated my links to one thats probably a bit more accurate.

khill
01-27-2011, 05:55 PM
Attached is a driver that I've written up for the wunderground.com individual weather stations that are exposed through their APIs. An example is:
http://api.wunderground.com/weatherstation/WXCurrentObXML.asp?ID=KCOPARKE23

Please let me know of any feedback or issues with the driver. Only my 2nd one so I'm open to any suggestions.

v0.2 attached. Changes
- Fixed bug in the poll interval timing where I was accidentally converting to hours
- Changed install prompt to only ask for the Station ID and not the full URL

I'm attempting to use this driver to tap into a local weather station via weather underground website. CQC says the driver successfully imports and and looks to load ok. I then get a driver state of "Waiting for Connect"

Any advice?

khill
02-09-2011, 04:23 AM
Does anyone currently use this driver?