Hey Guys,
first of all: thanks for the new version, Kyle!
However I experience some troubles with the function for setting the pH and the EC. It worked previously but now none of the pumps are working due to the function. Also when they should because the value of pH or EC is out of range. The peristaltic pumps are also working on their own.
The Log shows different errors:
self._bus.write_byte_data(self._address, register, value)
File "/var/mycodo-root/env/lib/python3.9/site-packages/Adafruit_PureIO/smbus.py", line 322, in write_byte_data
self._device.write(data)
OSError: [Errno 121] Remote I/O error
2023-01-26 16:08:23,774 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:08:38,818 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:08:53,857 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:09:08,845 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:09:23,818 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:09:38,852 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:09:53,776 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:10:08,818 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:10:23,850 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:10:38,779 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:10:53,834 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:11:08,772 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:11:23,849 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:11:38,798 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:11:44,493 - ERROR - mycodo.controllers.controller_function_562dc666 - Exception while running loop()
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_function.py", line 76, in loop
self.run_function.loop()
File "/home/pi/Mycodo/mycodo/functions/regulate_ph_ec.py", line 832, in loop
f"Dosing {':'.join(self.ratio_numbers)} ({':'.join(map(str, self.ratio_letters))}): {', '.join(self.list_doses)})")
TypeError: sequence item 0: expected str instance, float found
2023-01-26 16:11:53,858 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:12:08,811 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:12:23,856 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:12:38,802 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:12:53,849 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:13:08,867 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:13:23,814 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:13:24,270 - ERROR - mycodo.inputs.tsl2561_cc83a255 - get_measurement() Error
Traceback (most recent call last):
File "/home/pi/Mycodo/mycodo/inputs/tsl2561.py", line 109, in get_measurement
self.get_lux()
File "/home/pi/Mycodo/mycodo/inputs/tsl2561.py", line 73, in get_lux
full, ir = self.sensor._get_luminosity()
File "/var/mycodo-root/env/lib/python3.9/site-packages/tsl2561/tsl2561.py", line 177, in _get_luminosity
return self._get_data()
File "/var/mycodo-root/env/lib/python3.9/site-packages/tsl2561/tsl2561.py", line 124, in _get_data
ir = self.i2c.readU16(TSL2561_COMMAND_BIT | TSL2561_WORD_BIT |
File "/var/mycodo-root/env/lib/python3.9/site-packages/Adafruit_GPIO/I2C.py", line 164, in readU16
result = self._bus.read_word_data(self._address,register) & 0xFFFF
File "/var/mycodo-root/env/lib/python3.9/site-packages/Adafruit_PureIO/smbus.py", line 224, in read_word_data
ioctl(self._device.fileno(), I2C_RDWR, request)
OSError: [Errno 121] Remote I/O error
2023-01-26 16:13:36,235 - INFO - mycodo.controllers.controller_function_562dc666 - Deactivated in 208.3 ms
2023-01-26 16:13:38,823 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:13:53,809 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:13:57,012 - INFO - mycodo.controllers.controller_function_562dc666 - Activated in 338.8 ms
2023-01-26 16:14:07,290 - ERROR - mycodo.controllers.controller_function_562dc666 - Exception while running loop()
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_function.py", line 76, in loop
self.run_function.loop()
File "/home/pi/Mycodo/mycodo/functions/regulate_ph_ec.py", line 832, in loop
f"Dosing {':'.join(self.ratio_numbers)} ({':'.join(map(str, self.ratio_letters))}): {', '.join(self.list_doses)})")
TypeError: sequence item 0: expected str instance, float found
2023-01-26 16:14:08,825 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
2023-01-26 16:14:23,774 - ERROR - mycodo.inputs.tsl2561_cc83a255 - Could not obtain measurement: Sensor is saturated. Setting integration time to 101 ms and trying again
I also can not understand the error of the tsl2561… then the sensor delivers values.
Here is also a screenshot from my function settings:
I’m thankful for every help.
Kind regards