Closed Vertikar closed 4 months ago
Found it I think -
Should be GAIN_DAY not NIGHT
Yep, I just found the typo myself. Merged #1377 for the fix.
I just installed the latest version of indi-allsky. I have a number of sensors of which I started with the TSL2561. I could configure it using the I2C correct I2C address. I can see the four readout graphs in the charts section. However all values are 0. The other sensors are fine (i.E. camera temperature or jSQM).
Then I did run the sensor_test.py script provided and I get the following result:
(indi-allsky) pi@meteotux:~/indi-allsky $ ./misc/sensor_test.py
[WARNING]: Initializing [Sensor A] TSL2561 I2C light sensor device @ 0x29
[WARNING]: No sensor B - Initializing sensor simulator
[WARNING]: No sensor C - Initializing sensor simulator
[INFO]: [Sensor A] Switching TSL2561 to day mode - Gain: 0, Integration: 1
[ERROR]: SensorReadException: float() argument must be a string or a real number, not 'NoneType'
[INFO]: Sensor 1: {'data': ()}
[INFO]: Sensor 2: {'data': ()}
Any help to this?
Hey Aaron, the day to night sensor gain seemed to work, ok, but doesn't seem to have worked the other way. Either that or the sensor died overnight
Relevant logs: