Open tfagart opened 1 month ago
Hi Thomas, I don't have a Rpi5, so I cannot really tell :-). Im currently relying on github.com/MichaelS11/go-dht, which was archive end of last year unfortunately. So seemingly I'll need to check for alternatives anyway, maybe this will then fix your issue, too. I'm not doing magic here, so if you would like to fix it yourself and provide a PR, you'd be welcome.
I'm tracking the dependency issue in #53 now.
Hello,
I've got a raspberry pi 5, while trying your code I've got the following
root@rasp-8:~/go/bin# ./dht22-exporter --interval=10 --debug 2024/06/04 17:13:40 Gathering metrics 2024/06/04 17:13:49 Read error: missing some readings - level not high 2024/06/04 17:13:49 Data Gathering failed 2024/06/04 17:13:59 Gathering metrics 2024/06/04 17:14:08 Read error: missing some readings - level not high 2024/06/04 17:14:08 Data Gathering failed
While trying to use the adafruit_dht in Python it seems to work properly
root@rasp-8:~# /root/venv/bin/python3 dht22.py Temp: 84.2 F / 29.0 C Humidity: 46.3% Temp: 84.2 F / 29.0 C Humidity: 46.3% Temp: 84.2 F / 29.0 C Humidity: 46.3%
I've heard that gpio chip as changed in raspberry pi 5, is your code compatible with that ?
Thanks
Regards
Thomas