|
Post by SDL on Nov 3, 2019 7:45:48 GMT -8
Juanc,
I just put V052 up there (for a WeatherUnderground problem mainly) but we also added a little bit more debug to readLoRa. With SWDEBUG defined we should be able to see what is going on.
BP
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 4, 2019 13:39:35 GMT -8
Hi BP,
After updating to V052, this is the result:
pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python testWXLink.py ('HW-Version: ', 18) Tick! The time is: 2019-11-04 18:28:52.984690 Tick! The time is: 2019-11-04 18:28:57.986873 Tick! The time is: 2019-11-04 18:29:02.996369 Tick! The time is: 2019-11-04 18:29:08.004424 Tick! The time is: 2019-11-04 18:29:13.006188 Tick! The time is: 2019-11-04 18:29:18.012518 Tick! The time is: 2019-11-04 18:29:23.021413 Tick! The time is: 2019-11-04 18:29:28.030238 Tick! The time is: 2019-11-04 18:29:33.037173 Tick! The time is: 2019-11-04 18:29:38.045577 Tick! The time is: 2019-11-04 18:29:43.046801 Tick! The time is: 2019-11-04 18:29:48.056478 Tick! The time is: 2019-11-04 18:29:53.065768 Tick! The time is: 2019-11-04 18:29:58.069053 Tick! The time is: 2019-11-04 18:30:03.078930 Tick! The time is: 2019-11-04 18:30:08.088669 ^CTraceback (most recent call last): File "testWXLink.py", line 67, in <module> readLoRa.readRawWXLink() File "/home/pi/SDL_Pi_SkyWeather/readLoRa.py", line 288, in readRawWXLink if state.ll.waitRX(timeout=5): File "./pyRFM/lib/ll/ll_rfm9x.py", line 407, in waitRX time.sleep(0.01) KeyboardInterrupt
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 4, 2019 13:49:04 GMT -8
When I run a system test the program will hang after printing: " after SHT30". It will not continue even after waiting 40 minutes. I am attaching my conflocal.py file so you can check it. When I interrupt the program with Control C, the software will continue as you can see: pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo pigpiod pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py (8.16, 2, 0) () ('Pi Camera Revision', u'ov5647') ('HW-Version: ', 18) ('after bme680', True) as3935 start as3935 present at 0x02 after SHT30 ^C
SkyWeather Weather Station Version 052 - SwitchDoc Labs
Program Started at:2019-11-04 18:37:45
---------------------- I2C Mux - TCA9545: Present BME680: Present BMP280: Not Present SkyCam: Present DS3231: Not Present HDC1080: Not Present SHT30: Not Present AM2315: Not Present ADS1015: Not Present ADS1115: Present AS3935: Present OLED: Not Present SunAirPlus/SunControl: Not Present SolarMAX: Not Present SI1145 Sun Sensor: Not Present TSL2591 Sun Sensor: Present DustSensor: Present WXLink: Present Dual SolarMAX/WXLink: Not Present
UseBlynk: Not Present UseMySQL: Not Present Check WLAN: Not Present WeatherUnderground: Not Present UseWeatherStem: Not Present ---------------------- sendmail exception raised ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- Bad data from WXLink, discarded new data. Kept old ----------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- taking SkyPicture ----------------- Scheduled Jobs ----------------- Jobstore default: patTheDog (trigger: interval[0:00:10], next run at: 2019-11-04 18:38:04 -03) checkForButtons (trigger: interval[0:00:10], next run at: 2019-11-04 18:38:04 -03) readRawWXLink (trigger: interval[0:00:15], next run at: 2019-11-04 18:38:09 -03) sampleAndDisplay (trigger: interval[0:00:30], next run at: 2019-11-04 18:38:24 -03) tick (trigger: interval[0:01:00], next run at: 2019-11-04 18:38:54 -03) takeSkyPicture (trigger: interval[0:01:00], next run at: 2019-11-04 18:38:54 -03) updateRain (trigger: interval[0:05:00], next run at: 2019-11-04 18:42:54 -03) checkForShutdown (trigger: interval[0:05:00], next run at: 2019-11-04 18:42:54 -03) doAllGraphs (trigger: interval[0:15:00], next run at: 2019-11-04 18:52:54 -03) barometricTrend (trigger: interval[0:15:00], next run at: 2019-11-04 18:52:54 -03) read_AQI (trigger: interval[0:15:00], next run at: 2019-11-04 18:52:54 -03) WLAN_check (trigger: interval[0:30:00], next run at: 2019-11-04 19:07:54 -03) statusRain (trigger: interval[1:00:00], next run at: 2019-11-04 19:37:54 -03) rebootPi (trigger: cron[day='5-30/5', hour='0', minute='4'], next run at: 2019-11-05 00:04:00 -03) ----------------- ^CTraceback (most recent call last): File "SkyWeather.py", line 1901, in <module> time.sleep(1.0) KeyboardInterrupt
conflocal.py (2.84 KB)
|
|
|
Post by SDL on Nov 4, 2019 17:38:25 GMT -8
janac,
Do you have an SHT30 plugged into the system or an AM2315?
Something is funny here. That's a good clue.
If you have an AM2315, unplug it and see if the system boots. Maybe you have a bad AM2315.
BP
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 4, 2019 18:36:14 GMT -8
janac, Do you have an SHT30 plugged into the system or an AM2315? Something is funny here. That's a good clue. If you have an AM2315, unplug it and see if the system boots. Maybe you have a bad AM2315. BP BP, NO, I don't have an SHT30 plugged in or elsewhere. I do have an AM2315 that I just unplugged as you told me and this is the result: pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python testWXLink.py ('HW-Version: ', 18) Tick! The time is: 2019-11-04 23:17:15.586354 Tick! The time is: 2019-11-04 23:17:20.591814 Tick! The time is: 2019-11-04 23:17:25.598786 Tick! The time is: 2019-11-04 23:17:30.604518 Tick! The time is: 2019-11-04 23:17:35.610449 ('>>>>>>>>>>>>protocolblock=', 39) protocol 3 - WXLink received WXLink Message ID 3 Tick! The time is: 2019-11-04 23:17:37.719570 Tick! The time is: 2019-11-04 23:17:42.725548 Tick! The time is: 2019-11-04 23:17:47.731948 Tick! The time is: 2019-11-04 23:17:52.738752 Tick! The time is: 2019-11-04 23:17:57.744998 Tick! The time is: 2019-11-04 23:18:02.750670 Tick! The time is: 2019-11-04 23:18:07.757212 Tick! The time is: 2019-11-04 23:18:12.763543 ('>>>>>>>>>>>>protocolblock=', 39) protocol 3 - WXLink received WXLink Message ID 4 Tick! The time is: 2019-11-04 23:18:14.426612 Tick! The time is: 2019-11-04 23:18:19.433451 Tick! The time is: 2019-11-04 23:18:24.443699 Tick! The time is: 2019-11-04 23:18:29.449836 Tick! The time is: 2019-11-04 23:18:34.456365 Tick! The time is: 2019-11-04 23:18:39.461533 Tick! The time is: 2019-11-04 23:18:44.471954 Tick! The time is: 2019-11-04 23:18:49.481146 ('>>>>>>>>>>>>protocolblock=', 39) protocol 3 - WXLink received WXLink Message ID 5 Tick! The time is: 2019-11-04 23:18:50.945455 Tick! The time is: 2019-11-04 23:18:55.947450 Tick! The time is: 2019-11-04 23:19:00.951108 Tick! The time is: 2019-11-04 23:19:05.953397 Tick! The time is: 2019-11-04 23:19:10.954973 Tick! The time is: 2019-11-04 23:19:15.962640 Tick! The time is: 2019-11-04 23:19:20.966644 Tick! The time is: 2019-11-04 23:19:25.972070 ('>>>>>>>>>>>>protocolblock=', 39) protocol 3 - WXLink received WXLink Message ID 6 Tick! The time is: 2019-11-04 23:19:27.465893 Tick! The time is: 2019-11-04 23:19:32.476472 Tick! The time is: 2019-11-04 23:19:37.483569 Tick! The time is: 2019-11-04 23:19:42.485786 Tick! The time is: 2019-11-04 23:19:47.488462 Tick! The time is: 2019-11-04 23:19:52.489702 Tick! The time is: 2019-11-04 23:19:57.496360 Tick! The time is: 2019-11-04 23:20:02.498003 ('>>>>>>>>>>>>protocolblock=', 39) protocol 3 - WXLink received WXLink Message ID 7 Tick! The time is: 2019-11-04 23:20:03.982738 Tick! The time is: 2019-11-04 23:20:08.991843 Tick! The time is: 2019-11-04 23:20:14.000273 Tick! The time is: 2019-11-04 23:20:19.008605 Tick! The time is: 2019-11-04 23:20:24.009886 Tick! The time is: 2019-11-04 23:20:29.011378 Tick! The time is: 2019-11-04 23:20:34.018550 Tick! The time is: 2019-11-04 23:20:39.020652 ('>>>>>>>>>>>>protocolblock=', 39) protocol 3 - WXLink received WXLink Message ID 8 Tick! The time is: 2019-11-04 23:20:40.502069 Tick! The time is: 2019-11-04 23:20:45.509603 Tick! The time is: 2019-11-04 23:20:50.517938 Tick! The time is: 2019-11-04 23:20:55.525083 Tick! The time is: 2019-11-04 23:21:00.527832 Tick! The time is: 2019-11-04 23:21:05 I just checked the yellow LED on the Mini Arduino and it is blinking every 36.5 seconds by my stopwatch. I guess this means that at least the LoRas are talking to each other, but it seems that it's not reading the weather rack at all.
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 4, 2019 20:11:48 GMT -8
This is the result of the system test:
pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo pigpiod pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py (8.16, 2, 0) () ('Pi Camera Revision', u'ov5647') ('HW-Version: ', 18) ('after bme680', True) as3935 start as3935 present at 0x02 after SHT30 as3935 Interrupt as3935 Interrupt ^C
SkyWeather Weather Station Version 052 - SwitchDoc Labs
Program Started at:2019-11-05 00:58:25
---------------------- I2C Mux - TCA9545: Present BME680: Present BMP280: Not Present SkyCam: Present DS3231: Not Present HDC1080: Not Present SHT30: Not Present AM2315: Not Present ADS1015: Not Present ADS1115: Present AS3935: Present OLED: Not Present SunAirPlus/SunControl: Not Present SolarMAX: Not Present SI1145 Sun Sensor: Not Present TSL2591 Sun Sensor: Present DustSensor: Present WXLink: Present Dual SolarMAX/WXLink: Not Present
UseBlynk: Not Present UseMySQL: Not Present Check WLAN: Not Present WeatherUnderground: Not Present UseWeatherStem: Not Present ---------------------- sendmail exception raised ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- Bad data from WXLink, discarded new data. Kept old ----------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- taking SkyPicture ----------------- Scheduled Jobs ----------------- Jobstore default: patTheDog (trigger: interval[0:00:10], next run at: 2019-11-05 00:58:43 -03) checkForButtons (trigger: interval[0:00:10], next run at: 2019-11-05 00:58:43 -03) readRawWXLink (trigger: interval[0:00:15], next run at: 2019-11-05 00:58:48 -03) sampleAndDisplay (trigger: interval[0:00:30], next run at: 2019-11-05 00:59:03 -03) tick (trigger: interval[0:01:00], next run at: 2019-11-05 00:59:33 -03) takeSkyPicture (trigger: interval[0:01:00], next run at: 2019-11-05 00:59:33 -03) updateRain (trigger: interval[0:05:00], next run at: 2019-11-05 01:03:33 -03) checkForShutdown (trigger: interval[0:05:00], next run at: 2019-11-05 01:03:33 -03) doAllGraphs (trigger: interval[0:15:00], next run at: 2019-11-05 01:13:33 -03) barometricTrend (trigger: interval[0:15:00], next run at: 2019-11-05 01:13:33 -03) read_AQI (trigger: interval[0:15:00], next run at: 2019-11-05 01:13:33 -03) WLAN_check (trigger: interval[0:30:00], next run at: 2019-11-05 01:28:33 -03) statusRain (trigger: interval[1:00:00], next run at: 2019-11-05 01:58:33 -03) rebootPi (trigger: cron[day='5-30/5', hour='0', minute='4'], next run at: 2019-11-10 00:04:00 -03) ----------------- AS3935 Interrupt processing Interrupt from as3935 Last Interrupt = 0x4: Disturber detected - masking ------Patting The Dog------- ------Patting The Dog------- ----------------- ------Patting The Dog-------
Sample and Display ----------------- ----------------- Weather Sampling ----------------- Bad data from WXLink, discarded new data. Kept old ----------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ^CTraceback (most recent call last): File "SkyWeather.py", line 1901, in <module> time.sleep(1.0) KeyboardInterrupt
This time the program got hunged up after printing "as3935 Interrupt" twice, and I waited an hour to see if it didn't continue, but it didn't. After presing Ctrl C, the program resumed but it keeps printing: "Bad data from WXLink, discarded new data. Kept old" This test was run with the AM2315 unplugged.
|
|
|
Post by SDL on Nov 5, 2019 17:11:11 GMT -8
Your WXLink seems to be working correctly. Let's do more debugging on that first and then come back to SkyWeather.
Did you change SWDEBUG in conflocal.py to True? It looks like you didn't.
in conflocal.py:
SWDEBUG = True
Re run the testWXLink.py program put up the results.
We are getting closer. Did you run all the test programs included as the manual suggests for SkyWeather?
BP
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 5, 2019 20:18:41 GMT -8
Your WXLink seems to be working correctly. Let's do more debugging on that first and then come back to SkyWeather. Did you change SWDEBUG in conflocal.py to True? It looks like you didn't. in conflocal.py: SWDEBUG = True Re run the testWXLink.py program put up the results. We are getting closer. Did you run all the test programs included as the manual suggests for SkyWeather? BP With the AM2315 unplugged, I changed SWDEBUG in conflocal.py to True and now it seems to be working!!!! pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python testWXLink.py ('HW-Version: ', 18) Starting readWXLink Tick! The time is: 2019-11-06 01:01:33.492490 Starting readWXLink Tick! The time is: 2019-11-06 01:01:38.502396 Starting readWXLink Tick! The time is: 2019-11-06 01:01:43.512738 Starting readWXLink Tick! The time is: 2019-11-06 01:01:48.521982 Starting readWXLink Tick! The time is: 2019-11-06 01:01:53.528200 Starting readWXLink Tick! The time is: 2019-11-06 01:01:58.536247 Starting readWXLink Tick! The time is: 2019-11-06 01:02:03.539580 after WXLink waitRX ----------- block1= [171, 102, 39, 21, 15, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] block2= [0, 93, 143, 130, 64, 153, 153, 17, 66, 153, 153, 185, 65, 76, 55, 9, 63, 0, 0, 0, 128, 0, 0, 0, 0, 11, 0, 0, 0, 172, 235] ----------- block 1 ab6627150f00005a000000000000000000000000000000000000000000000000 block 2 005d8f8240999911429999b9414c37093f00000080000000000b000000aceb ----------- ('>>>>>>>>>>>>protocolblock=', 39) Starting readWXLink ('block1 length=', 32) ('block2 length=', 31) ReversedreceivedCRC= aceb length of stb1+sb2= 59 ab6627150f00005a000000000000000000000000000000000000000000000000 005d8f8240999911429999b9414c37093f00000080000000000b00 calculatedCRC = aceb Good CRC Recived ('protocol_ID = ', 3) ('protocol_software_version = ', 9) protocol 3 - WXLink received Rain Total= 0.00 in Wind Speed= 0.00 MPH Wind Direction= 90 Degrees OTFloat=0000 AM2315 from WXLink temperature: 0.0C AM2315 from WXLink humidity: 0.0% WXLink batteryVoltage = 4.08 WXLink batteryCurrent = -36.40 WXLink loadCurrent = 23.20 WXLink solarPanelVoltage = 0.54 WXLink solarPanelCurrent = -0.00 WXLink auxA = 0.00 WXLink Message ID 11 WXLink_Data_Fresh set to True Tick! The time is: 2019-11-06 01:02:06.201245 Starting readWXLink Tick! The time is: 2019-11-06 01:02:11.210073 Starting readWXLink Tick! The time is: 2019-11-06 01:02:16.212583 Starting readWXLink Tick! The time is: 2019-11-06 01:02:21.214955 Starting readWXLink Tick! The time is: 2019-11-06 01:02:26.221803 Starting readWXLink Tick! The time is: 2019-11-06 01:02:31.223422 Starting readWXLink Tick! The time is: 2019-11-06 01:02:36.228151 Starting readWXLink Tick! The time is: 2019-11-06 01:02:41.238688 after WXLink waitRX ----------- block1= [171, 102, 39, 84, 16, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] block2= [0, 93, 143, 130, 64, 102, 102, 14, 66, 153, 153, 185, 65, 76, 55, 9, 63, 0, 0, 0, 128, 0, 0, 0, 0, 12, 0, 0, 0, 103, 29] ----------- block 1 ab6627541000005a000000000000000000000000000000000000000000000000 block 2 005d8f824066660e429999b9414c37093f00000080000000000c000000671d ----------- ('>>>>>>>>>>>>protocolblock=', 39) Starting readWXLink ('block1 length=', 32) ('block2 length=', 31) ReversedreceivedCRC= 671d length of stb1+sb2= 59 ab6627541000005a000000000000000000000000000000000000000000000000 005d8f824066660e429999b9414c37093f00000080000000000c00 calculatedCRC = 671d Good CRC Recived ('protocol_ID = ', 3) ('protocol_software_version = ', 9) protocol 3 - WXLink received Rain Total= 0.00 in Wind Speed= 0.00 MPH Wind Direction= 90 Degrees OTFloat=0000 AM2315 from WXLink temperature: 0.0C AM2315 from WXLink humidity: 0.0% WXLink batteryVoltage = 4.08 WXLink batteryCurrent = -35.60 WXLink loadCurrent = 23.20 WXLink solarPanelVoltage = 0.54 WXLink solarPanelCurrent = -0.00 WXLink auxA = 0.00 WXLink Message ID 12 WXLink_Data_Fresh set to True Tick! The time is: 2019-11-06 01:02:42.647649 Starting readWXLink Tick! The time is: 2019-11-06 01:02:47.658721 Starting readWXLink Tick! The time is: 2019-11-06 01:02:52.662645 Starting readWXLink Tick! The time is: 2019-11-06 01:02:57.665492 Starting readWXLink Tick! The time is: 2019-11-06 01:03:02.669494 Starting readWXLink Tick! The time is: 2019-11-06 01:03:07.671301 Starting readWXLink Tick! The time is: 2019-11-06 01:03:12.675571 Starting readWXLink Tick! The time is: 2019-11-06 01:03:17.681158 after WXLink waitRX ----------- block1= [171, 102, 39, 147, 17, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] block2= [0, 93, 143, 130, 64, 102, 102, 14, 66, 255, 255, 191, 65, 76, 55, 9, 63, 0, 0, 0, 128, 0, 0, 0, 0, 13, 0, 0, 0, 232, 43] ----------- block 1 ab6627931100005a000000000000000000000000000000000000000000000000 block 2 005d8f824066660e42ffffbf414c37093f00000080000000000d000000e82b ----------- ('>>>>>>>>>>>>protocolblock=', 39) Starting readWXLink ('block1 length=', 32) ('block2 length=', 31) ReversedreceivedCRC= e82b length of stb1+sb2= 59 ab6627931100005a000000000000000000000000000000000000000000000000 005d8f824066660e42ffffbf414c37093f00000080000000000d00 calculatedCRC = e82b Good CRC Recived ('protocol_ID = ', 3) ('protocol_software_version = ', 9) protocol 3 - WXLink received Rain Total= 0.00 in Wind Speed= 0.00 MPH Wind Direction= 90 Degrees OTFloat=0000 AM2315 from WXLink temperature: 0.0C AM2315 from WXLink humidity: 0.0% WXLink batteryVoltage = 4.08 WXLink batteryCurrent = -35.60 WXLink loadCurrent = 24.00 WXLink solarPanelVoltage = 0.54 WXLink solarPanelCurrent = -0.00 WXLink auxA = 0.00 WXLink Message ID 13 WXLink_Data_Fresh set to True Tick! The time is: 2019-11-06 01:03:19.096513 Starting readWXLink Tick! The time is: 2019-11-06 01:03:24.099413 ^CTraceback (most recent call last): File "testWXLink.py", line 67, in <module> readLoRa.readRawWXLink() File "/home/pi/SDL_Pi_SkyWeather/readLoRa.py", line 288, in readRawWXLink if state.ll.waitRX(timeout=5): File "./pyRFM/lib/ll/ll_rfm9x.py", line 407, in waitRX time.sleep(0.01) KeyboardInterrupt
After this first test I ran it again while changeing the position of the windvane and spinning the wind speed cups, and shaking the rain bucket and the new values were read and trasmited perfectly!I did run the system test again, but the progran still hangs after printing : pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py (8.16, 2, 0) () ('Pi Camera Revision', u'ov5647') ('HW-Version: ', 18) ('after bme680', True) as3935 start as3935 present at 0x02 after SHT30 as3935 Interrupt ^C
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 6, 2019 6:51:01 GMT -8
BP,
This morning I moved my WXLink system outside in the sun about 10 meters away from the RPi, and it is transmiting and receiving perfectly.
Then I plugged the AM2315 into the Out Grover plug of the Power Save board connected to the WeatherPlus board on the RPi, and then ran the testAM2315.py and it seems the AM2315 is working!!! But for some reason, it doesn't work when plugged into the WXLink system. Could it be that the conflocal.py file is badly configured?
pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python testAM2315.py temperature: 28.4 humidity: 61.8 crc: 5584
temperature: 28.1 humidity: 61.8 crc: 5648
temperature: 28.1 humidity: 61.8 crc: 5648
temperature: 28.1 humidity: 61.9 crc: 54849
temperature: 28.1 humidity: 61.9 crc: 54849
temperature: 28.1 humidity: 62.0 crc: 6128
temperature: 28.1 humidity: 62.0 crc: 6128
temperature: 28.1 humidity: 62.0 crc: 6128
temperature: 28.1 humidity: 62.0 crc: 6128
temperature: 28.1 humidity: 62.0 crc: 6128
pi@swtchdoclabs:~/SDL_Pi_SkyWeather $
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 6, 2019 7:09:05 GMT -8
I then ran the System Test with the AM2315 plugged into the RPi WeatherBoard and the program DIDN'T HANG any more.
BUT, it seems that it's not reading any sensors and keeps reporting:
Starting readWXLink Bad data from WXLink, discarded new data. Kept old This is the result of the main Systen Test:
pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo pigpiod pi@swtchdoclabs:~/SDL_Pi_SkyWeather $ sudo python SkyWeather.py (11.097600000000002, 6, 2) () ('Pi Camera Revision', u'ov5647') ('HW-Version: ', 18) ('after bme680', True) as3935 start as3935 present at 0x02 after SHT30 outsideTemperature: 28.1 C outsideHumidity: 62.0 % crc: 0x17f0
SkyWeather Weather Station Version 052 - SwitchDoc Labs
Program Started at:2019-11-06 11:45:30
---------------------- I2C Mux - TCA9545: Present BME680: Present BMP280: Not Present SkyCam: Present DS3231: Not Present HDC1080: Not Present SHT30: Not Present AM2315: Present ADS1015: Not Present ADS1115: Present AS3935: Present OLED: Not Present SunAirPlus/SunControl: Not Present SolarMAX: Not Present SI1145 Sun Sensor: Not Present TSL2591 Sun Sensor: Present DustSensor: Present WXLink: Present Dual SolarMAX/WXLink: Not Present
UseBlynk: Not Present UseMySQL: Not Present Check WLAN: Not Present WeatherUnderground: Not Present UseWeatherStem: Not Present ---------------------- sendmail exception raised ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- Starting readWXLink Bad data from WXLink, discarded new data. Kept old ----------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ------------- Current State ------------- currentOutsideTemperature = 0.0 currentOutsideHumidity = 0.0 currentInsideTemperature = 29.27 currentInsideHumidity = 56.628 currentRain60Minutes = 0.0 currentSunlightVisible = 11.0976 currentSunlightIR = 2 currentSunlightUV = 0 currentSunlightUVIndex = 0.0 ScurrentWindSpeed = 0.0 ScurrentWindGust = 0.0 ScurrentWindDirection = 0 currentTotalRain = 0.0 currentBarometricPressure = 999.92 currentAltitude = 89.0 currentSeaLevel = 1010.53602338 barometricTrend = True pastBarometricReading = 999.92 Outdoor_AirQuality_Sensor_Value = 0 Hour24_Outdoor_AirQuality_Sensor_Value = 0 Indoor_AirQuality_Sensor_Value = 0 ------------- currentAs3935Interrupt = 0 currentAs3935LastInterrupt = 0 currentAs3935LastDistance = 0 currentAs3935LastStatus = 0 currentAs3935LastLightningTimeStamp = 0 ------------- runRainbow = False flashStrip = False runOLED = True ------------- Last_Event = My Last Event EnglishMetric = 0 ------------- batteryVoltage 0 batteryCurrent 0 solarVoltage 0 solarCurrent 0 loadVoltage 0 loadCurrent 0 batteryPower 0 solarPower 0 loadPower 0 batteryCharge 0 SolarMAX Last Received None ------------- ------------- WXbatteryVoltage 0 WXbatteryCurrent 0 WXsolarVoltage 0 WXsolarCurrent 0 WXloadVoltage 5.0 WXloadCurrent 0 WXbatteryPower 0 WXsolarPower 0 WXloadPower 0 WXbatteryCharge 0 ------------- fanState = False ------------- WXLink Blocks Block1 Length= 0 Block2 Length= 0 ----------------- Sample and Display Done ----------------- taking SkyPicture -------------------- SkyCam Picture Taken -------------------- ----------------- Scheduled Jobs ----------------- Jobstore default: patTheDog (trigger: interval[0:00:10], next run at: 2019-11-06 11:45:49 -03) checkForButtons (trigger: interval[0:00:10], next run at: 2019-11-06 11:45:49 -03) readRawWXLink (trigger: interval[0:00:15], next run at: 2019-11-06 11:45:54 -03) sampleAndDisplay (trigger: interval[0:00:30], next run at: 2019-11-06 11:46:09 -03) tick (trigger: interval[0:01:00], next run at: 2019-11-06 11:46:39 -03) takeSkyPicture (trigger: interval[0:01:00], next run at: 2019-11-06 11:46:39 -03) updateRain (trigger: interval[0:05:00], next run at: 2019-11-06 11:50:39 -03) checkForShutdown (trigger: interval[0:05:00], next run at: 2019-11-06 11:50:39 -03) statusAM2315 (trigger: interval[0:15:00], next run at: 2019-11-06 12:00:39 -03) doAllGraphs (trigger: interval[0:15:00], next run at: 2019-11-06 12:00:39 -03) barometricTrend (trigger: interval[0:15:00], next run at: 2019-11-06 12:00:39 -03) read_AQI (trigger: interval[0:15:00], next run at: 2019-11-06 12:00:39 -03) WLAN_check (trigger: interval[0:30:00], next run at: 2019-11-06 12:15:39 -03) statusRain (trigger: interval[1:00:00], next run at: 2019-11-06 12:45:39 -03) rebootPi (trigger: cron[day='5-30/5', hour='0', minute='4'], next run at: 2019-11-10 00:04:00 -03) ----------------- ------Patting The Dog------- ------Patting The Dog------- ------Patting The Dog------- ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- Starting readWXLink Bad data from WXLink, discarded new data. Kept old ----------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ------------- Current State ------------- currentOutsideTemperature = 0.0 currentOutsideHumidity = 0.0 currentInsideTemperature = 29.27 currentInsideHumidity = 56.582 currentRain60Minutes = 0.0 currentSunlightVisible = 7.0176 currentSunlightIR = 2 currentSunlightUV = 0 currentSunlightUVIndex = 0.0 ScurrentWindSpeed = 0.0 ScurrentWindGust = 0.0 ScurrentWindDirection = 0 currentTotalRain = 0.0 currentBarometricPressure = 999.93 currentAltitude = 89.0 currentSeaLevel = 1010.54612955 barometricTrend = True pastBarometricReading = 999.93 Outdoor_AirQuality_Sensor_Value = 0 Hour24_Outdoor_AirQuality_Sensor_Value = 0 Indoor_AirQuality_Sensor_Value = 0 ------------- currentAs3935Interrupt = 0 currentAs3935LastInterrupt = 0 currentAs3935LastDistance = 0 currentAs3935LastStatus = 0 currentAs3935LastLightningTimeStamp = 0 ------------- runRainbow = False flashStrip = False runOLED = True ------------- Last_Event = My Last Event EnglishMetric = 0 ------------- batteryVoltage 0 batteryCurrent 0 solarVoltage 0 solarCurrent 0 loadVoltage 0 loadCurrent 0 batteryPower 0 solarPower 0 loadPower 0 batteryCharge 0 SolarMAX Last Received None ------------- ------------- WXbatteryVoltage 0 WXbatteryCurrent 0 WXsolarVoltage 0 WXsolarCurrent 0 WXloadVoltage 5.0 WXloadCurrent 0 WXbatteryPower 0 WXsolarPower 0 WXloadPower 0 WXbatteryCharge 0 ------------- fanState = False ------------- WXLink Blocks Block1 Length= 0 Block2 Length= 0 ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2019-11-06 11:46:39.050271 ----------------- ------Patting The Dog------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- Starting readWXLink Bad data from WXLink, discarded new data. Kept old ----------------- -------------------- SkyCam Picture Taken -------------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ------------- Current State ------------- currentOutsideTemperature = 0.0 currentOutsideHumidity = 0.0 currentInsideTemperature = 29.27 currentInsideHumidity = 56.569 currentRain60Minutes = 0.0 currentSunlightVisible = 7.0176 currentSunlightIR = 2 currentSunlightUV = 0 currentSunlightUVIndex = 0.0 ScurrentWindSpeed = 0.0 ScurrentWindGust = 0.0 ScurrentWindDirection = 0 currentTotalRain = 0.0 currentBarometricPressure = 999.93 currentAltitude = 89.0 currentSeaLevel = 1010.54612955 barometricTrend = True pastBarometricReading = 999.93 Outdoor_AirQuality_Sensor_Value = 0 Hour24_Outdoor_AirQuality_Sensor_Value = 0 Indoor_AirQuality_Sensor_Value = 0 ------------- currentAs3935Interrupt = 0 currentAs3935LastInterrupt = 0 currentAs3935LastDistance = 0 currentAs3935LastStatus = 0 currentAs3935LastLightningTimeStamp = 0 ------------- runRainbow = False flashStrip = False runOLED = True ------------- Last_Event = My Last Event EnglishMetric = 0 ------------- batteryVoltage 0 batteryCurrent 0 solarVoltage 0 solarCurrent 0 loadVoltage 0 loadCurrent 0 batteryPower 0 solarPower 0 loadPower 0 batteryCharge 0 SolarMAX Last Received None ------------- ------------- WXbatteryVoltage 0 WXbatteryCurrent 0 WXsolarVoltage 0 WXsolarCurrent 0 WXloadVoltage 5.0 WXloadCurrent 0 WXbatteryPower 0 WXsolarPower 0 WXloadPower 0 WXbatteryCharge 0 ------------- fanState = False ------------- WXLink Blocks Block1 Length= 0 Block2 Length= 0 ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- ----------------- ------Patting The Dog-------
Sample and Display ----------------- ----------------- Weather Sampling ----------------- Starting readWXLink Bad data from WXLink, discarded new data. Kept old ----------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ------------- Current State ------------- currentOutsideTemperature = 0.0 currentOutsideHumidity = 0.0 currentInsideTemperature = 29.28 currentInsideHumidity = 56.615 currentRain60Minutes = 0.0 currentSunlightVisible = 7.0176 currentSunlightIR = 2 currentSunlightUV = 0 currentSunlightUVIndex = 0.0 ScurrentWindSpeed = 0.0 ScurrentWindGust = 0.0 ScurrentWindDirection = 0 currentTotalRain = 0.0 currentBarometricPressure = 999.93 currentAltitude = 89.0 currentSeaLevel = 1010.54612955 barometricTrend = True pastBarometricReading = 999.93 Outdoor_AirQuality_Sensor_Value = 0 Hour24_Outdoor_AirQuality_Sensor_Value = 0 Indoor_AirQuality_Sensor_Value = 0 ------------- currentAs3935Interrupt = 0 currentAs3935LastInterrupt = 0 currentAs3935LastDistance = 0 currentAs3935LastStatus = 0 currentAs3935LastLightningTimeStamp = 0 ------------- runRainbow = False flashStrip = False runOLED = True ------------- Last_Event = My Last Event EnglishMetric = 0 ------------- batteryVoltage 0 batteryCurrent 0 solarVoltage 0 solarCurrent 0 loadVoltage 0 loadCurrent 0 batteryPower 0 solarPower 0 loadPower 0 batteryCharge 0 SolarMAX Last Received None ------------- ------------- WXbatteryVoltage 0 WXbatteryCurrent 0 WXsolarVoltage 0 WXsolarCurrent 0 WXloadVoltage 5.0 WXloadCurrent 0 WXbatteryPower 0 WXsolarPower 0 WXloadPower 0 WXbatteryCharge 0 ------------- fanState = False ------------- WXLink Blocks Block1 Length= 0 Block2 Length= 0 ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2019-11-06 11:47:39.051482 ------Patting The Dog------- ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- Starting readWXLink Bad data from WXLink, discarded new data. Kept old ----------------- -------------------- SkyCam Picture Taken -------------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ------------- Current State ------------- currentOutsideTemperature = 0.0 currentOutsideHumidity = 0.0 currentInsideTemperature = 29.28 currentInsideHumidity = 56.641 currentRain60Minutes = 0.0 currentSunlightVisible = 11.0976 currentSunlightIR = 2 currentSunlightUV = 0 currentSunlightUVIndex = 0.0 ScurrentWindSpeed = 0.0 ScurrentWindGust = 0.0 ScurrentWindDirection = 0 currentTotalRain = 0.0 currentBarometricPressure = 999.93 currentAltitude = 89.0 currentSeaLevel = 1010.54612955 barometricTrend = True pastBarometricReading = 999.93 Outdoor_AirQuality_Sensor_Value = 0 Hour24_Outdoor_AirQuality_Sensor_Value = 0 Indoor_AirQuality_Sensor_Value = 0 ------------- currentAs3935Interrupt = 0 currentAs3935LastInterrupt = 0 currentAs3935LastDistance = 0 currentAs3935LastStatus = 0 currentAs3935LastLightningTimeStamp = 0 ------------- runRainbow = False flashStrip = False runOLED = True ------------- Last_Event = My Last Event EnglishMetric = 0 ------------- batteryVoltage 0 batteryCurrent 0 solarVoltage 0 solarCurrent 0 loadVoltage 0 loadCurrent 0 batteryPower 0 solarPower 0 loadPower 0 batteryCharge 0 SolarMAX Last Received None ------------- ------------- WXbatteryVoltage 0 WXbatteryCurrent 0 WXsolarVoltage 0 WXsolarCurrent 0 WXloadVoltage 5.0 WXloadCurrent 0 WXbatteryPower 0 WXsolarPower 0 WXloadPower 0 WXbatteryCharge 0 ------------- fanState = False ------------- WXLink Blocks Block1 Length= 0 Block2 Length= 0 ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- ----------------- ------Patting The Dog------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- Starting readWXLink Bad data from WXLink, discarded new data. Kept old ----------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ------------- Current State ------------- currentOutsideTemperature = 0.0 currentOutsideHumidity = 0.0 currentInsideTemperature = 29.29 currentInsideHumidity = 56.59 currentRain60Minutes = 0.0 currentSunlightVisible = 11.0976 currentSunlightIR = 2 currentSunlightUV = 0 currentSunlightUVIndex = 0.0 ScurrentWindSpeed = 0.0 ScurrentWindGust = 0.0 ScurrentWindDirection = 0 currentTotalRain = 0.0 currentBarometricPressure = 999.94 currentAltitude = 89.0 currentSeaLevel = 1010.55623572 barometricTrend = True pastBarometricReading = 999.94 Outdoor_AirQuality_Sensor_Value = 0 Hour24_Outdoor_AirQuality_Sensor_Value = 0 Indoor_AirQuality_Sensor_Value = 0 ------------- currentAs3935Interrupt = 0 currentAs3935LastInterrupt = 0 currentAs3935LastDistance = 0 currentAs3935LastStatus = 0 currentAs3935LastLightningTimeStamp = 0 ------------- runRainbow = False flashStrip = False runOLED = True ------------- Last_Event = My Last Event EnglishMetric = 0 ------------- batteryVoltage 0 batteryCurrent 0 solarVoltage 0 solarCurrent 0 loadVoltage 0 loadCurrent 0 batteryPower 0 solarPower 0 loadPower 0 batteryCharge 0 SolarMAX Last Received None ------------- ------------- WXbatteryVoltage 0 WXbatteryCurrent 0 WXsolarVoltage 0 WXsolarCurrent 0 WXloadVoltage 5.0 WXloadCurrent 0 WXbatteryPower 0 WXsolarPower 0 WXloadPower 0 WXbatteryCharge 0 ------------- fanState = False ------------- WXLink Blocks Block1 Length= 0 Block2 Length= 0 ----------------- Sample and Display Done ----------------- ------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2019-11-06 11:48:39.049699 ----------------- ------Patting The Dog------- Sample and Display -----------------
----------------- Weather Sampling ----------------- Starting readWXLink Bad data from WXLink, discarded new data. Kept old ----------------- -------------------- SkyCam Picture Taken -------------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ------------- Current State ------------- currentOutsideTemperature = 0.0 currentOutsideHumidity = 0.0 currentInsideTemperature = 29.3 currentInsideHumidity = 56.639 currentRain60Minutes = 0.0 currentSunlightVisible = 11.0976 currentSunlightIR = 2 currentSunlightUV = 0 currentSunlightUVIndex = 0.0 ScurrentWindSpeed = 0.0 ScurrentWindGust = 0.0 ScurrentWindDirection = 0 currentTotalRain = 0.0 currentBarometricPressure = 999.92 currentAltitude = 89.0 currentSeaLevel = 1010.53602338 barometricTrend = True pastBarometricReading = 999.92 Outdoor_AirQuality_Sensor_Value = 0 Hour24_Outdoor_AirQuality_Sensor_Value = 0 Indoor_AirQuality_Sensor_Value = 0 ------------- currentAs3935Interrupt = 0 currentAs3935LastInterrupt = 0 currentAs3935LastDistance = 0 currentAs3935LastSt
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 6, 2019 8:40:27 GMT -8
BP,
I reran the System Test and it's now working fine, I think... with the exception of the AM2315.
I believe that the only problem left is how to get the AM2315 sensor working on the WXLink instead of having it plugged in the WeatherBoard on the RPi.
If I unplug the AM2315 from the Power Saver board, the System program hangs after starting.
------Patting The Dog------- ------Patting The Dog------- Tick! The time is: 2019-11-06 13:10:56.326422 ----------------- ------Patting The Dog------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- Starting readWXLink ('block1 length=', 32) ('block2 length=', 31) ReversedreceivedCRC= 129 length of stb1+sb2= 59 ab662787ec000000005a7da93d02000000000000000000000000000000000000 0042608540ffff07423333b3412831c8409999994000000000bd00 calculatedCRC = 129 Good CRC Recived ('protocol_ID = ', 3) ('protocol_software_version = ', 9) protocol 3 - WXLink received Rain Total= 0.00 in Wind Speed= 0.05 MPH Wind Direction= 0 Degrees OTFloat=0000 AM2315 from WXLink temperature: 0.0C AM2315 from WXLink humidity: 0.0% WXLink batteryVoltage = 4.17 WXLink batteryCurrent = -34.00 WXLink loadCurrent = 22.40 WXLink solarPanelVoltage = 6.26 WXLink solarPanelCurrent = 4.80 WXLink auxA = 0.00 WXLink Message ID 189 WXLink_Data_Fresh set to True ----------------- -------------------- SkyCam Picture Taken -------------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ------------- Current State ------------- currentOutsideTemperature = 0.0 currentOutsideHumidity = 0.0 currentInsideTemperature = 29.24 currentInsideHumidity = 46.793 currentRain60Minutes = 0.0 currentSunlightVisible = 1.4688 currentSunlightIR = 1 currentSunlightUV = 0 currentSunlightUVIndex = 0.0 ScurrentWindSpeed = 0.0827586203814 ScurrentWindGust = 0.0 ScurrentWindDirection = 0 currentTotalRain = 0 currentBarometricPressure = 998.88 currentAltitude = 89.0 currentSeaLevel = 1009.48498184 barometricTrend = True pastBarometricReading = 998.88 Outdoor_AirQuality_Sensor_Value = 12 Hour24_Outdoor_AirQuality_Sensor_Value = 0 Indoor_AirQuality_Sensor_Value = 0 ------------- currentAs3935Interrupt = 4 currentAs3935LastInterrupt = 0 currentAs3935LastDistance = 0 currentAs3935LastStatus = Disturber detected - masking currentAs3935LastLightningTimeStamp = 0 ------------- runRainbow = False flashStrip = False runOLED = True ------------- Last_Event = My Last Event EnglishMetric = 0 ------------- batteryVoltage 4.16800022125 batteryCurrent -33.9999961853 solarVoltage 6.2560005188 solarCurrent 4.7999997139 loadVoltage 5.0 loadCurrent 22.3999996185 batteryPower -0.141711991623 solarPower 0.0300288007004 loadPower 0.111999998093 batteryCharge 98.3278522758 SolarMAX Last Received None ------------- ------------- WXbatteryVoltage 4.16800022125 WXbatteryCurrent -33.9999961853 WXsolarVoltage 6.2560005188 WXsolarCurrent 4.7999997139 WXloadVoltage 5.0 WXloadCurrent 22.3999996185 WXbatteryPower -0.141711991623 WXsolarPower 0.0300288007004 WXloadPower 0.111999998093 WXbatteryCharge 98.3278522758 ------------- fanState = False ------------- WXLink Blocks Block1 Length= 0 Block2 Length= 0 ----------------- Sample and Display Done ----------------- ------Patting The Dog------- after WXLink waitRX ----------- block1= [171, 102, 39, 198, 237, 0, 0, 0, 0, 90, 125, 169, 61, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] block2= [0, 66, 96, 133, 64, 153, 153, 9, 66, 102, 102, 182, 65, 85, 227, 197, 64, 153, 153, 153, 64, 0, 0, 0, 0, 190, 0, 0, 0, 53, 155] ----------- block 1 ab6627c6ed000000005a7da93d02000000000000000000000000000000000000 block 2 0042608540999909426666b64155e3c5409999994000000000be000000359b ----------- ------Patting The Dog------- ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- Starting readWXLink ('block1 length=', 32) ('block2 length=', 31) ReversedreceivedCRC= 359b length of stb1+sb2= 59 ab6627c6ed000000005a7da93d02000000000000000000000000000000000000 0042608540999909426666b64155e3c5409999994000000000be00 ------Patting The Dog------- calculatedCRC = 359b Good CRC Recived ('protocol_ID = ', 3) ('protocol_software_version = ', 9) protocol 3 - WXLink received Rain Total= 0.00 in Wind Speed= 0.05 MPH Wind Direction= 0 Degrees OTFloat=0000 AM2315 from WXLink temperature: 0.0C AM2315 from WXLink humidity: 0.0% WXLink batteryVoltage = 4.17 WXLink batteryCurrent = -34.40 WXLink loadCurrent = 22.80 WXLink solarPanelVoltage = 6.18 WXLink solarPanelCurrent = 4.80 WXLink auxA = 0.00 WXLink Message ID 190 WXLink_Data_Fresh set to True ----------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ------------- Current State ------------- currentOutsideTemperature = 0.0 currentOutsideHumidity = 0.0 currentInsideTemperature = 29.25 currentInsideHumidity = 46.651 currentRain60Minutes = 0.0 currentSunlightVisible = 1.4688 currentSunlightIR = 1 currentSunlightUV = 0 currentSunlightUVIndex = 0.0 ScurrentWindSpeed = 0.0827586203814 ScurrentWindGust = 0.0 ScurrentWindDirection = 0 currentTotalRain = 0 currentBarometricPressure = 998.91 currentAltitude = 89.0 currentSeaLevel = 1009.51530034 barometricTrend = True pastBarometricReading = 998.91 Outdoor_AirQuality_Sensor_Value = 12 Hour24_Outdoor_AirQuality_Sensor_Value = 0 Indoor_AirQuality_Sensor_Value = 0 ------------- currentAs3935Interrupt = 4 currentAs3935LastInterrupt = 0 currentAs3935LastDistance = 0 currentAs3935LastStatus = Disturber detected - masking currentAs3935LastLightningTimeStamp = 0 ------------- runRainbow = False flashStrip = False runOLED = True ------------- Last_Event = My Last Event EnglishMetric = 0 ------------- batteryVoltage 4.16800022125 batteryCurrent -34.3999977112 solarVoltage 6.1840004921 solarCurrent 4.7999997139 loadVoltage 5.0 loadCurrent 22.7999992371 batteryPower -0.143379198071 solarPower 0.0296832005928 loadPower 0.113999996185 batteryCharge 98.3278522758 SolarMAX Last Received None ------------- ------------- WXbatteryVoltage 4.16800022125 WXbatteryCurrent -34.3999977112 WXsolarVoltage 6.1840004921 WXsolarCurrent 4.7999997139 WXloadVoltage 5.0 WXloadCurrent 22.7999992371 WXbatteryPower -0.143379198071 WXsolarPower 0.0296832005928 WXloadPower 0.113999996185 WXbatteryCharge 98.3278522758 ------------- fanState = False ------------- WXLink Blocks Block1 Length= 0 Block2 Length= 0 ----------------- Sample and Display Done ----------------- ------Patting The Dog------- after WXLink waitRX ----------- block1= [171, 102, 39, 4, 239, 0, 0, 0, 0, 218, 181, 9, 63, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] block2= [0, 66, 96, 133, 64, 255, 255, 7, 66, 51, 51, 179, 65, 230, 208, 194, 64, 153, 153, 153, 64, 0, 0, 0, 0, 191, 0, 0, 0, 168, 91] ----------- block 1 ab662704ef00000000dab5093f0d000000000000000000000000000000000000 block 2 0042608540ffff07423333b341e6d0c2409999994000000000bf000000a85b ----------- ------Patting The Dog------- Tick! The time is: 2019-11-06 13:11:56.325238 ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- Starting readWXLink ('block1 length=', 32) ('block2 length=', 31) ReversedreceivedCRC= a85b length of stb1+sb2= 59 ab662704ef00000000dab5093f0d000000000000000000000000000000000000 0042608540ffff07423333b341e6d0c2409999994000000000bf00 ------Patting The Dog------- calculatedCRC = a85b Good CRC Recived ('protocol_ID = ', 3) ('protocol_software_version = ', 9) protocol 3 - WXLink received Rain Total= 0.00 in Wind Speed= 0.34 MPH Wind Direction= 0 Degrees OTFloat=0000 AM2315 from WXLink temperature: 0.0C AM2315 from WXLink humidity: 0.0% WXLink batteryVoltage = 4.17 WXLink batteryCurrent = -34.00 WXLink loadCurrent = 22.40 WXLink solarPanelVoltage = 6.09 WXLink solarPanelCurrent = 4.80 WXLink auxA = 0.00 WXLink Message ID 191 WXLink_Data_Fresh set to True ----------------- -------------------- SkyCam Picture Taken -------------------- ----------------- SunAirPlus Not Present ----------------- ----------------- ----------------- ----------------- AS3935 Lightning Detector ----------------- Last result from AS3935: ----No Lightning detected--- Lightning Count = 0 ----------------- ------------- Current State ------------- currentOutsideTemperature = 0.0 currentOutsideHumidity = 0.0 currentInsideTemperature = 29.27 currentInsideHumidity = 46.795 currentRain60Minutes = 0.0 currentSunlightVisible = 1.4688 currentSunlightIR = 1 currentSunlightUV = 0 currentSunlightUVIndex = 0.0 ScurrentWindSpeed = 0.537931084633 ScurrentWindGust = 0.0 ScurrentWindDirection = 0 currentTotalRain = 0 currentBarometricPressure = 998.9 currentAltitude = 89.0 currentSeaLevel = 1009.50519417 barometricTrend = True pastBarometricReading = 998.9 Outdoor_AirQuality_Sensor_Value = 12 Hour24_Outdoor_AirQuality_Sensor_Value = 0 Indoor_AirQuality_Sensor_Value = 0 ------------- currentAs3935Interrupt = 4 currentAs3935LastInterrupt = 0 currentAs3935LastDistance = 0 currentAs3935LastStatus = Disturber detected - masking currentAs3935LastLightningTimeStamp = 0 ------------- runRainbow = False flashStrip = False runOLED = True ------------- Last_Event = My Last Event EnglishMetric = 0 ------------- batteryVoltage 4.16800022125 batteryCurrent -33.9999961853 solarVoltage 6.08800029755 solarCurrent 4.7999997139 loadVoltage 5.0 loadCurrent 22.3999996185 batteryPower -0.141711991623 solarPower 0.0292223996864 loadPower 0.111999998093 batteryCharge 98.3278522758 SolarMAX Last Received None ------------- ------------- WXbatteryVoltage 4.16800022125 WXbatteryCurrent -33.9999961853 WXsolarVoltage 6.08800029755 WXsolarCurrent 4.7999997139 WXloadVoltage 5.0 WXloadCurrent 22.3999996185 WXbatteryPower -0.141711991623 WXsolarPower 0.0292223996864 WXloadPower 0.111999998093 WXbatteryCharge 98.3278522758 ------------- fanState = False ------------- WXLink Blocks Block1 Length= 0 Block2 Length= 0 ----------------- Sample and Display Done ----------------- ------Patting The Dog-------
|
|
|
Post by SDL on Nov 6, 2019 9:19:06 GMT -8
Agreed. It seems to be working perfectly!
PM me your shipping address and we will send off a replacement AM2315 to you.
BP
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 6, 2019 19:37:59 GMT -8
Agreed. It seems to be working perfectly! PM me your shipping address and we will send off a replacement AM2315 to you. BP Ok, I have sent you my shipping address by PM.
But why does the AM2315 work OK when plugged into the RPI WeatherBoard?
And what will happen when I receive the NEW AM2315?
Do I leave the old one plugged in the RPI system or do I remove it? if i remove it, the program will probably hang again.
|
|
|
Post by SDL on Nov 8, 2019 6:50:39 GMT -8
Juanc,
The RPi and Arduino based systems have wildly different implementations of I2C. The AM2315 does not always work with both.
It doesn't matter if you leave the old one plugged in or not. WXLink will override the local AM2315.
We are thinking that the AM2315 is hanging. We use lots of these in a variety of systems and the last batch from our manufacturer have had higher than normal failures, so we just replace them when it looks like there is a problem.
BP
|
|
juanc
Junior Member
Posts: 50
|
Post by juanc on Nov 8, 2019 13:54:15 GMT -8
BP,
Thanks for your clarifying reply. Wouldn’t it be better to use a different sensor?
Please send me the TRACKING NUMBER of the new sensor, so I can try to have it sent to me sooner than normal. Thanks,
juanc
|
|