Webtags (preserving history): Difference between revisions

m
m (→‎The Tags: Consistent ' greatest wind chill' replaces former 'highest' or 'lowest' in different places)
==Recent History==
 
There are a set of tags for 'recent historical data', giving data values from 1 minute ago, up to 1 week ago, in 1 minute intervals. Note that the values over 12 hours old are initialised from the log files when Cumulus starts, so they 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 one for which there is currently no exact match, and the first tag listed tells you that nearest time. More recent data values are based on those at, and since, start-up as the first tag will report. As Cumulus runs it updates all values for times since it started with full resolution.
 
You specify how old you want the value to be by using parameters on the web tags for number of days, hours, and minutes. For example, <#RecentOutsideTemp m=1> will give the temperature one minute ago, <#RecentOutsideTemp h=1> will give the temperature one hour ago (as will <#RecentOutsideTemp m=60>), and <#RecentOutsideTemp d=1> will give the temperature one day ago. <#RecentOutsideTemp d=1 h=1 m=1> will give the temperature one day, one hour and one minute ago. All values supplied for parameters must be whole numbers. If you don't supply any parameters, the result is undefined.
 
Although 'Apparent Temperature' is not included, it can be calculated in a script from recent 'outside temperature', 'wind speed', and 'relative humidity' values (using the same time selection for all).
 
{| class="wikitable" border="1"
|-
|<#RecentRainToday>
|Daily rain total from last roll-over to specified time
|Today's rain
|-
|<#RecentSolarRad>
5,838

edits