Weather and Coding Geek Project: Kevin's Acu-Link to Weather Underground Rapid Fire UpdaterI recently ordered and received the Acu-Link Internet Bridge and couldn't wait to set it up. It was very easy to configure with my 5-in-1 (temperature, humidity, rain, wind speed, and wind direction) sensor. Barometric pressure is reported by the internet bridge. I then went to Acu-Link.com and could view my own weather report online. I also installed the Acu-Link Android app.
The next thing I did was set up a free account on Weather Underground. I went back to Acu-Link.com, entered my Weather Underground station ID and password, and began observing my weather data on Weather Underground. Click the station ID to view my weather station data in real time: KCASANTE15
I knew not to expect Acu-Rite to increase the update frequency anytime soon, so I decided to come up with my own solution: write an app that would scrape the data from AcuLink.com and post it to Weather Underground.
First, I had to scrape the data from Acu-Link's website. I wrote a VB.NET app that makes use of HTML Agility Pack libraries and good ol' RegEx to scrape the data from AcuLink.com. Much of the data parsing involves simply scraping the text values from HTML. Wind direction is represented graphically, but fortunately the JPG images are named appropriately. In order to make the wind direction data compatible with Weather Underground, I had to convert the direction (N, S, SW, SSW, etc.) into degrees. Also, the decimal value for temperature is represented in a different set of tags than the integer value.
Finally, I need to post the data to Weather Underground. The upload protocol is surprisingly simple. There's a wiki page that explains it all.
And I made use of a timer control to refresh the data at regular intervals.
So now I have the data posting to Weather Underground every 15 seconds instead of every 15 minutes. If you'd like a copy of the app, let me know.
2/3/2014: Latest version now includes bug fix that allows you to use alarms on Acu-Link without causing the app to crash.
Download the latest version 2014-02-03 17:30