Webtags (preserving history): Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
→‎Yearly: match what done in month tags
m (Text replacement - "http://wiki.sandaysoft.com/" to "https://cumuluswiki.wxforum.net/")
m (→‎Yearly: match what done in month tags)
(12 intermediate revisions by 3 users not shown)
Line 65: Line 65:
*#Whilst ''<#metdate format="d M">'' is not a single character format modifier and therefore both the 'd' and the 'M' are interpreted as custom modifiers and cause the current date to be returned as a digit(s) for the day and a digit(s) month (in a without leading zeroes format) e.g. '6 7' would be returned for 6 July.
*#Whilst ''<#metdate format="d M">'' is not a single character format modifier and therefore both the 'd' and the 'M' are interpreted as custom modifiers and cause the current date to be returned as a digit(s) for the day and a digit(s) month (in a without leading zeroes format) e.g. '6 7' would be returned for 6 July.
*The other change with the "format" parameter is the different way that .Net escapes characters that are not being used as format specifiers. In Delphi you can put the 'verbatim' characters inside single quotes (Cumulus 1); in .Net you can still use single quotes, but alternatively you can escape each verbatim character with a backslash as prefix (Cumulus MX).  
*The other change with the "format" parameter is the different way that .Net escapes characters that are not being used as format specifiers. In Delphi you can put the 'verbatim' characters inside single quotes (Cumulus 1); in .Net you can still use single quotes, but alternatively you can escape each verbatim character with a backslash as prefix (Cumulus MX).  
For official full details see [http://sandaysoft.com/forum/viewtopic.php?f=27&t=12908 Cumulus MX forum], the following table is revised for simplicity. (I've abridged the table here and included '%' where necessary to avoid single character versus custom complications).
For official full details see [https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=12908 Cumulus MX forum], the following table is revised for simplicity. (I've abridged the table here and included '%' where necessary to avoid single character versus custom complications).


== List of allowed modifiers ==
== List of allowed modifiers ==
Line 313: Line 313:
|<#DaysSince30Dec1899>  
|<#DaysSince30Dec1899>  
|Day count (gives whole and fractional part) Example: 41250.6523310301
|Day count (gives whole and fractional part) Example: 41250.6523310301
|-
|<#recordsbegandate>
|Date when records began (appears twice on "recordsT.htm" provided, and used to calculate next tag, but ignored for all other Cumulus processing)
|-
|-
|<#DaysSinceRecordsBegan>
|<#DaysSinceRecordsBegan>
Line 867: Line 870:
|-
|-
|<#MonthHumH>
|<#MonthHumH>
|This months highest humidty
|This months highest humidity
|<#MonthHumHT>
|<#MonthHumHT>
|<#MonthHumHD>
|<#MonthHumHD>
|-
|-
|<#MonthHumL>
|<#MonthHumL>
|This months lowest humidty
|This months lowest humidity
|<#MonthHumLT>
|<#MonthHumLT>
|<#MonthHumLD>
|<#MonthHumLD>
Line 1,003: Line 1,006:
|<#YearMinTempH>
|<#YearMinTempH>
|This years highest daily minimum temperature
|This years highest daily minimum temperature
|n/a
|<#YearMinTempHD format=HH:MM>
|<#YearMinTempHD>
|<#YearMinTempHD>
|-
|-
|<#YearMaxTempL>
|<#YearMaxTempL>
|This years lowest daily maximum temperature
|This years lowest daily maximum temperature
|n/a
|<#YearMaxTempHD format=HH:MM>
|<#YearMaxTempLD>
|<#YearMaxTempLD>
|-
|-
|<#YearHumH>
|<#YearHumH>
|This years high humidty
|This years high humidity
|<#YearHumHT>
|<#YearHumHT>
|<#YearHumHD>
|<#YearHumHD>
|-
|-
|<#YearHumL>
|<#YearHumL>
|This years low humidty
|This years low humidity
|<#YearHumLT>
|<#YearHumLT>
|<#YearHumLD>
|<#YearHumLD>
Line 1,412: Line 1,415:
|-
|-
|<#build>
|<#build>
|The build of Cumulus in use e.g. '1099'
|The build of Cumulus in use e.g. '10991'
|-
|-
|<#realtimeinterval>
|<#realtimeinterval>
Line 1,435: Line 1,438:
|The station [http://en.wikipedia.org/wiki/Latitude latitude] (as you entered during setup).
|The station [http://en.wikipedia.org/wiki/Latitude latitude] (as you entered during setup).
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 />
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> gives "N&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"
<#latitude dp=5> gives "59.24250"


Line 1,444: Line 1,447:
|-
|-
|<#altitude>
|<#altitude>
|The station [http://en.wikipedia.org/wiki/Altitude altitude] value (webtag outputs both figure and units) in either feet or metres just as you entered during setup
|The station [http://en.wikipedia.org/wiki/Altitude altitude] value (webtag outputs web encoded format containing figure, '&amp;nbsp;' and units) in either feet or metres just as you entered during setup (so it is more complex to extract number for script arithmetric); e.g. '123&amp;nbsp;m'
|-
|-
|<#location>
|<#location>
Line 1,544: Line 1,547:
|-
|-
|<#MoonAge>
|<#MoonAge>
|Current '''approximate''' age of the Moon in days (0-29)
|Current '''approximate''' age of the Moon in days (0-29.53)
 
MX b3047 adds the 'dp' and 'rc' parameters Supports an optional 'dp' parameter, if supplied the result is returned to the specified number of decimal places. E.g <#MoonAge> gives "11" <#MoonAge dp=3> gives "11.234"
If the "dp" parameter is supplied, then also supplying "rc=y" in addition will cause any decimal comma to be converted to a decimal point.
|-
|-
|<#moonrise>
|<#moonrise>
Line 1,554: Line 1,560:
|<#MoonPercent>
|<#MoonPercent>
|Current percentage of moon visible (negative value indicates 'waning')
|Current percentage of moon visible (negative value indicates 'waning')
MX b3047 adds the 'dp' and 'rc' parameters as <#MoonAge> above
|-
|-
|<#MoonPercentAbs>
|<#MoonPercentAbs>
|Current percentage of moon visible (always positive)
|Current percentage of moon visible (always positive)
MX b3047 adds the 'dp' and 'rc' parameters as <#MoonAge> above
|-
|-
|<#SunshineHours>
|<#SunshineHours>
Line 1,778: Line 1,788:
|Soil temperature 2
|Soil temperature 2
|-
|-
|colspan="2"|... and so on up to <#SoilTemp4>
|colspan="2"|... and so on up to <#SoilTemp16>
|-
|-
|<#SoilMoisture1>
|<#SoilMoisture1>
Line 1,786: Line 1,796:
|Soil moisture 2
|Soil moisture 2
|-
|-
|colspan="2"|... and so on up to <#SoilMoisture4>
|colspan="2"|... and so on up to <#SoilMoisture16>
|-
|-
|<#LeafTemp1>
|<#LeafTemp1>
Line 1,799: Line 1,809:
|<#LeafWetness2>
|<#LeafWetness2>
|Leaf wetness 2  
|Leaf wetness 2  
|-
|<#AirQuality1>
|Air quality (currently only GW1000 stations)
|-
|colspan="2"|... and so on up to <#AirQuality4>
|-
|<#LeakSensor1>
|Leak sensor - 0 or 1 (currently only GW1000 stations)
|-
|colspan="2"|... and so on up to <#LeakSensor4>
|-
|<#LightningDistance>
|Distance to last strike (same units as wind run - miles/km/nm)
(currently only GW1000 stations)
|-
|<#LightningTime>
|Time of last strike (format customisable)
(currently only GW1000 stations)
|-
|<#LightningStrikesToday>
|Number of strikes since midnight
(currently only GW1000 stations)
|}
|}


Line 1,902: Line 1,934:
|1 if the station has lost contact with its remote sensors "Fine Offset only"  
|1 if the station has lost contact with its remote sensors "Fine Offset only"  
0 if contact has been established
0 if contact has been established
|}
===Ecowitt GW1000===
There are a set of tags for the Ecowitt WiFi gateway GW1000:
{| class="wikitable" border="1"
|-
!style="width:150px" |webtag
!style="width:600px" |Function
|-
|<#GW1000FirmwareVersion>
|GW1000 firmware version string
|}
|}


5,838

edits

Navigation menu