NA7KR

Results 7 comments of NA7KR

The changes did not work for me still all 0. from python shell looks good in interface 0 I did cmd = sudo_str + "python " + script + str(sensor)...

This is what I get pi@octopi:~/OctoPrint/venv/lib/python3.7/site-packages/octoprint_enclosure $ python getDHTTemp.py 20 23.0 | 43 2020-12-16 19:29:05,573 - octoprint.plugins.enclosure - WARNING - An exception of type ValueError occurred on log_error. Arguments: ('not...

Still the same error [__init__.txt](https://github.com/vitormhenrique/OctoPrint-Enclosure/files/5705837/__init__.txt) [getDHTTemp.txt](https://github.com/vitormhenrique/OctoPrint-Enclosure/files/5705839/getDHTTemp.txt) Does that look correct had to rename to upload just removed and install with https://github.com/vitormhenrique/OctoPrint-Enclosure/archive/master.zip Still same error. 2020-12-16 23:41:16,824 - octoprint.plugins.enclosure - INFO...

now working with above code getDHTTemp.ph but only one sensor as looks to be hard coded:

fix it ``` import time import sys import board import adafruit_dht if len(sys.argv) == 3: pin = sys.argv[2] else: sys.exit(1) dhtDevice = adafruit_dht.DHT11(pin) ```

full code ``` #!/usr/bin/env python3 import time import sys import board import adafruit_dht if len(sys.argv) == 3: pin = sys.argv[2] else: sys.exit(1) dhtDevice = adafruit_dht.DHT11(pin) try: # Print the values...

With https I get this. Error when connecting to Piwik: < urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) >