HungaroMet smart home integration, free and open source

Hungarian weather from HungaroMet open data: station readings and official warnings.
The official weather of Hungary in Gladys, from the open data of HungaroMet (formerly OMSZ), the Hungarian Meteorological Service: the readings of the nearest automatic weather station every 10 minutes, and the official weather warnings of your county or district: the warnings for the next 3 hours and the outlook for today and tomorrow.
Open data: no account, no API key. Database: Meteorological Database, HungaroMet Nonprofit Zrt. This integration is not affiliated with HungaroMet.
Overviewâ
- Two devices: the nearest station (temperature, humidity, pressure, wind, gusts, wind direction, rain intensity, visibility) and the warnings of your county, or of your district for the 3-hour warnings.
- A scene trigger, "New HungaroMet warning", as soon as a warning is issued for the next 3 hours, today or tomorrow.
- A dashboard widget with the readings and the warnings.
- Read-only: HungaroMet is a data source, nothing is controlled.
The Meteoalarm integration also shows the Hungarian warnings, by county, through the European Meteoalarm feed. This one reads HungaroMet directly: it adds the station readings and the 3-hour warnings, which HungaroMet issues by district.
Requirementsâ
- Gladys 5.3.0 or later.
- A place in Hungary.
- Your Gladys house located on the map (Settings â Houses), or coordinates, a station or a county typed in the configuration.
- Gladys must reach the Internet (
odp.met.hu).
Configurationâ
Install the integration from Integrations â Install from GitHub (or from the store), then open its configuration. Every field is optional: by default the integration takes the position of your first located house, the station nearest to it and the warnings of its county, and refreshes every 10 minutes.
| Field | Use |
|---|---|
| House | The house whose position is used. Empty: the first house that has a position. |
| Latitude, Longitude | Another place than a house, for example 47.50 and 19.04 (a comma works too). Both, or neither. |
| Weather station | The number of a HungaroMet station, for example 44527 (Budapest PestszentlĆrinc). Empty: the nearest one. |
| County of the warnings | One of the 19 counties or Budapest. Empty: the county of the place. |
| District of the 3-hour warnings | The name or code of a district (jårås), for example Pécsi or 204. Empty: the whole county. |
| Refresh interval | 10, 20, 30 or 60 minutes. The stations report every 10 minutes. |
| Language of the feature names | Language of the feature names (set when the devices are created) and of the scene event texts. French by default. |
The house position is read through the Gladys location permission, shown when you install the
integration. It never leaves Gladys: HungaroMet publishes whole-country files, and the nearest
station is computed in the integration. It is never written to the logs.
Then open the Discovery tab of the integration and add the two devices to Gladys.
Devicesâ
Stationâ
The name is "HungaroMet" followed by the station name. Values of the last 10-minute observation:
| Feature | Unit | Note |
|---|---|---|
| Temperature | °C | Air temperature |
| Humidity | % | |
| Pressure (station level) | hPa | Pressure at the station altitude, not reduced to sea level |
| Wind speed | km/h | 10-minute mean (converted from m/s) |
| Wind gusts | km/h | Strongest gust of the last 10 minutes |
| Wind direction | ° | Where the wind comes from: 0 = north, 90 = east |
| Rain intensity | mm/h | Rain of the last 10 minutes, as an hourly rate |
| Visibility | km |
A station that does not measure a value (many have no pressure or visibility sensor) leaves that feature empty. A station silent for more than 3 hours is not re-published as current.
Warningsâ
The name is "HungaroMet warnings" (in the language of the configuration) followed by the county or district. HungaroMet issues the 3-hour warnings by district and the outlook by county; Budapest takes the outlook of Pest county.
| Feature | Unit | Note |
|---|---|---|
| Warning, next 3 hours | 0 to 3 | Highest level in force: 0 none, 1 yellow, 2 orange, 3 red (district, or county) |
| Warning outlook, today | 0 to 3 | Highest level of today's outlook for the county |
| Warning outlook, tomorrow | 0 to 3 | Highest level of tomorrow's outlook for the county |
| Weather warnings | text | Every warning, e.g. "Next 3 hours: Yellow · Wind gusts | Today: Yellow · Rain" |
Without a district, "Warning, next 3 hours" is the highest level of all the districts of the county. Warning types: thunderstorm, wind gusts, torrential rain, freezing rain, blowing snow, rain, snowfall, dense fog, extreme cold, heat.
Widgetâ
HungaroMet weather shows, in the language and units of the dashboard:
- the station name (as named in Gladys), then its temperature, humidity, wind and gusts;
- the warnings of the next 3 hours, today and tomorrow, or a green "None" line;
- the source and the time of the observation.
Its Blocks shown setting hides the readings or the warnings.
Scene triggerâ
New HungaroMet warning fires when HungaroMet issues a warning for the area, or raises the level of one. A 3-hour warning fires again only once it was lifted then issued again; an outlook warning fires once per day and type, whether first seen for tomorrow or for today. A restart does not fire it again, and the very first start only takes note of the warnings already issued.
Filters (empty = any): Warning types, Levels (yellow, orange, red) and When (next 3 hours, today, tomorrow).
Information passed to the scene actions: warning type, level, when, level (1 to 3), the keys of
the type, level and when, level raised, official text (in English, unchanged) and district or
county. For example, a message: HungaroMet: \{\{triggerEvent.data.level_label\}\} \{\{triggerEvent.data.type_label\}\} warning (\{\{triggerEvent.data.horizon_label\}\}).
Configuration actionsâ
- List the nearest stations: the 8 stations reporting now nearest to the place, with their number, county, altitude and distance. Copy a number into "Weather station" to choose another one.
- Check the connection: reads every source now and says what answered: the station temperature and its time, the number of warnings, and the districts of the county with their codes.
Scene examplesâ
- Storm coming: trigger "New HungaroMet warning", types "Thunderstorm" and "Wind gusts", when "Next 3 hours" â close the shutters, retract the awning, send a message.
- Freezing rain tomorrow: trigger "New HungaroMet warning", type "Freezing rain", when "Tomorrow" â remind to leave earlier and cover the windshield.
- Hot afternoon: when "Temperature" becomes greater than 30 °C â close the south-facing shutters.
Troubleshootingâ
- "No location": no house has a position. Place your house on the map in Settings â Houses, or type coordinates, a station or a county.
- "More than 50 km from any HungaroMet station": the place is outside Hungary.
- "The district is unknown": run Check the connection, it lists the districts of the county with their codes, then type one of them.
- "HungaroMet does not answer": Gladys cannot reach
odp.met.hu; the values are updated when it is back. The logs say which source fails, once, and when it works again. - A feature stays empty: the station does not measure it. Choose another station with List the nearest stations.
- More details: set the
LOG_LEVELvariable of the container todebug.
Limitsâ
- Data: open data of HungaroMet, free to use with the source cited ("Database: Meteorological Database, HungaroMet Nonprofit Zrt.", shown by the widget). The wind is converted from m/s to km/h and the rain to an hourly rate; the warnings and their official texts are passed on unchanged.
- Requests: about 20 small files an hour at the default pace (observations and the index of the 3-hour warnings every refresh, the outlook indexes every 30 minutes, a warning file only when a new one is issued, the station list once a day). HungaroMet publishes no rate limit.
- One place, one station and one area per installation.
- The feature names are set when the devices are created: changing the language later does not rename them.
- The official texts of the warnings are in English (HungaroMet also publishes them in Hungarian).
- Tested against the real HungaroMet files, but not yet on a real Gladys instance: feedback welcome.
Configuration settingsâ
These are the settings HungaroMet asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| HungaroMet | section | No | Open data of HungaroMet, the Hungarian Meteorological Service: no account, no key. By default, the integration uses the position of your first Gladys house: the nearest weather station and the warnings of its county. Database: Meteorological Database, HungaroMet Nonprofit Zrt. Not affiliated with HungaroMet. |
| House | select | No | The house whose position is used. Empty: the first house with a position. |
| Latitude (optional) | string | No | To use another place than a house. Takes precedence over the house. |
| Longitude (optional) | string | No | |
| Weather station (optional) | string | No | Number of a HungaroMet station. Empty: the nearest one. The action below lists them. |
| County of the warnings (optional) | select | No | Empty: the county of the place. Budapest takes the outlook of Pest county. |
| District of the 3-hour warnings (optional) | string | No | Name or code of a district (jĂĄrĂĄs). Empty: the whole county. The connection check lists them. |
| Refresh interval | select | No | The stations report every 10 minutes. |
| Language of the feature names | select | No | Used when the devices are created, and for the scene event texts. |
How to install HungaroMet in Gladysâ
- In Gladys, open Integrations: HungaroMet appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/guim31/gladys-hungaromet:1.0.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/guim31/gladys-hungaromet.
HungaroMet requires Gladys >=5.3.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.
Not running Gladys yet? It is free and open source: follow the installation guide to get started.
About external integrationsâ
HungaroMet is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by guim31, not by the Gladys core team.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub â source of this documentation