|
Post by SDL on Oct 7, 2017 7:02:09 GMT -8
JMaurin,
Thanks for all your help and diligence here. It is always hard to help when we can't duplicate the problem!
BP
|
|
misky
New Member
Posts: 12
|
Post by misky on Nov 16, 2017 16:55:38 GMT -8
I've had a similar issue. The sensor works fine when the MUX isn't installed, but it doesn't work with the i2c MUX. I think the issue is that the sensor needs a little time to calibrate and the bus is constantly switching out from under it since the while true main loop switches to bus 0 every second. That being said, I've tried duplicating the sample test code for the SI1145 inside GroveWeatherPI and disabled all the timers so that only sampleAndPrint is running and also disabled the 1 second reset to bus 0 in the main loop and I'm still getting 0s. Are you able to get it to work with the I2C Mux at all?
|
|
|
Post by SDL on Nov 18, 2017 15:46:21 GMT -8
OK. We had a problem with the SI1145 in version 2.97, which I see you have. Update to 2.99 so we are on the same version.
BP
|
|
misky
New Member
Posts: 12
|
Post by misky on Nov 19, 2017 9:42:14 GMT -8
Checking the README.md after a git pull only shows 2.98. Version 2.98 www.switchdoc.com/November 18, 2017 - Adjusted Lightning Detector detection for 0x02 or 0x03 November 16, 2017 - Fixed name clash with latest OS version
|
|
|
Post by SDL on Nov 20, 2017 8:36:08 GMT -8
check again. Version 2.99 is up there now.
BP
|
|
misky
New Member
Posts: 12
|
Post by misky on Nov 21, 2017 18:02:57 GMT -8
No Joy with 2.99
pi@raspberrypi:~/SDL_Pi_GroveWeatherPi $ sudo python GroveWeatherPi.py visible= 0
GroveWeatherPi Solar Powered Weather Station Version 2.99 - SwitchDoc Labs
Program Started at:2017-11-21 19:07:18
---------------------- 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: Present Sunlight Sensor: Present WXLink: Not Present
UseMySQL: Present Check WLAN: Present WeatherUnderground: Not Present ---------------------- as3935 Interrupt ----------------- SunAirPlus Sampling ----------------- sendmail exception raised ----------------- Scheduled Jobs ----------------- Jobstore default: sampleAndDisplay (trigger: interval[0:00:10], next run at: 2017-11-21 19:07:29 EST) patTheDog (trigger: interval[0:00:10], next run at: 2017-11-21 19:07:29 EST) blinkSunAirLED2X (trigger: interval[0:00:10], next run at: 2017-11-21 19:07:29 EST) tick (trigger: interval[0:01:00], next run at: 2017-11-21 19:08:19 EST) sampleWeather (trigger: interval[0:05:00], next run at: 2017-11-21 19:12:19 EST) sampleSunAirPlus (trigger: interval[0:05:00], next run at: 2017-11-21 19:12:19 EST) writeWeatherRecord (trigger: interval[0:05:00], next run at: 2017-11-21 19:12:19 EST) writePowerRecord (trigger: interval[0:05:00], next run at: 2017-11-21 19:12:19 EST) updateRain (trigger: interval[0:05:00], next run at: 2017-11-21 19:12:19 EST) checkForShutdown (trigger: interval[0:05:00], next run at: 2017-11-21 19:12:19 EST) sampleWeather (trigger: interval[0:15:00], next run at: 2017-11-21 19:22:19 EST) sampleSunAirPlus (trigger: interval[0:15:00], next run at: 2017-11-21 19:22:19 EST) doAllGraphs (trigger: interval[0:15:00], next run at: 2017-11-21 19:22:19 EST) WLAN_check (trigger: interval[0:30:00], next run at: 2017-11-21 19:37:19 EST) ----------------- processing Interrupt from as3935 Last Interrupt = 0x4: Disturber detected - masking ----------------- 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= 0.00 Degrees Wind Direction Voltage= 3.666 V ----------------- ----------------- DS3231 Real Time Clock ----------------- Raspberry Pi= 2017-11-21 19:07:30 DS3231= 2017-11-21 19:07:30 DS3231 Temperature= 20.00 C ----------------- ----------------- BMP280 Barometer ----------------- Temperature = 19.97 C Pressure = 100.31 KPa Altitude = 84.60 m Sealevel Pressure = 108.38 KPa ----------------- ----------------- Sunlight Vi/IR/UV Sensor ----------------- No handlers could be found for logger "apscheduler.executors.default" [Errno 121] Remote I/O error File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "GroveWeatherPi.py", line 1274, in sampleAndDisplay SunlightVisible = SI1145Lux.SI1145_VIS_to_Lux(Sunlight_Sensor.readVisible()) File "./SDL_Pi_SI1145/SDL_Pi_SI1145.py", line 262, in readVisible data = self._device.read_i2c_block_data(SI1145_ADDR,0x22,2)
----------------- Local WeatherRack Weather Sensors Sampling ----------------- Rain Total= 0.00 in ------Patting The Dog------- Rain Last 60 Minutes= 0.00 in Wind Speed= 0.00 MPH MPH wind_gust= 0.00 MPH Wind Direction= 0.00 Degrees Wind Direction Voltage= 3.673 V ----------------- ----------------- DS3231 Real Time Clock ----------------- Raspberry Pi= 2017-11-21 19:07:40 DS3231= 2017-11-21 19:07:40 DS3231 Temperature= 20.00 C ----------------- ----------------- BMP280 Barometer ----------------- Temperature = 19.98 C Pressure = 100.32 KPa Altitude = 84.18 m Sealevel Pressure = 108.39 KPa ----------------- ----------------- Sunlight Vi/IR/UV Sensor ----------------- [Errno 121] Remote I/O error File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "GroveWeatherPi.py", line 1274, in sampleAndDisplay SunlightVisible = SI1145Lux.SI1145_VIS_to_Lux(Sunlight_Sensor.readVisible()) File "./SDL_Pi_SI1145/SDL_Pi_SI1145.py", line 262, in readVisible data = self._device.read_i2c_block_data(SI1145_ADDR,0x22,2)
^CTraceback (most recent call last): File "GroveWeatherPi.py", line 1864, in <module> time.sleep(1.0) KeyboardInterrupt pi@raspberrypi:~/SDL_Pi_GroveWeatherPi $
|
|
|
Post by SDL on Nov 24, 2017 8:51:59 GMT -8
Misky,
We need to duplicate this problem. We have added it to our bug list.
BP
|
|
|
Post by jmaurin on Nov 25, 2017 5:07:05 GMT -8
Hi again. Version 2.99 and detection of sensor is working fine by now. But the values are totally wrong! -----------------
Sunlight Vi/IR/UV Sensor
-----------------
Sunlight Visible(Lux): 26752.46
Sunlight IR(Lux): 26754.92
Sunlight UV Index: 349.74
Whilw running the example code from here ( github.com/THP-JOE/Python_SI1145 ) the values are fine (in the same board, same place, same time/day) pi@skyweather:~/Python_SI1145/examples $ python simpletest.py
Press Cntrl + Z to cancel
Vis: 528
IR: 2898
UV Index: 1.45
Vis: 528
IR: 2906
UV Index: 1.45
Vis: 529
IR: 2914
UV Index: 1.46
|
|
|
Post by SDL on Nov 25, 2017 16:46:35 GMT -8
Is it out in bright sunlight? There are gain variables set in the software that may be different in each version of the software.
BP
|
|
|
Post by jmaurin on Nov 27, 2017 4:59:33 GMT -8
Day.....but the values are way too different, isn't?
|
|
|
Post by SDL on Nov 29, 2017 14:18:24 GMT -8
This is a very sensitive device and has gain variables of over 100 to one, so it looks kind of right. We have one down in Project Curacao that reads up to the limit (like yours does) in bright sunlight.
BP
|
|
|
Post by gadgilrajeev on Dec 21, 2017 1:46:42 GMT -8
----------------- Sunlight Vi/IR/UV Sensor ----------------- Sunlight Visible(Lux): 26752.46 Sunlight IR(Lux): 26754.92 Sunlight UV Index: 349.74
In sunlight I always get a reading of 349.74. At night this does drop to 0.0 Is there a calibration or is something totally wrong?
|
|
|
Post by SDL on Dec 22, 2017 10:50:08 GMT -8
We will try to duplicate your problem when I get back to the lab next Tuesday. This has GOT to be a software problem of some kind in GroveWeatherPi. Your testing proves that.
BP
|
|
desmo
New Member
Posts: 1
|
Post by desmo on Apr 9, 2018 7:39:32 GMT -8
check again. Version 2.99 is up there now. BP Where do I get 2.99??
On GitHub I only see 2.97. I am having issues getting this sensor to work
github.com/switchdoclabs/SDL_Pi_GroveWeatherPi/tree/master/SDL_Pi_SI1145
simple test output 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
I can see the device on 60 on Bus 3
|
|
|
Post by SDL on Apr 9, 2018 13:09:11 GMT -8
|
|