kiosk: document per-house config via ?zip= / ?name= query params
Location + house name are now KIOSK_URL query params (zip geocoded to coords + place + timezone). Drop the hardcoded 55331/America/Chicago language; record the defaults and how to point a screen at another house. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+10
-2
@@ -21,8 +21,7 @@ look right at full 4K landscape. (Confirmed on-screen 2026-06-01.)
|
||||
<the-kiosk-page>
|
||||
The default page both screens show is `https://kiosk.vino.network` — an
|
||||
editorial wall-art homepage: a **live iOS-Weather-style animated sky** +
|
||||
live local-time clock (pinned `America/Chicago`) + current weather for
|
||||
55331 (Minnetrista) from `api.open-meteo.com` (the one external call). The
|
||||
live local-time clock + current weather from `api.open-meteo.com`. The
|
||||
sky is driven by the Open-Meteo `weather_code` (+ `wind_speed`) +
|
||||
`sunrise`/`sunset`: sun (clear/partly days) and moon (clear/partly nights)
|
||||
**arc across the sky by real time-of-day**, with a warm dawn/dusk horizon
|
||||
@@ -42,6 +41,15 @@ Source repo: `websites/kiosk.vino.network` (clone at `~/code/git/code.fritzlab.n
|
||||
content in `html/`, served from Garage S3 via the standard site-publish flow
|
||||
(fritzlab `gitops.md` <static-sites>).
|
||||
|
||||
<per-house-config>Location + house name are **query params on `KIOSK_URL`**, so
|
||||
one page serves any household: `?zip=<us-zip>&name=<House%20Name>`. `name` sets
|
||||
the eyebrow + tab title; `zip` is geocoded once at load (Zippopotam.us) → lat/lon
|
||||
+ "City, State" place line, and Open-Meteo runs `timezone=auto` so the clock
|
||||
follows that zip's timezone. No params → Hawks Nest / Minnetrista 55331 /
|
||||
`America/Chicago` defaults (bad zip falls back to these too). To point a screen
|
||||
at a different house, set `KIOSK_URL=https://kiosk.vino.network/?zip=...&name=...`
|
||||
per pod via GitOps (see <change-page> for the apps-repo edit + hard-refresh).</per-house-config>
|
||||
|
||||
**"Update the kiosk page" = edit the page content**, NOT the KIOSK_URL: edit
|
||||
`html/index.html` (or `404.html`) in that repo, commit + push to main → the
|
||||
`Publish` Gitea Action (site-publish) syncs to the bucket in ~30s. Verify with
|
||||
|
||||
Reference in New Issue
Block a user