12-10-2014, 10:23 AM
Please share the working code?
[Fully Supported] DHT22
|
{
"devices": {
"lampotila1": {
"protocol": [ "dht22" ],
"id": [{
"gpio": 2
}],
"humidity": 27,
"temperature": 23,
"poll-interval": 15
}
},
"rules": {},
"gui": {
"lampotila1": {
"name": "Talo",
"group": [ "Lämpötila & Kosteus" ],
"media": [ "all" ]
}
},
"settings": {
"port": 5000,
"standalone": 0,
"log-level": 4,
"pid-file": "/var/run/pilight.pid",
"log-file": "/var/log/pilight.log",
"send-repeats": 10,
"receive-repeats": 1,
"webserver-enable": 1,
"webserver-root": "/usr/local/share/pilight/",
"webserver-port": 5001,
"webserver-cache": 1,
"firmware-update": 0
},
"hardware": {
"433gpio": {
"sender": 0,
"receiver": 1
}
},
"registry": {
"pilight": {
"version": {
"current": "5.0"
}
}
}
}
Quote:I can read the sensor values with Adafruit so the problem I should not be in the connectionsI like to see that code.
pi@raspberrypi ~/Adafruit_Python_DHT/examples $ sudo ./AdafruitDHT.py 2302 27
Temp=19.7*C Humidity=35.4%