Skip to main content

GitHub tests GitHub issues by-label PyPI PyPI - Downloads

An API for meteoalarm.eu weather alerts.

DISCLAIMER: This is an open source project and doesn't have any affiliation with meteoalarm.eu.

To install enter in a command line:

pip install meteoalarm-rssapi

Now, lets see a simple example:

from meteoalarm_rssapi import MeteoAlarm

meteo = MeteoAlarm("DE", "Kreis Ahrweiler", "de")

print(meteo.alerts())

and you will get (after some pprint):

  alert_id: 507556137
  awareness_level: Yellow
  awareness_type: Extreme low temperature
  country: DE
  region: Kreis Ahrweiler
  from: 2021-02-13T18:00:00+01:00
  until: 2021-02-14T12:00:00+01:00
  languages: ['de']
  message: Es tritt mäßiger Frost zwischen -7 °C und -9 °C auf. In
           Bodennähe wird strenger Frost um -12 °C erwartet.
  message_id: 3743141168
  published: 2021-02-14T01:00:00+01:00

You need to know your ISO 3166-1 Alpha-2 country code (e.g. DE) and the exact name of your region as reported by your national agency to meteoalarm.eu (e.g. Kreis Ahrweiler). For that, please check the page for your country in meteoalarm.eu, or run the following script:

from meteoalarm_rssapi import get_regions

print(get_regions("DE"))

You need to know the ISO 639-1 code for the message's language (usually the languages available for each country are english ('en') and the local language ('de')). The indication of language is optional, and if no language is specified the message will come unparsed and in all available languages.

The timestamps for published, from and until are in ISO8601 format, so that you can (easily) convert them to your local date/time.

There are two pieces of information that could be important for your applications:

  1. alert_id changes to a new value (for a given awareness_type) when there is a change in the day/month or first digit of hour of from. So, doesn't change if there are only a revision of the H:MM, a revision for until or a change in the awareness_level.
  2. message_id changes with any change in message, published, from, until or awareness_level.

In conclusion, for one alert_id there are several message_id (that can be taken as the revisions of the alert_id).

Metadata

Release files for meteoalarm-rssapi 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meteoalarm-rssapi 1.0.5
File Size Uploaded
meteoalarm_rssapi-1.0.5.tar.gz 44.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meteoalarm-rssapi 1.0.5
File Interpreter ABI Platform
meteoalarm_rssapi-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 86.3 kB

Release files / meteoalarm_rssapi-1.0.5.tar.gz

Download URL meteoalarm_rssapi-1.0.5.tar.gz
Size 44.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e711e5af8cfe36346a840cfd35635d147942bf1fb07d7550e34e31751d81794f
BLAKE2b-256 checksum
How to use checksums
414aa0640bf6bd0a3526deb7517df97a7a4c95c694e0f339fe90f0038f9b706c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.7

Release files / meteoalarm_rssapi-1.0.5-py3-none-any.whl

Download URL meteoalarm_rssapi-1.0.5-py3-none-any.whl
Size 41.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26bf543e9152504837c3b92a652e8a49c4db81ca3a291da9dda2a926331efdb2
BLAKE2b-256 checksum
How to use checksums
14d49794d8d11abf3d5fb6b0879154a9a7882dd600099ae48baefd89742ce909
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.7

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page