Realtime.txt: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[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) |
|||
[[file: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. |
|||
Notes: |
<br> Notes: |
||
*The realtime.txt file is NOT a log file and is constantly replaced. It does not therefore contain any historic data. |
|||
*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 |
*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) |
|||
=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= |
= Bandwidth Considerations = |
||
In order to provide near real-time updates, Cumulus uploads a very small file at regular intervals. |
In order to provide near real-time updates, Cumulus uploads a very small file at regular intervals. Typically this is 15 seconds buy depends on your setting above. |
||
Most internet providers now place a limit on the amount of Bandwidth you can consume each month. |
Most internet providers now place a limit on the amount of Bandwidth you can consume each month. Bandwidth is a figure representing the data you can upload and download. Doing such a regular upload will impact on your allowance. |
||
The file Cumulus uploads is less than 1024 bytes in size, but for the calculation we will assume 1024 bytes |
The file Cumulus uploads is less than 1024 bytes in size, but for the calculation we will assume 1024 bytes |
||
Line 31: | Line 28: | ||
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. |
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: |
|||
=Where is the file used= |
|||
*the 'gauges' page on the website produced by Cumulus |
|||
The realtime.txt is used by: |
|||
*[[CumulusRealtime]] -- the new application developed in [http://silverlight.net/ SilverLight] |
|||
*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]] |
*The [[WeatherConsole]] and [[Sidebar gadget]] [[:Category:AddOns|addons]] |
||
<br> |
|||
=Format of the file= |
= Format of the file = |
||
{| |
{| border="1" class="wikitable" |
||
|- |
|- |
||
!style="width:60px" | Field # |
! style="width:60px" | Field # |
||
!style="width:80px" | Example |
! style="width:80px" | Example |
||
!style="width:450px" | Description |
! style="width:450px" | Description |
||
!style="width:90px" | Equivalent [[Webtags]] |
! style="width:90px" | Equivalent [[Webtags]] |
||
|- |
|- |
||
| 1 |
|||
| 19/08/09 |
|||
| date (always dd/mm/yy) |
|||
| <#date> |
|||
|- |
|- |
||
| |
| 2 |
||
| 16:03:45 |
|||
|19/08/09 |
|||
| |
| time(always hh:mm:ss) |
||
| <#hour>:<#minute> |
|||
|<#date> |
|||
|- |
|- |
||
| |
| 3 |
||
| 8.4 |
|||
|16:03:45 |
|||
| outside temperature |
|||
|time(always hh:mm:ss) |
|||
| <#temp> |
|||
|<#hour>:<#minute> |
|||
|- |
|- |
||
| |
| 4 |
||
| 84 |
|||
|8.4 |
|||
| [http://en.wikipedia.org/wiki/Relative_humidity relative humidity] |
|||
|outside temperature |
|||
| <#hum> |
|||
|<#temp> |
|||
|- |
|- |
||
| |
| 5 |
||
| 5.8 |
|||
|84 |
|||
|[http://en.wikipedia.org/wiki/ |
| [http://en.wikipedia.org/wiki/Dewpoint dewpoint] |
||
| <#dew> |
|||
|<#hum> |
|||
|- |
|- |
||
| |
| 6 |
||
| |
| 24.2 |
||
| wind speed (average) |
|||
|[http://en.wikipedia.org/wiki/Dewpoint dewpoint] |
|||
| <#wspeed> |
|||
|<#dew> |
|||
|- |
|- |
||
| |
| 7 |
||
| |
| 33.0 |
||
|wind speed |
| latest wind speed reading |
||
| <#wlatest> |
|||
|<#wspeed> |
|||
|- |
|- |
||
| |
| 8 |
||
| 261 |
|||
|33.0 |
|||
| |
| wind bearing (degrees) |
||
| <#bearing> |
|||
|<#wlatest> |
|||
|- |
|- |
||
| |
| 9 |
||
| 0.0 |
|||
|261 |
|||
| current rain rate (per hour) |
|||
|wind bearing (degrees) |
|||
| <#rrate> |
|||
|<#bearing> |
|||
|- |
|- |
||
| 10 |
|||
|9 |
|||
| |
| 1.0 |
||
| |
| rain today |
||
| <#rfall> |
|||
|<#rrate> |
|||
|- |
|- |
||
| 11 |
|||
|10 |
|||
| |
| 999.7 |
||
| barometer |
|||
|rain today |
|||
| <#press> |
|||
|<#rfall> |
|||
|- |
|- |
||
| 12 |
|||
|11 |
|||
| W |
|||
|999.7 |
|||
| current wind direction (compass point) |
|||
|barometer |
|||
| <#currentwdir> |
|||
|<#press> |
|||
|- |
|- |
||
| 13 |
|||
|12 |
|||
| |
| 6 |
||
| wind speed ([http://en.wikipedia.org/wiki/Beaufort_scale beaufort]) |
|||
|current wind direction (compass point) |
|||
| <#beaufort> |
|||
|<#currentwdir> |
|||
|- |
|- |
||
| 14 |
|||
|13 |
|||
| km/h |
|||
|6 |
|||
| wind units - m/s, mph, km/h, kts |
|||
|wind speed ([http://en.wikipedia.org/wiki/Beaufort_scale beaufort]) |
|||
| <#windunit> |
|||
|<#beaufort> |
|||
|- |
|- |
||
| 15 |
|||
|14 |
|||
| C |
|||
|km/h |
|||
| |
| temperature units - degree C, degree F |
||
| <#tempunit> |
|||
|<#windunit> |
|||
|- |
|- |
||
| 16 |
|||
|15 |
|||
| hPa |
|||
|C |
|||
| |
| pressure units - MB, hPa, in |
||
| <#pressunit> |
|||
|<#tempunit> |
|||
|- |
|- |
||
| 17 |
|||
|16 |
|||
| mm |
|||
|hPa |
|||
| |
| rain units - mm, in |
||
| <#rainunit> |
|||
|<#pressunit> |
|||
|- |
|- |
||
| 18 |
|||
|17 |
|||
| 146.6 |
|||
|mm |
|||
| wind run (today) |
|||
|rain units - mm, in |
|||
| <#windrun> |
|||
|<#rainunit> |
|||
|- |
|- |
||
| 19 |
|||
|18 |
|||
| |
| +0.1 |
||
| pressure trend value |
|||
|wind run (today) |
|||
| <#presstrendval> |
|||
|<#windrun> |
|||
|- |
|- |
||
| 20 |
|||
|19 |
|||
| |
| 85.2 |
||
| monthly rainfall |
|||
|pressure trend value |
|||
| <#rmonth> |
|||
|<#presstrendval> |
|||
|- |
|- |
||
| 21 |
|||
|20 |
|||
| |
| 588.4 |
||
| |
| yearly rainfall |
||
| <#ryear> |
|||
|<#rmonth> |
|||
|- |
|- |
||
| 22 |
|||
|21 |
|||
| |
| 11.6 |
||
| |
| yesterday's rainfall |
||
| <#rfallY> |
|||
|<#ryear> |
|||
|- |
|- |
||
| 23 |
|||
|22 |
|||
| |
| 20.3 |
||
| inside temperature |
|||
|yesterday's rainfall |
|||
| <#intemp> |
|||
|<#rfallY> |
|||
|- |
|- |
||
| 24 |
|||
|23 |
|||
| 57 |
|||
|20.3 |
|||
| inside [http://en.wikipedia.org/wiki/Humidity humidity] |
|||
|inside temperature |
|||
| <#inhum> |
|||
|<#intemp> |
|||
|- |
|- |
||
| 25 |
|||
|24 |
|||
| 3.6 |
|||
|57 |
|||
| |
| [http://en.wikipedia.org/wiki/Wind_chill wind chill] |
||
| <#wchill> |
|||
|<#inhum> |
|||
|- |
|- |
||
| 26 |
|||
|25 |
|||
| |
| -0.7 |
||
| temperature trend value |
|||
|[http://en.wikipedia.org/wiki/Wind_chill wind chill] |
|||
| <#temptrend> |
|||
|<#wchill> |
|||
|- |
|- |
||
| 27 |
|||
|26 |
|||
| |
| 10.9 |
||
| today's high temp |
|||
|temperature trend value |
|||
| <#tempTH> |
|||
|<#temptrend> |
|||
|- |
|- |
||
| 28 |
|||
|27 |
|||
| 12:00 |
|||
|10.9 |
|||
|today's high temp |
| time of today's high temp (hh:mm) |
||
| <#tTempTH> |
|||
|<#tempTH> |
|||
|- |
|- |
||
| 29 |
|||
|28 |
|||
| 7.8 |
|||
|12:00 |
|||
| |
| today's low temp |
||
| <#tempTL> |
|||
|<#tTempTH> |
|||
|- |
|- |
||
| 30 |
|||
|29 |
|||
| 14:41 |
|||
|7.8 |
|||
|today's low temp |
| time of today's low temp (hh:mm) |
||
| <#TtempTL> |
|||
|<#tempTL> |
|||
|- |
|- |
||
| 31 |
|||
|30 |
|||
| 37.4 |
|||
|14:41 |
|||
| |
| today's high wind speed (average) |
||
| <#windTM> |
|||
|<#TtempTL> |
|||
|- |
|- |
||
| 32 |
|||
|31 |
|||
| 14:38 |
|||
|37.4 |
|||
|today's high wind speed (average) |
| time of today's high wind speed (average) (hh:mm) |
||
| <#TwindTM> |
|||
|<#windTM> |
|||
|- |
|- |
||
| 33 |
|||
|32 |
|||
| 44.0 |
|||
|14:38 |
|||
| |
| today's high wind gust |
||
| <#wgustTM> |
|||
|<#TwindTM> |
|||
|- |
|- |
||
| 34 |
|||
|33 |
|||
| 14:28 |
|||
|44.0 |
|||
|today's high wind gust |
| time of today's high wind gust (hh:mm) |
||
| <#TwgustTM> |
|||
|<#wgustTM> |
|||
|- |
|- |
||
| 35 |
|||
|34 |
|||
| 999.8 |
|||
|14:28 |
|||
| |
| today's high pressure |
||
| <#pressTH> |
|||
|<#TwgustTM> |
|||
|- |
|- |
||
| 36 |
|||
|35 |
|||
| 16:01 |
|||
|999.8 |
|||
|today's high pressure |
| time of today's high pressure (hh:mm) |
||
| <#TpressTH> |
|||
|<#pressTH> |
|||
|- |
|- |
||
| 37 |
|||
|36 |
|||
| 998.4 |
|||
|16:01 |
|||
| |
| today's low pressure |
||
| <#pressTL> |
|||
|<#TpressTH> |
|||
|- |
|- |
||
| 38 |
|||
|37 |
|||
| 12:06 |
|||
|998.4 |
|||
|today's low pressure |
| time of today's low pressure (hh:mm) |
||
| <#TpressTL> |
|||
|<#pressTL> |
|||
|- |
|- |
||
| 39 |
|||
|38 |
|||
| 1.8.7 |
|||
|12:06 |
|||
| Cumulus version |
|||
|time of today's low pressure (hh:mm) |
|||
| <#version> |
|||
|<#TpressTL> |
|||
|- |
|- |
||
| 40 |
|||
|39 |
|||
| 819 |
|||
|1.8.7 |
|||
|Cumulus |
| Cumulus build number |
||
| <#build> |
|||
|<#version> |
|||
|- |
|- |
||
| 41 |
|||
|40 |
|||
| 36.0 |
|||
|819 |
|||
| 10-minute high gust |
|||
|Cumulus build number |
|||
| <#wgust> |
|||
|<#build> |
|||
|- |
|- |
||
| 42 |
|||
|41 |
|||
| |
| 10.3 |
||
| heat index |
|||
|10-minute high gust |
|||
| <#heatindex> |
|||
|<#wgust> |
|||
|- |
|- |
||
| 43 |
|||
|42 |
|||
|10. |
| 10.5 |
||
| [http://en.wikipedia.org/wiki/Humidex humidex] |
|||
|heat index |
|||
| <#humidex> |
|||
|<#heatindex> |
|||
|- |
|- |
||
| 44 |
|||
|43 |
|||
| 13 |
|||
|10.5 |
|||
|[http://en.wikipedia.org/wiki/ |
| [http://en.wikipedia.org/wiki/Uv_index UV Index] |
||
| <#UV> |
|||
|<#humidex> |
|||
|- |
|- |
||
| 45 |
|||
|44 |
|||
| 0.2 |
|||
|13 |
|||
|[http://en.wikipedia.org/wiki/ |
| [http://en.wikipedia.org/wiki/Evapotranspiration evapotranspiration] today |
||
| <#ET> |
|||
|<#UV> |
|||
|- |
|- |
||
| 46 |
|||
|45 |
|||
| 14 |
|||
|0.2 |
|||
|[http://en.wikipedia.org/wiki/ |
| [http://en.wikipedia.org/wiki/Solar_radiation solar radiation] W/m2 |
||
| <#SolarRad> |
|||
|<#ET> |
|||
|- |
|- |
||
| 47 |
|||
|46 |
|||
| 260 |
|||
|14 |
|||
| 10-minute average wind bearing (degrees) |
|||
|[http://en.wikipedia.org/wiki/Solar_radiation solar radiation] W/m2 |
|||
| <#avgbearing> |
|||
|<#SolarRad> |
|||
|- |
|- |
||
| 48 |
|||
|47 |
|||
| 2.3 |
|||
|260 |
|||
| rainfall last hour |
|||
|10-minute average wind bearing (degrees) |
|||
| <#rhour> |
|||
|<#avgbearing> |
|||
|- |
|- |
||
| 49 |
|||
|48 |
|||
| |
| 3 |
||
| 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 |
|||
|rainfall last hour |
|||
| <#forecastnumber> |
|||
|<#rhour> |
|||
|- |
|- |
||
| 50 |
|||
|49 |
|||
| |
| 1 |
||
| Flag to indicate that the location of the station is currently in daylight (1 = yes, 0 = No) |
|||
|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 |
|||
| <#isdaylight> |
|||
|<#forecastnumber> |
|||
|- |
|- |
||
| 51 |
|||
|50 |
|||
|1 |
| 1 |
||
| |
| If the station has lost contact with its remote sensors "Fine Offset only", a Flag number is given (1 = Yes, 0 = No) |
||
| <#SensorContactLost> |
|||
|<#isdaylight> |
|||
|- |
|- |
||
| 52 |
|||
|51 |
|||
| NNW |
|||
|1 |
|||
| Average wind direction |
|||
|If the station has lost contact with its remote sensors "Fine Offset only", a Flag number is given (1 = Yes, 0 = No) |
|||
| <#wdir> |
|||
|<#SensorContactLost> |
|||
|- |
|- |
||
| 53 |
|||
|52 |
|||
| 2040 |
|||
|NNW |
|||
| Cloud base |
|||
|Average wind direction |
|||
| <#cloudbase> (value and units combined) |
|||
|<#wdir> |
|||
|- |
|- |
||
| 54 |
|||
|53 |
|||
| ft |
|||
|2040 |
|||
|Cloud base |
| Cloud base units |
||
| |
| <#cloudbase> (value and units combined) |
||
|- |
|- |
||
| 55 |
|||
|54 |
|||
| 12.3 |
|||
|ft |
|||
| Apparent Temperature |
|||
|Cloud base units |
|||
| <#apptemp> |
|||
|<#cloudbase> (value and units combined) |
|||
|- |
|- |
||
| 56 |
|||
|55 |
|||
| |
| 11.1 |
||
| Sunshine hours so far today |
|||
|Apparent Temperature |
|||
| <#SunshineHours> |
|||
|<#apptemp> |
|||
|- |
|||
|56 |
|||
|11.1 |
|||
|Sunshine hours so far today |
|||
|<#SunshineHours> |
|||
|- |
|- |
||
|57 |
| 57 |
||
|420.1 |
| 420.1 |
||
|Current theoretical max solar radiation |
| Current theoretical max solar radiation |
||
| |
| <#CurrentSolarMax> |
||
|- |
|- |
||
|58 |
| 58 |
||
|1 |
| 1 |
||
|Is it sunny? 1 if the sun is shining, otherwise 0 |
| Is it sunny? 1 if the sun is shining, otherwise 0 |
||
| |
| <#IsSunny> |
||
|} |
|} |
||
=Example of the file= |
= 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)'' |
''(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 = |
|||
<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> |
|||
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. |
|||
=Recreating the file using webtags= |
|||
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. |
|||
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. |
|||
Note that there are currently two small differences between the built-in realtime.txt and this version. With this version: |
|||
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. |
|||
*The Beaufort wind speed will have a 'F' prefix (eg F2) which is omitted in the built-in version. |
|||
Note that there are currently two small differences between the built-in realtime.txt and this version. With this version: |
|||
* |
*The temperature unit is prefixed with the string '&deg;' which is omitted in the built-in version. |
||
* The temperature unit is prefixed with the string '&deg;' 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)'' |
''(this is one complete line, although it may appear on this page as two or more due to screen width restrictions)'' |
||
<tt> |
<tt><#date format=dd/mm/yy> <#timehhmmss> <#temp> <#hum> <#dew> <#wspeed> <#wlatest> <#bearing> <#rrate> <#rfall> <#press> <#currentwdir> <#beaufort> <#windunit> <#tempunit> <#pressunit> <#rainunit> <#windrun> <#presstrendval> <#rmonth> <#ryear> <#rfallY> <#intemp> <#inhum> <#wchill> <#temptrend> <#tempTH> <#TtempTH> <#tempTL> <#TtempTL> <#windTM> <#TwindTM> <#wgustTM> <#TwgustTM> <#pressTH> <#TpressTH> <#pressTL> <#TpressTL> <#version> <#build> <#wgust> <#heatindex> <#humidex> <#UV> <#ET> <#SolarRad> <#avgbearing> <#rhour> <#forecastnumber> <#isdaylight> <#SensorContactLost> <#wdir> <#cloudbase> <#apptemp> <#SunshineHours> <#CurrentSolarMax> <#IsSunny></tt> |
||
[[Category: |
[[Category:Log_Files]] |
Revision as of 14:42, 23 May 2011
Although not technically a 'log file' it is automatically produced by Cumulus and follows a similar format to the other Log files.
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.
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.
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.
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
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)
Bandwidth Considerations
In order to provide near real-time updates, Cumulus uploads a very small file at regular intervals. Typically this is 15 seconds buy depends on your setting above.
Most internet providers now place a limit on the amount of Bandwidth you can consume each month. Bandwidth is a figure representing the data you can upload and download. Doing such a regular upload will impact on your allowance.
The file Cumulus uploads is less than 1024 bytes in size, but for the calculation we will assume 1024 bytes
During a month (31 days) the upload process will consume roughly 175 Mbytes of bandwidth -- this is a tiny consideration as usually bandwidth restrictions from your provider start in the Gigabytes (Gb) range, not Megabytes (Mb).
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.
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 SilverLight
- The WeatherConsole and Sidebar gadget addons
Format of the file
Field # | Example | Description | Equivalent Webtags |
---|---|---|---|
1 | 19/08/09 | date (always dd/mm/yy) | <#date> |
2 | 16:03:45 | time(always hh:mm:ss) | <#hour>:<#minute> |
3 | 8.4 | outside temperature | <#temp> |
4 | 84 | relative humidity | <#hum> |
5 | 5.8 | dewpoint | <#dew> |
6 | 24.2 | wind speed (average) | <#wspeed> |
7 | 33.0 | latest wind speed reading | <#wlatest> |
8 | 261 | wind bearing (degrees) | <#bearing> |
9 | 0.0 | current rain rate (per hour) | <#rrate> |
10 | 1.0 | rain today | <#rfall> |
11 | 999.7 | barometer | <#press> |
12 | W | current wind direction (compass point) | <#currentwdir> |
13 | 6 | wind speed (beaufort) | <#beaufort> |
14 | km/h | wind units - m/s, mph, km/h, kts | <#windunit> |
15 | C | temperature units - degree C, degree F | <#tempunit> |
16 | hPa | pressure units - MB, hPa, in | <#pressunit> |
17 | mm | rain units - mm, in | <#rainunit> |
18 | 146.6 | wind run (today) | <#windrun> |
19 | +0.1 | pressure trend value | <#presstrendval> |
20 | 85.2 | monthly rainfall | <#rmonth> |
21 | 588.4 | yearly rainfall | <#ryear> |
22 | 11.6 | yesterday's rainfall | <#rfallY> |
23 | 20.3 | inside temperature | <#intemp> |
24 | 57 | inside humidity | <#inhum> |
25 | 3.6 | wind chill | <#wchill> |
26 | -0.7 | temperature trend value | <#temptrend> |
27 | 10.9 | today's high temp | <#tempTH> |
28 | 12:00 | time of today's high temp (hh:mm) | <#tTempTH> |
29 | 7.8 | today's low temp | <#tempTL> |
30 | 14:41 | time of today's low temp (hh:mm) | <#TtempTL> |
31 | 37.4 | today's high wind speed (average) | <#windTM> |
32 | 14:38 | time of today's high wind speed (average) (hh:mm) | <#TwindTM> |
33 | 44.0 | today's high wind gust | <#wgustTM> |
34 | 14:28 | time of today's high wind gust (hh:mm) | <#TwgustTM> |
35 | 999.8 | today's high pressure | <#pressTH> |
36 | 16:01 | time of today's high pressure (hh:mm) | <#TpressTH> |
37 | 998.4 | today's low pressure | <#pressTL> |
38 | 12:06 | time of today's low pressure (hh:mm) | <#TpressTL> |
39 | 1.8.7 | Cumulus version | <#version> |
40 | 819 | Cumulus build number | <#build> |
41 | 36.0 | 10-minute high gust | <#wgust> |
42 | 10.3 | heat index | <#heatindex> |
43 | 10.5 | humidex | <#humidex> |
44 | 13 | UV Index | <#UV> |
45 | 0.2 | evapotranspiration today | <#ET> |
46 | 14 | solar radiation W/m2 | <#SolarRad> |
47 | 260 | 10-minute average wind bearing (degrees) | <#avgbearing> |
48 | 2.3 | rainfall last hour | <#rhour> |
49 | 3 | 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 | 1 | Flag to indicate that the location of the station is currently in daylight (1 = yes, 0 = No) | <#isdaylight> |
51 | 1 | If the station has lost contact with its remote sensors "Fine Offset only", a Flag number is given (1 = Yes, 0 = No) | <#SensorContactLost> |
52 | NNW | Average wind direction | <#wdir> |
53 | 2040 | Cloud base | <#cloudbase> (value and units combined) |
54 | ft | Cloud base units | <#cloudbase> (value and units combined) |
55 | 12.3 | Apparent Temperature | <#apptemp> |
56 | 11.1 | Sunshine hours so far today | <#SunshineHours> |
57 | 420.1 | Current theoretical max solar radiation | <#CurrentSolarMax> |
58 | 1 | Is it sunny? 1 if the sun is shining, otherwise 0 | <#IsSunny> |
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)
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
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.
- The temperature unit is prefixed with the string '°' 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)
<#date format=dd/mm/yy> <#timehhmmss> <#temp> <#hum> <#dew> <#wspeed> <#wlatest> <#bearing> <#rrate> <#rfall> <#press> <#currentwdir> <#beaufort> <#windunit> <#tempunit> <#pressunit> <#rainunit> <#windrun> <#presstrendval> <#rmonth> <#ryear> <#rfallY> <#intemp> <#inhum> <#wchill> <#temptrend> <#tempTH> <#TtempTH> <#tempTL> <#TtempTL> <#windTM> <#TwindTM> <#wgustTM> <#TwgustTM> <#pressTH> <#TpressTH> <#pressTL> <#TpressTL> <#version> <#build> <#wgust> <#heatindex> <#humidex> <#UV> <#ET> <#SolarRad> <#avgbearing> <#rhour> <#forecastnumber> <#isdaylight> <#SensorContactLost> <#wdir> <#cloudbase> <#apptemp> <#SunshineHours> <#CurrentSolarMax> <#IsSunny>