Commit 413964c
v0.2.0: location markers, configurable main clock, theme-friendly colors
Markers
- new `markers:` config: pin any number of HA entities (zone /
person / device_tracker) on the map. Each shows a colored dot,
the entity's friendly_name (or a per-marker override), and the
current local time at that location, DST-aware via IANA polygon
hit-test.
- per-marker `color`, card-wide `markerColor`, or — when neither
is set — the new `--geo-marker-color` CSS variable lets themes
restyle without touching card config.
- `markerLabelMode: always | hover` controls whether the label +
time render under the dot or only on hover/tap.
- `markerShowDay` (default true) appends the weekday after the
time so a marker on the far side of the planet whose date has
rolled over reads obviously.
- markers are HTML overlays, not SVG, so the dot, halo, and label
text stay at fixed CSS pixel size regardless of card width
(previous SVG version was illegible on anything but full screen).
Home marker
- new `showHomeMarkerLabel` toggle adds the home name +
current local time under the existing home dot, using the
HA-configured `time_zone` (or polygon hit-test as fallback).
Main clock — BREAKING
- new `mainTimeSource: home | device | entity` (default `home`).
Pre-0.2.0 cards always read the viewing browser's zone; that's
now `mainTimeSource: device`. To preserve old behavior, set
`mainTimeSource: device` explicitly.
- `mainTimeEntity` companion field for `entity` mode.
Editor
- markers panel: per-row entity selector + label + color picker,
add/remove buttons, label-visibility + show-day toggles.
- entity selection now uses HA's `<ha-selector>` (the official
high-level wrapper). Editor awaits `loadCardHelpers()` before
rendering, which is what registers the selector internals —
without this gate the picker tags stayed inert and invisible.
- color pickers now fire on `change` (commit) instead of `input`
(every drag step), eliminating the redraw thrash that made the
picker feel laggy.
- numeric textfields likewise commit on `change` so typing a
number doesn't trigger a map redraw per keystroke.
Internals
- HassLike type unified in src/types.ts; drops the divergent
copies in card and editor.
- `sunElevation` documented as a public test-ground-truth export.
- console.debug noise from earlier debugging dropped.
Docs
- README updated for the breaking change, the new config keys,
the Greenwich (not sun) fallback for non-sun centering modes
when their data is missing, and the editor's actual component
list.
- TODO.md groomed: monthly Blue Marble, HACS release, and the
in-HA-test items ticked off.
- dev/index.html gained controls for the new toggles + colors.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 504827c commit 413964c
11 files changed
Lines changed: 1597 additions & 198 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
46 | 65 | | |
47 | 66 | | |
48 | 67 | | |
| |||
116 | 135 | | |
117 | 136 | | |
118 | 137 | | |
| 138 | + | |
119 | 139 | | |
120 | 140 | | |
121 | 141 | | |
| |||
131 | 151 | | |
132 | 152 | | |
133 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
134 | 173 | | |
135 | 174 | | |
136 | 175 | | |
| |||
145 | 184 | | |
146 | 185 | | |
147 | 186 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
151 | 191 | | |
152 | 192 | | |
153 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
154 | 198 | | |
155 | 199 | | |
156 | 200 | | |
| |||
169 | 213 | | |
170 | 214 | | |
171 | 215 | | |
| 216 | + | |
172 | 217 | | |
173 | 218 | | |
174 | 219 | | |
| |||
210 | 255 | | |
211 | 256 | | |
212 | 257 | | |
213 | | - | |
| 258 | + | |
214 | 259 | | |
215 | 260 | | |
216 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
67 | 89 | | |
68 | 90 | | |
69 | 91 | | |
| |||
101 | 123 | | |
102 | 124 | | |
103 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
104 | 133 | | |
105 | 134 | | |
106 | 135 | | |
| |||
147 | 176 | | |
148 | 177 | | |
149 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
150 | 185 | | |
151 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
152 | 196 | | |
153 | 197 | | |
154 | 198 | | |
| |||
157 | 201 | | |
158 | 202 | | |
159 | 203 | | |
160 | | - | |
161 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
162 | 225 | | |
163 | 226 | | |
164 | 227 | | |
| |||
187 | 250 | | |
188 | 251 | | |
189 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
190 | 260 | | |
191 | 261 | | |
192 | 262 | | |
| |||
0 commit comments