background image

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

Страница 1: ...Version 1 1 June 2021 WeatherSense Solar Powered AfterShock Earthquake Sensor Assembly and Test Manual June 2021 Version 1 1...

Страница 2: ...rts you need to buy separately from the kit 12 How to select a LiPo Battery 12 Step by Step Assembly 13 Testing WeatherSense AfterShock 21 What does the JSON from the WeatherSense AfterShock mean 23 D...

Страница 3: ...arthquake Detector Sensor Easy to build Easy to learn about the IoT Internet of Things and the Raspberry Pi The heart of the new WeatherSense Sensor is the our new 433MHz MiniProPlus CPU board in work...

Страница 4: ...7 Page Version 1 1 June 2021 The WeatherSense AfterShock kit is so simple that even middle school children can build it with just a little adult help for configuration and installation...

Страница 5: ...and connect up to your own projects and software Before You Build Your WeatherSense AfterShock System You should build and test your WeatherSense AfterShock system as below BEFORE you put it in the o...

Страница 6: ...rious parts What are we doing here We are assembling the WeatherSense AfterShock Earthquake System In this manual we are going to assemble the WeatherSense AfterShock system and test all the functions...

Страница 7: ...10 Page Version 1 1 June 2021 Part C 433MHz Transmitter with Antenna Part D AfterShock Earthquake Detector...

Страница 8: ...11 Page Version 1 1 June 2021 Part E 330mA 6V Solar Panel Part F SunAirPlus2 Solar Power Data Collector and Controller Part G 3 7V LiPo Battery Not included Part H Three 3 20cm Grove Cables...

Страница 9: ...attery The WeatherSense AfterShock sensor requires a 3 7V LiPo battery How large of a LiPo battery you need depends on how much sun you get and how often you have cloudy weather Generally we would rec...

Страница 10: ...ture This makes sure that the pins are connected in the header Bend pin 1 and pin 3 slightly out Step 3 Take a 20cm grove cable Part I and plug it into the grove connector on the Mini Pro Plus Part A...

Страница 11: ...14 Page Version 1 1 June 2021 Step 5 Push the WatchDog Time Enable Switch to the Left enable on the Mini Pro Plus board Part A...

Страница 12: ...15 Page Version 1 1 June 2021...

Страница 13: ...s Part A grove connector marked J7 I2C and the other end into the grove connector on the SunAirPlus2 board Part F Step 7 take the USB micro to Type A cable Part B and plug it into the USB micro connec...

Страница 14: ...Version 1 1 June 2021 Step 8 Make sure the switch on the SunAirPlus2 board Part F is pushed toward the Battery Connector away from the Grove Connector This turns off the power supply to the MiniProPlu...

Страница 15: ...Plug the Solar Panel Part E JST 2 connector into the SunAirPlus2 Part F board JST 2 plug marked SOLAR next to the USB Micro connector on SunAirPlus2 Part F You can take the protective plastic off of...

Страница 16: ...ite and Red Interrupt LED lights and then go off after a while on the AfterShock Board If the white and red LEDs on the AfterShock Part D does not go out you have plugged your 20cm Grove cable into th...

Страница 17: ...rd to your computer to watch the serial port lots of data printing there Check out the WeatherSense Advanced Programming Manual to see how to do this with the Arduino IDE If there is an earthquake or...

Страница 18: ...3 mkdir build cd build cmake make make install Step 2 Install the WeatherSense Software using these commands cd git clone https github com switchdoclabs SDL_Pi_WeatherSense git Step 3 Add needed pytho...

Страница 19: ...delta 10 reused 12 delta 10 pack reused 0 Unpacking objects 100 12 12 done From https github com switchdoclabs SDL_Pi_WeatherSense f2193a0 c98a45c master origin master Updating f2193a0 c98a45c Fast f...

Страница 20: ...Sense 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 1...

Страница 21: ...are coded as AuxA has state information coded in the bottom byte of the 32 bit AuxA as 000EDCBA A 1 AfterShock Present 0 not present B 1 IN3221 Solar Present 0 not present SunAirPlus C 1 Low battery C...

Отзывы: