• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


[Fully Supported] DHT22
#41
I can only be of assistance with working C code, sorry.
 
Reply
#42
Ok, thanks for all of your help.
 
Reply
#43
Weird thing happened. I removed the Stable version of pilight when I installed the Nightly. And now when I removed the Nightly and installed the Stable version again my DHT22 sensor is working correctly. Has the protocol been updated?

Either way I'm happy that it's working now. I have five DHT22's I will connect all of them and see if it's still working.
 
Reply
#44
Can you guys check the latest dev build?
 
Reply
#45
(12-15-2014, 01:45 PM)curlymo Wrote: Can you guys check the latest dev build?

I have installed the version
Code:
pilight-daemon version 5.0, commit d1fbb78
and the DHT22 is working again, but the temperature is *10. Humidity is ok.
I have edtited the dht22.c locally
Code:
json_append_member(code, "temperature", json_mknumber(t/10, 1));
Now the temperature is also ok.


lcd4linux
 
Reply
#46
Fixed.
 
Reply
#47
I'm running Dev ce13ba0 and i'm getting Tempeature correctly but Humidity is x10. Also there are no units.. but that's not a real problem.

Config file below.

Code:
{
    "devices": {
        "TempHumRoom": {
            "protocol": [ "dht22" ],
            "id": [{
                "gpio": 7
            }],
            "humidity": 0,
            "temperature": 0,
            "poll-interval": 10
        },
        "RpiTemp": {
            "protocol": [ "cpu_temp" ],
            "id": [{
                "id": 1
            }],
            "poll-interval": 5,
            "temperature": 36.856
        }
    },
    "rules": {},
    "gui": {
        "TempHumRoom": {
            "name": "Temp/Hum",
            "group": [ "Berging" ]
        },
        "RpiTemp": {
            "name": "RpiTemp",
            "group": [ "Berging" ]
        }
    },
    "settings": {
        "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-port": 81,
        "webserver-cache": 0,
        "webserver-root": "/usr/local/share/pilight",
        "firmware-update": 0
    },
    "hardware": {
        "433gpio": {
            "sender": -1,
            "receiver": 1
        }
    },
    "registry": {
        "pilight": {
            "version": {
                "current": "5.0"
            }
        }
    }
}
 
Reply
#48
@lcd4linux told us two post before you that the humidity value is correct? So can you users give me one single viewpoint on the temperature and humidity decimals Smile
 
Reply
#49
Lcd4linux, did you apply any decimals settings in the config file? I didn't
 
Reply
#50
The latest pilight version already posts all values in the correct decimals in the config.

I've updated the code in sync with the AdaFruit DHT library:
https://github.com/adafruit/DHT-sensor-library/
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
Lightbulb [Fully Supported] Kaku Door sensor (AMST-606) geerttttt 53 23,924 10-19-2019, 06:26 PM
Last Post: curlymo
  [Partially Supported] TFA / Conrad Weather Yves 184 10,346 03-31-2019, 05:22 PM
Last Post: curlymo
  [Fully Supported] Arctech Old Martin 111 34,922 03-27-2018, 04:43 PM
Last Post: genfersee
  [Fully Supported] Clarus Switches Marcin 69 23,988 01-30-2018, 07:10 PM
Last Post: Niek
  [Fully Supported] Remote Control Socket (RC101-U/RC201) Sean 18 10,514 01-04-2018, 06:18 AM
Last Post: ettman8
  [Fully Supported] LM75 and LM76 temperature sensor horst_dieter 64 24,769 11-19-2017, 08:54 PM
Last Post: edepi
  [Fully Supported] No-brand temp/humidity sensor (alecto_ws1700) meloen 57 34,872 12-25-2016, 09:53 PM
Last Post: creamers
  [Fully Supported] Impuls/SelectRemote Bram 113 47,005 05-28-2016, 02:53 PM
Last Post: Puuu
  [Fully Supported] KAKU ABST-604 (dusk/dawn sensor) Netopyr 15 7,593 03-04-2016, 05:43 PM
Last Post: Niek
  [Fully Supported] Arctech Dimmer (KaKu) fhp 107 40,183 01-02-2016, 05:26 PM
Last Post: kniazio

Forum Jump:


Browsing: 1 Guest(s)