26
Page
Version 1.1 March 2021
Step 5:
Update WeatherSense to the latest version. Type the following commands into a terminal window.
cd
cd SDL_Pi_WeatherSense
git pull
You will see something like this:
pi@SwitchDocLabs:~/SDL_Pi_WeatherSense$ git pull
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 12 (delta 10), reused 12 (delta 10), pack-reused 0
Unpacking objects: 100% (12/12), done.
From https://github.com/switchdoclabs/SDL_Pi_WeatherSense Lightning
f2193a0..c98a45c master -> origin/master
Updating f2193a0..c98a45c
Fast-forward
README.md | 2 ++
SkyCamera.py | 2 +-
WeatherSense Lightning.py | 2 +-
pclogging.py | 12 +++++++-----
state.py | 3 +++
testWirelessSensors.py | 18 ++++++++----------
6 files changed, 22 inse), 17 deletions(-)
Or, if your software is up to date:
pi@SwitchDocLabs:~/SDL_Pi_WeatherSense$ git pull
Already up to date.
Step 6:
First we will test the reception of the wireless weather sensors. Test your SDR and WeatherSense
installation as follows. Note you must have completed the WeatherSense Lightning assembly.
cd /home/pi/SDL_Pi_WeatherSense
sudo python3 WeatherSenseMonitor.py
Now start your Lightning sensor by turning the SunAirPlus2 switch to on. You will then see something similar
to this on your terminal window:
pi@SwitchDocLabs:~/SDL_Pi_WeatherSense $ sudo python3 WeatherSenseMonitor.py
Pending jobs:
readSensors (trigger: date[2021-02-27 12:13:55 PST], pending)
-----------------
Scheduled Jobs
######
-----------------
Read Wireless Sensors
######
Jobstore default:
No scheduled jobs
-----------------
starting 433MHz scanning
######
processing Lightning TB Data
This is the raw data: {"time" : "2021-02-27 16:16:03", "model" : "SwitchDoc Labs TB", "len" : 44,
"messageid" : 0, "deviceid" : 1, "protocolversion" : 1, "softwareversion" : 1,
"weathersenseprotocol" : 16, "irqsource" : 0, "previousinterruptresult" : 0,
"lightninglastdistance" : 0, "sparebyte" : 0, "lightningcount" : 0, "interruptcount" : 0,
"loadvoltage" : 4.976, "batteryvoltage" : 4.208, "batterycurrent" : 52.800, "loadcurrent" : 27.000,
"solarpanelvoltage" : 2.960, "solarpanelcurrent" : -0.000, "auxa" : 3, "mic" : "CRC"}