Dew point calculation (Rules)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Vilda
Normal user
Posts: 13
Joined: 16 Jun 2019, 22:12

Dew point calculation (Rules)

#1 Post by Vilda » 14 Jul 2019, 20:51

There are two ways how to calculate dew point - simple but inaccurate formula and more complex but quite accurate formula. In the Rules tutorial dew point example (https://www.letscontrolit.com/wiki/inde ... example.29) is only the simple one. Check below for the second and more precise way of dew point calculation via Rules:

Code: Select all

on BME280#Temperature do

    //Simple - less accurate formula (not useful for humidity under 50%)
    TaskValueSet 4,1,[BME280#Teplota]-(100-[BME280#Humidity])/5

    //Complex - accurate formula
    TaskValueSet 5,1,(([BME280#Humidity]/100)^(1/8))*(112+(0.9*[BME280#Temperature]))+(0.1*[BME280#Temperature])-112

endon

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Dew point calculation (Rules)

#2 Post by grovkillen » 14 Jul 2019, 23:38

We now have an internal formula to do the conversion:

%c_dew_th%(T,H)

Where T is the temperature and H the humidity.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests