mirror of
https://github.com/screentinker/screentinker.git
synced 2026-06-29 09:23:16 -06:00
* Add PIP-Weather-Radar example (TV-style live radar overlay) A "cut to radar" PiP recipe: a Leaflet map (vendored locally for the CSP) with a CARTO dark basemap, an animated RainViewer radar loop, and live NWS warning polygons drawn and color-coded (tornado/severe-tstorm/ flash-flood/flood) with a pulsing "LIVE RADAR" HUD, count chips, and a legend. Auto-frames the view to the active warning polygon(s). Two modes: "always" (radar always up) and "on_warning" (default) which shows the radar only while a qualifying warning covers the configured point and clears it when the warnings expire — like a station breaking in during severe weather. 100% keyless / open data: RainViewer radar, CARTO/OSM basemap, NWS alerts. Zero Node deps; Leaflet is vendored client-side via vendor-leaflet.sh (gitignored). Offline test covers the warning gate, color map, RainViewer tile-URL builder, and overlay-URI round-trip. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * docs(radar): note Leaflet is vendored locally, not committed Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
24 lines
634 B
JSON
24 lines
634 B
JSON
{
|
|
"mode": "on_warning",
|
|
|
|
"api_base": "https://signage.example.com",
|
|
"api_token": "st_REPLACE_WITH_A_FULL_SCOPE_TOKEN",
|
|
"overlay_base_url": "https://signage.example.com/radar-overlay.html",
|
|
"device_id": "DEVICE_OR_GROUP_ID",
|
|
|
|
"area_label": "Milwaukee County, WI",
|
|
"lat": 43.0389,
|
|
"lon": -87.9065,
|
|
"zoom": 8,
|
|
"states": ["WI"],
|
|
"events": ["Tornado Warning", "Severe Thunderstorm Warning", "Flash Flood Warning", "Flood Warning"],
|
|
|
|
"poll_interval_sec": 60,
|
|
"position": "bottom-right",
|
|
"width": 760,
|
|
"height": 540,
|
|
"border_radius": 12,
|
|
|
|
"noaa_user_agent": "ScreenTinker-Weather-Radar (you@example.com)"
|
|
}
|