User Tools

Site Tools


get_weather_conditions_and_forecast

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
get_weather_conditions_and_forecast [2019/01/09 10:35] akuzmukget_weather_conditions_and_forecast [2019/01/09 10:41] akuzmuk
Line 1: Line 1:
 ===== Weather and resource monitoring ===== ===== Weather and resource monitoring =====
 +
 +
 +==== GetCurrentWeather() ====
 +
 +The GetCurrentWeather function returns the current weather conditions at the WebHMI installation location. The data is being updated approximately every two hours. The service requires an Internet connection, an account in Level2 and a subscription to the weather forecast. The function is available since version 2.5.2400.
 +
 +If for some reason the data has not been received, the value nil will be returned.
 +
 +The function returns a table with the following fields:
 +
 +^time | The time for which the weather data was received |
 +^text | A short textual description of the current weather|
 +^temperature | Air temperature in degrees Celsius|
 +^pressure | Atmospheric pressure in hPa| 
 +^humidity | Relative air humidity in %|
 +^windDirection | The direction of the wind origin, metrological degrees (north— 0 degrees)|
 +^windSpeed | Wind speed in m/s|
 +^cloudness | Covering the sky with clouds as a percentage|
 +^rain | Precipitation (rain), in mm|
 +^snow | Precipitation (snow), in mm|
 +
  
  
get_weather_conditions_and_forecast.txt · Last modified: 2023/02/20 10:28 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki