The OpenWeatherMap interface communicates via the Internet to retrieve weather data. Both current data and a forecast every three hours up to five days are used. The weather service is available for free.
The location and API key are stored in the gateway. Therefore, only one location can be used per interface. An API key can be obtained from the website of openweathermap.org. This should be created separately for each customer, as the API key is always visible.
The language of the weather data can be configured under the Advanced tab.
The variable time, always returns the time of the last query. This variable is not recorded in the monitor.
| Variable | Description |
|---|---|
| City name. | |
| Country code. E.g., CH. | |
| Time zone offset in ms. | |
| Today's sunrise. | |
| Today's sunset. | |
| Latitude. | |
| Longitude. |
Note: Sunrise and sunset are only calculated after retrieving the data. It is recommended to use the Function Block SUNINFO instead.
The same values are always queried every three-hour interval. Each has a different prefix. The prefix act_ returns the current values.
| Variable | Description |
|---|---|
| Absolute time for which the recorded data is valid. | |
| Weather state ID according to OpenWeatherMap. | |
| Symbol for the weather. | |
| Weather description in English. | |
| More detailed weather description in English. | |
| Temperature in °C. | |
| Relative humidity in %. | |
| Visibility in meters. | |
| Precipitation volume in mm. | |
| Amount of snow in mm. | |
| Air pressure at sea level in mbar. | |
| Coverage in %. | |
| Wind speed in m/s. | |
| Origin of the wind in °. |
Tip: There is an internal symbol library for the variables
id and
icon. See Weather Icons.