Skip to main content

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.

  1. Local forecast data: forecasts for 9 full days (including today)
  2. Short-term forecast data: forecasts for the next minutes up to 6 hours ahead
  3. Ground-based measurements:

[!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

meteoswiss-1.2.1.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

meteoswiss-1.2.1-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

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

Hashes for meteoswiss-1.2.1.tar.gz
Algorithm Hash digest
SHA256 e422dd5846f344430b8acb170eca4089943c5f809f299e710467bb65459d4494
MD5 a77c8fc2706225d1f05278509ee2dabb
BLAKE2b-256 99eabbcd97f71973acaaaca77782ee9e83a42246c824efd707911d022a9e87aa

See more details on using hashes here.

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

Hashes for meteoswiss-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3942a1761aabb39d4ef6c31b47356269e4f4e6651dcfadd007c3df8b87c1a1ec
MD5 55cd5cf556f6d19d3b1c8c68fb036b52
BLAKE2b-256 76f8148306255e17134622b9ff4a93964f8dd0438a602127fed8768d799cacec

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 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