Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
Official Latvian weather and hydrological warning resources published by the Latvian Environment, Geology and Meteorology Centre for local alert review.
Report a ProblemFrom Source to Product Signal
The Latvian open-data package lists maintained hydrometeorological warning resources. Start with one package metadata response and inspect five warning resource URLs; Riga warnings may be separate from wider regional warnings. A package listing alone is not a current warning.
Install the packages, then run the notebook cell.
python -m pip install requests
import requests
url = "https://data.gov.lv/dati/api/3/action/package_show"
response = requests.get(url, params={"id": "hidrometeorologiskie-bridinajumi"}, timeout=30)
response.raise_for_status()
package = response.json()["result"]
print(package["title"])
warnings = next(r for r in package["resources"]
if r["id"] == "59c111fb-8c9a-4a63-8284-0a64a2920681")
records = requests.get(
"https://data.gov.lv/dati/api/3/action/datastore_search",
params={"resource_id": warnings["id"], "limit": 5}, timeout=30,
)
records.raise_for_status()
rows = [row for row in records.json()["result"]["records"]
if row.get("WEATHER_WARNING_EV_ID")]
print(f"{len(rows)} warning metadata rows in this page")
for row in rows:
print(row.get("WEATHER_WARNING_EV_ID"), row.get("PARADIBA_EN"),
row.get("TIME_FROM"), row.get("TIME_TILL"))Test a Useful Signal
Identify the official resources and their geographic coverage.
Latvian Environment, Geology and Meteorology Centre is a government source. Last verified 2026-09-28. Temporal coverage: current and published warning resources.