Posted by chof258
I have programmed a sensor class for the DHT11 humidity sensor and probably other versions of the DHTXX family:
The sensor is utilizing a new C extension for python, to communicate with the hardware which I have included into the native section of the code.
It was tested on a raspberry pi model 2 and works fine
I also updated the sensor module and webpage to handle humidity data. Please feel free to try it and integrate it into your software
Kind regards
Christian
Files attached
Posted by trouch
Thanks you very much, but there is few issues :
WiringPi code is under LGPL license, incompatible with Apache WebIOPi licence https://www.apache.org/legal/resolved.html#category-x
So you should use gpio.c:pulseTS or inspire from it instead. But all GPIO native code is planned to be removed later.
A humidity sensor (HYT221) will be added shortly, and will provide a different mapping from your proposal
Posted by dwr4ever
I would very much like support for the DHT11
Posted by jlpetracca
Me too I want DHT11 too THANKS!
Posted by aschwar
I'd also like support for DHT11 and DHT22. Thank you.
Posted by NewFolk
Will be glad to see DHT11 and DHT22 support.
Posted by ropese362011
How ti install? Thanks
Posted by Russell.A.Turner
I'm getting an oops that page can't be found following the link provided above.
Posted by jo@raspython.org
Hey Russel, i'm sorry, try this one: https://www.raspython.org/measure-temperature-and-humidity-with-the-sensor-dht22-am2302/
Posted by Russell.A.Turner
Thanks that link worked