Published February 17, 2025
| Version 0.2.0
Software
Open
MeteoAlarm Python library
Authors/Creators
Description
A Python library for accessing and filtering weather warnings from MeteoAlarm's CAP (Common Alerting Protocol) feeds. This library provides easy access to weather warnings across European countries through MeteoAlarm's official feeds.
Features
- Access weather warnings for multiple European countries
- Filter warnings based on various attributes (severity, type, description, etc.)
- Support for multiple languages per warning
- Automatic parsing of CAP format warnings
- GeoJSON geometry support for warning areas
- Timezone-aware datetime handling
Installation
Install the package using pip:
$ pip install meteoalarm
Quickstart
from meteoalarm import MeteoAlarm
# Initialize with one or more countries
warnings = MeteoAlarm(["estonia", "denmark"])
# Print all warnings
for warning in warnings:
print(f"\nWarning for {warning.area["areaDesc"]} ({warning.country}):")
print(f"Headline: {warning.get_headline("en-EN")}")
print(f"Severity: {warning.severity}")
print(f"Valid until: {warning.expires}")
Files
meteoalarm-main.zip
Files
(13.1 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:0859a3a27e374394aae4f6c5cfcd29d0
|
13.1 MB | Preview Download |
Additional details
Software
- Repository URL
- https://github.com/NiklasJordan/meteoalarm
- Programming language
- Python
- Development Status
- Active