|
Post by lbendlin on Jan 22, 2019 11:19:33 GMT -8
|
|
|
Post by triggerfish on Jan 22, 2019 12:34:59 GMT -8
Yes, I now realise that. I did try some of the calculators, but they are rather complex and need more input than I can provide. Also none seems to deal with sunlight.
I found a general divider that would provide an average value, good enough for what I use it for. But that will still gove nimbers about an factor 35 to high, that is apparently where the constant error is. As far as I understand. So far, I divide by the value and again by 35 which has my station running similar to near by stations.
|
|
|
Post by triggerfish on May 16, 2019 10:24:32 GMT -8
I am still coping with unreal visual light values... I thought I divided the values down enough to be realistic, but when I compare my values to a station a couple of blocks away, I get strange, extreme differences.
How do I calculate valid watts/m2 and UV indexes?
My station:
The neighbors station.
Please note that my highs are off the charts and my lows are lower than his, so it's not just some linear division.
|
|
|
Post by SDL on May 17, 2019 10:00:48 GMT -8
Peter,
You know my thoughts on the SI1145. Strange readings all the time. Next time you order, ask me to throw in a new TSL2591 sensor. That's what we are using in SkyWeather.
BP
|
|
|
Post by triggerfish on May 20, 2019 3:58:54 GMT -8
|
|
|
Post by triggerfish on May 21, 2019 5:27:05 GMT -8
Will you provide drivers for the TSL2591? I can not find them on the sdl github
|
|
|
Post by SDL on May 22, 2019 11:17:02 GMT -8
Yes, I have them in SkyWeather but have not uploaded them to the SDL GitHub. I'll do that later today.
BP
|
|
|
Post by triggerfish on May 29, 2019 13:08:46 GMT -8
Yes, I have them in SkyWeather but have not uploaded them to the SDL GitHub. I'll do that later today. BP Got the new sensor. When will the GroveWeatherPi code for it be uploaded?
|
|
|
Post by SDL on May 29, 2019 15:56:19 GMT -8
Peter,
Will try to get to that in the next couple of weeks. It's already done for SkyWeather so it shouldn't be hard.
BP
|
|
|
Post by SDL on May 29, 2019 15:57:42 GMT -8
|
|
|
Post by triggerfish on May 31, 2019 1:40:46 GMT -8
First go:
pi@IBADHOEV14:~/SDL_Pi_SkyWeather/TSL2591 $ sudo python testTSL2591.py Traceback (most recent call last): File "testTSL2591.py", line 7, in <module> tsl = TSL2591.Tsl2591() # initialize File "/home/pi/SDL_Pi_SkyWeather/TSL2591/TSL2591.py", line 73, in __init__ self.set_timing(self.integration_time) File "/home/pi/SDL_Pi_SkyWeather/TSL2591/TSL2591.py", line 78, in set_timing self.enable() File "/home/pi/SDL_Pi_SkyWeather/TSL2591/TSL2591.py", line 146, in enable ENABLE_POWERON | ENABLE_AEN | ENABLE_AIEN IOError: [Errno 121] Remote I/O error
How can I test if the sensor if seen by the pi in the first place? What modifications need to be done to use the software on the GroveWeatherPi setup
|
|
|
Post by triggerfish on May 31, 2019 2:09:00 GMT -8
How can I test if the sensor if seen by the pi in the first place? What modifications need to be done to use the software on the GroveWeatherPi setup From the SDL_Pi_SkyWeather/TSL2591/TSL2591.py file I assume the sensor is on address 0x29. Running the testSDL_Pi_TCA9545.py program I can see something on that address on BUS-3, so am I to assume the sensor is detected indeed?
-----------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: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- 73 -- -- -- --
-----------------------------------
|
|
|
Post by SDL on May 31, 2019 5:54:42 GMT -8
Peter,
You are correct! IT is detecting the device. Run the testTSL2591 in the SkyWeather directory to further verify the device.
BP
|
|
|
Post by triggerfish on May 31, 2019 6:59:23 GMT -8
The results are:
pi@IBADHOEV14:~/SDL_Pi_SkyWeather $ sudo python testTSL2591.py (810.1248, 479, 171) () Lux = 807.513600 full = 480 ir = 172 integration time = 0 gain = 0
Lux = 795.844800 full = 951 ir = 342 integration time = 1 gain = 0
Lux = 794.784000 full = 1429 ir = 515 integration time = 2 gain = 0
Lux = 797.109600 full = 1918 ir = 693 integration time = 3 gain = 0
Lux = 797.134080 full = 2425 ir = 883 integration time = 4 gain = 0
Lux = 795.491200 full = 2923 ir = 1069 integration time = 5 gain = 0
Lux = 811.430400 full = 499 ir = 183 integration time = 0 gain = 0
Lux = 750.648192 full = 11932 ir = 4471 integration time = 0 gain = 16
Lux = -97.517338 full = 37888 ir = 37888 integration time = 0 gain = 32
Lux = -4.226146 full = 37888 ir = 37888 integration time = 0 gain = 48
pi@IBADHOEV14:~/SDL_Pi_SkyWeather $
pi@IBADHOEV14:~/SDL_Pi_SkyWeather $ sudo python testTSL2591.py (968.5920000000002, 590, 215) () Lux = 958.963200 full = 586 ir = 214 integration time = 0 gain = 0
Lux = 938.073600 full = 1147 ir = 419 integration time = 1 gain = 0
Lux = 920.012800 full = 1690 ir = 618 integration time = 2 gain = 0
Lux = 903.801600 full = 2203 ir = 803 integration time = 3 gain = 0
Lux = 881.377920 full = 2666 ir = 967 integration time = 4 gain = 0
Lux = 874.289600 full = 3175 ir = 1152 integration time = 5 gain = 0
Lux = 881.769600 full = 531 ir = 192 integration time = 0 gain = 0
Lux = 810.118272 full = 12526 ir = 4611 integration time = 0 gain = 16
Traceback (most recent call last): File "testTSL2591.py", line 78, in <module> test(TSL2591.INTEGRATIONTIME_100MS, i) File "testTSL2591.py", line 60, in test full_test, ir_test = tsl.get_full_luminosity() File "./TSL2591/TSL2591.py", line 160, in get_full_luminosity self.sendor_address, COMMAND_BIT | REGISTER_CHAN0_LOW IOError: [Errno 121] Remote I/O error pi@IBADHOEV14:~/SDL_Pi_SkyWeather $
In general ok, but still ends in error every now and then.
|
|
|
Post by SDL on May 31, 2019 8:09:42 GMT -8
I would put a try block around it. There is no real reason for this. Are you running GWP in the background?
BP
|
|