vitormhenrique / OctoPrint-Enclosure

OctoPrint Enclosure Plugin
GNU General Public License v3.0
397 stars 202 forks source link

Am2302 no information in Octoprint #502

Closed Testo52 closed 6 months ago

Testo52 commented 6 months ago

Hi vitormhenrique,

I installed the "Enclosure Plugin" according to your instructions. It runs on a Raspberry pi 3b. I receive positive feedback in the terminal and the temperature and humidity are displayed.

pi@octopi:~/Adafruit_Python_DHT/examples $ sudo ./AdafruitDHT.py 2302 4 Temp=19.2* Humidity=54.2%

I have implemented the points from the similar thread. https://github.com/vitormhenrique/OctoPrint-Enclosure/issues/124

Thanks and Greetings

Testo52 commented 6 months ago

Log-File: Traceback (most recent call last): File "/home/pi/oprint/lib/python3.9/site-packages/octoprint_enclosure/init.py", line 1153, in read_dht_temp temp, hum = stdout.decode("utf-8").split("|") ValueError: not enough values to unpack (expected 2, got 1)