555
edits
No edit summary |
No edit summary |
||
[[Image:CumulusInternetSettingsScreen.png|thumb]] Although not technically a 'log file' it is automatically produced by Cumulus and follows a similar format to the other Log files. <br><br> realtime.txt is a text file with a single line of ''space'' separated values. It contains a list of key values of the sensors and is updated frequently. <br><br> Using Cumulus you decide how often to update the file -- for example every 15 seconds. This is then uploaded to your website and used to produce near instant readings. <br><br> To set how often the file is produced by Cumulus, click on the 'Configuration' menu then 'Internet' (Click the thumbnail opposite)
Note that from Cumulus 1.9.1 onwards, the options for uploading realtime.txt have changed. To get the realtime.txt file to upload, you need to tick all three 'enable realtime' options in the internet settings.
<br> Notes:
*The realtime.txt file is NOT a log file and is constantly replaced. It does not therefore contain any historic data.
*The 'interval' sets how often Cumulus produces ''and'' uploads to the website
<br>
= Special note to Fine Offset/EasyWeather users =
Weather stations which come shipped with the EasyWeather software (generally known as FineOffset or Watson) should consider the realtime updating with care. The station only updates every 48 seconds, so sending realtime information to your website every 5 seconds is very wasteful. It may be better for a figure of around 30 seconds, that way a visitor knows not to expect updates too often but you also allow Cumulus to catch up to two updates within a minute (depending on when the first and second 48 second update came to Cumulus)
<br>
= Bandwidth Considerations =
In order to provide near real-time updates, Cumulus uploads a very small file at regular intervals.
Most internet providers now place a limit on the amount of Bandwidth you can consume each month.
The file Cumulus uploads is less than 1024 bytes in size, but for the calculation we will assume 1024 bytes
On top of your internet connection bandwidth restrictions, you may also have bandwidth caps on your web server so this same figure should be considered for your webserver.
<br>
= Where is the file used =
The realtime.txt is used by:
*the 'gauges' page on the website produced by Cumulus
*[[CumulusRealtime]] -- the new application developed in [http://silverlight.net/ SilverLight]
*The [[WeatherConsole]] and [[Sidebar gadget]] [[:Category:AddOns|addons]]
<br>
= Format of the file =
{|
|-
! style="width:60px" | Field #
! style="width:80px" | Example
! style="width:450px" | Description
! style="width:90px" | Equivalent [[Webtags]]
|-
| 1
| 19/08/09
| date (always dd/mm/yy)
| <#date>
|-
|
| 16:03:45
|
| <#hour>:<#minute>
|-
|
| 8.4
| outside temperature
| <#temp>
|-
|
| 84
| [http://en.wikipedia.org/wiki/Relative_humidity relative humidity]
| <#hum>
|-
|
| 5.8
| [http://en.wikipedia.org/wiki/
| <#dew>
|-
|
|
| wind speed (average)
| <#wspeed>
|-
|
|
| latest wind speed
| <#wlatest>
|-
|
| 261
|
| <#bearing>
|-
|
| 0.0
| current rain rate (per hour)
| <#rrate>
|-
| 10
|
|
| <#rfall>
|-
| 11
|
| barometer
| <#press>
|-
| 12
| W
| current wind direction (compass point)
| <#currentwdir>
|-
| 13
|
| wind speed ([http://en.wikipedia.org/wiki/Beaufort_scale beaufort])
| <#beaufort>
|-
| 14
| km/h
| wind units - m/s, mph, km/h, kts
| <#windunit>
|-
| 15
| C
|
| <#tempunit>
|-
| 16
| hPa
|
| <#pressunit>
|-
| 17
| mm
|
| <#rainunit>
|-
| 18
| 146.6
| wind run (today)
| <#windrun>
|-
| 19
|
| pressure trend value
| <#presstrendval>
|-
| 20
|
| monthly rainfall
| <#rmonth>
|-
| 21
|
|
| <#ryear>
|-
| 22
|
|
| <#rfallY>
|-
| 23
|
| inside temperature
| <#intemp>
|-
| 24
| 57
| inside [http://en.wikipedia.org/wiki/Humidity humidity]
| <#inhum>
|-
| 25
| 3.6
|
| <#wchill>
|-
| 26
|
| temperature trend value
| <#temptrend>
|-
| 27
|
| today's high temp
| <#tempTH>
|-
| 28
| 12:00
| time of today's high temp (hh:mm)
| <#tTempTH>
|-
| 29
| 7.8
|
| <#tempTL>
|-
| 30
| 14:41
| time of today's low temp (hh:mm)
| <#TtempTL>
|-
| 31
| 37.4
|
| <#windTM>
|-
| 32
| 14:38
| time of today's high wind speed (average) (hh:mm)
| <#TwindTM>
|-
| 33
| 44.0
|
| <#wgustTM>
|-
| 34
| 14:28
| time of today's high wind gust (hh:mm)
| <#TwgustTM>
|-
| 35
| 999.8
|
| <#pressTH>
|-
| 36
| 16:01
| time of today's high pressure (hh:mm)
| <#TpressTH>
|-
| 37
| 998.4
|
| <#pressTL>
|-
| 38
| 12:06
| time of today's low pressure (hh:mm)
| <#TpressTL>
|-
| 39
| 1.8.7
| Cumulus version
| <#version>
|-
| 40
| 819
| Cumulus
| <#build>
|-
| 41
| 36.0
| 10-minute high gust
| <#wgust>
|-
| 42
|
| heat index
| <#heatindex>
|-
| 43
| 10.
| [http://en.wikipedia.org/wiki/Humidex humidex]
| <#humidex>
|-
| 44
| 13
| [http://en.wikipedia.org/wiki/
| <#UV>
|-
| 45
| 0.2
| [http://en.wikipedia.org/wiki/
| <#ET>
|-
| 46
| 14
| [http://en.wikipedia.org/wiki/
| <#SolarRad>
|-
| 47
| 260
| 10-minute average wind bearing (degrees)
| <#avgbearing>
|-
| 48
| 2.3
| rainfall last hour
| <#rhour>
|-
| 49
|
| The number of the current forecast as per [[Strings.ini]]. If the forecast is not being provided by the station and not being generated by Cumulus a value of 0 (zero) is returned
| <#forecastnumber>
|-
| 50
|
| Flag to indicate that the location of the station is currently in daylight (1 = yes, 0 = No)
| <#isdaylight>
|-
| 51
| 1
|
| <#SensorContactLost>
|-
| 52
| NNW
| Average wind direction
| <#wdir>
|-
| 53
| 2040
| Cloud base
| <#cloudbase> (value and units combined)
|-
| 54
| ft
| Cloud base units
|
|-
| 55
| 12.3
| Apparent Temperature
| <#apptemp>
|-
| 56
|
| Sunshine hours so far today
| <#SunshineHours>
|-
| 57
| 420.1
| Current theoretical max solar radiation
|
|-
| 58
| 1
| Is it sunny? 1 if the sun is shining, otherwise 0
|
|}
= Example of the file =
''(this is one complete line, although it may appear on this page as two or more due to screen width restrictions)''
<br> <tt>18/10/08 16:03:45 8.4 84 5.8 24.2 33.0 261 0.0 1.0 999.7 W 6 mph C mb mm 146.6 +0.1 85.2 588.4 11.6 20.3 57 3.6 -0.7 10.9 12:00 7.8 14:41 37.4 14:38 44.0 14:28 999.8 16:01 998.4 12:06 1.8.2 448 36.0 10.3 10.5 13 0.2 14 260 2.3 3 1 1 NNW 2040 ft 12.3 11.1 420.1 1</tt>
= Recreating the file using webtags =
Occasionally there is a requirement from some users to create a copy of the realtime.txt file and have it posted to a location at the normal Cumulus web update interval rather than the realtime interval.
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 that there are currently two small differences between the built-in realtime.txt and this version. With this version:
*The Beaufort wind speed will have a 'F' prefix (eg F2) which is omitted in the built-in version.
*
''(this is one complete line, although it may appear on this page as two or more due to screen width restrictions)''
<tt>
[[Category:
|