Post by hvrooyen on Jul 22, 2018 5:57:25 GMT -8
Hi:
Eventually managed to get my GroveWeatherPi connected. Software works fine, but the sunlight sensor returns 0 values. Fair enough, the environment is inside, but values remain 0 even when I shine a bright torch directly onto it. Output:
pi@WeatherPi:~ $ cd /home/pi/SDL_Pi_GroveWeatherPi/pi@WeatherPi:~/SDL_Pi_GroveWeatherPi $ sudo python GroveWeatherPi.py visible= 0
GroveWeatherPi Solar Powered Weather Station Version 3.02 - SwitchDoc Labs
Program Started at:2018-07-22 15:42:59
----------------------
I2C Mux - TCA9545: Present
BMP280: Present
DS3231: Present
HDC1080: Not Present
HTU21DF: Not Present
AM2315: Present
ADS1015: Not Present
ADS1115: Present
AS3935: Present
OLED: Present
SunAirPlus: Not Present
Sunlight Sensor: Present
WXLink: Not Present
UseMySQL: Present
Check WLAN: Present
WeatherUnderground: Not Present
----------------------
sendmail exception raised
-----------------
Scheduled Jobs
-----------------
Jobstore default:
sampleAndDisplay (trigger: interval[0:00:10], next run at: 2018-07-22 15:43:11 SAST)
patTheDog (trigger: interval[0:00:10], next run at: 2018-07-22 15:43:11 SAST)
tick (trigger: interval[0:01:00], next run at: 2018-07-22 15:44:01 SAST)
sampleWeather (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
sampleSunAirPlus (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
writeWeatherRecord (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
writePowerRecord (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
updateRain (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
checkForShutdown (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
sampleWeather (trigger: interval[0:15:00], next run at: 2018-07-22 15:58:01 SAST)
sampleSunAirPlus (trigger: interval[0:15:00], next run at: 2018-07-22 15:58:01 SAST)
doAllGraphs (trigger: interval[0:15:00], next run at: 2018-07-22 15:58:01 SAST)
WLAN_check (trigger: interval[0:30:00], next run at: 2018-07-22 16:13:01 SAST)
rebootPi (trigger: cron[day='2-30/2', hour='0', minute='4'], next run at: 2018-07-24 00:04:00 SAST)
-----------------
-----------------
Local WeatherRack Weather Sensors Sampling
-----------------
Rain Total= 0.00 in
Rain Last 60 Minutes= 0.00 in
Wind Speed= 0.00 MPH
MPH wind_gust= 0.00 MPH
------Patting The Dog-------
Wind Direction= 315.00 Degrees
Wind Direction Voltage= 4.323 V
-----------------
-----------------
DS3231 Real Time Clock
-----------------
Raspberry Pi= 2018-07-22 15:43:11
DS3231= 2018-07-22 15:43:12
DS3231 Temperature= 22.50 C
-----------------
-----------------
BMP280 Barometer
-----------------
Temperature = 21.39 C
Pressure = 86.96 KPa
Altitude = 1271.31 m
Sealevel Pressure = 103.86 KPa
-----------------
-----------------
Sunlight Vi/IR/UV Sensor
-----------------
Sunlight Visible(Lux): 0.00
Sunlight IR(Lux): 0.00
Sunlight UV Index: 0.00
-----------------
HDC1080 Temp/Hum Not Present
-----------------
-----------------
HTU21DF Temp/Hum Not Present
-----------------
-----------------
-----------------
AS3935 Lightning Detector
-----------------
Last result from AS3935:
----No Lightning detected---
Lightning Count = 0
-----------------
-----------------
AM2315 Temperature/Humidity Sensor
-----------------
outsideTemperature: 19.9 C
outsideHumidity: 27.1 %
crc: 1
-----------------
-----------------
Local WeatherRack Weather Sensors Sampling------Patting The Dog-------
Trying to debug by running simpletest.py returns the following, which I suspect is due to the I2C multiplexer:
pi@WeatherPi:~/SDL_Pi_GroveWeatherPi/SDL_Pi_SI1145 $ sudo python simpletest.py
Traceback (most recent call last):
File "simpletest.py", line 41, in <module>
sensor = SDL_Pi_SI1145.SDL_Pi_SI1145()
File "/home/pi/SDL_Pi_GroveWeatherPi/SDL_Pi_SI1145/SDL_Pi_SI1145.py", line 165, in __init__
self._reset()
File "/home/pi/SDL_Pi_GroveWeatherPi/SDL_Pi_SI1145/SDL_Pi_SI1145.py", line 172, in _reset
self._device.write_byte_data(SI1145_ADDR,SI1145_REG_MEASRATE0, 0)
IOError: [Errno 121] Remote I/O error
FWIW, here is the output of:
sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73
Program Started at:2018-07-22 15:54:09
-----------BUS 0-------------------
tca9545 control register B3-B0 = 0x1
ignore Interrupts if INT3' - INT0' not connected
tca9545 control register Interrupts = 0x0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- 73 -- -- -- 77
-----------------------------------
-----------BUS 1-------------------
tca9545 control register B3-B0 = 0x2
ignore Interrupts if INT3' - INT0' not connected
tca9545 control register Interrupts = 0x0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 2-------------------
tca9545 control register B3-B0 = 0x4
ignore Interrupts if INT3' - INT0' not connected
tca9545 control register Interrupts = 0x0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 3-------------------
tca9545 control register B3-B0 = 0x8
ignore Interrupts if INT3' - INT0' not connected
tca9545 control register Interrupts = 0x0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- 73 -- -- -- --
-----------------------------------
Please advise?
Thx
Eventually managed to get my GroveWeatherPi connected. Software works fine, but the sunlight sensor returns 0 values. Fair enough, the environment is inside, but values remain 0 even when I shine a bright torch directly onto it. Output:
pi@WeatherPi:~ $ cd /home/pi/SDL_Pi_GroveWeatherPi/pi@WeatherPi:~/SDL_Pi_GroveWeatherPi $ sudo python GroveWeatherPi.py visible= 0
GroveWeatherPi Solar Powered Weather Station Version 3.02 - SwitchDoc Labs
Program Started at:2018-07-22 15:42:59
----------------------
I2C Mux - TCA9545: Present
BMP280: Present
DS3231: Present
HDC1080: Not Present
HTU21DF: Not Present
AM2315: Present
ADS1015: Not Present
ADS1115: Present
AS3935: Present
OLED: Present
SunAirPlus: Not Present
Sunlight Sensor: Present
WXLink: Not Present
UseMySQL: Present
Check WLAN: Present
WeatherUnderground: Not Present
----------------------
sendmail exception raised
-----------------
Scheduled Jobs
-----------------
Jobstore default:
sampleAndDisplay (trigger: interval[0:00:10], next run at: 2018-07-22 15:43:11 SAST)
patTheDog (trigger: interval[0:00:10], next run at: 2018-07-22 15:43:11 SAST)
tick (trigger: interval[0:01:00], next run at: 2018-07-22 15:44:01 SAST)
sampleWeather (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
sampleSunAirPlus (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
writeWeatherRecord (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
writePowerRecord (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
updateRain (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
checkForShutdown (trigger: interval[0:05:00], next run at: 2018-07-22 15:48:01 SAST)
sampleWeather (trigger: interval[0:15:00], next run at: 2018-07-22 15:58:01 SAST)
sampleSunAirPlus (trigger: interval[0:15:00], next run at: 2018-07-22 15:58:01 SAST)
doAllGraphs (trigger: interval[0:15:00], next run at: 2018-07-22 15:58:01 SAST)
WLAN_check (trigger: interval[0:30:00], next run at: 2018-07-22 16:13:01 SAST)
rebootPi (trigger: cron[day='2-30/2', hour='0', minute='4'], next run at: 2018-07-24 00:04:00 SAST)
-----------------
-----------------
Local WeatherRack Weather Sensors Sampling
-----------------
Rain Total= 0.00 in
Rain Last 60 Minutes= 0.00 in
Wind Speed= 0.00 MPH
MPH wind_gust= 0.00 MPH
------Patting The Dog-------
Wind Direction= 315.00 Degrees
Wind Direction Voltage= 4.323 V
-----------------
-----------------
DS3231 Real Time Clock
-----------------
Raspberry Pi= 2018-07-22 15:43:11
DS3231= 2018-07-22 15:43:12
DS3231 Temperature= 22.50 C
-----------------
-----------------
BMP280 Barometer
-----------------
Temperature = 21.39 C
Pressure = 86.96 KPa
Altitude = 1271.31 m
Sealevel Pressure = 103.86 KPa
-----------------
-----------------
Sunlight Vi/IR/UV Sensor
-----------------
Sunlight Visible(Lux): 0.00
Sunlight IR(Lux): 0.00
Sunlight UV Index: 0.00
-----------------
HDC1080 Temp/Hum Not Present
-----------------
-----------------
HTU21DF Temp/Hum Not Present
-----------------
-----------------
-----------------
AS3935 Lightning Detector
-----------------
Last result from AS3935:
----No Lightning detected---
Lightning Count = 0
-----------------
-----------------
AM2315 Temperature/Humidity Sensor
-----------------
outsideTemperature: 19.9 C
outsideHumidity: 27.1 %
crc: 1
-----------------
-----------------
Local WeatherRack Weather Sensors Sampling------Patting The Dog-------
Trying to debug by running simpletest.py returns the following, which I suspect is due to the I2C multiplexer:
pi@WeatherPi:~/SDL_Pi_GroveWeatherPi/SDL_Pi_SI1145 $ sudo python simpletest.py
Traceback (most recent call last):
File "simpletest.py", line 41, in <module>
sensor = SDL_Pi_SI1145.SDL_Pi_SI1145()
File "/home/pi/SDL_Pi_GroveWeatherPi/SDL_Pi_SI1145/SDL_Pi_SI1145.py", line 165, in __init__
self._reset()
File "/home/pi/SDL_Pi_GroveWeatherPi/SDL_Pi_SI1145/SDL_Pi_SI1145.py", line 172, in _reset
self._device.write_byte_data(SI1145_ADDR,SI1145_REG_MEASRATE0, 0)
IOError: [Errno 121] Remote I/O error
FWIW, here is the output of:
sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73
Program Started at:2018-07-22 15:54:09
-----------BUS 0-------------------
tca9545 control register B3-B0 = 0x1
ignore Interrupts if INT3' - INT0' not connected
tca9545 control register Interrupts = 0x0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- 73 -- -- -- 77
-----------------------------------
-----------BUS 1-------------------
tca9545 control register B3-B0 = 0x2
ignore Interrupts if INT3' - INT0' not connected
tca9545 control register Interrupts = 0x0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 2-------------------
tca9545 control register B3-B0 = 0x4
ignore Interrupts if INT3' - INT0' not connected
tca9545 control register Interrupts = 0x0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- 73 -- -- -- --
-----------------------------------
-----------BUS 3-------------------
tca9545 control register B3-B0 = 0x8
ignore Interrupts if INT3' - INT0' not connected
tca9545 control register Interrupts = 0x0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- 73 -- -- -- --
-----------------------------------
Please advise?
Thx