Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Croatian weather warnings published as CAP XML by DHMZ for reading official warning severity, geography, and validity.
Report a ProblemFrom Source to Product Signal
DHMZ lists freely reusable Croatian CAP warning files with attribution. Start with today's CAP XML file and inspect its message ID, status and issue time. A feed may contain updates or cancellations; check validity and mapped area before displaying any warning.
Install the packages, then run the notebook cell.
python -m pip install requests
import xml.etree.ElementTree as ET
import requests
response = requests.get("https://meteo.hr/upozorenja/cap_hr_today.xml", timeout=30)
response.raise_for_status()
root = ET.fromstring(response.content)
cap = "{urn:oasis:names:tc:emergency:cap:1.2}"
print(root.findtext(f"{cap}identifier"), root.findtext(f"{cap}status"),
root.findtext(f"{cap}sent"))Test a Useful Signal
Check an official warning file for a small regional alert display.
Croatian Meteorological and Hydrological Service is a government source. Last verified 2026-09-28. Temporal coverage: current daily CAP warning files.