Plugin request check_dht22

Have a great idea for an upcoming release of NEMS? Post it here.
Post Reply
charesdewit
Junior Member
Posts: 4
Joined: Mon Jul 20, 2020 7:18 am

Plugin request check_dht22

Post 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

User avatar
Robbie Ferguson
Posting Freak
Posts: 786
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

Re: Plugin request check_dht22

Post 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.

User avatar
Marshman
Junior Member
Posts: 27
Joined: Fri Feb 02, 2018 5:33 pm
Location: New York, USA
Contact:

Re: Plugin request check_dht22

Post 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
Thanks all,

MarshMan  NY, USA

User avatar
Robbie Ferguson
Posting Freak
Posts: 786
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

Re: Plugin request check_dht22

Post 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

User avatar
Robbie Ferguson
Posting Freak
Posts: 786
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

Re: Plugin request check_dht22

Post 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/

User avatar
Robbie Ferguson
Posting Freak
Posts: 786
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

Re: Plugin request check_dht22

Post 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

User avatar
Robbie Ferguson
Posting Freak
Posts: 786
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

Re: Plugin request check_dht22

Post 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).

User avatar
Robbie Ferguson
Posting Freak
Posts: 786
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

Re: Plugin request check_dht22

Post 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 :)

User avatar
Robbie Ferguson
Posting Freak
Posts: 786
Joined: Wed Mar 07, 2012 3:23 pm
Location: Ontario, Canada
Contact:

Re: Plugin request check_dht22

Post 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!

charesdewit
Junior Member
Posts: 4
Joined: Mon Jul 20, 2020 7:18 am

Re: Plugin request check_dht22

Post 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

Post Reply