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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meteoswiss-1.2.1.tar.gz.
File metadata
- Download URL: meteoswiss-1.2.1.tar.gz
- Upload date:
- Size: 34.5 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e422dd5846f344430b8acb170eca4089943c5f809f299e710467bb65459d4494
|
|
| MD5 |
a77c8fc2706225d1f05278509ee2dabb
|
|
| BLAKE2b-256 |
99eabbcd97f71973acaaaca77782ee9e83a42246c824efd707911d022a9e87aa
|
File details
Details for the file meteoswiss-1.2.1-py3-none-any.whl.
File metadata
- Download URL: meteoswiss-1.2.1-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3942a1761aabb39d4ef6c31b47356269e4f4e6651dcfadd007c3df8b87c1a1ec
|
|
| MD5 |
55cd5cf556f6d19d3b1c8c68fb036b52
|
|
| BLAKE2b-256 |
76f8148306255e17134622b9ff4a93964f8dd0438a602127fed8768d799cacec
|