Skip to content
Proyectos

jpettitt/weather-radar-card

Ver en GitHub

Acerca de

Radar meteorológico animado para Home Assistant, con radares de RainViewer, NOAA y DWD, y capas superpuestas de viento, rayos, terremotos, alertas del NWS e incendios forestales.

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

What you can do

  • map_style: MapTilesVector — Home Assistant 2026.10's vector map under the radar. Place names are drawn above the radar and above every overlay, so they stay readable through rain. Sharp at every zoom, light or dark with HA's theme. Without WebGL2, or in low_power_mode, the card shows MapTiles instead.
  • vector_style — one of the six styles of HA's map cards, or classic: the colours of the classic OpenStreetMap map, with a dark version tuned by hand.
  • theme_mode: auto | light | dark — forces the light or dark version of MapTilesVector, Auto and MapTiles.
  • Satellite labels above the radar — on HA 2026.10+, Satellite draws place and street names from HA's map tiles above the radar. No CARTO key is needed for them.

Crecimiento de estrellas medido

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Weather Radar Card

A Home Assistant rain radar card using tiled radar imagery from RainViewer, NOAA/NWS, and DWD (Deutscher Wetterdienst).

marketplace_badge GitHub Release License Maintenance

4.0 is the current release. It adds Home Assistant's vector map under the radar, view presets and layer toggles. It needs Home Assistant 2025.3 or later. Upgrading to 4.0 lists what changes and how to go back to 3.13.0.

Description

This card displays animated weather radar loops within Home Assistant. It supports multiple radar data sources and map styles, including Home Assistant's own vector map with place names drawn above the radar, and can be zoomed and panned seamlessly. Markers, view presets, hazard overlays (US wildfires, NWS watches & warnings, worldwide earthquakes (beta)) with per-user layer toggles, real-time lightning, a forecast nowcast (DWD), opt-in motion-compensated playback (rain drifts between frames instead of teleporting), adjustable playback speed with optional per-user persistence, full sections-grid resize support, and 11 languages.

Weather Radar card

Video demo

Full-screen capture with every feature enabled — radar with motion compensation, lightning, wind streamlines, hazard overlays, playback controls:

Watch the demo on YouTube

What's new in 4.0

Breaking changes

  • Home Assistant 2025.3 or later. 3.x needs 2024.1. On older Home Assistant, use 3.x. From 3.6.3, the 3.x editor's text fields are empty on HA before 2026.4, so set those options in YAML.
  • Re-centre with a tracked marker. The button now switches between the tracked marker and Default, the configured centre. Default holds, with tracking paused, until the next press or until preset_timeout idle minutes (default 5) return the map to the tracked marker. Set preset_timeout: 0 to hold Default until the next press. Cards without a tracked marker re-centre as before.
  • Manual installs need a second file. weather-radar-card-maplibre.js must sit next to weather-radar-card.js. The Marketplace and HACS install it. See Install.

Features

  • map_style: MapTilesVector — Home Assistant 2026.10's vector map under the radar. Place names are drawn above the radar and above every overlay, so they stay readable through rain. Sharp at every zoom, light or dark with HA's theme. Without WebGL2, or in low_power_mode, the card shows MapTiles instead.
  • vector_style — one of the six styles of HA's map cards, or classic: the colours of the classic OpenStreetMap map, with a dark version tuned by hand.
  • theme_mode: auto | light | dark — forces the light or dark version of MapTilesVector, Auto and MapTiles.
  • Satellite labels above the radar — on HA 2026.10+, Satellite draws place and street names from HA's map tiles above the radar. No CARTO key is needed for them.
  • extra_labels on the vector map and Satellite — each label kind appears a zoom level earlier, smaller and packed tighter.
  • View presets — presets turns the re-centre button into a rotation: the tracked marker, Default, then each saved view, a fixed spot or an entity the map follows, each with its own zoom. The map returns on its own after preset_timeout idle minutes. The editor's Presets page edits them on the preview map.
  • Layer toggles — show_layer_toggles adds buttons in the map's top-right corner that hide or show NWS alerts, wind, wildfires, earthquakes and lightning. A hidden overlay stops fetching. With viewer_layer_control, each user's choices are saved.
  • Editor — the Display toggles are in four groups, the map settings show only the fields the chosen style uses, and the preview card has the size it has on the dashboard.
  • Dark tile maps are greyer — the inverted map keeps less of its colour, so forests and roads no longer compete with the radar.

See Examples for ready-made 4.0 configurations. For the 3.x history see the CHANGELOG.

Roadmap

Active threads, no specific version commitment. See docs/todo.md for the full backlog with status per item.

  • Additional wind sources — Open-Meteo for global coverage, ICON pressure levels for upper-air wind, regional finer-than-ICON-D2 sources (AROME, MEPS, HRRR). Tiers and trade-offs documented in docs/todo.md.

Documentation

Topic What's there
Upgrading to 4.0 What changes from 3.13, how to try 4.0, how to go back
Configuration Full options table, Map Style choices (vector map included), Animation knobs, low power mode, View presets, Double-tap action, sections-grid behaviour
Data Sources RainViewer / NOAA / DWD specifics, per-source caps, tile caching, NOAA & DWD notes, DWD forecast leading-edge note
Hazard & Layer Overlays Layer toggles, US wildfire perimeters, NWS watches & warnings, earthquakes (USGS), lightning (Blitzortung), and global wind — usage, knobs, safety disclaimers
Markers The markers[] schema, track-resolution rules, default home marker, migration from the legacy single-marker fields
Examples Sample YAMLs for common setups, and the 4.0 features: vector map, satellite labels, presets, layer toggles
Animation architecture Internal: layer z-stack, two-slot crossfade, opacity ownership, dynamic tile size, pause behaviour, invariants
Layer control design Internal: the per-user layer toggles and the viewer-state framework behind them
Wildfire feature design Internal: NIFC WFIGS feed, render decisions, InciWeb gating, refresh cadence
Earthquake feature design Internal: why the USGS feeds, marker style, own canvas and hit test, refresh
NWS alerts feature design Internal: api.weather.gov polling, zone resolution + caching, severity sort, popup chrome
Wind feature design Internal: bulk WCS fetch + adaptive scaling, coalescing cache, zoom-aware streamlines, layering
Motion compensation feature design Internal: pyramidal Lucas-Kanade optical flow, distance-from-white channel, inline-Blob worker pattern, crossfade-time translate
Backlog / TODO Open and shipped features
Contributing Local dev setup including the Docker HA testbed (npm run ha:up)

Install

Marketplace or HACS

The card is in the default catalog.

Open in the Marketplace

  • Home Assistant 2026.11 and later: go to Settings > Marketplace, search for "Weather Radar Card", and select Install.
  • Home Assistant 2026.10 and earlier: search for "Weather Radar Card" in HACS and select Download.

Both install all files. Reload your browser after the install.

Manual

Download the files from the latest release and place them in www/community/weather-radar-card in your HA config directory:

└── configuration.yaml
└── www
    └── community
        └── weather-radar-card
            └── weather-radar-card.js
            └── weather-radar-card-maplibre.js
            └── home-circle-dark.svg
            └── home-circle-light.svg
            └── pause.png
            └── play.png
            └── preview.jpg
            └── radar-colour-bar-dwd.png
            └── radar-colour-bar-nws.png
            └── radar-colour-bar-universalblue.png
            └── recenter.png
            └── skip-back.png
            └── skip-next.png

Copy the .js.gz files too if you have them: HA serves the compressed copy when one sits next to the file, also when it is older than the .js file. When you upgrade, replace both .gz files or delete them. weather-radar-card-maplibre.js is only loaded for map_style: MapTilesVector and for Satellite labels; without it those show MapTiles and CARTO labels instead.

Upgrading from v2? Delete leaflet.js, leaflet.css, leaflet.toolbar.min.js, and leaflet.toolbar.min.css from www/community/weather-radar-card/ — they are bundled into weather-radar-card.js in v3 and the old files are no longer used.

Then add the following to your Lovelace resources:

resources:
  - url: /local/community/weather-radar-card/weather-radar-card.js?v=4.0.0
    type: module

Browsers keep files from /local for up to 31 days. After each manual upgrade, change the ?v= value in the resource URL (for example to the new version), or reload each browser and companion app with Ctrl+F5. Marketplace and HACS installs do this for you.

Minimal config

type: 'custom:weather-radar-card'

That's it. The card defaults to RainViewer, your HA instance's location, and a zone.home marker. From there, the GUI editor exposes every knob — see Configuration for the full reference and Examples for common starting points.

For touchscreen dashboards, YAML can enlarge the timeline scrub target upward over the lower map while preserving its slim visual track and original bottom-bar height:

show_progress_bar: true
progress_bar_touch_height: 44

Sizing

How tall the card renders depends on where it lives:

  • Masonry / panel views, or a sections cell with rows: auto — the card uses the height: config option (default 400px). This is the normal case.
  • A sections-grid cell with a fixed row count (you've dragged the resize handle, or rows: is a number) — the grid cell owns the height. The card fills the cell and the height: option is ignored; resize it with the cell's drag handle instead. The editor disables the height box in this case so it's clear which control is in charge.

In other words: rows: auto → height: applies; rows: <number> → the cell's height applies. See sections-grid behaviour for details.

Changelog

See CHANGELOG.md for the complete history of changes.

Network access

Network access lists each server outside Home Assistant that the card contacts, why, and when.

Explorar proyectos relacionados

Cargando…