Read-only mirror of https://github.com/MeteoSwiss/opendata-status — MeteoSwiss. Issues & pull requests at the source.
  • JavaScript 50%
  • Python 41.2%
  • CSS 8.5%
  • HTML 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Andreas Amsler 836593bfc4
ICON: no outage from a single check while a run is being published
- Age of a collection: if none of the newest 6 items holds files, look at the newest 50 (scheduled check and live query of the page)
- Scheduled check: if there is still none, ask again after 60 s before rating the dataset down
- Cause: ICON-CH2 (01:59 UTC) and ICON-CH1 (07:48 UTC) were rated down on 1 Dec 2026 for single checks without any item with files, each while a run was being written to the catalogue; checks before and after were up to date
- corrections.json: these two checks set to unknown (ICON-CH1 99.72 %, ICON-CH2 100.00 %, 2 incidents fewer)
- Tests updated
- Builds on the PR «No target for paused datasets, recompute an archived month once»
2026-12-01 16:18:25 +01:00
.github/workflows Add files via upload 2026-12-01 10:55:09 +01:00
scripts ICON: no outage from a single check while a run is being published 2026-12-01 16:18:25 +01:00
seed Rename history_items.json to seed/history_items.json 2026-11-13 09:20:35 +01:00
src ICON: no outage from a single check while a run is being published 2026-12-01 16:18:25 +01:00
static Live status; same header like opendatadocs 2026-11-27 14:18:45 +01:00
tests ICON: no outage from a single check while a run is being published 2026-12-01 16:18:25 +01:00
.gitignore Add __pycache__ to .gitignore 2026-11-27 15:09:01 +01:00
build.mjs Live status; same header like opendatadocs 2026-11-27 14:18:45 +01:00
config.json Pause hail clim-analyses Nov–May, clearer availability headers 2026-12-01 10:36:01 +01:00
corrections.json ICON: no outage from a single check while a run is being published 2026-12-01 16:18:25 +01:00
index.html Live status; same header like opendatadocs 2026-11-27 14:18:45 +01:00
package-lock.json Add files via upload 2026-11-13 08:09:07 +01:00
package.json Live status; same header like opendatadocs 2026-11-27 14:18:45 +01:00
README.md Pause hail clim-analyses Nov–May, clearer availability headers 2026-12-01 10:36:01 +01:00

Open Data Status MeteoSwiss (beta)

Live: https://meteoswiss.github.io/opendata-status/

How up to date the MeteoSwiss open data are on the STAC API of the Federal Spatial Data Infrastructure (FSDI). Documentation of the data: opendatadocs.meteoswiss.ch.

  • Current status: queried live in the visitor's browser on load and every 5 minutes.
  • History (72-hour strips, 30-day average): a GitHub Actions workflow checks every 15 minutes, keeps the history of the last 35 days on the branch monitor-data, archives each calendar month on the branch monitor-archive and deploys the page with the fresh data to GitHub Pages.
  • Languages: German, French, Italian, English (?lang=de|fr|it|en, default from the browser language).

Structure

Path Purpose
config.json Single configuration for page and check: monitored collections, group A–E, metric, intervals, thresholds, names in de/fr/it/en, documentation links
src/ Page (React, bundled with esbuild): main.jsx frame and language choice, Header.jsx header as on opendatadocs.meteoswiss.ch, OgdMonitor.jsx page content, Strip.jsx history strip, Incidents.jsx incident list, stac.mjs live measurement with time limits, rules.mjs rating rules and how long a measurement counts, format.jsx formatting, strings.js texts
static/ Copied into the page as is: MeteoSwiss logos per language and favicon (from MeteoSwiss/opendata, the documentation)
scripts/ogd_monitor.py Check for the history (Python standard library only)
corrections.json Corrections of history entries that were measured wrongly; applied on every run, can be emptied once its entries are older than 35 days. Status unknown excludes a check from availability, incidents and key figures (e.g. the start-up checks of radar hail on 10 Nov 2026)
tests/ Tests without network, run by the workflow before every check (npm test). cases.json holds shared cases of the rating rules, which exist twice: in scripts/ogd_monitor.py and in src/rules.mjs. A rule change needs both files and a case in cases.json.
seed/ Initial history (from 10 Nov 2026), used once when the branch monitor-data does not exist yet
.github/workflows/status.yml Check, history, build and deployment

What is measured

Per item one of two metrics (metric in config.json):

  • age: time since the newest data of the collection were published. Usually the item's last update; with "source": {"kind": "newest_asset"} the creation time of the newest file (used for radar hail).
    • run_check (forecast models ICON-CH1/-CH2, analysis KENDA-CH1; scheduled check only): the newest model run counts as complete when it has as many files at its last forecast horizon (last_horizon, per UTC run hour in last_horizon_by_hour, e.g. +45 h for the ICON-CH1 03 UTC run) as there are parameters, i.e. files at horizon 0 of the run or at the last horizon of the previous run, whichever is more. Counted with the STAC search (forecast:reference_datetime, forecast:horizon), a few requests per model. Within complete_max_min after the reference time (ICON-CH1 180 min, 03 UTC 210, ICON-CH2 300, KENDA 195; provisional values as used by ginko.ch/ogd_monitor) the newest run counts as still being published and the previous run is rated. An incomplete run makes an up-to-date dataset delayed (warn, reason run_incomplete); the page shows it in the dataset's info line. status.json has run_ref, run_files, run_files_expected, run_complete.
  • latency: publication latency, from the reference time of the newest data to its availability on the STAC API.
    • Reference time from the file name (radar, local forecasts) or from the newest reference_timestamp in a station's *_now.csv (single stations, pollen).
    • Availability is the created / updated time of the file on the STAC API. The HTTP Last-Modified is only a fallback: some files are rewritten without new data.
    • "complete_run": true: latency until the last file of a model run is available (all parameters).
    • "aggregate": "median": latency of the station with the median latency among all current stations (pollen).
    • If no new data arrive (reference time older than interval plus warning threshold), the item counts as down.

Download test. On every scheduled check, the newest file of each dataset is requested (first kilobyte, one retry), on data.geo.admin.ch as well as on the CSCS object storage (rgw.cscs.ch) for the model data. If that fails, the dataset counts as down, even if the catalog looks fresh. The page applies the result of the latest check (if not older than one hour); the browser itself only reads the catalog.

Items without files (placeholders created ahead of time, e.g. for the next month) are skipped. Collections with one item per day (YYYYMMDD-ch) are read by item date, not by last update: an empty item for the next day appears early in the morning, and items from about a week ago are touched again.

ok_max_min is the target, warn_max_min the limit between delayed and down (usually 3 × target). Further options per item:

Option Effect
"realtime": true Marked «real-time» on the page; counted separately in the history (realtime_ok, realtime_total)
"source": {"coverage": true} Additional line «x of y stations up to date» with the stations that are not; does not change the status
"season": {"pause_months": [12, 1, 2]} No rating in these months (UTC), shown as «paused» (pauses can be set for any months, e.g. the winter break of phenology); afterwards the interval runs from the end of the break (phenology)
"monitoring_pending": true «Monitoring to follow» instead of the strip

Paused items are still measured and shown in grey, but do not count towards the group status or the availability.

Availability

Per dataset over the last 30 days (availability in data/status.json, availability_30d in the JSON endpoint). The page shows it for the real-time and forecast data only, i.e. datasets with show_availability: true in config.json (ground-based stations smn*, radar and numerical weather prediction incl. local forecasts and KENDA), in the table «Availability of real-time and forecast data» and in their info line:

  • available_pct: share of time in which the dataset was up to date and downloadable. Each check stands for the time until the next check, at most 60 minutes; longer gaps (the scheduled check did not run) count as unknown (unknown_h), not as available. Percentages have two decimals, rounded down, so that 100 % means no downtime at all. Winter break and suspension are left out.
  • available_incl_delayed_pct: the same, counting delayed time as available.
  • downtime_min, delayed_min: time down and delayed in minutes (columns «Time down» and «Time delayed»; «Time delayed» and «Up to date or delayed (%)» are hidden on phones); incidents: incidents of the last 30 days involving the dataset.
  • Targets are not set yet; they are to be defined in Q1 2027 on the basis of the availability measured until then. A dataset with availability_target_pct in config.json then gets target_pct and meets_target, and the table shows a target column.

«Available» (column «Up to date (%)» on the page) means that current data could be downloaded, not only that the service was reachable: delayed data (above the target, below the limit) and model runs with gaps count as not available (but under available_incl_delayed_pct, column «Up to date or delayed (%)»). The duration of an incident covers both delayed and down time, so it is longer than downtime_min, and an incident can span several datasets. Measurements of service reachability alone (e.g. ginko.ch/ogd_monitor) therefore give higher values. The resolution is that of the checks (15 minutes): an outage shorter than that between two checks is not seen. For products with a fixed cadence (radar images, forecast runs), punctuality per delivery would be more precise; see the incident assessment (backfill).

Page

  • Overview: one strip per group A–E for the last 72 hours, one bar per hour. A bar is green when all datasets of the group were up to date, red when none was, otherwise orange.
  • Opening a group shows its datasets with key figure, status and their own strip. Deep links open the group: #group-D or #monitor-<key>, e.g. #monitor-radar-rzc.
  • Incidents: list of the last 30 days below the overview (five shown, more on request); clicking a failed hour in a strip jumps to its incident. Deep link: #incident-<id>.
  • Current status, always dated: every dataset is queried on its own, with a time limit per request (20 s) and per measurement (60 s), so a stalled request only affects its own dataset. The page rates at the current time (it advances every 30 s, also without new results) and only with measurements that are still current: a live result counts for two refresh intervals (10 min), then the latest scheduled check takes over if it is at most 60 minutes old. Without a current measurement a dataset shows «unknown» or «no current status» in grey, never green. The headline says where the status comes from and from when. If the scheduled check has not run for over an hour, the page says so.
  • Notes: the intro links to the operational status of geo.admin.ch, group A to the data availability of the ground-based stations.

JSON endpoint

https://meteoswiss.github.io/opendata-status/api/v1/status.json, updated with every check (every 15 minutes). The live status on the page can be newer.

Field Content
api_version 1; fields are only added within a version
checked Time of the check (UTC)
status Overall status of all rated datasets: ok, warn (at least one delayed) or bad (at least one down)
summary Datasets up to date (monitored, realtime) and the share of checks in the last 30 days in which all were up to date
groups[] Status per group A–E with total and ok
items[] One entry per dataset: key, name (de/fr/it/en), group, collection, documentation, metric, interval, status (ok, warn, bad, pause, static), value_min (age or latency in minutes), target_min, limit_min, reference_time (latency: time the newest data refer to), published (when the newest data became available on the STAC API), model_run (forecast models: reference time of the run), access (download test: ok, host, http_status), share of checks with status ok in the last 24 hours and 30 days (ok_share_24h_pct, ok_share_30d_pct), availability over 30 days (availability_30d, see Availability), for pollen also stations
links Page, history files and STAC API

Example: curl -s https://meteoswiss.github.io/opendata-status/api/v1/status.json | jq '.items[] | select(.status != "ok") | .key'

https://meteoswiss.github.io/opendata-status/api/v1/incidents.json lists the incidents of the last 30 days, newest first: start, end (null while ongoing), duration_min, severity, the likely layer (dataset, delivery, storage with hosts, catalog) and per affected dataset its start, end, checks and what failed (reasons: no_new_data, late, run_incomplete, download_failed, no_data, check_failed; plus details such as the HTTP status and host). Failures that start within an hour of each other, or while another failure of the incident still runs, form one incident; a single delayed check is left out. Once a dataset has recovered, backfill records for radar images and local forecast runs which data of the gap were delivered late (late, max_delay_min), are incomplete or still missing; the page shows it as e.g. «Runs 06:00–10:00 delivered late (up to 3 h 25 min), run 05:00 missing». Reasons are recorded since 24 Nov 2026; older incidents have none. The layer is derived from what failed, not a confirmed cause.

The history is available as data/history.json (per check) and data/history_items.json (per check and dataset). It covers the last 35 days, so that a whole calendar month can be archived; everything shown on the page and in the endpoints refers to the last 30 days.

Monthly archive

At the first check of a month, the workflow archives the previous calendar month (UTC) on the branch monitor-archive, for later analysis:

File Content
availability/YYYY-MM.json Availability per rated dataset over the calendar month, computed as in Availability (available_pct, available_incl_delayed_pct, downtime_min, delayed_min, unknown_h, incidents, plus name, group, realtime, show_availability), and the incidents that started in the month
history/YYYY-MM.json.gz Raw checks of the month (history, history_items), to recompute other figures later

first_check, checks and complete show how well the month is covered: complete is false if the history does not reach back to the start of the month, as for November 2026 (monitoring since 10 November). An existing month is never overwritten. If the first run of a month fails, the next run archives it; the 35-day history leaves a few days for that.

The branch is never force-pushed and grows by one commit per month: https://github.com/MeteoSwiss/opendata-status/tree/monitor-archive.

Notes

  • GitHub may delay scheduled runs by a few minutes under load, and disables scheduled workflows in public repositories after 60 days without repository activity. If the history stops, check this first.
  • Each page view sends about 40 small requests to the STAC API and data.geo.admin.ch (about 15 of them station files for the pollen median), repeated every 5 minutes while the page is open. If that is too much, raise refreshMinutes (prop of OgdMonitor, default 5, set it in src/main.jsx).
  • The history files are also public at https://raw.githubusercontent.com/MeteoSwiss/opendata-status/monitor-data/ and on the page under data/.