I wanted to build a weather station located at my holiday house, functional reasons were to know when it hasn’t rained in a while so I knew if the garden needs watering.
The nerd in me just wants everything to be network enabled.
The components I used,
The setup was very simple and quick to set up!
Lets get started!
After installing the weather station somewhere around your house and switching on the base station. You should now be able to see the weather at the base station, information such as rain, temp, humidity etc should be flowing.
Now connect the base station to the raspberry pi via the USB cable.
SSH onto the raspberry pi, to check if we have connectivity do the following.
1 2 3 4 5 6 |
root@weatherpi:~# lsusb Bus 001 Device 005: ID 24c0:0003 Bus 001 Device 004: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub |
When you see the device we have connectivity.
Bus 001 Device 005: ID 24c0:0003
How to configure the server and install the software, in this setup we’ll be using weewx for our communication with the weather station and data gathering.
1 2 3 4 5 |
sudo apt-get update sudo wget -qO - http://weewx.com/keys.html | sudo apt-key add - sudo wget -qO - http://weewx.com/apt/weewx.list | sudo tee /etc/apt/sources.list.d/weewx.list sudo apt-get install weewx apache2 php5 mysql-server sudo /etc/init.d/weewx start |
Then navigate to the raspberry pi IP address through your web browser.
http://192.168.1.1/weewx