Page 1 of 1

[1.6] Plugin request check_dht22

Posted: Tue Jul 21, 2020 1:12 am
by charesdewit
Hi Robbie,

check_dht22
https://github.com/FrostbyteGR/check_dht22

Monitors temperature and humidity via a DHT22 sensor

I have 2 Pis with NEMS setup monitoring from within server rooms.
Currently I have a python script collecting temperature from the DHT22 sensor, but it would be really helpful to have everything in one place.

Many Thanks
Charles

Re: Plugin request check_dht22

Posted: Thu Aug 13, 2020 9:48 am
by Robbie Ferguson
Hi Charles,
I'll check my maker kit to see if I have a DHT22 on hand for testing. If not, will order one and include this check in NEMS Linux 1.6 for you. Are you available for testing?

Thanks.

Re: Plugin request check_dht22

Posted: Thu Aug 13, 2020 10:38 am
by Marshman
I have a couple of DHT11 sensors but no DHT22s. Wonder if they would be similar enough to work.

https://learn.adafruit.com/dht

Re: Plugin request check_dht22

Posted: Thu Aug 13, 2020 10:41 am
by Robbie Ferguson
Very nice. As these seem to be the main two sensors in use, I think it'd be best for me to get my hands on both. Perhaps if Charles could be a tester for the DHT22 and Marshman could help with testing the DHT11?

Thanks gents,
Robbie

Re: Plugin request check_dht22

Posted: Thu Aug 13, 2020 11:38 am
by Robbie Ferguson
Hmm, I just accidentally stumbled upon this one as well: https://www.adafruit.com/product/2652 while looking at https://bitbucket.org/hashrate/raspberr ... rc/master/

Re: Plugin request check_dht22

Posted: Thu Aug 13, 2020 1:13 pm
by Robbie Ferguson
DHT sensors have been added to the docs in preparation for development into NEMS Linux 1.6: https://docs.nemslinux.com/hardware/dht-sensors

Re: Plugin request check_dht22

Posted: Fri Aug 14, 2020 2:26 pm
by Robbie Ferguson
I've ordered a DHT22 and DHT11 for development. I've started working on the code as well. I'll be writing a custom check command as I did with TEMPer since the ones available now seem quite old... no support for python3 and even use the old (deprecated) libraries.

Sensors should arrive next week and the plan is to have this ready before I release NEMS Linux 1.6 (which is nearly ready).

Re: Plugin request check_dht22

Posted: Thu Aug 20, 2020 3:39 pm
by Robbie Ferguson
My sensors have arrived, and I've begun prototyping.

Image

I don't have my resistors with me, so just a direct connection to the GPIO, but I have already pushed the build script to NEMS Linux 1.6, and am making excellent headway on the new check command. I'm writing it from scratch based partly on my TEMPer check command, because I like the way it handles thresholds and allows switching between C and F without having to think about it :)

Re: Plugin request check_dht22

Posted: Tue Sep 01, 2020 6:45 pm
by Robbie Ferguson
I have finished coding DHTxx sensor support for NEMS Linux 1.6. It is now fully supported as per https://docs.nemslinux.com/hardware/dht-sensors

Enjoy!

Re: Plugin request check_dht22

Posted: Fri Sep 11, 2020 6:13 am
by charesdewit
Hi Robbie,

SOrry for the late response. I checked for a few days, saw no response and didn't check it until today.

If you still need testing , I am more than happy to test

Regards