Closed trezhunter closed 4 years ago
The relevant part of the log has been excluded. Please provide a log excerpt from the first log line of the daemon starting.
There's obviously something very wrong to cause all your sensors to have issues. It's likely some corruption of your python virtualenv or something similar. I'll need the full daemon log from the start of the daemon to properly diagnose. The error excerpts you provided are of no use, as the initial error that would cause them would occur prior to seeing those. Therefore, to meaningfully investigate the issue, I'll need more information.
Sorry about the delay. Busy day at the home office..
Here are my logs from the restart of the backend:
2020-07-08 14:41:37,664 - INFO - mycodo.daemon - Mycodo daemon v8.5.8 starting
2020-07-08 14:41:37,665 - DEBUG - mycodo.daemon - Refreshing camera settings
2020-07-08 14:41:37,688 - DEBUG - mycodo.daemon - Refreshing misc settings
2020-07-08 14:41:37,702 - DEBUG - mycodo.daemon - Anonymous statistics enabled
2020-07-08 14:41:37,719 - INFO - mycodo.pyro_daemon - Starting Pyro5 daemon
2020-07-08 14:41:37,721 - INFO - mycodo.pyro_monitor - Starting Pyro5 daemon monitor (30 min timer)
2020-07-08 14:41:37,839 - DEBUG - mycodo.daemon - Starting Output Controller
2020-07-08 14:41:37,869 - DEBUG - mycodo.controllers.controller_output - Initializing Outputs
2020-07-08 14:41:37,920 - INFO - mycodo.outputs.wired_e3352217 - Output setup on pin 23 and turned OFF (OFF=LOW)
2020-07-08 14:41:37,920 - INFO - mycodo.outputs.wired_e3352217 - Initialized in 4.2 ms
2020-07-08 14:41:37,921 - DEBUG - mycodo.controllers.controller_output - e3352217 (relay 1) Initialized
2020-07-08 14:41:37,922 - INFO - mycodo.outputs.wired_4bca794a - Output setup on pin 24 and turned OFF (OFF=LOW)
2020-07-08 14:41:37,922 - INFO - mycodo.outputs.wired_4bca794a - Initialized in 0.5 ms
2020-07-08 14:41:37,922 - DEBUG - mycodo.controllers.controller_output - 4bca794a (relay 2) Initialized
2020-07-08 14:41:37,923 - INFO - mycodo.outputs.wired_edcb66f5 - Output setup on pin 25 and turned OFF (OFF=LOW)
2020-07-08 14:41:37,923 - INFO - mycodo.outputs.wired_edcb66f5 - Initialized in 0.5 ms
2020-07-08 14:41:37,923 - DEBUG - mycodo.controllers.controller_output - edcb66f5 (relay 4) Initialized
2020-07-08 14:41:37,923 - INFO - mycodo.controllers.controller_output - Setting Output e3352217 startup state to OFF
2020-07-08 14:41:37,924 - DEBUG - mycodo.controllers.controller_output - output_on_off(e3352217-12af-4e7b-9e20-bfeae3f36ef9, off, 0.0, 0.0, 0.0, False)
2020-07-08 14:41:37,924 - INFO - mycodo.controllers.controller_output - Setting Output 4bca794a startup state to OFF
2020-07-08 14:41:37,924 - DEBUG - mycodo.controllers.controller_output - output_on_off(4bca794a-4dfe-41f7-8ae8-6a712a72639f, off, 0.0, 0.0, 0.0, False)
2020-07-08 14:41:37,924 - INFO - mycodo.controllers.controller_output - Setting Output edcb66f5 startup state to OFF
2020-07-08 14:41:37,924 - DEBUG - mycodo.controllers.controller_output - output_on_off(edcb66f5-ef1b-4898-9005-1edf424eb8cd, off, 0.0, 0.0, 0.0, False)
2020-07-08 14:41:37,924 - DEBUG - mycodo.controllers.controller_output - Outputs Initialized
2020-07-08 14:41:37,924 - INFO - mycodo.controllers.controller_output - Activated in 85.0 ms
2020-07-08 14:41:38,425 - DEBUG - mycodo.daemon - Output Controller fully started
2020-07-08 14:41:38,426 - DEBUG - mycodo.daemon - Starting all activated Conditional controllers
2020-07-08 14:41:38,426 - INFO - mycodo.daemon - All activated Conditional controllers started
2020-07-08 14:41:38,427 - DEBUG - mycodo.daemon - Starting all activated Trigger controllers
2020-07-08 14:41:38,427 - INFO - mycodo.daemon - All activated Trigger controllers started
2020-07-08 14:41:38,427 - DEBUG - mycodo.daemon - Starting all activated Input controllers
2020-07-08 14:41:38,779 - DEBUG - mycodo.pyro_monitor - Pyro5 daemon monitor: daemon_status() response: 'alive'
2020-07-08 14:41:38,835 - INFO - mycodo.controllers.controller_input_b8e204a5 - Activated in 236.5 ms
2020-07-08 14:42:19,308 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 14:42:44,671 - ERROR - mycodo.inputs.dht22_b8e204a5 - InputModule raised an exception when taking a reading: unpack requires a buffer of 16 bytes
2020-07-08 14:42:46,439 - INFO - mycodo.daemon - Received command to terminate daemon
2020-07-08 14:42:53,784 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 14:42:55,787 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 14:42:57,789 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 14:42:59,791 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 14:43:01,794 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 14:43:08,803 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 14:43:10,805 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 14:43:12,808 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
This is the log from when I booted up cold:
2020-07-08 01:55:27,140 - INFO - mycodo.daemon - Mycodo daemon v8.5.8 starting
2020-07-08 01:55:27,459 - INFO - mycodo.outputs.wired_e3352217 - Output setup on pin 23 and turned OFF (OFF=LOW)
2020-07-08 01:55:27,460 - INFO - mycodo.outputs.wired_e3352217 - Initialized in 10.0 ms
2020-07-08 01:55:27,469 - INFO - mycodo.outputs.wired_4bca794a - Output setup on pin 24 and turned OFF (OFF=LOW)
2020-07-08 01:55:27,469 - INFO - mycodo.outputs.wired_4bca794a - Initialized in 0.5 ms
2020-07-08 01:55:27,470 - INFO - mycodo.outputs.wired_edcb66f5 - Output setup on pin 25 and turned OFF (OFF=LOW)
2020-07-08 01:55:27,471 - INFO - mycodo.outputs.wired_edcb66f5 - Initialized in 0.4 ms
2020-07-08 01:55:27,471 - INFO - mycodo.controllers.controller_output - Setting Output e3352217 startup state to OFF
2020-07-08 01:55:27,471 - INFO - mycodo.controllers.controller_output - Setting Output 4bca794a startup state to OFF
2020-07-08 01:55:27,471 - INFO - mycodo.controllers.controller_output - Setting Output edcb66f5 startup state to OFF
2020-07-08 01:55:27,471 - INFO - mycodo.controllers.controller_output - Activated in 109.2 ms
2020-07-08 01:55:27,972 - INFO - mycodo.daemon - All activated Conditional controllers started
2020-07-08 01:55:27,973 - INFO - mycodo.daemon - All activated Trigger controllers started
2020-07-08 01:55:28,444 - INFO - mycodo.controllers.controller_input_b8e204a5 - Activated in 292.1 ms
2020-07-08 01:56:16,332 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 01:56:53,894 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 01:57:38,869 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 01:58:23,845 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 01:58:34,032 - WARNING - mycodo.daemon - LCD controller with ID b79a34cb-04e1-4d37-b762-afb8cd16c1ac not found
2020-07-08 01:59:08,916 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 01:59:53,893 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 02:00:38,872 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 02:01:23,856 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 02:02:08,936 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 02:02:53,917 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 02:03:38,897 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 02:04:09,271 - INFO - mycodo.daemon - Received command to terminate daemon
2020-07-08 02:04:13,391 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: unpack requires a buffer of 16 bytes
2020-07-08 02:04:15,394 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 02:04:17,396 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 02:04:19,398 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 02:04:21,401 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 02:04:28,410 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 02:04:30,413 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 02:04:32,415 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
2020-07-08 02:04:34,418 - ERROR - mycodo.inputs.dht22_b8e204a5 - Could not initialize sensor. Check if it's connected properly and pigpiod is running. Error: [Errno 32] Broken pipe
The logs seem to populate much slower on the backend restart, the cold boot logs displayed all the errors almost immediately. Relay controls seem to work ok, at least.
I don't see any of the previous errors you posted. After these particular startups, do those errors surface or do they no longer appear?
Before we get into Mycodo, can you verify your DS18B20 sensors are detected by the operating system. Also, are your Atlas Scientific sensors in UART or I2C mode? If in I2C mode, verify they're detected by the operating system.
I read again your Atlas Scientific sensors are connected via UART. How specifically are these connected to your Pi?
These errors are persisting right now:
2020-07-08 15:44:19,173 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:45:04,152 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:45:49,134 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:46:34,106 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:47:19,180 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:48:04,158 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:48:49,137 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:49:34,108 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:50:19,176 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:51:04,159 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:51:49,138 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:52:34,113 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:53:19,194 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:54:04,170 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:54:49,147 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:55:34,127 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:56:19,103 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:57:04,183 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:57:49,162 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:58:34,138 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 15:59:19,116 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 16:00:04,190 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-08 16:00:49,151 - ERROR - mycodo.controllers.controller_input_b8e204a5 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
I only get the original errors when I try to de-activate/activate:
2020-07-08 16:04:09,209 - WARNING - mycodo.daemon - Input controller with ID 2fe2f0ae-30e8-4929-bd95-7a604f301d44 not found
2020-07-08 16:04:14,662 - INFO - mycodo.controllers.controller_input_2fe2f0ae - Activated in 150.5 ms
2020-07-08 16:04:19,103 - ERROR - mycodo.inputs.dht11_2fe2f0ae - Could not acquire a measurement
Hmm, for some reason the dropdown for the 1-wire DS18b20 (GPIO pin4, dtoverlay=w1-gpio) is "None Detected". There were addresses when I set them before.. odd. The LS on /sys/bus/w1/devices only shows w1_bus_master1. Doesn't look like they are working any more. I will spin up another pi and breadboard them in to check them.
Atlas sensors are in UART mode (previously UART1 and UART5, moved to UART2 and UART5) confirmed with minicom -b 9600 -D /dev/ttyAMA1 (PH-storage solution: 8.274,. find=OK) and ttyAMA2 (EC-dry: 0.00, find=OK)
I read again your Atlas Scientific sensors are connected via UART. How specifically are these connected to your Pi?
Connected to the Pi, as in hardware.
I have the stamps mounted on the Atlas electrically-isolated EZO boards and connected to the pi from there. PH TX > Pin 28 RXD2 RX > Pin 27 TXD2 VCC > Pin 17 3.3v GND > Pin20 Ground
EC TX > Pin 33 RXD5 RX > Pin 32 TXD5 VCC > VCC 3.3v thru-pin on relay board GND > Pin 34 Ground
I just tried to get UART working on my Pi 4 with the Atlas EC sensor without luck. Tried 4 different UARTs. I couldn't even get it working with their UART code at https://github.com/AtlasScientific/Raspberry-Pi-sample-code Have you been able to get it working with their code?
I'd recommend using I2C, as this is what I've been using for the past several months with the Atlas Scientific flow, EC, pH, and 4 peristaltic pumps, without issue.
Could you please provide a detailed step-by-step protocol for how you were able to set up your OS, software, etc. and successfully get commands to and data from your sensor using UART?
Once I have this working, I can begin to start diagnosing the Mycodo code.
Also, is it normal for the EZO board LED, when in UART mode, to be green and blink periodically when only power is applied?
I was considering switching to I2c mode, but I believe the i2c mode requires requests, where UART (default) just polls regularly, which seemed simpler on the surface. May be worth revisiting.
I'm going to take a look at that sample code out on my other pi, it looks like a large chunk of that configuration can be done via the raspi-config (disabling serial console).
Green blinking is standby mode, Blue blinking is reading. In default mode, the EZO stamps will continuously poll at a 1 second interval, so they will just blink forever. Believe in I2c mode, it will idle blue.
Here is what I did to enable them and test:
NOTE: I use minicom from an SSH session, since sometimes it has issue bringing up the menu to exit out on my local console. Additionally, when I first updated the firmware on Pi4, I had to hit enter after starting the minicom session to start seeing values the first time, I'm not sure why to be honest, but it was only the first time i ran it and never again
sudo raspi-config
interfaces disable serial console
sudo nano /boot/config.txt
enable_uart=1
dtoverlay=UART1
dtoverlay=UART2
dtoverlay=UART5
(NOTE: the first time I tried the above config.txt settings I did dtoverlay=UART1 , dtoverlay-UART2, and dtoverlay=disable-bt, since BT maps to UART0 and I was able to use TTYAMA0 and get data, but after I reimaged, after troubleshooting the DHT prior, and reloaded Mycodo and set things up fresh, it doesn't work. Not sure if a dependency grabbed those pins perhaps, so I added one more dtoverlay , moved to UART2 which maps to TTYAMA1, while UART 5 now maps to TTYAMA2 as shown above)
sudo reboot
sudo apt-get install minicom
ls -l /dev/ttyAMA*
(to confirm UART overlays are active as /dev/TTYAMA1 and /dev/TTYAMA2)
minicom -b 9600 -D /dev/ttyAMA1
confirm reading-value, will automatically update each second find (hit enter) sensor transmits *OK r (hit enter) sensor manually reads current value *OK, followed by value ctrl-A then X to exit minicom
minicom -b 9600 -D /dev/ttyAMA2
confirm reading-value, will automatically update each second find (hit enter) sensor transmits *OK r (hit enter) sensor manually reads current value *OK, followed by value ctrl-A then X to exit minicom
New Pi firmware seems buggy.. rolled it back. Don't recommend it.
Well, that's basically what I did and it wasn't working last night. However, after enabling UART4 again today it's now working with minicom. So, now that I've confirmed it's working, I can start diagnosing the Mycodo code. I'll report back with my findings soon.
Well, it was a lot more involved to fix the issue than I previously thought. I have it working and successfully storing measurements for Mycodo, however I had to edit 3 different files, and will need to edit every Atlas Scientific Input module. I still need to plug in my very old version temperature EZO board to make sure it didn't break the ability to read older boards.
I just confirmed the issue comes down to the Atlas Scientific code not being python 3 compatible (at least not 3.7), even though the last commit for uart.py had the commit message "Updated sample code for both python 2 and 3 compatibility". This was from 2018, so there's likely some changes to the serial library since then that might be the cause of the issue.
I think I found the simplest solution, and just pushed a fix for only the Electrical Conductivity Input (for now). If you'd like to test the changes prior to release, you'll need to upgrade to master.
Awesome! I will set the upgrade to master option up and test it out shortly.
FYI, I also fixed the DHT22 and the DS18b20 issue. Seems to have been related to DC power. I switched my project board over to dedicated PSU, instead being powered by the Pi 5v, but that was not returning the right levels to the GPIO thru my voltage dividers at all when I tested with the voltmeter. Way too much power back into GPIO (5v returned instead of 3.3v) Now the numbers are up.
Will do the upgrade now..
Looks like the fix was effective. EC data is now happily populating!
I'm going to test my older board and verify the fix still works with it, and if successful, I'll modify the remaining AS Input modules with the fix. Also, I would check out https://github.com/cpetrich/counterfeit_DS18B20 to test your DS18B20s for authenticity.
I can't seem to find any of my Arduinos off hand, but at a glance it doesn't look like they pass the address test:
28-xx-xx-xx-xx-00-00-xx mine are: 28-00-00-06-08-39-41 28-00-00-06-08-6d-21 28-00-00-06-08-c7-3c
The two 00 octets are transposed to the 2nd and 3rd Octet.
Have an Arduino being overnighted, may just get some new DS18B20s for good measure.
Just a quick update... I've made considerable progress with improving the Atlas Scientific code, for all devices (sensors and pump). I've successfully tested the changes for I2C and UART with both old and new EZO board versions. Unfortunately I wasn't able to get UART working with the old board version, but this shouldn't be too much of an issue as I2C still works and there aren't many old board versions in use as it is. I still need to test devices that return multiple measurements (RGB, flow meter, etc.). I'm also going to try to get FTDI tested this weekend, and if all goes well, I'll push all the changes. You can then upgrade to master and have all your Atlas devices work with UART.
I just pushed all the Atlas Scientific changes. If you upgrade to master to test, let me know if you experience any issues.
Looks like it didn't work, back to No Data:
LOG:
2020-07-12 14:25:19,837 - INFO - mycodo.daemon - Mycodo daemon v8.5.8 starting
2020-07-12 14:25:19,839 - DEBUG - mycodo.daemon - Refreshing camera settings
2020-07-12 14:25:19,865 - DEBUG - mycodo.daemon - Refreshing misc settings
2020-07-12 14:25:19,880 - DEBUG - mycodo.daemon - Anonymous statistics enabled
2020-07-12 14:25:19,899 - INFO - mycodo.pyro_daemon - Starting Pyro5 daemon
2020-07-12 14:25:19,902 - INFO - mycodo.pyro_monitor - Starting Pyro5 daemon monitor (30 min timer)
2020-07-12 14:25:20,100 - DEBUG - mycodo.daemon - Starting Output Controller
2020-07-12 14:25:20,169 - DEBUG - mycodo.controllers.controller_output - Initializing Outputs
2020-07-12 14:25:20,293 - INFO - mycodo.outputs.wired_e3352217 - Output setup on pin 23 and turned OFF (OFF=LOW)
2020-07-12 14:25:20,294 - INFO - mycodo.outputs.wired_e3352217 - Initialized in 14.5 ms
2020-07-12 14:25:20,294 - DEBUG - mycodo.controllers.controller_output - e3352217 (pH Down) Initialized
2020-07-12 14:25:20,297 - INFO - mycodo.outputs.wired_4bca794a - Output setup on pin 24 and turned OFF (OFF=LOW)
2020-07-12 14:25:20,297 - INFO - mycodo.outputs.wired_4bca794a - Initialized in 0.8 ms
2020-07-12 14:25:20,297 - DEBUG - mycodo.controllers.controller_output - 4bca794a (pH Up) Initialized
2020-07-12 14:25:20,300 - INFO - mycodo.outputs.wired_edcb66f5 - Output setup on pin 25 and turned OFF (OFF=LOW)
2020-07-12 14:25:20,300 - INFO - mycodo.outputs.wired_edcb66f5 - Initialized in 0.9 ms
2020-07-12 14:25:20,300 - DEBUG - mycodo.controllers.controller_output - edcb66f5 (Solution) Initialized
2020-07-12 14:25:20,301 - INFO - mycodo.controllers.controller_output - Setting Output e3352217 startup state to ON
2020-07-12 14:25:20,301 - DEBUG - mycodo.controllers.controller_output - output_on_off(e3352217-12af-4e7b-9e20-bfeae3f36ef9, on, 0.0, 0.0, 0.0, True)
2020-07-12 14:25:20,373 - DEBUG - mycodo.controllers.controller_output - Output e3352217-12af-4e7b-9e20-bfeae3f36ef9 (pH Down) ON at 2020-07-12 14:25:20.301770.
2020-07-12 14:25:20,447 - INFO - mycodo.controllers.controller_output - Setting Output 4bca794a startup state to ON
2020-07-12 14:25:20,448 - DEBUG - mycodo.controllers.controller_output - output_on_off(4bca794a-4dfe-41f7-8ae8-6a712a72639f, on, 0.0, 0.0, 0.0, True)
2020-07-12 14:25:20,517 - DEBUG - mycodo.controllers.controller_output - Output 4bca794a-4dfe-41f7-8ae8-6a712a72639f (pH Up) ON at 2020-07-12 14:25:20.448387.
2020-07-12 14:25:20,589 - INFO - mycodo.controllers.controller_output - Setting Output edcb66f5 startup state to ON
2020-07-12 14:25:20,589 - DEBUG - mycodo.controllers.controller_output - output_on_off(edcb66f5-ef1b-4898-9005-1edf424eb8cd, on, 0.0, 0.0, 0.0, True)
2020-07-12 14:25:20,659 - DEBUG - mycodo.controllers.controller_output - Output edcb66f5-ef1b-4898-9005-1edf424eb8cd (Solution) ON at 2020-07-12 14:25:20.589867.
2020-07-12 14:25:20,733 - DEBUG - mycodo.controllers.controller_output - Outputs Initialized
2020-07-12 14:25:20,733 - INFO - mycodo.controllers.controller_output - Activated in 632.1 ms
2020-07-12 14:25:20,925 - DEBUG - mycodo.pyro_monitor - Pyro5 daemon monitor: daemon_status() response: 'alive'
2020-07-12 14:25:21,234 - DEBUG - mycodo.daemon - Output Controller fully started
2020-07-12 14:25:21,235 - DEBUG - mycodo.daemon - Starting all activated Conditional controllers
2020-07-12 14:25:21,235 - INFO - mycodo.daemon - All activated Conditional controllers started
2020-07-12 14:25:21,236 - DEBUG - mycodo.daemon - Starting all activated Trigger controllers
2020-07-12 14:25:21,236 - INFO - mycodo.daemon - All activated Trigger controllers started
2020-07-12 14:25:21,236 - DEBUG - mycodo.daemon - Starting all activated Input controllers
2020-07-12 14:25:22,154 - INFO - mycodo.controllers.controller_input_b8e204a5 - Activated in 403.5 ms
2020-07-12 14:25:22,830 - INFO - mycodo.controllers.controller_input_c013febf - Activated in 384.8 ms
2020-07-12 14:25:23,529 - DEBUG - mycodo.controllers.controller_input_c013febf - Adding measurements to InfluxDB with ID c013febf-1588-4ea5-9ac4-76bac24f6eb3: {0: {'measurement': None, 'unit': 'F', 'value': 76.82, 'timestamp_utc': None}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 57.1, 'timestamp_utc': None}, 2: {'measurement': 'dewpoint', 'unit': 'C', 'value': 15.821499924437587, 'timestamp_utc': None}, 3: {'measurement': 'vapor_pressure_deficit', 'unit': 'Pa', 'value': 1350.6032023176695, 'timestamp_utc': None}}
2020-07-12 14:25:29,654 - INFO - mycodo.devices.atlas_scientific_uart_dev_ttyAMA2 - Atlas Scientific Board: EC, Rev: 2, Firmware: 2.14
2020-07-12 14:25:35,998 - INFO - mycodo.devices.atlas_scientific_uart_dev_ttyAMA2 - Atlas Scientific Board: EC, Rev: 2, Firmware: 2.14
2020-07-12 14:25:35,998 - ERROR - mycodo.controllers.controller_input_343acaf0 - initialize_variables() Exception: 'NoneType' object has no attribute 'setup'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/base_controller.py", line 72, in run
self.initialize_variables()
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 350, in initialize_variables
self.measure_input = input_loaded.InputModule(self.input_dev)
File "/home/pi/Mycodo/mycodo/inputs/atlas_ec.py", line 123, in __init__
self.get_measurement()
File "/home/pi/Mycodo/mycodo/inputs/atlas_ec.py", line 143, in get_measurement
if not self.atlas_device.setup:
AttributeError: 'NoneType' object has no attribute 'setup'
2020-07-12 14:25:36,006 - INFO - mycodo.controllers.controller_input_343acaf0 - Activated in 12841.5 ms
2020-07-12 14:25:36,006 - ERROR - mycodo.controllers.controller_input_343acaf0 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
2020-07-12 14:25:38,322 - ERROR - mycodo.controllers.controller_input_343acaf0 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
2020-07-12 14:25:38,438 - DEBUG - mycodo.controllers.controller_input_c013febf - Adding measurements to InfluxDB with ID c013febf-1588-4ea5-9ac4-76bac24f6eb3: {0: {'measurement': None, 'unit': 'F', 'value': 76.64, 'timestamp_utc': None}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 57.6, 'timestamp_utc': None}, 2: {'measurement': 'dewpoint', 'unit': 'C', 'value': 15.864595376887827, 'timestamp_utc': None}, 3: {'measurement': 'vapor_pressure_deficit', 'unit': 'Pa', 'value': 1326.9256243548095, 'timestamp_utc': None}}
2020-07-12 14:25:42,629 - INFO - mycodo.devices.atlas_scientific_uart_dev_ttyAMA1 - Atlas Scientific Board: pH, Rev: 2, Firmware: 2.13
2020-07-12 14:25:42,629 - ERROR - mycodo.inputs.atlas_ph_c0ca6700 - Sensor not set up
2020-07-12 14:25:42,630 - INFO - mycodo.controllers.controller_input_c0ca6700 - Activated in 6438.4 ms
2020-07-12 14:25:42,630 - ERROR - mycodo.inputs.atlas_ph_c0ca6700 - Sensor not set up
2020-07-12 14:25:42,941 - INFO - mycodo.controllers.controller_input_271ac3a5 - Activated in 139.1 ms
2020-07-12 14:25:43,208 - INFO - mycodo.controllers.controller_input_dcb33418 - Activated in 139.8 ms
2020-07-12 14:25:43,598 - INFO - mycodo.controllers.controller_input_e8da77dc - Activated in 191.7 ms
2020-07-12 14:25:43,860 - INFO - mycodo.controllers.controller_input_afefd264 - Activated in 136.5 ms
2020-07-12 14:25:43,860 - INFO - mycodo.daemon - All activated Input controllers started
2020-07-12 14:25:43,861 - DEBUG - mycodo.daemon - Starting all activated Math controllers
2020-07-12 14:25:43,861 - INFO - mycodo.daemon - All activated Math controllers started
2020-07-12 14:25:43,861 - DEBUG - mycodo.daemon - Starting all activated PID controllers
2020-07-12 14:25:43,861 - INFO - mycodo.daemon - All activated PID controllers started
2020-07-12 14:25:43,861 - DEBUG - mycodo.daemon - Starting all activated LCD controllers
2020-07-12 14:25:44,985 - INFO - mycodo.controllers.controller_lcd_24788114 - Activated in 1009.7 ms
2020-07-12 14:25:44,986 - INFO - mycodo.daemon - All activated LCD controllers started
2020-07-12 14:25:44,986 - DEBUG - mycodo.daemon - Starting all activated Custom controllers
2020-07-12 14:25:44,986 - INFO - mycodo.daemon - All activated Custom controllers started
2020-07-12 14:25:45,487 - INFO - mycodo.daemon - Mycodo daemon started in 25.647 seconds
2020-07-12 14:25:45,489 - INFO - mycodo.daemon - 48.80 MB RAM in use
2020-07-12 14:25:51,353 - ERROR - mycodo.inputs.atlas_ph_c0ca6700 - Sensor not set up
2020-07-12 14:25:53,357 - ERROR - mycodo.controllers.controller_input_343acaf0 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
2020-07-12 14:25:53,429 - DEBUG - mycodo.controllers.controller_input_c013febf - Adding measurements to InfluxDB with ID c013febf-1588-4ea5-9ac4-76bac24f6eb3: {0: {'measurement': None, 'unit': 'F', 'value': 76.64, 'timestamp_utc': None}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 57.400000000000006, 'timestamp_utc': None}, 2: {'measurement': 'dewpoint', 'unit': 'C', 'value': 15.810146046074225, 'timestamp_utc': None}, 3: {'measurement': 'vapor_pressure_deficit', 'unit': 'Pa', 'value': 1333.1847074885584, 'timestamp_utc': None}}
2020-07-12 14:26:06,286 - ERROR - mycodo.inputs.atlas_ph_c0ca6700 - Sensor not set up
2020-07-12 14:26:06,287 - ERROR - mycodo.controllers.controller_input_c0ca6700 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-12 14:26:08,312 - DEBUG - mycodo.controllers.controller_input_c013febf - Adding measurements to InfluxDB with ID c013febf-1588-4ea5-9ac4-76bac24f6eb3: {0: {'measurement': None, 'unit': 'F', 'value': 76.64, 'timestamp_utc': None}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 57.400000000000006, 'timestamp_utc': None}, 2: {'measurement': 'dewpoint', 'unit': 'C', 'value': 15.810146046074225, 'timestamp_utc': None}, 3: {'measurement': 'vapor_pressure_deficit', 'unit': 'Pa', 'value': 1333.1847074885584, 'timestamp_utc': None}}
2020-07-12 14:26:08,392 - ERROR - mycodo.controllers.controller_input_343acaf0 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
2020-07-12 14:26:21,312 - ERROR - mycodo.inputs.atlas_ph_c0ca6700 - Sensor not set up
2020-07-12 14:26:23,319 - ERROR - mycodo.controllers.controller_input_343acaf0 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
2020-07-12 14:26:23,424 - DEBUG - mycodo.controllers.controller_input_c013febf - Adding measurements to InfluxDB with ID c013febf-1588-4ea5-9ac4-76bac24f6eb3: {0: {'measurement': None, 'unit': 'F', 'value': 76.46, 'timestamp_utc': None}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 57.2, 'timestamp_utc': None}, 2: {'measurement': 'dewpoint', 'unit': 'C', 'value': 15.662166157842865, 'timestamp_utc': None}, 3: {'measurement': 'vapor_pressure_deficit', 'unit': 'Pa', 'value': 1331.4742067049149, 'timestamp_utc': None}}
2020-07-12 14:26:39,123 - ERROR - mycodo.controllers.controller_input_343acaf0 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
2020-07-12 14:26:39,123 - ERROR - mycodo.inputs.atlas_ph_c0ca6700 - Sensor not set up
2020-07-12 14:26:39,834 - DEBUG - mycodo.controllers.controller_input_c013febf - Adding measurements to InfluxDB with ID c013febf-1588-4ea5-9ac4-76bac24f6eb3: {0: {'measurement': None, 'unit': 'F', 'value': 76.46, 'timestamp_utc': None}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 57.400000000000006, 'timestamp_utc': None}, 2: {'measurement': 'dewpoint', 'unit': 'C', 'value': 15.716743137019355, 'timestamp_utc': None}, 3: {'measurement': 'vapor_pressure_deficit', 'unit': 'Pa', 'value': 1325.2523646175084, 'timestamp_utc': None}}
2020-07-12 14:26:51,346 - ERROR - mycodo.inputs.atlas_ph_c0ca6700 - Sensor not set up
2020-07-12 14:26:51,346 - ERROR - mycodo.controllers.controller_input_c0ca6700 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2020-07-12 14:26:53,313 - DEBUG - mycodo.controllers.controller_input_c013febf - Adding measurements to InfluxDB with ID c013febf-1588-4ea5-9ac4-76bac24f6eb3: {0: {'measurement': None, 'unit': 'F', 'value': 76.46, 'timestamp_utc': None}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 57.400000000000006, 'timestamp_utc': None}, 2: {'measurement': 'dewpoint', 'unit': 'C', 'value': 15.716743137019355, 'timestamp_utc': None}, 3: {'measurement': 'vapor_pressure_deficit', 'unit': 'Pa', 'value': 1325.2523646175084, 'timestamp_utc': None}}
2020-07-12 14:26:53,352 - ERROR - mycodo.controllers.controller_input_343acaf0 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
2020-07-12 14:27:06,287 - ERROR - mycodo.inputs.atlas_ph_c0ca6700 - Sensor not set up
2020-07-12 14:27:08,388 - DEBUG - mycodo.controllers.controller_input_c013febf - Adding measurements to InfluxDB with ID c013febf-1588-4ea5-9ac4-76bac24f6eb3: {0: {'measurement': None, 'unit': 'F', 'value': 76.46, 'timestamp_utc': None}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 57.400000000000006, 'timestamp_utc': None}, 2: {'measurement': 'dewpoint', 'unit': 'C', 'value': 15.716743137019355, 'timestamp_utc': None}, 3: {'measurement': 'vapor_pressure_deficit', 'unit': 'Pa', 'value': 1325.2523646175084, 'timestamp_utc': None}}
2020-07-12 14:27:08,391 - ERROR - mycodo.controllers.controller_input_343acaf0 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
Since I saw,"sensor not set up", I confirmed via minicom, and then after successful, recreated the inputs, but still similar errors: (Also noticed some of the sensors seem to be taking a little while to come up, ds18b20, cpu/gpu temp)
2020-07-12 14:30:47,876 - INFO - mycodo.devices.atlas_scientific_uart_dev_ttyAMA2 - Atlas Scientific Board: EC, Rev: 2, Firmware: 2.14
2020-07-12 14:30:53,321 - DEBUG - mycodo.controllers.controller_input_c013febf - Adding measurements to InfluxDB with ID c013febf-1588-4ea5-9ac4-76bac24f6eb3: {0: {'measurement': None, 'unit': 'F', 'value': 76.46, 'timestamp_utc': None}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 57.800000000000004, 'timestamp_utc': None}, 2: {'measurement': 'dewpoint', 'unit': 'C', 'value': 15.82539740363636, 'timestamp_utc': None}, 3: {'measurement': 'vapor_pressure_deficit', 'unit': 'Pa', 'value': 1312.8086804426962, 'timestamp_utc': None}}
2020-07-12 14:30:53,324 - ERROR - mycodo.controllers.controller_input_343acaf0 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
2020-07-12 14:30:54,188 - INFO - mycodo.devices.atlas_scientific_uart_dev_ttyAMA2 - Atlas Scientific Board: EC, Rev: 2, Firmware: 2.14
2020-07-12 14:30:54,188 - ERROR - mycodo.controllers.controller_input_1142ab28 - initialize_variables() Exception: 'NoneType' object has no attribute 'setup'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/base_controller.py", line 72, in run
self.initialize_variables()
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 350, in initialize_variables
self.measure_input = input_loaded.InputModule(self.input_dev)
File "/home/pi/Mycodo/mycodo/inputs/atlas_ec.py", line 123, in __init__
self.get_measurement()
File "/home/pi/Mycodo/mycodo/inputs/atlas_ec.py", line 143, in get_measurement
if not self.atlas_device.setup:
AttributeError: 'NoneType' object has no attribute 'setup'
2020-07-12 14:30:54,190 - INFO - mycodo.controllers.controller_input_1142ab28 - Activated in 12749.3 ms
2020-07-12 14:30:54,191 - ERROR - mycodo.controllers.controller_input_1142ab28 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
2020-07-12 14:30:56,597 - ERROR - mycodo.controllers.controller_input_1142ab28 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/controller_input.py", line 439, in update_measure
measurements = self.measure_input.next()
AttributeError: 'NoneType' object has no attribute 'next'
2020-07-12 14:31:04,507 - INFO - mycodo.devices.atlas_scientific_uart_dev_ttyAMA1 - Atlas Scientific Board: pH, Rev: 2, Firmware: 2.13
2020-07-12 14:31:04,508 - ERROR - mycodo.inputs.atlas_ph_b5bed917 - Sensor not set up
2020-07-12 14:31:04,509 - INFO - mycodo.controllers.controller_input_b5bed917 - Activated in 6535.1 ms
2020-07-12 14:31:04,509 - ERROR - mycodo.inputs.atlas_ph_b5bed917 - Sensor not set up
2020-07-12 14:31:08,353 - DEBUG - mycodo.controllers.controller_input_c013febf - Adding measurements to InfluxDB with ID c013febf-1588-4ea5-9ac4-76bac24f6eb3: {0: {'measurement': None, 'unit': 'F', 'value': 76.46, 'timestamp_utc': None}, 1: {'measurement': 'humidity', 'unit': 'percent', 'value': 57.7, 'timestamp_utc': None}, 2: {'measurement': 'dewpoint', 'unit': 'C', 'value': 15.798295957530911, 'timestamp_utc': None}, 3: {'measurement': 'vapor_pressure_deficit', 'unit': 'Pa', 'value': 1315.9196014863994, 'timestamp_utc': None}}
2020-07-12 14:31:08,372 - ERROR - mycodo.controllers.controller_input_343acaf0 - Error while attempting to read input: 'NoneType' object has no attribute 'next'
Traceback (most recent call last):
Whoops. sorry about that. A slight oversight in variable names. I'll push another commit shortly.
It managed to change the pH sensor from the regular polling (blinking green/blue) over to solid green, Ready state. But no data.
I found all the issues. About to push the code changes.
sounds good. Standing by
All ready to test
Working!:
EC didn't come up at first, but after a force Acquire, seems to work just fine.
Thanks a lot for your help. Really appreciate your dedication. Hopefully everything works on the older rev Pis and you can push out the next release without worry.
Glad we got it working. I've been meaning to overhaul the Atlas Scientific code and test all the interfacing options.
@kizniche i got the exact same problem, trying to use the atlas sensors with uart
2022-05-11 01:11:45,427 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
2022-05-11 01:12:00,351 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
2022-05-11 01:12:15,377 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
2022-05-11 01:12:15,378 - ERROR - mycodo.controllers.controller_input_52990ea8 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2022-05-11 01:12:30,403 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
2022-05-11 01:12:45,430 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
2022-05-11 01:13:00,357 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
2022-05-11 01:13:00,357 - ERROR - mycodo.controllers.controller_input_52990ea8 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2022-05-11 01:13:15,381 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
2022-05-11 01:13:30,407 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
2022-05-11 01:13:45,434 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
2022-05-11 01:13:45,434 - ERROR - mycodo.controllers.controller_input_52990ea8 - StopIteration raised 3 times. Possibly could not read input. Ensure it's connected properly and detected.
2022-05-11 01:14:00,359 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
2022-05-11 01:14:15,388 - ERROR - mycodo.inputs.atlas_ph_52990ea8 - Error 101: Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
should i open a new bug report ?
i got the exact same problem
It is not the same problem. This issue was resolved and your error log doesn't show the relevant information to diagnose the issue. Open a new issue but include the error that occurs when the input is activated, This is all mentioned in the link provided by the error:
Device not set up. See https://kizniche.github.io/Mycodo/Error-Codes#error-101 for more info.
at the link...
You will often need to review the Daemon Log ([Gear Icon] -> Mycodo Logs) for any relevant errors that occurred when the Controller was initially activated to determine the issue setting up the device. Try deactivating, then activating the device, to see the initialization error again. Enabling Log Level: Debug in the Controller setting can also be useful by providing debugging log lines (when available) in addition to the info and error log lines.
Any sensors I add return error: Error while attempting to read input: 'NoneType' object has no attribute 'next'
I can activate sensors and but I get no data for anything but the Pi GPU temperature. I tried this with 2 DS18b20, 1 Atlas PH UART, 1 Atlas EC UART, DHT11, and DHT22. The DS18b20, but not the Atlas sensors, worked in 8.5.6 (however the data would show 0 on reboots and manual deactivate/activate of each sensor device was required) and both DS18b20 and DHT22 worked on a much older build 2 years ago. I feel like I am missing something obvious..
Mycodo Version: 8.5.8 Raspberry Pi Version: 4B Raspbian OS Version: Buster Lite
I am able to pull values and send the find command for the Atlas sensors via UART on minicom -b 9600 /dev/ttyAMA1 and ttyAMA0.
Daemon logs below:
DHT11
DHT22
DS18b20
Atlas EC
Atlas PH