|
Post by richie on Jul 10, 2021 15:04:37 GMT -8
I have configured and was able to run all the sensors once on the 5th, since then the Aftershock has not been reported. I found the antenna unsoldered, I did so, and still no response. A second TX was installed with the same results
I do find this in my rtl_433 data: time : 2021-07-08 06:19:46 model : RadioHead ASK Data len : 44 To : 255 From : 255 Id : 0 Flags : 0 Payload : 127, 0, 0, 0, 1, 16, 1, 0, 0, 8, 0, 5, 0, 0, 0, 61, 0, 0, 0, 119, 190, 159, 64, 93, 143, 130, 64, 153, 153, 41, 66, 51, 51, 175, 65, 226, 122, 148, 64, 255, 255, 127, 64, 19 Integrity : CRC
I see the SwitchDoc Labs FT020T AIO, SwitchDoc Labs F016TH Thermo-Hygrometer, SwitchDoc Labs AQI, SwitchDoc Labs TB, and SwitchDoc Labs F007TH Thermo-Hygrometer
Is the RadioHead ASK my Aftershock? or something else I'm picking up? or Do we need to reprogram the AS board?
One note, when the AS was first brought online it showed as SolarMax until I clicked on the tab for AS.
Cheers John
|
|
|
Post by richie on Jul 10, 2021 15:05:42 GMT -8
Ok so Im pretty sure this is the Aftershock reporting: time : 2021-07-08 18:45:02 model : RadioHead ASK Data len : 53 To : 255 From : 255 Id : 0 Flags : 0 Payload : 172, 0, 0, 0, 1, 18, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 238, 124, 159, 64, 222, 36, 134, 64, 0, 0, 56, 195, 0, 0, 240, 65, 189, 116, 19, 63, 0, 0, 0, 128, 11, 3 Integrity : CRC
I can turn the unit off and on while watching rtl_433 -v output. this shows with in about 10-15 seconds. I trigger the board it goes white and it shows in the log.
rtl-433 -vv time : 2021-07-08 19:35:30 model : RadioHead ASK Data len : 44 To : 255 From : 255 Id : 0 Flags : 0 Payload : 182, 0, 0, 0, 1, 16, 1, 0, 0, 8, 0, 5, 0, 0, 0, 61, 0, 0, 0, 119, 190, 159, 64, 29, 90, 132, 64, 255, 255, 39, 66, 51, 51, 175, 65, 123, 20, 142, 64, 204, 204, 204, 63, 19 Integrity : CRC pulse_demod_pcm(): Radiohead ASK bitbuffer:: Number of rows: 1 [00] {663} aa aa aa aa a3 9b 55 45 96 59 76 59 65 92 ad 65 96 59 65 96 38 e5 96 39 65 96 59 66 36 59 64 d6 59 65 96 59 51 b6 59 65 96 58 71 d2 a7 49 6d 58 e1 b3 33 8b 4d 58 59 65 97 91 cd 65 55 55 54 c9 6d 38 74 ae 35 8a 6d 58 aa aa aa aa b5 16 e5 4d 53 31 c0 philips_aj7010_decode: wrong number of rows (9) norgo_decode: wrong size of bit per row 18 norgo_decode: wrong size of bit per row 5 norgo_decode: wrong size of bit per row 2 norgo_decode: wrong size of bit per row 10 norgo_decode: wrong size of bit per row 2 norgo_decode: wrong size of bit per row 7
loaded :schemas Registering protocol [143] "Holman Industries iWeather WS5029 weather station (older PWM)" Registering protocol [144] "TBH weather sensor" Registering protocol [145] "WS2032 weather station" Registering protocol [146] "SwitchDoc Labs Weather FT020T Sensors" Registering protocol [147] "SwitchDoc Labs F016TH Temperature Humidity Sensor" Registering protocol [148] "SwitchDoc Labs SolarMAX" Registering protocol [149] "SwitchDoc Labs SM23 Soil Moisture Sensor" Registering protocol [150] "SwitchDoc Labs WeatherSenseAQI" Registering protocol [151] "SwitchDoc Labs WeatherSenseTB" Registering protocol [152] "SwitchDoc Labs WeatherSenseAS" Registered 123 out of 152 device decoding protocols Found 1 device(s)
How can I fix this?
|
|
|
Post by SDL on Jul 10, 2021 16:03:54 GMT -8
|
|
|
Post by richie on Jul 10, 2021 17:05:13 GMT -8
Done: back online and waiting for a report:
pi@Skyweather2:~/SDR/rtl_433/build $ cmake .. -- Build type not specified: defaulting to release. -- Found Git version: refs/heads/master commit fd97228f1fd706e3bed6d4e20581e58152b74f3f from 2021-04-13T18:55:34-0700 -- Using Git version tag: -128-NOTFOUND on master at 202104131855 -- RTL-SDR device input will be compiled. -- Could NOT find SoapySDR (missing: SoapySDR_DIR) -- SoapySDR development files not found, SoapySDR device input won't be possible. -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Configuring done -- Generating done -- Build files have been written to: /home/pi/SDR/rtl_433/build pi@Skyweather2:~/SDR/rtl_433/build $ make clean pi@Skyweather2:~/SDR/rtl_433/build $ make
Make and Build errors are normal for c99 build
|
|
|
Post by richie on Jul 10, 2021 18:17:28 GMT -8
I now see both: but only once and then only the RadioHead ASK time : 2021-07-10 21:06:40 model : RadioHead ASK Data len : 53 To : 255 From : 255 Id : 0 Flags : 0 Payload : 235, 0, 0, 0, 1, 18, 1, 2, 0, 0, 0, 47, 221, 164, 62, 133, 235, 193, 64, 47, 221, 164, 62, 133, 235, 193, 64, 238, 124, 159, 64, 84, 227, 133, 64, 154, 153, 109, 195, 153, 153, 249, 65, 105, 145, 237, 62, 0, 0, 0, 128, 3, 3 Integrity : CRC pulse_demod_pcm(): Radiohead ASK bitbuffer:: Number of rows: 1 [00] {772} aa aa aa aa a3 9b 52 a5 96 59 76 59 65 89 cb 65 96 59 65 96 38 e6 56 39 66 56 59 65 96 59 91 66 9a cb 55 27 8c c9 ca ab 59 91 66 9a cb 55 27 8c c9 ca ab 58 9a 67 2b 49 6d 59 33 49 d5 8c cd 59 4b 34 d2 b1 aa d5 4d 34 d2 5d 2d 38 b5 34 b8 99 b5 27 65 96 59 65 98 d9 65 56 54 71 d5 62 00 philips_aj7010_decode: wrong number of rows (19) norgo_decode: wrong size of bit per row 18 norgo_decode: wrong size of bit per row 5 norgo_decode: wrong size of bit per row 5 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ time : 2021-07-10 21:06:40 model : SwitchDoc Labs AfterShock Data len : 53 Message ID: 235 Device ID : 1 Protocol Version: 1 Software Version: 3 WeatherSense Type: 18 Earthquake Count: 2 Final EQ SI: 0.322 Final EQ PGA: 6.060 Instant EQ SI: 0.322 Instant EQ PGA: 6.060 Load Voltage: 4.984 Battery Voltage: 4.184 Battery Current: -237.600 Load Current: 31.200 Solar Panel Voltage: 0.464 Solar Panel Current: -0.000 Aux A : 3 Solar Power Present: 1 AS Board Present: 1 Keep Alive Message: 0 Low Battery: 0 Integrity : CRC pulse_demod_pcm(): SwitchDoc Labs WeatherSenseAS bitbuffer:: Number of rows: 1 [00] {772} aa aa aa aa a3 9b 52 a5 96 59 76 59 65 89 cb 65 96 59 65 96 38 e6 56 39 66 56 59 65 96 59 91 66 9a cb 55 27 8c c9 ca ab 59 91 66 9a cb 55 27 8c c9 ca ab 58 9a 67 2b 49 6d 59 33 49 d5 8c cd 59 4b 34 d2 b1 aa d5 4d 34 d2 5d 2d 38 b5 34 b8 99 b5 27 65 96 59 65 98 d9 65 56 54 71 d5 62 00 Badly formatted OS v2.1 message: {127} 00 29 96 a0 30 43 e6 0f 8a 0a 02 78 00 0c 01 8e Unrecognized Msg in OS v3: {127} 00 29 96 a0 30 43 e6 0f 8a 0a 02 78 00 0c 01 8e Checksum error in Ambient Weather message. Expected: 30 Calculated: a2 Message: {48} 4c b5 01 82 1f 30 : 01001100 10110101 00000001 10000010 00011111 00110000 philips_aj7010_decode: wrong number of bits (0) norgo_decode: wrong size of bit per row 9
|
|
|
Post by SDL on Jul 11, 2021 10:33:32 GMT -8
When you run rtl_433, only turn on the SDL devices. That will fix this error. Radiohead ASK is getting confused and stepping on AS.
Here is the command:
sudo /usr/local/bin/rtl_433 -q -F json -R 146 -R 147 -R 148 -R 150 -R 151 -R 152
BP
|
|
|
Post by richie on Jul 11, 2021 12:21:31 GMT -8
Thank you
Now I am able to see the AS in the rtl_433 scan but it still will not come online for SkyWeather2. There is a error now in the dash log:
File "index.py", line 584, in updateAfterShockUpdate value = aftershock_page.ASJSON[id['index']] KeyError: 'InstantEQPGA'
It stops updates from what i can see in the code.
Open to Ideas. I have rebuilt the system from the V15 up. Cheers
|
|
|
Post by richie on Jul 11, 2021 15:12:40 GMT -8
Seems a typo my be at play: I found this in the aftershock_page.py
ASJSON={} ASJSON["LastEarthquake"]= "N/A" ASJSON["LastEQSI"]= "N/A" ASJSON["LastEQPGA"]= "N/A" ASJSON["InstantEQSI"]= "N/A" ASJSON["InstandEQPGA"]= "N/A". Should this be ASJSON["InstantEQPGA"] ASJSON["EQCount"]= "N/A" ASJSON["UnitID"]= "N/A" ASJSON["LastMessageID"]= "N/A"
|
|
|
Post by richie on Jul 12, 2021 14:17:41 GMT -8
Found the possible typo in both aftershock_page.py files SkyWeather2 and WeatherSense. I changed it in both, the errors stopped when updating the page in both but only WeatherSense is seeing the Aftershock now. After running WeatherSense and after the AS reports I can stop WS and start SkyWeather. The AS can be seen for a little while. But is moved between reprtoing as SolarMax and AS.
|
|
|
Post by SDL on Jul 13, 2021 12:14:24 GMT -8
Richie,
That is absolutely correct. That is a bug for sure. Affects both. Adding to bug fix list.
BP
|
|
|
Post by richie on Jul 17, 2021 7:41:28 GMT -8
Rebuilt again and the same issue is still present. I can See the Aftershock in WeatherSense but not in SkyWeather2. How can one start SkyWeather2 with only the "sudo /usr/local/bin/rtl_433 -q -F json -R 146 -R 147 -R 148 -R 150 -R 151 -R 152," as suggested? and why is this not run from SDR/rtl_433?
Side question do we have the join statement for the database or suggest another way? Cheers
|
|
|
Post by richie on Jul 17, 2021 15:40:49 GMT -8
When running /SDL_Pi_SkyWeather2/testWirelessSensors.py I see all but the AfterShock registering Registered 5 out of 152 device decoding protocols [ 146-148 150-151 ] then in the wirelessSensors.py the sudo /usr/local/bin/rtl_433 -q -F json -R 146 -R 147 -R 148 -R 150 -R 151 does not included the -R 152. Same was found in the wirelessSensors.py it does not include the R 152 Now tracking back a Mosquitto error on a AfterShock publish and found this:
AttributeError: module 'config' has no attribute 'enable_MQTT'
line 504 if (config.enable_MQTT == True): mqtt_publish_single(sLine, "WSAfterShock") should read if (config.MQTT_Enable == True): mqtt_publish_single(sLine, "WSAfterShock")
|
|
|
Post by richie on Jul 17, 2021 18:08:52 GMT -8
new error:
File "index.py", line 182, in logpageupdate return fig UnboundLocalError: local variable 'fig' referenced before assignment
File "index.py", line 495, in updateLightningUpdate value = lightning_page.LLJSON[id['index']] KeyError: 'systemlog'
|
|
|
Post by SDL on Jul 19, 2021 18:28:00 GMT -8
When running /SDL_Pi_SkyWeather2/testWirelessSensors.py I see all but the AfterShock registering Registered 5 out of 152 device decoding protocols [ 146-148 150-151 ] then in the wirelessSensors.py the sudo /usr/local/bin/rtl_433 -q -F json -R 146 -R 147 -R 148 -R 150 -R 151 does not included the -R 152. Same was found in the wirelessSensors.py it does not include the R 152 Now tracking back a Mosquitto error on a AfterShock publish and found this: AttributeError: module 'config' has no attribute 'enable_MQTT' line 504 if (config.enable_MQTT == True): mqtt_publish_single(sLine, "WSAfterShock") should read if (config. MQTT_Enable == True): mqtt_publish_single(sLine, "WSAfterShock") Richie, I looked at it and you are correct. It is wrong in the SkyWeather2 wirelessSensors.py. Added to bug list. The next big rev of SkyWeather will be started around the first of August. BP
|
|
|
Post by SDL on Jul 19, 2021 18:33:19 GMT -8
Rebuilt again and the same issue is still present. I can See the Aftershock in WeatherSense but not in SkyWeather2. How can one start SkyWeather2 with only the "sudo /usr/local/bin/rtl_433 -q -F json -R 146 -R 147 -R 148 -R 150 -R 151 -R 152," as suggested? and why is this not run from SDR/rtl_433? Side question do we have the join statement for the database or suggest another way? Cheers Richie, You are correct on this bug too. We left out the -R 152 in SkyWeather2. Added to the bug list. I think we will do a quick update for some of these simple bugs. The next big rev of SkyWeather2 adds the time-lapse for the local camera and Solar SkyCam remote which is a big addition. BP
|
|