23
Page
Version 1.1 June 2021
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 AfterShock Data
This is the raw data: {"time" : "2021-06-03 14:42:36", "model" : "SwitchDoc Labs AfterShock", "len"
: 53, "messageid" : 1280, "deviceid" : 1, "protocolversion" : 1, "softwareversion" : 2,
"weathersenseprotocol" : 18, "eqcount" : 30, "finaleq_si" : 0.061, "finaleq_pga" : 2.220,
"instanteq_si" : 0.032, "instanteq_pga" : 0.870, "loadvoltage" : 5.008, "batteryvoltage" : 4.192,
"batterycurrent" : 48.400, "loadcurrent" : 26.400, "solarpanelvoltage" : 6.272, "solarpanelcurrent"
: 4.800, "auxa" : 3, "solarpresent" : 1, "aftershockpresent" : 1, "keepalivemessage" : 0,
"lowbattery" : 0, "mic" : "CRC"}
What does the JSON from the WeatherSense AfterShock mean?
The WeatherSenseMonitor.py python3 program reads in the 433MHz signals into the Raspberry Pi, decodes
them and formats the results as a JSON packet that will be provided to the WeatherSenseMonitoring software
for processing and storage in the database. More about the SDL_Pi_WeatherSense software in the
WeatherSense Software Manual.
If you have other WeatherSense Sensors (such as SkyWeather2, WeatherRack2, F016TH Indoor sensors, etc),
you will see them show up in the list too.
This is the raw data: {"time" : "2021-06-03 14:42:36", "model" : "SwitchDoc Labs AfterShock", "len"
: 53, "messageid" : 1280, "deviceid" : 1, "protocolversion" : 1, "softwareversion" : 2,
"weathersenseprotocol" : 18, "eqcount" : 30, "finaleq_si" : 0.061, "finaleq_pga" : 2.220,
"instanteq_si" : 0.032, "instanteq_pga" : 0.870, "loadvoltage" : 5.008, "batteryvoltage" : 4.192,
"batterycurrent" : 48.400, "loadcurrent" : 26.400, "solarpanelvoltage" : 6.272, "solarpanelcurrent"
: 4.800, "auxa" : 3, "solarpresent" : 1, "aftershockpresent" : 1, "keepalivemessage" : 0,
"lowbattery" : 0, "mic" : "CRC"}
The values and units of the are:
•
timestamp: When the packet has been received
•
model: SwitchDoc Labs AfterShock
•
len: Number of bytes in the packet
•
messageid: ID of message. Not reset by bootup
•
deviceid: 1 – If you have more than one AfterShock sensor, you can change this ID by recompiling the
software
•
protocolversion: Current protocol of theAfterShock sensor
•
softwareversion: This shows the current version of the software on the Mini Pro Plus
•
weathersenseprotocol: 18 for WeatherSense AfterShock
•
eqcount: Count of earthquakes since bootup
•
finaleq_si: SI reading as evaluated by the Earthquake Algorithm (m/sec).
•
finaleq_pga: PGA (Peak Acceleration Readionmg) reading during evaluation by the Earthquake
Algorithm (m/sec**2).
Содержание WeatherSense Aftershock
Страница 12: ...15 Page Version 1 1 June 2021...