[InitialState] posted a great multipart tutorial about building what he calls a “Hyper-local Weather Dashboard.” In plain language, he created a Raspberry Pi-based web page that fuses weather data from Wunderground along with locally sensed weather data.
The tutorial has thee parts. The first part covers reading data from Wunderground using their developer’s API (you’ll need an API key; a free one is good for 500 queries a day). The second part covers using the Pi Sense HAT to measure local temperature, humidity, and pressure. The final part ties it all together using producing the hyper-local weather dashboard (whatever that really means).
We talked about the Sensor HAT earlier (and there’s more info in the video, below). Seems like those lights could do something, although that wouldn’t do you any good over a web interface. This is a good-looking project (and tutorial) and easy enough that it would be a good place to start
experimenting with the Raspberry Pi.
interesting project i like the wu api i’ve seen it used in the past. One thing I am curious of is does anyone have an idea If i want to keep track of water temp? at a few hundred feet away I would like to have a constant reading on a water temp but have yet to find a good or even nice solution for it.
Check out this guy’s Wireless Pool Temperature Sensor project: http://blog.initialstate.com/raspberry-pi-wireless-pool-temperature-sensor/
This is cool! I did something similar in my Foginator2000 project at Element14. He is pulling in much more data than I did though. http://www.element14.com/community/community/raspberry-pi/raspberrypi_projects/blog/2015/09/24/foginator-2000-003-raspberry-pi-sense-hat-integration-with-initial-state you can watch the current feed here https://www.initialstate.com/app#/tiles/d179cfd9-494b-4768-8c47-a53d0032874f
I’ve used these for many Pi projects in the past: https://www.adafruit.com/products/381
They are good for a few hundred feet if you wire them correctly (and use the pull-up resistor!) This has been used for several high end fish aquarium projects I’ve been involved with, sensing water temperature.
If you don’t want to register to get the API key, they give an XML file which can be easily parsed for each weather station
This is fantastic! Could anyone let me know how to change from Fahrenheit to celcius?
For the Wunderground part, replace:
if isFloat(conditions[‘current_observation’][‘temp_f’]):
streamer.log(CITY + ” Temperature(F)”,conditions[‘current_observation’][‘temp_f’])
with
if isFloat(conditions[‘current_observation’][‘temp_c’]):
streamer.log(CITY + ” Temperature(C)”,conditions[‘current_observation’][‘temp_c’])
For the Sense HAT part, replace:
streamer.log(“:sunny: ” + SENSOR_LOCATION_NAME + ” Temperature(F)”, temp_f)
with
streamer.log(“:sunny: ” + SENSOR_LOCATION_NAME + ” Temperature(C)”, temp_c)