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 - 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):
CODEBLOCK0
By regions:
CODEBLOCK1
European cities:
CODEBLOCK2
Temperature Extremes
Max temperatures:
CODEBLOCK3
Min temperatures:
CODEBLOCK4
Min at 5cm (ground frost):
CODEBLOCK5
Sea & Water
Adriatic sea temperature:
CODEBLOCK6
River temperatures:
CODEBLOCK7
Precipitation & Snow
Precipitation data:
CODEBLOCK8
Snow height:
CODEBLOCK9
Forecasts
Today's forecast:
CODEBLOCK10
Tomorrow's forecast:
CODEBLOCK11
3-day outlook:
CODEBLOCK12
Regional forecasts:
CODEBLOCK13
3-day meteograms (detailed):
CODEBLOCK14
7-day meteograms:
CODEBLOCK15
Weather Alerts (CAP format)
Today's warnings:
CODEBLOCK16
Tomorrow's warnings:
CODEBLOCK17
Day after tomorrow:
CODEBLOCK18
Specialized Data
UV index:
CODEBLOCK19
Forest fire risk index:
CODEBLOCK20
Biometeorological forecast (health):
CODEBLOCK21
Heat wave alerts:
CODEBLOCK22
Cold wave alerts:
CODEBLOCK23
Maritime / Adriatic
Nautical forecast:
CODEBLOCK24
Maritime forecast (sailors):
CODEBLOCK25
Agriculture
Agro bulletin:
CODEBLOCK26
Soil temperature:
CODEBLOCK27
7-day agricultural data:
CODEBLOCK28
Hydrology
Hydro bulletin:
CODEBLOCK29
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:
CODEBLOCK30
Convert to JSON (requires xq from yq package):
CODEBLOCK31
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:
DHMZ 天气(克罗地亚)
克罗地亚气象和水文局(DHMZ)提供免费的 XML 接口。所有数据均为克罗地亚语,无需身份验证。
默认行为
调用此技能时:
- 1. 如果提供了城市作为参数(例如 /dhmz-weather 萨格勒布):立即获取并显示该城市的天气
- 如果未提供城市:从对话上下文中推断城市(用户位置、之前提及的城市或项目上下文)。如果没有可用上下文,默认使用萨格勒布(首都)
不要询问用户想要什么——直接立即获取天气数据并以可读格式呈现。
天气表情符号
显示天气数据时使用这些表情符号,使其更直观:
天气状况
| 克罗地亚语 | 英语 | 表情符号 |
|---|
| vedro, sunčano | 晴朗 | ☀️ |
| djelomično oblačno |
局部多云 | ⛅ |
| pretežno oblačno | 大部分多云 | 🌥️ |
| potpuno oblačno | 阴天 | ☁️ |
| slaba kiša | 小雨 | 🌦️ |
| kiša | 雨 | 🌧️ |
| jaka kiša | 大雨 | 🌧️🌧️ |
| grmljavina | 雷暴 | ⛈️ |
| snijeg | 雪 | 🌨️ |
| susnježica | 雨夹雪 | 🌨️🌧️ |
| magla | 雾 | 🌫️ |
| rosa | 露水 | 💧 |
指标
💧 |
| 气压 | 📊 |
| 风 | 💨 |
| 降雨/降水 | 🌧️ |
| 紫外线指数 | ☀️ |
| 海水温度 | 🌊 |
风力强度
💨 |
| 强风/大风(vjetrovito) | 💨💨 |
| 暴风(olujni) | 🌬️ |
警报
🟡 |
| 橙色 | 🟠 |
| 红色 | 🔴 |
当前天气
所有克罗地亚站点(按字母顺序):
bash
curl -s https://vrijeme.hr/hrvatska_n.xml
按地区:
bash
curl -s https://vrijeme.hr/hrvatska1_n.xml
欧洲城市:
bash
curl -s https://vrijeme.hr/europa_n.xml
极端温度
最高温度:
bash
curl -s https://vrijeme.hr/tx.xml
最低温度:
bash
curl -s https://vrijeme.hr/tn.xml
5厘米处最低温度(地面霜冻):
bash
curl -s https://vrijeme.hr/t5.xml
海洋与水体
亚得里亚海海水温度:
bash
curl -s https://vrijeme.hr/more_n.xml
河流温度:
bash
curl -s https://vrijeme.hr/temp_vode.xml
降水与降雪
降水数据:
bash
curl -s https://vrijeme.hr/oborina.xml
积雪深度:
bash
curl -s https://vrijeme.hr/snijeg_n.xml
天气预报
今日预报:
bash
curl -s https://prognoza.hr/prognoza_danas.xml
明日预报:
bash
curl -s https://prognoza.hr/prognoza_sutra.xml
3天展望:
bash
curl -s https://prognoza.hr/prognoza_izgledi.xml
地区预报:
bash
curl -s https://prognoza.hr/regije_danas.xml
3天气象图(详细):
bash
curl -s https://prognoza.hr/tri/3dgrafi_simboli.xml
7天气象图:
bash
curl -s https://prognoza.hr/sedam/hrvatska/7d_meteogrami.xml
天气警报(CAP格式)
今日警告:
bash
curl -s https://meteo.hr/upozorenja/caphrtoday.xml
明日警告:
bash
curl -s https://meteo.hr/upozorenja/caphrtomorrow.xml
后天:
bash
curl -s https://meteo.hr/upozorenja/caphrdayaftertomorrow.xml
专业数据
紫外线指数:
bash
curl -s https://vrijeme.hr/uvi.xml
森林火灾风险指数:
bash
curl -s https://vrijeme.hr/indeks.xml
生物气象预报(健康):
bash
curl -s https://prognoza.hr/bio_novo.xml
热浪警报:
bash
curl -s https://prognoza.hr/toplinskival_5.xml
寒潮警报:
bash
curl -s https://prognoza.hr/hladnival.xml
海事/亚得里亚海
航海预报:
bash
curl -s https://prognoza.hr/jadran_h.xml
海事预报(水手用):
bash
curl -s https://prognoza.hr/pomorci.xml
农业
农业公报:
bash
curl -s https://klima.hr/agro_bilten.xml
土壤温度:
bash
curl -s https://vrijeme.hr/agro_temp.xml
7天农业数据:
bash
curl -s https://klima.hr/agro7.xml
水文学
水文公报:
bash
curl -s https://hidro.hr/hidro_bilten.xml
提示
- - 所有响应均为 XML 格式
- 数据使用克罗地亚语
- 站点名称使用克罗地亚字符(UTF-8)
- 更新频率:当前数据约每小时更新,预报约每日更新
- 解析时,使用 xmllint 或通过管道转换为 JSON
使用 xmllint 提取特定站点:
bash
curl -s https://vrijeme.hr/hrvatska_n.xml | xmllint --xpath //Grad[GradIme=萨格勒布] -
转换为 JSON(需要 yq 包中的 xq):
bash
curl -s https://vrijeme.hr/hrvatska_n.xml | xq .
常见站点名称
萨格勒布、斯普利特、里耶卡、奥西耶克、扎达尔、普拉、杜布罗夫尼克、斯拉沃尼亚布罗德、卡尔洛瓦茨、瓦拉日丁、锡萨克、别洛瓦尔、查科韦茨、戈斯皮奇、克宁、马卡尔斯卡、希贝尼克
数据来源
官方 DHMZ(国家气象水文局)——克罗地亚气象和水文局: