← 返回
未分类 中文

Croatia Weather

Swiss-army knife for Croatian weather — 27 commands covering current conditions, forecasts (7-day, 3-day, 3-hourly, regional, outlook), warnings (CAP, heat/c...
Swiss-army knife for Croatian weather — 27 commands covering current conditions, forecasts (7-day, 3-day, 3-hourly, regional, outlook), warnings (CAP, heat/c...
nikolicjakov
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 292
下载
💾 0
安装
1
版本
#latest

概述

Croatia Weather — DHMZ Data

Fetches official weather data from DHMZ (Državni hidrometeorološki zavod) via their free XML feeds.

Data is licensed under Open Licence (data.gov.hr) — attribution: Izvor: DHMZ.

Home Station (Configurable)

The default station is Zagreb-Grič (current) / Zagreb_Maksimir (forecast).

Customise via environment variables:

VariablePurposeDefault
---------
DHMZ_HOME_CURRENTStation for current conditionsZagreb-Grič
DHMZ_HOME_FORECASTStation for forecastsZagreb_Maksimir
DHMZ_HOME_ALIASESExtra words that resolve to home (comma-separated)_(empty)_

Any query mentioning "home", "my location", or "doma" uses the configured home station.

CLI Tool

All commands go through a single Python script — no external dependencies (stdlib only).

python3 {baseDir}/scripts/dhmz.py <command> [options]

Commands — Weather & Forecasts

Current conditions

python3 {baseDir}/scripts/dhmz.py current                  # Home station
python3 {baseDir}/scripts/dhmz.py current Zagreb            # Fuzzy match → Zagreb-Grič
python3 {baseDir}/scripts/dhmz.py current --all             # All 50+ stations

Returns: temperature, humidity, pressure (with trend), wind direction/speed, weather description.

7-day forecast

python3 {baseDir}/scripts/dhmz.py forecast                  # Home station
python3 {baseDir}/scripts/dhmz.py forecast Split

Returns: daily min/max temperature, precipitation total, peak wind, weather symbol — for 7 days.

3-day 3-hourly forecast

python3 {baseDir}/scripts/dhmz.py forecast3                 # Home station
python3 {baseDir}/scripts/dhmz.py forecast3 Dubrovnik

Returns: 3-hourly breakdown for 3 days — temperature, precipitation, wind, weather per time slot.

3-day text outlook (with temperature/wind summary)

python3 {baseDir}/scripts/dhmz.py outlook

Returns: prose overview for next 3 days + Kopno/More temperature, wind, and warning level.

Regional text forecast

python3 {baseDir}/scripts/dhmz.py regions

Returns: DHMZ prose forecast for 6 regions (Istočna, Središnja, Gorska, Sj. Jadran, Dalmacija, Istra).

Temperature extremes (min/max)

python3 {baseDir}/scripts/dhmz.py temp-extremes             # All stations
python3 {baseDir}/scripts/dhmz.py temp-extremes Zagreb

European weather

python3 {baseDir}/scripts/dhmz.py europe                    # All European capitals
python3 {baseDir}/scripts/dhmz.py europe Beograd            # Specific city

Commands — Warnings & Health

Weather warnings (CAP)

python3 {baseDir}/scripts/dhmz.py warnings

Returns: active warnings for today/tomorrow/day-after — severity color-coded (🟡🟠🔴), regions, description.

Heat wave warnings (5-day)

python3 {baseDir}/scripts/dhmz.py heatwave

Returns: 5-day heat wave indicator per city (🟢 Green → 🔴 Red).

Cold wave warnings (4-day)

python3 {baseDir}/scripts/dhmz.py coldwave

Returns: 4-day cold wave indicator per city.

Biometeorological forecast

python3 {baseDir}/scripts/dhmz.py bio

Returns: 3-day biometeo outlook — human health impact + per-region severity.


Commands — Agriculture & Land

Ground frost indicator (5cm temperature)

python3 {baseDir}/scripts/dhmz.py frost                     # All stations
python3 {baseDir}/scripts/dhmz.py frost Zagreb

Returns: min temperature at 5cm above ground — critical for frost/agriculture. Flags 🥶 MRAZ when ≤0°C.

Soil temperatures (5/10/20cm depths)

python3 {baseDir}/scripts/dhmz.py soil

Returns: soil temperature at 3 depths (07/14/21/00h readings) + soil state (smrznuto/vlažno/mokro/suho/snijeg).

Agrometeorological bulletin

python3 {baseDir}/scripts/dhmz.py agro

Returns: comprehensive weekly agro analysis + 5-region forecast (Istočna, Središnja, Lika, Istra/Primorje, Dalmacija) + 3-day outlook. Includes temperature sums, soil temps, precipitation, plant protection advice.

Weekly agro summary data

python3 {baseDir}/scripts/dhmz.py agro7

Returns: 7-day per-station data table — Tmax, Tmin, T5cm min, precipitation, humidity range, sunshine hours, soil temps at 5cm and 20cm.


Commands — Water & Hydrology

Precipitation

python3 {baseDir}/scripts/dhmz.py precip                    # All stations with rain
python3 {baseDir}/scripts/dhmz.py precip Zagreb

Snow depth

python3 {baseDir}/scripts/dhmz.py snow

River water temperatures

python3 {baseDir}/scripts/dhmz.py rivers

Returns: latest hourly temperature from 19 hydrological stations — Drava, Dunav, Sava basin, Krapina, Korana, Krka, Neretva, etc.

Hydrological forecast (river levels)

python3 {baseDir}/scripts/dhmz.py hydro

Returns: river level status for Sava, Kupa, Dunav, Mura, Drava — with flood defense alert levels (pripremno stanje, redovne mjere, izvanredne mjere).

Adriatic sea temperature

python3 {baseDir}/scripts/dhmz.py sea

Commands — Maritime & Sailing

Adriatic nautical forecast

python3 {baseDir}/scripts/dhmz.py adriatic

Returns: Maritime Meteorological Centre Split report — synoptic situation, warnings (knots, sea state), 12h + 12h forecast text.

Maritime forecast for sailors

python3 {baseDir}/scripts/dhmz.py maritime

Returns: detailed 24h forecast split by North/Middle/South Adriatic + station observation table (wind, sea state, temperature, cloud cover, pressure).


Commands — Environment

UV index

python3 {baseDir}/scripts/dhmz.py uvi

Returns: hourly UV readings for all stations with risk level (🟢 low → 🟣 extreme).

Forest fire danger index

python3 {baseDir}/scripts/dhmz.py fire

Returns: FWI-based fire danger for ~35 stations — temp, humidity, wind, precipitation, FWI score, danger level.


Commands — Climate & History

Historical monthly climate averages

python3 {baseDir}/scripts/dhmz.py climate zagreb_maksimir
python3 {baseDir}/scripts/dhmz.py climate dubrovnik
python3 {baseDir}/scripts/dhmz.py climate split_marjan

Available cities: bjelovar, dubrovnik, gospic, hvar, karlovac, knin, krizevci, mali_losinj, ogulin, osijek, parg, pazin, rijeka, senj, sisak, slavonski_brod, split_marjan, sibenik, varazdin, zadar, zagreb_gric, zagreb_maksimir, zavizan.

Returns: monthly mean temp, absolute max/min (with year), sunshine hours, precipitation, max snow depth, fog/frost/rain/snow days, ice/cold/warm/hot day counts.

Annual precipitation by month

python3 {baseDir}/scripts/dhmz.py climate-rain 2025         # Specific year
python3 {baseDir}/scripts/dhmz.py climate-rain              # Previous year (default)

Available years: 2014–2026. Returns monthly rainfall totals per station.


Commands — Utility

List stations

python3 {baseDir}/scripts/dhmz.py stations

Full overview (combined)

python3 {baseDir}/scripts/dhmz.py full                      # Home station
python3 {baseDir}/scripts/dhmz.py full Split

Combines: current + frost + warnings + 7-day forecast + regional forecast + biometeo + hydro.


Station Matching

Fuzzy matching — exact names not required:

User saysMatches
------
home, doma, my + configured aliasesConfigured home station
ZagrebZagreb-Grič / Zagreb_Maksimir
SplitSplit-Marjan / Split
DubrovnikDubrovnik
RijekaRijeka
Any partial nameFuzzy: exact → contains → word match

Data Sources

All feeds are free under DHMZ Open Licence. Updated multiple times per day.

CategoryFeedContent
---------
Currentvrijeme.hr/hrvatska_n.xmlLive conditions (50+ stations)
Currentvrijeme.hr/europa_n.xmlEuropean capitals weather
Tempvrijeme.hr/tx.xml / tn.xml / t5.xmlMax/min/ground frost temps
Precipvrijeme.hr/oborina.xml / snijeg_n.xmlRainfall, snow depth
Seavrijeme.hr/more_n.xmlAdriatic sea temperature
UVvrijeme.hr/uvi.xmlHourly UV index
Firevrijeme.hr/indeks.xmlForest fire danger (FWI)
Riversvrijeme.hr/temp_vode.xmlRiver water temperatures
Soilvrijeme.hr/agro_temp.xmlSoil temps at 5/10/20cm
Agroklima.hr/agro_bilten.xml / agro7.xmlAgro bulletin + 7-day data
Warningsmeteo.hr/upozorenja/cap_hr_*.xmlCAP alerts (3 days)
Wavesprognoza.hr/toplinskival_5.xml / hladnival.xmlHeat/cold wave indicators
Forecastprognoza.hr/prognoza_danas.xmlToday's forecast
Forecastprognoza.hr/regije_danas.xmlRegional text forecast
Forecastprognoza.hr/prognoza_izgledi.xml3-day outlook
Forecastprognoza.hr/tri/3d_graf_i_simboli.xml3-day 3-hourly meteogram
Forecastprognoza.hr/sedam/hrvatska/7d_meteogrami.xml7-day meteogram
Healthprognoza.hr/bio_novo.xmlBiometeorological forecast
Maritimeprognoza.hr/jadran_h.xml / pomorci.xmlAdriatic nautical + maritime
Hydrohidro.hr/hidro_bilten.xmlRiver levels + flood alerts
Climateklima.hr/k1/tablice/{city}.xmlMonthly averages (125+ years)
Climateklima.hr/k2/{year}/oborina_{year}.xmlAnnual precipitation

Notes

  • No API key needed — all feeds are public
  • Zero external dependencies — Python 3 stdlib only
  • Feed updates: current conditions ~hourly, forecasts ~twice daily (00:00/12:00 UTC)
  • Wind format in forecasts: NE2 = NE direction, strength 2 (1=slab, 2=umjeren, 3=jak, 4=olujni)
  • Always attribute: Izvor: DHMZ

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 14:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 244 📥 30,668
life-service

Sonoscli

steipete
控制Sonos音箱(发现/状态/播放/音量/分组)
★ 56 📥 85,201
life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 456 📥 229,184