Posts: 7,238
Threads: 92
Joined: Aug 2013
Reputation:
76
Should be fixed.
Wiki is intentional because there are hardly any difference between the two.
Posts: 901
Threads: 14
Joined: Jun 2014
Reputation:
15
08-10-2015, 12:48 PM
(This post was last modified: 08-10-2015, 12:49 PM by pilino1234.)
That's probably because the sensor does not supply more detailed data, I've set mine to 1 decimal place.
Posts: 7,238
Threads: 92
Joined: Aug 2013
Reputation:
76
Can either of you check and when necessary do a PR?
Posts: 1
Threads: 0
Joined: Sep 2018
Reputation:
0
I'm sorry to dig this thread out, but I can't find a better one and don't know where to report bugs.
I have a Pi with dht22 running outside at my garage and it was below 0°C for first time since installation. The temperature offset is set to -2.5°C (bug #1: have to use temperature_offset=-25.0 in config.json) Perhaps nobody uses dht22 sensors outside or/and with offsets except me?
Well pilight surprised me with positive temperatures below -2.5°C, it says +3°C when it should be -3°C (bug #2).
Looking at dht22.c at github the problem is right there at lines 158-168. The offsets are calculated before negative temperatures are handled and the values for temperature and humidity are properly calculated.