Weather Underground allows feeds from private parties who buy compatible weather stations, to feed information directly to them, using their Personal Weather Station (PWS) system. This includes Davis, Acurite, La Crosse, and others. The majority, if not all, send WU Wind, Rain, Temperature, Humidity and Barometer data.
I did some digging into, and found a PWS that's reporting realish time (5 Minute Delay) weather data by visiting ...
https://www.wunderground.com/wundermap
... and poked around looking for stations that were close to me. Presto! I found one about that is about 2 miles from me, so it's going to be a lot more accurate. I'm more interested in rainfall amount and wind speed, not so much temperature, humidity and barometer.
Once I had the station ID of the station I wanted to monitor, I hunted and hunted to find any reference online to pulling PWS data from WU, and have it returned in XML, but could not find any. But then, low and behold, after hours of trying different URL's, I stumbled upon this little jewel.
http://api.wunderground.com/weatherstat ... format=XML
(Change the XXXXXXXX in the URL to a PWS that you're interested in seeing)
Best part, it works without a API Key or anything like that. It's processed as a generic HTTP Request, and spits the data out back at ya.
I have a little black-magic going on on the back-end, I've got Node-Red set up to pull the XML data via a HTTP Request, then process that data and feed it into Domoticz using HTTP Post/JSON data.
It's been working fine for the last 2 months, polling the data every 5 minutes. Much more accurate in my situation because the data that's shown by the local PWS is more in line to the environment that's going on here, not 30 miles away.
Your mileage may vary, and I'm not the first person to stumble upon this URL, but I didn't find anyone that was using this method to get, convert and push the data into Domoticz. Maybe someone could create a plugin that does it nicer and neater than I've done it, but that's up to someone to else to take on that challenge, as for me - this works, why mess with it
