Webtags (preserving history): Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
The webtags available in the version/build you are using are listed in the Cumulus Help provided with that build.
The webtags available in the version/build you are using are listed in the Cumulus Help provided with that build.
== Webtags available in Cumulus 1.9.3 ==
== Webtags available in Cumulus 1.9.4 ==


These are special markers placed in a file which Cumulus can then process and replace with the actual values.  Typically you would use this to build your own website by having an HTML template file with your layout, static text and graphics.  In the position on the page you wish Cumulus to insert the relevant data place a webtag in the form:
These are special markers placed in a file which Cumulus can then process and replace with the actual values.  Typically you would use this to build your own website by having an HTML template file with your layout, static text and graphics.  In the position on the page you wish Cumulus to insert the relevant data place a webtag in the form:
Line 300: Line 300:
|<#LastRainTipISO>
|<#LastRainTipISO>
|Date/time of last rain gauge tip (e.g 2010-09-06 06:09)
|Date/time of last rain gauge tip (e.g 2010-09-06 06:09)
|-
|<#MinutesSinceLastRainTip>
|The number of minutes since the last rain gauge tip, in whole numbers, rounded down
|-
|-
|<#IsRaining>
|<#IsRaining>
Line 1,114: Line 1,117:
!style="width:150px" | webtag
!style="width:150px" | webtag
!style="width:600px" | Function  
!style="width:600px" | Function  
|-
|<#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.
|-
|-
|<#RecentOutsideTemp>
|<#RecentOutsideTemp>
Line 1,325: Line 1,331:
|-
|-
|<#latitude>
|<#latitude>
|The station [http://en.wikipedia.org/wiki/Latitude latitude]
|The station [http://en.wikipedia.org/wiki/Latitude latitude].
Supports an optional 'dp' parameter, if supplied, instead of the usual web-encoded text format with degrees/minutes/seconds, the result is in decimal degrees to the specified number of decimal places. E.g<br />
<#latitude> gives "N&amp;nbsp;59& deg;&amp;nbsp;14&amp;#39;&amp;nbsp;33&amp;quot;" for N 59 14 33<br />
<#latitude dp=5> gives "59.24250"
 
If the "dp" parameter is supplied, then supplying "rc=y" in addition will cause any decimal comma to be converted to a decimal point.
|-
|-
|<#longitude>
|<#longitude>
|The station [http://en.wikipedia.org/wiki/Longitude longitude]
|The station [http://en.wikipedia.org/wiki/Longitude longitude]. Supports an optional 'dp' and 'rc' parameters as per the latitude tag.
|-
|-
|<#altitude>
|<#altitude>
Line 1,797: Line 1,808:
  <#RCwchill> <#RCwgust> <#RCwgustTM> <#RCwspeed> <#RCwlatest> <#RCdewpointTH>
  <#RCwchill> <#RCwgust> <#RCwgustTM> <#RCwspeed> <#RCwlatest> <#RCdewpointTH>
  <#RCdewpointTL> <#RCwchillTL> <#RCheatindexTH> <#RCapptempTH> <#RCapptempTL>
  <#RCdewpointTL> <#RCwchillTL> <#RCheatindexTH> <#RCapptempTH> <#RCapptempTL>
<#RCRecentOutsideTemp> <#RCRecentWindSpeed> <#RCRecentWindGust> <#RCRecentWindLatest>
<#RCRecentWindChill> <#RCRecentDewPoint> <#RCRecentHeatIndex> <#RCRecentPressure>
<#RCRecentRainToday> <#RCRecentUV>