MeteoSwiss data retriever
Python weather data retriever from MeteoSwiss open-data: forecasts, ground measurements and weather alerts.
Getting started
Install package:
uv add meteoswiss # or pip install meteoswiss
See sample scripts in examples/ folder.
Data
[!NOTE] This repository does not store any data provided by below providers. These scripts are downloading required datasets on the user's local machine only.
Datasets are available via open-source APIs provided by MeteoSwiss.
- Local forecast data: forecasts for 9 full days (including today)
- Short-term forecast data: forecasts for the next minutes up to 6 hours ahead
- Ground-based measurements:
- Weather stations: https://opendatadocs.meteoswiss.ch/a-data-groundbased/a1-automatic-weather-stations
- Precipitation stations: https://opendatadocs.meteoswiss.ch/a-data-groundbased/a2-automatic-precipitation-stations
[!WARNING] Short-term forecast data (nowcasting) are available to download on request. No API endpoint exposed.
Measurements
When selecting a postal code, users can have access to local forecasts at this postal code. However, ground-measurements are only available on specific stations. To get both realized measurements + local forecasts for a given postal code, we can use proxy measurements by picking the ground measurements at the nearest station from our postal code coordinates.
Weather alerts
We wanted to include weather alerts retrieval in this package. However, it does not seem to be available as an open data source directly by MeteoSwiss.
However, MeteoSwiss distributes its weather alerts directly to MeteoAlarm.org which provides APIs or ATOM feed like this one: https://feeds.meteoalarm.org/feeds/meteoalarm-legacy-atom-switzerland
[!WARNING] Legacy RSS feeds (
https://feeds.meteoalarm.org/feeds/meteoalarm-legacy-rss-<COUNTRY_NAME>) are deprecated and must not be used! Only use ATOM feeds.
Docs on ATOM format: https://en.wikipedia.org/wiki/Atom_(web_standard)
License
Data source: MeteoSwiss.
Metadata
Release files for meteoswiss 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| meteoswiss-1.2.1.tar.gz | 34.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| meteoswiss-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 55.5 kB
Release files / meteoswiss-1.2.1.tar.gz
| Download URL | meteoswiss-1.2.1.tar.gz |
|---|---|
| Size | 34.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e422dd5846f344430b8acb170eca4089943c5f809f299e710467bb65459d4494
|
|
BLAKE2b-256 checksum How to use checksums |
99eabbcd97f71973acaaaca77782ee9e83a42246c824efd707911d022a9e87aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / meteoswiss-1.2.1-py3-none-any.whl
| Download URL | meteoswiss-1.2.1-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3942a1761aabb39d4ef6c31b47356269e4f4e6651dcfadd007c3df8b87c1a1ec
|
|
BLAKE2b-256 checksum How to use checksums |
76f8148306255e17134622b9ff4a93964f8dd0438a602127fed8768d799cacec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|