Skip to content

Repository files navigation

AutoClimate

A small, fully automated pipeline that reports how today's weather compares to the long-term climate normal for Glücksburg-Meierwik, Schleswig-Holstein — published daily with no server or manual steps.

What it does

  1. Fetch the latest hourly temperature readings and recent daily precipitation totals for DWD station 01666 from the DWD Climate Data Center open data feed.
  2. Compare the most recent complete day's mean temperature against a smoothed day-of-year climate normal, and each started-or-completed month's accumulated precipitation against its monthly normal (reference period 1991–2020).
  3. Render interactive Plotly charts showing the year so far against those normals.
  4. Publish the charts to GitHub Pages, which is embedded via <iframe> on abs-gruene.de.

Everything runs on a schedule via GitHub Actions — there's no server, database, or manual publishing step involved.

How it's built

Workflow Trigger What it does
daily-report.yml Daily cron (09:00 UTC) Fetches the latest observation, renders the chart, deploys it to GitHub Pages
update-climatology.yml Manual, roughly yearly Recomputes the climate normal from full station history and commits it to the repo

The climate normals are the only thing that needs to persist between runs, so they're committed to the repo as data/climatology_meierwik.csv (day-of-year temperature) and data/precip_climatology_meierwik.csv (monthly precipitation) rather than recomputed on every run.

src/
├── fetch_dwd.py                   # downloads DWD station data (hourly temp, daily kl/precip)
├── compute_climatology.py         # builds the smoothed day-of-year temperature normal
├── compute_precip_climatology.py  # builds the monthly precipitation normal
└── daily_report.py                # ties it together and renders the charts

Running locally

pip install -r requirements.txt
python src/daily_report.py

This writes _site/chart.html, the same file the GitHub Actions workflow publishes.

Data source

DWD Climate Data Center open data — public, no authentication required.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages