(2 intermediate revisions by the same user not shown)
Line 5:
Line 5:
* '''buildnum''': build number as integer (example: 1673)
* '''buildnum''': build number as integer (example: 1673)
* '''platform''': string that specifies hw platform (example: "TL-MR3020")
* '''platform''': string that specifies hw platform (example: "TL-MR3020")
−
* '''station''': string that specifies selected weather station (expample: "WMR-200")
+
* '''station''': string that specifies selected weather station (example: "WMR-200")
+
* '''stationnum''': integer that specifies selected weather station (example: 49)
* '''language''': language used on Meteobridge's web interface (example: "English")
* '''language''': language used on Meteobridge's web interface (example: "English")
* '''timezone''': defined timezone (example: "Europe/Berlin")
* '''timezone''': defined timezone (example: "Europe/Berlin")
Line 11:
Line 12:
* '''longitude''': longitude as float (example: 9.885357)
* '''longitude''': longitude as float (example: 9.885357)
* '''uptime''': uptime of Meteobridge in seconds
* '''uptime''': uptime of Meteobridge in seconds
+
* '''cpuload1m''', '''cpuload5m''', '''cpuload15m''' shows average cpu load during last 1, 5, 15 minutes
+
* '''ip''': IP address
+
* '''lanip''': IP address on the LAN port (if connected)
+
* '''wlanip''': IP address of the WLAN (if connected)
* '''lastdata''': seconds passed since last piece of data received from weather station, returns -1 if no data received. Does not distinguish between useful and useless garbage data
* '''lastdata''': seconds passed since last piece of data received from weather station, returns -1 if no data received. Does not distinguish between useful and useless garbage data
−
* '''lastgooddata''': seconds passed since last piece of meaningfull sensor data recorded, returns -1 if no sensor data recorded so far
+
* '''lastgooddata''': seconds passed since last piece of meaningful sensor data recorded, returns -1 if no sensor data recorded so far
+
* '''solarmax''': maximum possible solar radiation on that day at that point of the earth. Needs latitude and longitude set and pressure data available.
* '''lunarage''': days passes since new moon as integer (example: 28)
* '''lunarage''': days passes since new moon as integer (example: 28)
* '''lunarpercent''': lunarphase given as percentage from 0% (new moon) to 100% (full moon)
* '''lunarpercent''': lunarphase given as percentage from 0% (new moon) to 100% (full moon)
* '''lunarsegment''': lunarphase segment as integer (0 = new moon, 1-3 = growing moon: quarter, half, three quarters, 4 = full moon, 5-7 = shrinking moon: three quarter, half, quarter)
* '''lunarsegment''': lunarphase segment as integer (0 = new moon, 1-3 = growing moon: quarter, half, three quarters, 4 = full moon, 5-7 = shrinking moon: three quarter, half, quarter)
* '''daylength''': length of day (example: "11:28")
* '''daylength''': length of day (example: "11:28")
−
* '''civildaylength''': alternative method for daylength computation (example: "12:38")
+
* '''daylengthmin''': length of shortest day of the year
−
* '''nauticaldaylength''': alternative method for daylength computation (example: "14:00")
+
* '''daylengthmax''': length of longest day of the year
−
* '''sunrise''': time of sunrise in local time. Can be converterd to UTC by applying "=utc" to the variable (example: "06:47", resp. "05:47")
+
* '''civildaylength''': alternative method for day length computation (example: "12:38")
−
* '''sunset'''. time of sunset in local time. Can be converterd to UTC by applying "=utc" to the variable (example: "18:15", resp. "17:15")
+
* '''civildaylengthmin''': length of shortest day of the year according to civil day length computation
−
* '''civilsunrise''', '''civilsunset''', '''nauticalsunrise''', '''nauticalsunset''': alternative computations for sunset and sunrise.
+
* '''civildaylengthmax''': length of longest day of the year according to civil day length computation
−
* '''daynightflag''': returns "D" when there is daylight, otherwise "N".
+
* '''nauticaldaylength''': alternative method for day length computation (example: "14:00")
−
* '''isday''': returns "1" when there is daylight, otherwise "0".
+
* '''nauticaldaylengthmin''': length of shortest day of the year according to nautical day length computation
−
* '''isnight''': returns "0" when there is daylight, otherwise "1".
+
* '''nauticaldaylengthmax''': length of longest day of the year according to nautical day length computation
−
* '''moonrise''': time of moonrise in local time. Can be converterd to UTC by applying "=utc" to the variable. Please notice that not every day has a moonrise time, therefore, variable can be non-existent on certain days (example: "05:46", resp. "04:46")
+
* '''sunrise''': returns time of astronomical sunrise in local time. Can be converted to UTC by applying "=utc" to the variable (example: "06:47", resp. "05:47") or can be converted to 12h time mode by applying "=apm" (example: "8:45AM").
−
* '''moonset''': time of moonset in local time. Can be converterd to UTC by applying "=utc" to the variable. Please notice that not every day has a moonset time, therefore, variable can be non-existent on certain days (example: "17:00", resp. "16:00")
+
* '''sunset''': returns time of astronomical sunset in local time. Can be converted to UTC by applying "=utc" to the variable (example: "18:15", resp. "17:15") or can be converted to 12h time mode by applying "=apm" (example: "12:45AM").
+
* '''civilsunrise''', '''civilsunset''', '''nauticalsunrise''', '''nauticalsunset''': alternative computations for sunset and sunrise. These can also be converted to UTC ("=utc") or AM/PM ("=apm") as "sunrise and sunset".
+
* '''daynightflag''': returns "D" when there is daylight, otherwise "N" (civil sunrise/sunset is used as reference).
+
* '''isday''': returns "1" when there is daylight, otherwise "0" (civil sunrise/sunset is used as reference).
+
* '''isnight''': returns "0" when there is daylight, otherwise "1" (civil sunrise/sunset is used as reference).
+
* '''moonrise''': time of moonrise in local time. Can be converted to UTC or AP/PM notation by applying "=utc" resp. "=apm" to the variable. Please notice that not every day has a moonrise time, therefore, variable can be non-existent on certain days (example: "05:46", resp. "04:46")
+
* '''moonset''': time of moonset in local time. Can be converted to UTC or AP/PM notation by applying "=utc" resp. "=apm" to the variable. Please notice that not every day has a moonset time, therefore, variable can be non-existent on certain days (example: "17:00", resp. "16:00")
* '''graphA''': returns URL of the user's Meteoplug chart "*instruments-black"
* '''graphA''': returns URL of the user's Meteoplug chart "*instruments-black"
* '''graphB''': returns URL of the user's Meteoplug chart "*instruments-black-imp"
* '''graphB''': returns URL of the user's Meteoplug chart "*instruments-black-imp"
Latest revision as of 15:09, 3 January 2018
System Variables
Meteobridge provides some additional variables that tell details not directly related to weather conditions. Sensor name is "mbsystem", defined selectors are:
mac: Meteobridge MAC hardware address (example: "40:01:FE:23:12:A8")
swversion: Meteobridge version string (example: "1.1")
buildnum: build number as integer (example: 1673)
platform: string that specifies hw platform (example: "TL-MR3020")
station: string that specifies selected weather station (example: "WMR-200")
stationnum: integer that specifies selected weather station (example: 49)
language: language used on Meteobridge's web interface (example: "English")
timezone: defined timezone (example: "Europe/Berlin")
latitude: latitude as float (example: 53.875120)
longitude: longitude as float (example: 9.885357)
uptime: uptime of Meteobridge in seconds
cpuload1m, cpuload5m, cpuload15m shows average cpu load during last 1, 5, 15 minutes
ip: IP address
lanip: IP address on the LAN port (if connected)
wlanip: IP address of the WLAN (if connected)
lastdata: seconds passed since last piece of data received from weather station, returns -1 if no data received. Does not distinguish between useful and useless garbage data
lastgooddata: seconds passed since last piece of meaningful sensor data recorded, returns -1 if no sensor data recorded so far
solarmax: maximum possible solar radiation on that day at that point of the earth. Needs latitude and longitude set and pressure data available.
lunarage: days passes since new moon as integer (example: 28)
lunarpercent: lunarphase given as percentage from 0% (new moon) to 100% (full moon)
lunarsegment: lunarphase segment as integer (0 = new moon, 1-3 = growing moon: quarter, half, three quarters, 4 = full moon, 5-7 = shrinking moon: three quarter, half, quarter)
daylength: length of day (example: "11:28")
daylengthmin: length of shortest day of the year
daylengthmax: length of longest day of the year
civildaylength: alternative method for day length computation (example: "12:38")
civildaylengthmin: length of shortest day of the year according to civil day length computation
civildaylengthmax: length of longest day of the year according to civil day length computation
nauticaldaylength: alternative method for day length computation (example: "14:00")
nauticaldaylengthmin: length of shortest day of the year according to nautical day length computation
nauticaldaylengthmax: length of longest day of the year according to nautical day length computation
sunrise: returns time of astronomical sunrise in local time. Can be converted to UTC by applying "=utc" to the variable (example: "06:47", resp. "05:47") or can be converted to 12h time mode by applying "=apm" (example: "8:45AM").
sunset: returns time of astronomical sunset in local time. Can be converted to UTC by applying "=utc" to the variable (example: "18:15", resp. "17:15") or can be converted to 12h time mode by applying "=apm" (example: "12:45AM").
civilsunrise, civilsunset, nauticalsunrise, nauticalsunset: alternative computations for sunset and sunrise. These can also be converted to UTC ("=utc") or AM/PM ("=apm") as "sunrise and sunset".
daynightflag: returns "D" when there is daylight, otherwise "N" (civil sunrise/sunset is used as reference).
isday: returns "1" when there is daylight, otherwise "0" (civil sunrise/sunset is used as reference).
isnight: returns "0" when there is daylight, otherwise "1" (civil sunrise/sunset is used as reference).
moonrise: time of moonrise in local time. Can be converted to UTC or AP/PM notation by applying "=utc" resp. "=apm" to the variable. Please notice that not every day has a moonrise time, therefore, variable can be non-existent on certain days (example: "05:46", resp. "04:46")
moonset: time of moonset in local time. Can be converted to UTC or AP/PM notation by applying "=utc" resp. "=apm" to the variable. Please notice that not every day has a moonset time, therefore, variable can be non-existent on certain days (example: "17:00", resp. "16:00")
graphA: returns URL of the user's Meteoplug chart "*instruments-black"
graphB: returns URL of the user's Meteoplug chart "*instruments-black-imp"
graphC: returns URL of the user's Meteoplug chart "*iphone-black"
graphD: returns URL of the user's Meteoplug chart "*iphone-black-imp"
graphE: returns URL of the user's Meteoplug chart "*iphone-tw-2d"
graphF: returns URL of the user's Meteoplug chart "*iphone-tw-2d-imp"
graphG: returns URL of the user's Meteoplug chart "*iphone-pr-2d"
graphH: returns URL of the user's Meteoplug chart "*iphone-pr-2d-imp"