github jpettitt/weather-radar-card v3.7.1

4 hours ago

Stable release. Graduates the 3.7.1-beta1 bug fix to stable — unchanged since the beta. Drop-in upgrade from 3.7.0; no config or behaviour changes.

🐛 Fix — if you use NWS watches & warnings, install this

The zone-shape cache was filling localStorage and could break your whole dashboard — not just this card.

The NWS-alerts layer cached zone-boundary polygons in localStorage, whose ~5 MB quota is shared across all of Home Assistant's frontend and every custom card on your dashboard. The full set of US alert zones is ~8,400 zones / ~170 MB of raw GeoJSON (a single marine zone can be ~120 KB), so a heavy watches-and-warnings user filled that quota.

Once the shared quota was full, localStorage writes from other cards and Home Assistant's own frontend also started throwing QuotaExceededError — so one overfull radar card could make unrelated cards across the dashboard misbehave. If you've seen random card breakage alongside heavy NWS alert use, this was very likely the cause.

The fix: the zone cache now lives in IndexedDB (quota is a share of free disk — hundreds of MB+ — the same store HA uses for its icon cache). Geometry is quantised to ~11 m and gzip-compressed (~4× smaller, stored as binary), bounded by a 30-day TTL and an entry-count cap. On first run the card automatically purges the old localStorage zone entries, immediately reclaiming the shared space they occupied.

No config changes. Zones persist reliably again, and the card is no longer a bad neighbour to the rest of your dashboard. Validated on a live full-US map: ~1,800 cached zones in IndexedDB, zero localStorage growth.

Full Changelog: v3.7.0...v3.7.1

Don't miss a new weather-radar-card release

NewReleases is sending notifications on new releases.