Post by svejk on Aug 17, 2020 13:24:40 GMT -8
When I run testSHT30.py I get output as expected:
$ sudo python testSHT30.py
T 26.8879224842
H 44.8874647135
H,T (44.8401617456321, 26.874570840009156)
H,T,C (44.83710994125276, 26.861219195849543, 157, 122)
CRCH=0xa2
CRCT=0x55
T 26.8612191958
H 44.850843061
H,T (44.826428625925075, 26.861219195849543)
H,T,C (44.81727321278706, 26.88792248416877, 54, 25)
CRCH=0xe0
CRCT=0x19
T 26.87457084
H 44.8493171588
H,T (44.827954528114745, 26.874570840009156)
H,T,C (44.831006332494084, 26.88792248416877, 224, 25)
CRCH=0xe0
CRCT=0x19
T 26.87457084
H 44.8050659953
^CH,T
Traceback (most recent call last):
File "testSHT30.py", line 54, in <module>
print "H,T ", thsen.read_humidity_temperature()
File "./SDL_Pi_SHT30/SHT30.py", line 232, in read_humidity_temperature
self._read_data()
File "./SDL_Pi_SHT30/SHT30.py", line 118, in _read_data
time.sleep(0.5)
KeyboardInterrupt
T 26.8879224842
H 44.8874647135
H,T (44.8401617456321, 26.874570840009156)
H,T,C (44.83710994125276, 26.861219195849543, 157, 122)
CRCH=0xa2
CRCT=0x55
T 26.8612191958
H 44.850843061
H,T (44.826428625925075, 26.861219195849543)
H,T,C (44.81727321278706, 26.88792248416877, 54, 25)
CRCH=0xe0
CRCT=0x19
T 26.87457084
H 44.8493171588
H,T (44.827954528114745, 26.874570840009156)
H,T,C (44.831006332494084, 26.88792248416877, 224, 25)
CRCH=0xe0
CRCT=0x19
T 26.87457084
H 44.8050659953
^CH,T
Traceback (most recent call last):
File "testSHT30.py", line 54, in <module>
print "H,T ", thsen.read_humidity_temperature()
File "./SDL_Pi_SHT30/SHT30.py", line 232, in read_humidity_temperature
self._read_data()
File "./SDL_Pi_SHT30/SHT30.py", line 118, in _read_data
time.sleep(0.5)
KeyboardInterrupt
But when I run SkyWeather.py I do not get any "Fast Read" results at startup, or results reported under the "Weather Sampling" section as shown in the Assembly and Testing Guide, page 57. This does not seem like the correct behavior:
$ sudo python SkyWeather.py
(23.1744, 27, 13)
()
('Pi Camera Revision', u'ov5647')
('after bme680', True)
as3935 start
I/O error(121): Remote I/O error
I/O error(121): Remote I/O error
tmp= [104, 255, 79, 114, 238, 189]
outsideTemperature: 26.8 C
outsideHumidity: 44.9 %
crcH: 0xbd
crcT 0x4f
after SHT30
SkyWeather Weather Station Version 055 - SwitchDoc Labs
Program Started at:2020-08-17 14:23:57
----------------------
I2C Mux - TCA9545: Present
BME680: Present
BMP280: Not Present
SkyCam: Present
DS3231: Not Present
HDC1080: Not Present
SHT30: Present
AM2315: Not Present
ADS1015: Not Present
ADS1115: Present
AS3935: Not Present
OLED: Not Present
SunAirPlus/SunControl: Not Present
SolarMAX: Not Present
SI1145 Sun Sensor: Not Present
TSL2591 Sun Sensor: Present
DustSensor: Present
WXLink: Not Present
Dual SolarMAX/WXLink: Not Present
UseBlynk: Not Present
UseMySQL: Present
Check WLAN: Present
WeatherUnderground: Not Present
UseWeatherStem: Not Present
----------------------
sendmail exception raised
-----------------
Sample and Display
-----------------
-----------------
Weather Sampling
-----------------
(' value = ', 2315.625)
(' voltageValue = ', 2.315625)
-----------------
-----------------
SunAirPlus Not Present
-----------------
-----------------
-----------------
-----------------
AS3935 Lightning Detector Not Present
-----------------
-----------------
-----------------
Sample and Display Done
-----------------
taking SkyPicture
-----------------
Scheduled Jobs
-----------------
Jobstore default:
patTheDog (trigger: interval[0:00:10], next run at: 2020-08-17 14:24:14 EDT)
checkForButtons (trigger: interval[0:00:10], next run at: 2020-08-17 14:24:14 EDT)
sampleAndDisplay (trigger: interval[0:00:30], next run at: 2020-08-17 14:24:34 EDT)
tick (trigger: interval[0:01:00], next run at: 2020-08-17 14:25:04 EDT)
takeSkyPicture (trigger: interval[0:01:00], next run at: 2020-08-17 14:25:05 EDT)
writeWeatherRecord (trigger: interval[0:05:00], next run at: 2020-08-17 14:29:04 EDT)
writePowerRecord (trigger: interval[0:05:00], next run at: 2020-08-17 14:29:04 EDT)
updateRain (trigger: interval[0:05:00], next run at: 2020-08-17 14:29:04 EDT)
checkForShutdown (trigger: interval[0:05:00], next run at: 2020-08-17 14:29:04 EDT)
doAllGraphs (trigger: interval[0:15:00], next run at: 2020-08-17 14:39:04 EDT)
barometricTrend (trigger: interval[0:15:00], next run at: 2020-08-17 14:39:05 EDT)
read_AQI (trigger: interval[0:15:00], next run at: 2020-08-17 14:39:05 EDT)
WLAN_check (trigger: interval[0:30:00], next run at: 2020-08-17 14:54:04 EDT)
statusRain (trigger: interval[1:00:00], next run at: 2020-08-17 15:24:04 EDT)
rebootPi (trigger: cron[day='5-30/5', hour='0', minute='4'], next run at: 2020-08-20 00:04:00 EDT)
-----------------
------Patting The Dog-------
^CTraceback (most recent call last):
File "SkyWeather.py", line 1909, in <module>
time.sleep(1.0)
KeyboardInterrupt
Exception in thread APScheduler (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
File "/usr/lib/python2.7/threading.py", line 754, in run
File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/blocking.py", line 28, in _main_loop
File "/usr/lib/python2.7/threading.py", line 614, in wait
File "/usr/lib/python2.7/threading.py", line 355, in wait
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
(23.1744, 27, 13)
()
('Pi Camera Revision', u'ov5647')
('after bme680', True)
as3935 start
I/O error(121): Remote I/O error
I/O error(121): Remote I/O error
tmp= [104, 255, 79, 114, 238, 189]
outsideTemperature: 26.8 C
outsideHumidity: 44.9 %
crcH: 0xbd
crcT 0x4f
after SHT30
SkyWeather Weather Station Version 055 - SwitchDoc Labs
Program Started at:2020-08-17 14:23:57
----------------------
I2C Mux - TCA9545: Present
BME680: Present
BMP280: Not Present
SkyCam: Present
DS3231: Not Present
HDC1080: Not Present
SHT30: Present
AM2315: Not Present
ADS1015: Not Present
ADS1115: Present
AS3935: Not Present
OLED: Not Present
SunAirPlus/SunControl: Not Present
SolarMAX: Not Present
SI1145 Sun Sensor: Not Present
TSL2591 Sun Sensor: Present
DustSensor: Present
WXLink: Not Present
Dual SolarMAX/WXLink: Not Present
UseBlynk: Not Present
UseMySQL: Present
Check WLAN: Present
WeatherUnderground: Not Present
UseWeatherStem: Not Present
----------------------
sendmail exception raised
-----------------
Sample and Display
-----------------
-----------------
Weather Sampling
-----------------
(' value = ', 2315.625)
(' voltageValue = ', 2.315625)
-----------------
-----------------
SunAirPlus Not Present
-----------------
-----------------
-----------------
-----------------
AS3935 Lightning Detector Not Present
-----------------
-----------------
-----------------
Sample and Display Done
-----------------
taking SkyPicture
-----------------
Scheduled Jobs
-----------------
Jobstore default:
patTheDog (trigger: interval[0:00:10], next run at: 2020-08-17 14:24:14 EDT)
checkForButtons (trigger: interval[0:00:10], next run at: 2020-08-17 14:24:14 EDT)
sampleAndDisplay (trigger: interval[0:00:30], next run at: 2020-08-17 14:24:34 EDT)
tick (trigger: interval[0:01:00], next run at: 2020-08-17 14:25:04 EDT)
takeSkyPicture (trigger: interval[0:01:00], next run at: 2020-08-17 14:25:05 EDT)
writeWeatherRecord (trigger: interval[0:05:00], next run at: 2020-08-17 14:29:04 EDT)
writePowerRecord (trigger: interval[0:05:00], next run at: 2020-08-17 14:29:04 EDT)
updateRain (trigger: interval[0:05:00], next run at: 2020-08-17 14:29:04 EDT)
checkForShutdown (trigger: interval[0:05:00], next run at: 2020-08-17 14:29:04 EDT)
doAllGraphs (trigger: interval[0:15:00], next run at: 2020-08-17 14:39:04 EDT)
barometricTrend (trigger: interval[0:15:00], next run at: 2020-08-17 14:39:05 EDT)
read_AQI (trigger: interval[0:15:00], next run at: 2020-08-17 14:39:05 EDT)
WLAN_check (trigger: interval[0:30:00], next run at: 2020-08-17 14:54:04 EDT)
statusRain (trigger: interval[1:00:00], next run at: 2020-08-17 15:24:04 EDT)
rebootPi (trigger: cron[day='5-30/5', hour='0', minute='4'], next run at: 2020-08-20 00:04:00 EDT)
-----------------
------Patting The Dog-------
^CTraceback (most recent call last):
File "SkyWeather.py", line 1909, in <module>
time.sleep(1.0)
KeyboardInterrupt
Exception in thread APScheduler (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
File "/usr/lib/python2.7/threading.py", line 754, in run
File "/usr/local/lib/python2.7/dist-packages/apscheduler/schedulers/blocking.py", line 28, in _main_loop
File "/usr/lib/python2.7/threading.py", line 614, in wait
File "/usr/lib/python2.7/threading.py", line 355, in wait
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
Please advise.