I wanted to create a Weather Station for my Raspberry Pi. The Weather here has been changing quite a lot so I want to try to create an Application that display today's weather conditions and some other details as well. I started tinkering with sensors, but then I realized that "Why not just use an API?" and so I did. I used OpenWeatherMap API to power this application.
Of course, if you wanted to work with sensors, go ahead and make adjustments to the script. The GUI is ready you just need to plug in the sensors and get it running.
Great Source : https://www.raspberrypi.org/learning/sensing-the-weather/
Lets Get Started!
Lets try this application out shall we, first thing you need is an Operating System running on your Raspberry PI. I suggest Raspbian OS. Then make sure its plugged in to a Display and Power it up.
You also need Python Installed, If you are using Raspbian, You already have it installed on your system. Lets just update your system if it hasn't been updated in a while.
$ sudo apt update
$ sudo apt upgrade
Once that is done, type in this command to download piWeatherman from GitHub.
$ git clone https://github.com/abhishtagatya/piWeatherman$ cd piWeatherman
Now you are in the piWeatherman directory, now we are going to install some of the dependencies and requirements.
$ sh install.sh
You are then greeted with a Registration Form, just fill it in and make sure to get your API Key from OpenWeatherMap and your locality.
For example : Jakarta, Indonesia
Once that is all set up, enjoy your new cool Raspberry Pi Weather Station. If you think you can add more to our little Application, feel free to submit a Pull Request on the Github page. We would love your contributions!
Comments