Skip to content
s3lfcod3rPublic

About

Unwetter- & Hagel-Ampel: mehrere Wettermodelle ehrlich gegeneinander gerechnet. Live: wetter.selfcoder.de

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SelfStorm logo

Your severe-weather & hail traffic light — multiple weather models, honestly cross-checked.
Deine Unwetter- und Hagel-Ampel — mehrere Wettermodelle, ehrlich gegeneinander gerechnet.

Version License Web Live Ko-fi

🇬🇧 English · 🇩🇪 Deutsch

📰 What's new / Neuigkeiten → CHANGELOG.md


🇬🇧 English

SelfStorm shows a simple traffic light (green/yellow/orange/red) for severe weather — especially hail, thunderstorms, wind and heavy rain — for your locations. Instead of a single source it cross-checks several weather models ("1 of 4 models sees thunderstorms"), so you can judge how confident a warning is. Live at wetter.selfcoder.de.

Part of the Self family (SelfMailer, SelfArchiver, SelfDashboard …) — same design system; hosted on GitHub Pages + GitHub Actions instead of Unraid.

TL;DR — hail & storm traffic light · multi-model consensus · official DWD + BBK warnings · Germany map · no account

⚠️ Not an official warning service: SelfStorm is a free hobby project. In an emergency, always rely on the German Weather Service (WarnWetter app / NINA) or your national weather service.

📑 Table of contents

Features · Data sources · Architecture · Quick start · Security · Tech stack · Development · Roadmap

✨ Features

🚦 Traffic light

  • Location search by place name or postal code — as many locations as you like
  • Traffic light per location with a plain-language verdict, risk ring, hazard chips and a risk outlook per 24 h
  • Model consensus over several weather models (ICON, GFS, ECMWF, GEM via Open-Meteo)
  • Many hazards: hail, thunderstorm, wind, heavy rain, heat, frost, black ice, snow, fog
  • Location detail: rain nowcast, 24 h curve, gust gauge, sunrise/sunset

🗺️ Maps & official warnings

  • Official DWD warnings (Bright Sky), per municipality on the map; outages are shown as such, not as "all clear"
  • BBK / MoWaS warnings (nationwide list and warning areas on the map, all-clears labelled, expired ones filtered, refresh every 5 min while the tab is visible + manual refresh)
  • Interactive Germany map with drag and zoom, forecast as areas, 3-day time-lapse, rain as radar areas (mm/h), districts and villages when zooming in

🛰️ Data sources

Source Used for
Open-Meteo Weather models (ICON, GFS, ECMWF, GEM) and geocoding
Zippopotam Postal code lookup
Bright Sky Official DWD warnings
warnung.bund.de BBK / MoWaS warnings (JSON), mirrored into bbk/
DWD (maps.dwd.de) Warning areas
OpenStreetMap (Overpass) Place names for the map

🧭 Architecture

GitHub Pages (wetter.selfcoder.de)          GitHub Actions
┌───────────────────────────────┐    ┌──────────────────────────────────┐
│ index.html  traffic light     │    │ karte.yml     every 6 h          │
│ karte.html  Germany map       │    │   map/build-grid.mjs → grid.json │
│ hazards.js  shared heuristic  │◀───│ bbk.yml       every 10 min       │
│ bbk*.js     BBK warnings      │    │   warner/bbk-sync.mjs → bbk/     │
│ map/        map + GeoJSON     │    └──────────────────────────────────┘
└──────────────┬────────────────┘
               │
               ▼ browser fetches directly
     Open-Meteo · Bright Sky · Zippopotam · DWD

BBK warnings are mirrored into the repo by bbk-sync.mjs, because the browser cannot load them directly (CORS).

🚀 Quick start

Open wetter.selfcoder.de → search your location → done. Locations stay in your browser.

To run it yourself: plain HTML/JS, no build, no API key — serve the folder with any static web server:

python -m http.server 8080

Open http://localhost:8080 → the traffic light runs locally.

🛡️ Security

  • No account, privacy-friendly — your locations are stored only in your browser (localStorage)
  • No API keys in the website — all weather sources are free and keyless
  • Warning texts are rendered with textContent (no HTML injection from foreign data); DWD requests with 12 s timeout and whitelist
  • Deliberate trade-offs (documented): the audit of 29 Sep 2026 (docs/PRUEFBERICHT.md) lists open findings (e.g. later DWD load errors on the map not flagged, thunderstorm consensus includes past hours) — not yet fixed; no meteorological calibration

Security update history → CHANGELOG.md (entries marked 🔒).

🧱 Tech stack

Part Tech
Web Plain HTML · CSS · JavaScript (no build) · Self brand tokens · Orbitron (self-hosted)
Map Own map module (map/dekarte.js) · GeoJSON (states, municipalities)
Sync Node.js scripts (BBK mirror, map grid)
Deploy GitHub Pages · GitHub Actions (2 cron workflows)

🛠️ Development

Concept and background: docs/KONZEPT.md.

Tests:

node tests/bbk.cjs
node tests/bbk-fetch.cjs

🗺️ Roadmap

  • Phase 1 — live traffic-light website (GitHub Pages)
  • Phase 2 — watcher with push and e-mail notifications (removed in 0.5.0)
  • Official DWD warnings, interactive Germany map, BBK warnings
  • Phase 3 — polish, fix open audit findings, app

⬆ back to top


🇩🇪 Deutsch

SelfStorm zeigt für deine Orte eine einfache Ampel (grün/gelb/orange/rot) für Extremwetter — besonders Hagel, Gewitter, Sturm und Starkregen. Statt einer einzelnen Quelle werden mehrere Wettermodelle transparent gegeneinander gerechnet („1 von 4 Modellen sieht Gewitter“), damit du einschätzen kannst, wie sicher eine Warnung ist. Live unter wetter.selfcoder.de.

Teil der Self-Familie (SelfMailer, SelfArchiver, SelfDashboard …) — gleiches Design-System; läuft auf GitHub Pages + GitHub Actions statt auf Unraid.

Kurz — Hagel- und Unwetter-Ampel · Modell-Konsens · amtliche DWD- + BBK-Warnungen · Deutschlandkarte · kein Konto

⚠️ Keine amtliche Warnung: SelfStorm ist ein freies Hobby-Projekt. Im Ernstfall gilt immer der Deutsche Wetterdienst (WarnWetter-App / NINA).

📑 Inhaltsverzeichnis

Funktionen · Datenquellen · Architektur · Schnellstart · Sicherheit · Tech-Stack · Entwicklung · Roadmap

✨ Funktionen

🚦 Ampel

  • Ortssuche nach Name oder Postleitzahl — beliebig viele Orte
  • Ampel je Ort mit Klartext-Fazit, Risiko-Ring, Gefahren-Chips und Risiko-Ausblick je 24 Std.
  • Modell-Konsens über mehrere Wettermodelle (ICON, GFS, ECMWF, GEM über Open-Meteo)
  • Viele Gefahren: Hagel, Gewitter, Sturm, Starkregen, Hitze, Frost, Glätte, Schnee, Nebel
  • Orts-Detail: Regen-Nowcast, 24-Std.-Kurve, Böen-Anzeige, Sonnenzeiten

🗺️ Karten & amtliche Warnungen

  • Amtliche DWD-Warnungen (Bright Sky), gemeindegenau auf der Karte; Ausfälle werden als Ausfall gezeigt, nicht als Entwarnung
  • BBK-/MoWaS-Warnungen (bundesweite Liste und Warngebiete auf der Karte, Entwarnungen beschriftet, abgelaufene ausgefiltert, alle 5 min neu solange der Tab sichtbar ist + manuelles Aktualisieren)
  • Interaktive Deutschlandkarte zum Ziehen und Zoomen, Vorhersage als Flächen, 3-Tage-Zeitraffer, Regen als Radar-Fläche (mm/h), Stadtteile und Dörfer beim Heranzoomen

🛰️ Datenquellen

Quelle Wofür
Open-Meteo Wettermodelle (ICON, GFS, ECMWF, GEM) und Ortssuche
Zippopotam Postleitzahl-Auflösung
Bright Sky Amtliche DWD-Warnungen
warnung.bund.de BBK-/MoWaS-Warnungen (JSON), gespiegelt nach bbk/
DWD (maps.dwd.de) Warngebiete
OpenStreetMap (Overpass) Ortsnamen für die Karte

🧭 Architektur

GitHub Pages (wetter.selfcoder.de)          GitHub Actions
┌───────────────────────────────┐    ┌──────────────────────────────────┐
│ index.html  Ampel             │    │ karte.yml     alle 6 Std.        │
│ karte.html  Deutschlandkarte  │    │   map/build-grid.mjs → grid.json │
│ hazards.js  gemeinsame Regeln │◀───│ bbk.yml       alle 10 min        │
│ bbk*.js     BBK-Warnungen     │    │   warner/bbk-sync.mjs → bbk/     │
│ map/        Karte + GeoJSON   │    └──────────────────────────────────┘
└──────────────┬────────────────┘
               │
               ▼ Browser fragt direkt ab
     Open-Meteo · Bright Sky · Zippopotam · DWD

BBK-Warnungen spiegelt bbk-sync.mjs ins Repo, weil der Browser sie nicht direkt laden darf (CORS).

🚀 Schnellstart

wetter.selfcoder.de öffnen → Ort suchen → fertig. Deine Orte bleiben in deinem Browser.

Selbst betreiben: reines HTML/JS, kein Build, kein API-Key — den Ordner mit einem beliebigen statischen Webserver ausliefern:

python -m http.server 8080

http://localhost:8080 öffnen → die Ampel läuft lokal.

🛡️ Sicherheit

  • Kein Konto, datensparsam — deine Orte liegen nur in deinem Browser (localStorage)
  • Keine API-Keys in der Webseite — alle Wetterquellen sind kostenlos und ohne Schlüssel
  • Warntexte werden per textContent ausgegeben (kein HTML aus Fremddaten); DWD-Abfragen mit 12-s-Timeout und Erlaubnisliste
  • Bewusste Kompromisse (dokumentiert): Der Prüfbericht vom 29.09.2026 (docs/PRUEFBERICHT.md) nennt offene Befunde (z. B. spätere DWD-Ladefehler auf der Karte nicht markiert, Gewitterkonsens bezieht vergangene Stunden ein) — noch nicht behoben; keine meteorologische Kalibrierung

Verlauf der Sicherheitsupdates → CHANGELOG.md (Einträge mit 🔒).

🧱 Tech-Stack

Teil Technik
Web Reines HTML · CSS · JavaScript (kein Build) · Self-Marken-Tokens · Orbitron (selbst gehostet)
Karte Eigenes Kartenmodul (map/dekarte.js) · GeoJSON (Bundesländer, Gemeinden)
Abgleich Node.js-Skripte (BBK-Spiegel, Kartenraster)
Deploy GitHub Pages · GitHub Actions (2 Zeitplan-Workflows)

🛠️ Entwicklung

Konzept und Hintergrund: docs/KONZEPT.md.

Tests:

node tests/bbk.cjs
node tests/bbk-fetch.cjs

🗺️ Roadmap

  • Phase 1 — Live-Ampel-Webseite (GitHub Pages)
  • Phase 2 — Wächter mit Push- und E-Mail-Benachrichtigung (entfernt in 0.5.0)
  • Amtliche DWD-Warnungen, interaktive Deutschlandkarte, BBK-Warnungen
  • Phase 3 — Feinschliff, offene Prüfbefunde beheben, App

⬆ nach oben


☕ Support / Unterstützen

🇬🇧 This project is free for private use and built in my spare time. If it saves you time, a coffee keeps the next update coming. No pressure, a ⭐ on the repo helps too!

🇩🇪 Dieses Projekt ist für private Nutzung kostenlos und entsteht in meiner Freizeit. Wenn es dir Zeit spart, hält ein Kaffee das nächste Update am Laufen. Kein Muss, ein ⭐ auf dem Repo hilft auch!

Support me on Ko-fi


⚖️ Lizenz / License

🇩🇪 Alle Rechte vorbehalten. © 2026 s3lfcod3r / SelfCoder

Du darfst die Software privat und nicht-kommerziell installieren und benutzen (z. B. im Homelab, über Docker oder Unraid).

Ohne schriftliche Erlaubnis verboten: kommerzielle Nutzung · Kopieren · Verändern · Weitergeben · Einbauen in eigene Projekte (auch Closed Source) · Verkaufen.

Details: LICENSE

🇬🇧 All rights reserved. © 2026 s3lfcod3r / SelfCoder

You may install and use the software privately and non-commercially (e.g. in your home lab, via Docker or Unraid).

Not permitted without written permission: commercial use · copying · modifying · redistributing · incorporating into other projects (including closed source) · selling.

Details: LICENSE



SelfStorm · part of the Self family · Teil der Self-Familie
made with ⛈️ for self-hosting

About

Unwetter- & Hagel-Ampel: mehrere Wettermodelle ehrlich gegeneinander gerechnet. Live: wetter.selfcoder.de

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages