← Back to Search & Research
Search & Research by @faleksic

dhmz-weather

Get Croatian weather data, forecasts, and alerts from DHMZ

0
Source Code

DHMZ Weather (Croatia)

Croatian Meteorological and Hydrological Service (DHMZ) provides free XML APIs. All data in Croatian, no authentication needed.

Default Behavior

When this skill is invoked:

  1. If a city is provided as argument (e.g., /dhmz-weather Zagreb): Immediately fetch and display weather for that city
  2. If no city is provided: Infer the city from conversation context (user's location, previously mentioned cities, or project context). If no context available, default to Zagreb (capital city)

Do not ask the user what they want - just fetch the weather data immediately and present it in a readable format.

Weather Emojis

Use these emojis when displaying weather data to make it more intuitive:

Conditions

Croatian English Emoji
vedro, sunčano clear, sunny ☀️
djelomično oblačno partly cloudy
pretežno oblačno mostly cloudy 🌥️
potpuno oblačno overcast ☁️
slaba kiša light rain 🌦️
kiša rain 🌧️
jaka kiša heavy rain 🌧️🌧️
grmljavina thunderstorm ⛈️
snijeg snow 🌨️
susnježica sleet 🌨️🌧️
magla fog 🌫️
rosa dew 💧

Metrics

Metric Emoji
Temperature 🌡️
Humidity 💧
Pressure 📊
Wind 💨
Rain/Precipitation 🌧️
UV Index ☀️
Sea temperature 🌊

Wind Strength

Description Emoji
calm, light 🍃
moderate 💨
strong/windy (vjetrovito) 💨💨
stormy (olujni) 🌬️

Alerts

Level Emoji
Green (no warning) 🟢
Yellow 🟡
Orange 🟠
Red 🔴

Current Weather

All Croatian stations (alphabetical):

curl -s "https://vrijeme.hr/hrvatska_n.xml"

By regions:

curl -s "https://vrijeme.hr/hrvatska1_n.xml"

European cities:

curl -s "https://vrijeme.hr/europa_n.xml"

Temperature Extremes

Max temperatures:

curl -s "https://vrijeme.hr/tx.xml"

Min temperatures:

curl -s "https://vrijeme.hr/tn.xml"

Min at 5cm (ground frost):

curl -s "https://vrijeme.hr/t5.xml"

Sea & Water

Adriatic sea temperature:

curl -s "https://vrijeme.hr/more_n.xml"

River temperatures:

curl -s "https://vrijeme.hr/temp_vode.xml"

Precipitation & Snow

Precipitation data:

curl -s "https://vrijeme.hr/oborina.xml"

Snow height:

curl -s "https://vrijeme.hr/snijeg_n.xml"

Forecasts

Today's forecast:

curl -s "https://prognoza.hr/prognoza_danas.xml"

Tomorrow's forecast:

curl -s "https://prognoza.hr/prognoza_sutra.xml"

3-day outlook:

curl -s "https://prognoza.hr/prognoza_izgledi.xml"

Regional forecasts:

curl -s "https://prognoza.hr/regije_danas.xml"

3-day meteograms (detailed):

curl -s "https://prognoza.hr/tri/3d_graf_i_simboli.xml"

7-day meteograms:

curl -s "https://prognoza.hr/sedam/hrvatska/7d_meteogrami.xml"

Weather Alerts (CAP format)

Today's warnings:

curl -s "https://meteo.hr/upozorenja/cap_hr_today.xml"

Tomorrow's warnings:

curl -s "https://meteo.hr/upozorenja/cap_hr_tomorrow.xml"

Day after tomorrow:

curl -s "https://meteo.hr/upozorenja/cap_hr_day_after_tomorrow.xml"

Specialized Data

UV index:

curl -s "https://vrijeme.hr/uvi.xml"

Forest fire risk index:

curl -s "https://vrijeme.hr/indeks.xml"

Biometeorological forecast (health):

curl -s "https://prognoza.hr/bio_novo.xml"

Heat wave alerts:

curl -s "https://prognoza.hr/toplinskival_5.xml"

Cold wave alerts:

curl -s "https://prognoza.hr/hladnival.xml"

Maritime / Adriatic

Nautical forecast:

curl -s "https://prognoza.hr/jadran_h.xml"

Maritime forecast (sailors):

curl -s "https://prognoza.hr/pomorci.xml"

Agriculture

Agro bulletin:

curl -s "https://klima.hr/agro_bilten.xml"

Soil temperature:

curl -s "https://vrijeme.hr/agro_temp.xml"

7-day agricultural data:

curl -s "https://klima.hr/agro7.xml"

Hydrology

Hydro bulletin:

curl -s "https://hidro.hr/hidro_bilten.xml"

Tips

  • All responses are XML format
  • Data is in Croatian language
  • Station names use Croatian characters (UTF-8)
  • Updates vary: current data ~hourly, forecasts ~daily
  • For parsing, use xmllint or pipe to a JSON converter

Extract specific station with xmllint:

curl -s "https://vrijeme.hr/hrvatska_n.xml" | xmllint --xpath "//Grad[GradIme='Zagreb']" -

Convert to JSON (requires xq from yq package):

curl -s "https://vrijeme.hr/hrvatska_n.xml" | xq .

Common Station Names

Zagreb, Split, Rijeka, Osijek, Zadar, Pula, Dubrovnik, Slavonski Brod, Karlovac, Varazdin, Sisak, Bjelovar, Cakovec, Gospic, Knin, Makarska, Sibenik

Data Source

Official DHMZ (Drzavni hidrometeoroloski zavod) - Croatian Meteorological and Hydrological Service: https://meteo.hr