jpettitt/weather-radar-card
حول
رادار طقس متحرك لـ Home Assistant، يعرض رادارات RainViewer وNOAA وDWD، مع طبقات للرياح والبرق والزلازل وتنبيهات NWS وحرائق الغابات.
تطوير الويب والتطبيقاتما يمكنك فعله
- 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.
النمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- -١
- خلال 15 يومًا
- -١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلWeather Radar Card
A Home Assistant rain radar card using tiled radar imagery from RainViewer, NOAA/NWS, and DWD (Deutscher Wetterdienst).
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.

Video demo
Full-screen capture with every feature enabled — radar with motion compensation, lightning, wind streamlines, hazard overlays, playback controls:
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_timeoutidle minutes (default 5) return the map to the tracked marker. Setpreset_timeout: 0to 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.jsmust sit next toweather-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 inlow_power_mode, the card showsMapTilesinstead.vector_style— one of the six styles of HA's map cards, orclassic: 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 ofMapTilesVector,AutoandMapTiles.- Satellite labels above the radar — on HA 2026.10+,
Satellitedraws place and street names from HA's map tiles above the radar. No CARTO key is needed for them. extra_labelson the vector map and Satellite — each label kind appears a zoom level earlier, smaller and packed tighter.- View presets —
presetsturns 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 afterpreset_timeoutidle minutes. The editor's Presets page edits them on the preview map. - Layer toggles —
show_layer_togglesadds buttons in the map's top-right corner that hide or show NWS alerts, wind, wildfires, earthquakes and lightning. A hidden overlay stops fetching. Withviewer_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.
- 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, andleaflet.toolbar.min.cssfromwww/community/weather-radar-card/— they are bundled intoweather-radar-card.jsin 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 theheight:config option (default400px). 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 theheight: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.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…
