360 Secure SkillHub
360 安全技能中心

DHMZ Weather

无需 API key,用 curl 抓取 DHMZ 旗下 vrijeme.hr、prognoza.hr、meteo.hr、klima.hr、hidro.hr 的 XML 数据,覆盖实时天气、气温极值、海温、降水积雪、1-7 天预报、CAP 预警、UV 指数、热浪寒潮及海洋与农业水文信息,并按城市输出带 emoji 的可读文本。

faleksic
faleksic
热度 60.73
最近更新 2026-05-11 15:53:42
分类:生活依赖:代码执行 / 第三方 API应用场景:旅行 / 健康

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add dhmz-weather
Metadata
name
dhmz-weather
description
Get Croatian weather data, forecasts, and alerts from DHMZ (meteo.hr) - no API key required.
homepage
https://meteo.hr/proizvodi.php?section=podaci&param=xml_korisnici
metadata
{"openclaw":{"emoji":"🇭🇷","requires":{"bins":["curl"]}}}

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