1,157
edits
(Updated recreating file with webtags for the new tags available in v1.9.2) |
|||
| 6
| wind speed ([http://en.wikipedia.org/wiki/Beaufort_scale beaufort])
| <#beaufortnumber>
|-
| 14
| C
| temperature units - degree C, degree F
| <#tempunitnodeg>
|-
| 16
| 2040
| Cloud base
| <#cloudbasevalue>
|-
| 54
| ft
| Cloud base units
| <#cloudbaseunit>
|-
| 55
This can be achieved by creating a template file using the webtags below, and referencing this in the Cumulus Configuration|Internet|Files dialog. Ticking the 'Process?' checkbox, and supplying a remote filename will create this copy of the realtime.txt file.
▲*Note also that the built-in realtime.txt always uses a 'dot' decimal character (as so is JavaScript/PHP 'safe'), the web tag version will use your host computers localisation for decimals. [There are some #RCxxx webtags available but they do not cover all the required values]
To ensure decimal compatibility across systems use a js construct such as:
var temp = +r[2].replace(',','.');
when referring to decimal values in the constructed file.
''(this is one complete line, although it may appear on this page as two or more due to screen width restrictions)''
<tt><#date format=dd/mm/yy> <#timehhmmss> <#temp> <#hum> <#dew> <#wspeed> <#wlatest> <#bearing> <#rrate> <#rfall> <#press> <#currentwdir>
[[Category:Log_Files]]
|