What's New in 3.0
Alpha 2 release — functional and tested but not yet through the full testing matrix. Please report issues.
Changes in alpha2 (since alpha1)
Added
show_color_baroption — hide the RainViewer radar colour scale bar (default shown)show_progress_baroption — hide the frame timeline bar (default shown)map_style: Auto— follows OS dark/light mode viaprefers-color-scheme; map reinitialises automatically when the system theme changes at runtimedouble_tap_action— configurable double-tap/double-click action: built-in shortcuts (recenter,toggle_play) or any standard HA action object (navigate,call-service, etc.)- Scrubbable timeline — click or drag the progress bar to seek to any frame; dragging pauses playback, releasing resumes it
- Locale-aware frame timestamp — uses
Intl.DateTimeFormatwith the browser locale, so 12 h (AM/PM) or 24 h is chosen automatically per the user's regional settings
All changes since v2 (alpha1 + alpha2)
Added
- NOAA/NWS radar source — US-only experimental mode using MRMS base reflectivity via
mapservices.weather.noaa.gov - Show Snow option — includes or excludes snow in RainViewer precipitation tiles
- Rate-limit banner — visible indicator when the API tile quota is temporarily exhausted
- Save map center in edit mode — pan/zoom the card while editing and click the overlay button to write
center_latitude,center_longitude, andzoom_levelback to config without manually entering coordinates - Marker icon options —
default,entity_picture, and MDI icon types configurable per device (desktop / mobile) show_color_baroption — hide the RainViewer radar colour scale bar (default shown)show_progress_baroption — hide the frame timeline bar (default shown)map_style: Auto— follows OS dark/light mode; map reinitialises automatically when the system theme changesdouble_tap_action— shortcut strings (recenter,toggle_play,none) or any HA action object in YAML- Scrubbable timeline — click or drag the progress bar to seek to any frame
- Locale-aware frame timestamp — 12 h/24 h chosen automatically from browser locale
Changed
- Breaking: Leaflet is now bundled.
leaflet.js,leaflet.css,leaflet.toolbar.min.js, andleaflet.toolbar.min.cssare no longer distributed as separate files — they are compiled intoweather-radar-card.js. Delete the old files fromwww/community/weather-radar-card/when upgrading. - Breaking: iframe removed. The card is now a native LitElement / Shadow DOM component. No srcdoc, no opaque origin workarounds, proper HA theming integration.
- Leaflet.Toolbar2 replaced by a native
L.Controlimplementation — removes the external toolbar dependency entirely. - Animation engine replaced: frame switching is now driven by JavaScript opacity writes with CSS
transitionfor crossfades, replacing the previous CSS@keyframesengine. - Map auto-selects
Light(CARTO) for English-language HA instances in light mode andOSMfor all other languages;map_style: Autoextends this with dark-mode awareness. - Marker defaults to HA home location (
hass.config.latitude/longitude) rather than the card'scenter_latitude. - Navigation settle delay reduced from 500 ms to 100 ms.
Fixed
- Animation flash-on-load caused by duplicate
_initRadarruns _updateRadarcrash when the RainViewer API returns an empty frame list_updateRadarmutations continuing after card teardownresolveCoordinatetreating coordinate0as falsy (equator / Prime Meridian)- Mobile marker icon defaulting to
entity_picturewhen not configured visibilitychangelistener accumulating across card reinitializations- Worker Blob URL never revoked on teardown
Installation (manual)
Copy these files to www/community/weather-radar-card/ in your HA config directory:
weather-radar-card.jshome-circle-dark.svg,home-circle-light.svgpause.png,play.png,recenter.png,skip-back.png,skip-next.pngradar-colour-bar-universalblue.png
Upgrading from v2: delete leaflet.js, leaflet.css, leaflet.toolbar.min.js, and leaflet.toolbar.min.css — bundled into weather-radar-card.js in v3.
resources:
- url: /local/community/weather-radar-card/weather-radar-card.js
type: module