25
Page
Version 1.1 March 2021
Testing WeatherSense Lightning
If you have the SwitchDoc Labs SD Card, you can proceed to Step 4.
Step 1:
Install the SDL modified version of rtl_433.
In a terminal window on your Pi at /home/pi type:
git clone
https://github.com/switchdoclabs/rtl_433.git
Then compile it on the Raspberry Pi:
cd rtl_433/
mkdir build
cd build
cmake ..
make
make install
Step 2:
Install the WeatherSense Lightning Software using these commands:
cd
git clone
https://github.com/switchdoclabs/SDL_Pi_WeatherSense.git
Step 3:
Add needed python modules to your system (a list will be provided on forum.switchdoc.com in the near
future). If you want to jump into it, run
sudo python3 WeatherSenseMonitor.py
And start adding in the missing libraries as they come up as missing imports, otherwise do at least the
following:
Installing mariadb:
https://pimylifeup.com/raspberry-pi-mysql/
sudo apt-get install python3-dev libmysqlclient-dev
sudo pip3 install mysqlclient
Next:
sudo -u root -p < WeatherSenseWireless.sql
Step 4:
Note the IP Address of your Raspberry Pi. Type in the following commands to get your IP address:
hostname -I
You will get something like this:
pi@SwitchDocLabs:~/SDL_Pi_WeatherSense Lightning $ hostname -I
192.168.1.44