Realtime.txt: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m (Grammar & spelling)
(Added webtag equivalents)
Line 47: Line 47:
!style="width:80px" | Example
!style="width:80px" | Example
!style="width:450px" | Description
!style="width:450px" | Description
!style="width:90px" | Equivalent [[Webtags]]
|-
|-
|-
|-
Line 52: Line 53:
|19/08/09
|19/08/09
|date (always dd/mm/yy)
|date (always dd/mm/yy)
|<#date>
|-
|-
|2
|2
|16:03:45
|16:03:45
|time(always hh:mm:ss)
|time(always hh:mm:ss)
|<#time>
|-
|-
|3
|3
|8.4
|8.4
|outside temperature
|outside temperature
|<#temp>
|-
|-
|4
|4
|84
|84
|[http://en.wikipedia.org/wiki/Relative_humidity relative humidity]
|[http://en.wikipedia.org/wiki/Relative_humidity relative humidity]
|<#hum>
|-
|-
|5
|5
|5.8
|5.8
|[http://en.wikipedia.org/wiki/Dewpoint dewpoint]
|[http://en.wikipedia.org/wiki/Dewpoint dewpoint]
|<#dew>
|-
|-
|6
|6
|24.2
|24.2
|wind speed (average)
|wind speed (average)
|<#wspeed>
|-
|-
|7
|7
|33.0
|33.0
|latest wind speed reading
|latest wind speed reading
|<#wlatest>
|-
|-
|8
|8
|261
|261
|wind bearing (degrees)
|wind bearing (degrees)
|<#bearing>
|-
|-
|9
|9
|0.0
|0.0
|current rain rate (per hour)
|current rain rate (per hour)
|<#rrate>
|-
|-
|10
|10
|1.0
|1.0
|rain today
|rain today
|<#rfall>
|-
|-
|11
|11
|999.7
|999.7
|barometer
|barometer
|<#press>
|-
|-
|12
|12
|W
|W
|wind direction
|wind direction
|<#wdir>
|-
|-
|13
|13
|6
|6
|wind speed ([http://en.wikipedia.org/wiki/Beaufort_scale beaufort])
|wind speed ([http://en.wikipedia.org/wiki/Beaufort_scale beaufort])
|<#beaufort>
|-
|-
|14
|14
|km/h
|km/h
|wind units - m/s, mph, km/h, kts
|wind units - m/s, mph, km/h, kts
|<#windunit>
|-
|-
|15
|15
|C
|C
|temperature units - degree C, degree F
|temperature units - degree C, degree F
|<#tempunit>
|-
|-
|16
|16
|hPa
|hPa
|pressure units - MB, hPa, in
|pressure units - MB, hPa, in
|<#pressunit>
|-
|-
|17
|17
|mm
|mm
|rain units - mm, in
|rain units - mm, in
|<#rainunit>
|-
|-
|18
|18
|146.6
|146.6
|wind run (today)
|wind run (today)
|<#windrun>
|-
|-
|19
|19
| +0.1
| +0.1
|pressure trend value
|pressure trend value
|<#presstrendval>
|-
|-
|20
|20
|85.2
|85.2
|monthly rainfall
|monthly rainfall
|<#rmonth>
|-
|-
|21
|21
|588.4
|588.4
|yearly rainfall
|yearly rainfall
|<#ryear>
|-
|-
|22
|22
|11.6
|11.6
|yesterday's rainfall
|yesterday's rainfall
|<#rfallY>
|-
|-
|23
|23
|20.3
|20.3
|inside temperature
|inside temperature
|<#intemp>
|-
|-
|24
|24
|57
|57
|inside [http://en.wikipedia.org/wiki/Humidity humidity]
|inside [http://en.wikipedia.org/wiki/Humidity humidity]
|<#inhum>
|-
|-
|25
|25
|3.6
|3.6
|[http://en.wikipedia.org/wiki/Wind_chill wind chill]
|[http://en.wikipedia.org/wiki/Wind_chill wind chill]
|<#wchill>
|-
|-
|26
|26
| -0.7
| -0.7
|temperature trend value
|temperature trend value
|<#temptrendval>
|-
|-
|27
|27
|10.9
|10.9
|today's high temp
|today's high temp
|<#tempTH>
|-
|-
|28
|28
|12:00
|12:00
|time of today's high temp (hh:mm)
|time of today's high temp (hh:mm)
|<#tTempTH>
|-
|-
|29
|29
|7.8
|7.8
|today's low temp
|today's low temp
|<#tempTL>
|-
|-
|30
|30
|14:41
|14:41
|time of today's low temp (hh:mm)
|time of today's low temp (hh:mm)
|<#TtempTL>
|-
|-
|31
|31
|37.4
|37.4
|today's high wind speed (average)
|today's high wind speed (average)
|<#windTM>
|-
|-
|32
|32
|14:38
|14:38
|time of today's high wind speed (average) (hh:mm)
|time of today's high wind speed (average) (hh:mm)
|<#TwindTM>
|-
|-
|33
|33
|44.0
|44.0
|today's high wind gust
|today's high wind gust
|<#wgustTM>
|-
|-
|34
|34
|14:28
|14:28
|time of today's high wind gust (hh:mm)
|time of today's high wind gust (hh:mm)
|<#TwgustTM>
|-
|-
|35
|35
|999.8
|999.8
|today's high pressure
|today's high pressure
|<#pressTH>
|-
|-
|36
|36
|16:01
|16:01
|time of today's high pressure (hh:mm)
|time of today's high pressure (hh:mm)
|<#TpressTH>
|-
|-
|37
|37
|998.4
|998.4
|today's low pressure
|today's low pressure
|<#pressTL>
|-
|-
|38
|38
|12:06
|12:06
|time of today's low pressure (hh:mm)
|time of today's low pressure (hh:mm)
|<#TpressTL>
|-
|-
|39
|39
|1.8.7
|1.8.7
|Cumulus version
|Cumulus version
|<#version>
|-
|-
|40
|40
|819
|819
|Cumulus build number
|Cumulus build number
|<#build>
|-
|-
|41
|41
|36.0
|36.0
|10-minute high gust
|10-minute high gust
|<#wgust>
|-
|-
|42
|42
|10.3
|10.3
|heat index
|heat index
|<#heatindex>
|-
|-
|43
|43
|10.5
|10.5
|[http://en.wikipedia.org/wiki/Humidex humidex]
|[http://en.wikipedia.org/wiki/Humidex humidex]
|<#humidex>
|-
|-
|44
|44
|13
|13
|[http://en.wikipedia.org/wiki/Uv_index UV Index]
|[http://en.wikipedia.org/wiki/Uv_index UV Index]
|<#UV>
|-
|-
|45
|45
|0.2
|0.2
|[http://en.wikipedia.org/wiki/Evapotranspiration evapotranspiration] today
|[http://en.wikipedia.org/wiki/Evapotranspiration evapotranspiration] today
|<#ET>
|-
|-
|46
|46
|14
|14
|[http://en.wikipedia.org/wiki/Solar_radiation solar radiation] W/m2
|[http://en.wikipedia.org/wiki/Solar_radiation solar radiation] W/m2
|<#SolarRad>
|-
|-
|47
|47
|260
|260
|10-minute average wind bearing (degrees)
|10-minute average wind bearing (degrees)
|<#avgbearing>
|-
|-
|48
|48
|2.3
|2.3
|rainfall last hour
|rainfall last hour
|<#rhour>
|-
|-
|49
|49
|3
|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
|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
|50
|1
|1
|Flag to indicate that the location of the station is currently in daylight (1 = yes, 0 = No)
|Flag to indicate that the location of the station is currently in daylight (1 = yes, 0 = No)
|<#isdaylight>
|-
|-
|51
|51
|1
|1
|If the station has lost contact with its remote sensors "Fine Offset only", a Flag number is given (1 = Yes, 0 = No)
|If the station has lost contact with its remote sensors "Fine Offset only", a Flag number is given (1 = Yes, 0 = No)
|<#SensorContactLost>
|}
|}



=Example of the file=
=Example of the file=

Revision as of 18:45, 8 April 2010

CumulusInternetSettingsScreen.png

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)


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:


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) <#time>
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 wind direction <#wdir>
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 <#temptrendval>
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>

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