Now that I have amassed a small army of R-Pis to do my bidding (4 and counting) I figured it was time to start gifting them with useful software to family and friends. So I set up a WeatherPi, the nickname I have assigned this project and the WeatherPi is rocking! The best part is that setting up a WeatherPi is a great way to get to know a lot of the key features of the Linux/Pi OS and prepare your *nix skills for future projects.
First up, lets look at the stats:
Now I must admit that this is more of an OS based project then electronics build but, if you're just getting started and you really want to master some of the Linux skills you really can’t go wrong with this project. Here’s some of the fun new skills you could pick up while getting your weather station data to Wunderground.com
- Basic RPi setup - I used the Debian wheezy install right of the RaspberryPi site.
- Usb-wif and ssh because I like my big monitor and I didn’t want the RPi hooked up to the TV.
- Setting a static ip - I want to know where this guy is on my network so I can connect easily.
- Pywws - a great open source tool for uploading to Wunderground and 4 or 5 other sites and more.
- Chrontab configuration and shell scripts - used to set up the Pywws to run the LiveLog every 5 minutes and upload WeatherStation data.
Overall Project info as well as specific Pywws installation advice:
Edimax usb wifi setup: (With notes on a static ip)
Chrontab (second half covers chrontab)
Weatherstation: (It’s on amazon as well)
Wrap-up and Next Steps
I originally picked up this project to help out my Dad with his new Weather Station but after working on the set up for a couple hours at my parents house using my Tablet to ssh into the PI and configure I decided to take the PI back home to finish things off. Of course then I didn’t have a Weather Station to verify all the config and installs... they live half an hour away so only one choice, buy my own weather station! Really I didn’t plan it this way, honest I didn’t! I wrapped up the Pywws install and all the chrontab stuff at home and then made a copy of the SD card image with all the good configurations already done and poof! 2 WeatherPis ready to go.
Now as any IT pro can tell you, the moment you build, config, install or even look seriously at a device, you own support! With this in mind I have already set up a PI script to call my own REST Web Services to report to me when there are problems. This has led me on to start developing one of my next projects, HomePi, which will allow all my little Pi ‘s t check in with the HomePi and tell me how they are doing and what sort of errors they encounter while doing their thing. It’s pretty basic right now but I am hoping to allow for code updates and other support functions in the future.
I have plans to integrate IFTTT to work to provide Freeze and drought warnings for my Garden and most likely I’ll be logging my weather data over at COSM (formally known as Pachube) just because I can.