• 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
#81
Should be fixed.
Wiki is intentional because there are hardly any difference between the two.
 
Reply
#82
There is a typo in the wiki Protocol DHT22 ver.7. In Optional Settings > GUI Settings, the default value for temperature-decimals and humidity-decimals is 2, but the GUI displays only one decimal digit.
But my problem is the following:
If I set temperature-decimals and humidity-decimals to 2 the displayed value has two decimal places but rounded to the tenth (the second decimal digit is always equal to 0). Should be so or it's a bug?
[Image: Duck_Emoticon_by_ceethree.gif]
 
Reply
#83
That's probably because the sensor does not supply more detailed data, I've set mine to 1 decimal place.
 
Reply
#84
Can either of you check and when necessary do a PR?
 
Reply
#85
@pilino1234
@curlymo

You're right, I looked on the DHT22 datasheet and have seen that the sensor encodes the relative humidity as TENTHS of a percent. Many thanks.
[Image: Duck_Emoticon_by_ceethree.gif]
 
Reply
#86
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.
 
Reply
#87
That's what this thread is for Smile

Can you do a PR with the proposed fix (and according to the PR rules)?
 
Reply
  


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

Forum Jump:


Browsing: 1 Guest(s)