5,838
edits
|
==== Apparent Temperature and Feels Like ====
Note this apparent temperature formula uses Celsius for temperature and metres per second for wind speed. You will need to do the appropriate conversions if you use different units.
var actualVaporPress = <#RecentHumidity h=3>/100) * 6.105 * Math.exp(17.27 * <#RecentOutsideTemp h=3>) / (237.7 + parseFloat(<#RecentOutsideTemp h=3>))));
} </pre>
For temperatures '''above''' 20°C or 68°F it uses a different way to calculate apparent temperature that it uses at these higher temperatures (this formula only used for 3.6.10 onwards):
<pre>var actualVaporPress = (humVal/100) * 6.112* Math.exp((17.62*tempDegC)/(243.12 + tempDegC)) / 10.0; // Not same as at build 3084
/* uses kilometres per hour for wind speed */
AT= (1.04 * tempDegC) + (2 * actualVaporPress) - (0.1805553 * wind_km_h) - 2.7;</pre>
For in-between temperatures it uses a more complicated
<pre>app_temp_mult = ( tempDegC - 10) / 10;
wind_chill_mult = 1 - app_temp_mult;
| |||
edits