Skip to content

Forecast NWS: explicit Home/Custom location selector — v0.16.2#29

Merged
ryanbuiltthat merged 1 commit into
mainfrom
claude/prism-smart-dashboard-card-rjlks3
Jul 21, 2026
Merged

Forecast NWS: explicit Home/Custom location selector — v0.16.2#29
ryanbuiltthat merged 1 commit into
mainfrom
claude/prism-smart-dashboard-card-rjlks3

Conversation

@ryanbuiltthat

Copy link
Copy Markdown
Owner

What

For the forecast card's NWS source, replaces the previous "optional latitude/longitude, leave blank for home" fields with an explicit Location selector:

  • Home Assistant location (location: home, default) — uses your HA coordinates.
  • Custom coordinates (location: custom) — reveals latitude/longitude inputs.

The card only applies custom coordinates when location: custom; otherwise it always falls back to the Home Assistant location.

Why

Requested — the coordinate inputs weren't discoverable (they read as optional overrides), so the ask was to keep the home-location option but add a clear custom option. Now it's a visible two-way choice that reveals the inputs only when needed.

Testing

bash build.sh + node test/smoke.js green (NWS smoke case updated to location: custom). In-browser visual confirmation isn't available in this sandbox (no outbound network for the headless Chromium).

VERSION 0.16.1 → 0.16.2.

🤖 Generated with Claude Code


Generated by Claude Code

Replace the optional "leave latitude/longitude blank for home" NWS fields with
an explicit Location select: `home` (default — uses the Home Assistant
location) or `custom` (reveals latitude/longitude inputs). The card only uses
custom coordinates when location is `custom`, otherwise it always falls back to
the Home Assistant location.

Updates README + docs/cards.md (location row + a custom-coordinates example)
and the NWS smoke case. VERSION 0.16.1 -> 0.16.2.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014cpNPVU8j1iiU9CnXgr5JY
@ryanbuiltthat
ryanbuiltthat merged commit 7cd2d9e into main Jul 21, 2026
1 check failed
@ryanbuiltthat
ryanbuiltthat deleted the claude/prism-smart-dashboard-card-rjlks3 branch July 21, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants