Webtags (preserving history): Difference between revisions

Line 1,232: Line 1,232:
Although 'Apparent Temperature' is not included as a tag, it can be [[FAQ#What_formula_does_Cumulus_use_for_Apparent_Temperature.3F | calculated]] in a script from recent 'outside temperature', 'wind speed', and 'relative humidity' values (using the same time selection for all).
Although 'Apparent Temperature' is not included as a tag, it can be [[FAQ#What_formula_does_Cumulus_use_for_Apparent_Temperature.3F | calculated]] in a script from recent 'outside temperature', 'wind speed', and 'relative humidity' values (using the same time selection for all).


When Cumulus is re-started the array it sets up will be based on reading the logs, so the contents will initially have a resolution according to the logger interval you have set in Cumulus and/or your station.  You'll get the nearest value if you ask for a time for which there is currently no exact match, and the first tag listed tells you that nearest time. Before build 1098, the recent history array did not initialise correctly from the station logger for the period since Cumulus was last run.
When Cumulus is re-started the array it sets up will be based on reading the logs, so the contents will initially have a resolution according to the logger interval you have set in Cumulus and/or your station.  You'll get the nearest value if you ask for a time for which there is currently no exact match, and the first tag listed tells you that nearest time.  
 
Before build 1098, the recent history array did not initialise correctly from the station logger for the period since Cumulus was last run.


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 1,238: Line 1,240:
!style="width:150px" | webtag
!style="width:150px" | webtag
!style="width:600px" | Function  
!style="width:600px" | Function  
!style="width:600px" | Parameters example
|-
|-
|<#RecentTS>
|<#RecentTS>
|Takes parameters like the 'recent data' web tags (e.g. <#RecentOutsideTemp>) and gives the timestamp of the data that will be returned for those web tags with the supplied parameters (it may not have the data for the exact time specified). Format can be specified in the usual way with the 'format' parameter.
|Gives the timestamp of the data that will be returned for any other recent history tag that uses same '''d, h, and m''' parameters
|<#RecentTS h=3 m=1 format="HH:nn"> for cumulus 1; <#RecentTS h=3 m=1 format="HH:mm"> for cumulus MX
|-
|-
|<#RecentOutsideTemp>
|<#RecentOutsideTemp>
|Outside Temperature  
|Outside Temperature
| <#RecentOutsideTemp h=3 m=1>&nbsp;<#tempunit> will display the temperature at the start of the period for which <#temptrend> is calculated
|-
|-
|<#RecentWindSpeed>
|<#RecentWindSpeed>
|Wind Speed  
|Wind Speed
| <#RecentWindSpeed m=10> will display the wind speed 10 minutes ago
|-
|-
|<#RecentWindGust>
|<#RecentWindGust>
|Wind Gust (reports maximum gust from build 1088 of version 1.9.4)
|Wind Gust (reports maximum gust from build 1088 of version 1.9.4
| <#RecentWindGust d=1 m=1> will report the wind gust at approximately the same time yesterday
|-
|-
|<#RecentWindLatest>
|<#RecentWindLatest>
|Wind Latest. Note: Wind 'Speed', 'Gust' and 'Latest' have the usual Cumulus meanings  
|Wind Latest. Note: Wind 'Speed', 'Gust' and 'Latest' have the usual Cumulus meanings
| d=n (where n runs 0 to 6) days ago; h=n (where n is any number of hours ago); m=n (where n is any number of minutes ago)
|-
|-
|<#RecentWindDir>
|<#RecentWindDir>
|Wind Direction (instantaneous)  
|Wind Direction (instantaneous)
| <#RecentWindDir m=10> will tell you which direction the wind was blowing from 10 minutes ago
|-
|-
|<#RecentWindAvgDir>
|<#RecentWindAvgDir>
|Wind Direction (average)  
|Wind Direction (average)
|<#RecentWindAvgDir d=6> will say what the calculated average wind direction was at this time at the start of the week
|-
|-
|<#RecentWindChill>
|<#RecentWindChill>
|Wind Chill  
|Wind Chill
|-
| <#RecentWindChill d=48 m=1> reports the wind chill temperature 2 days ago
|<#RecentDewPoint>
|<#RecentDewPoint>
|Dew Point  
|Dew Point
| <#RecentDewPoint h=25> reports the dew point temperature just over a day ago
|-
|-
|<#RecentHeatIndex>
|<#RecentHeatIndex>
|Heat Index  
|Heat Index
| <#RecentHeatIndex m=121> reports the heat index about 2 hours ago
|-
|-
|<#RecentHumidity>
|<#RecentHumidity>
|Relative Humidity  
|Relative Humidity
| d=n (where n runs 0 to 6) days ago; h=n (where n is any number of hours ago); m=n (where n is any number of minutes ago)
|-
|-
|<#RecentPressure>
|<#RecentPressure>
|Sea-level Pressure  
|Sea-level Pressure
| <#RecentPressure h=3 m=1> gives the sea level pressure when <#presstrendval> started tracking the pressure
|-
|-
|<#RecentRainToday>
|<#RecentRainToday>
|Daily rain total from last roll-over to specified time
|Daily rain total from last roll-over to specified time
| d=n (where n runs 0 to 6) days ago; h=n (where n is any number of hours ago); m=n (where n is any number of minutes ago)
|-
|-
|<#RecentSolarRad>
|<#RecentSolarRad>
|Solar Radiation  
|Solar Radiation  
| d=n (where n runs 0 to 6) days ago; h=n (where n is any number of hours ago); m=n (where n is any number of minutes ago)
|-
|-
|<#RecentUV>
|<#RecentUV>
|UV Index  
|UV Index  
| d=n (where n runs 0 to 6) days ago; h=n (where n is any number of hours ago); m=n (where n is any number of minutes ago)
|}
|}


5,838

edits