From b732ff0c38c52a7affb6a35b665c637c05a0c6b5 Mon Sep 17 00:00:00 2001 From: codex-bot Date: Wed, 9 Sep 2026 17:52:22 +0100 Subject: [PATCH] README: document actual app (was stale hello-world copy) --- README.md | 238 ++++++++++-------------------------------------------- 1 file changed, 41 insertions(+), 197 deletions(-) diff --git a/README.md b/README.md index 3fe2b80..3bd7e3d 100644 --- a/README.md +++ b/README.md @@ -1,209 +1,53 @@ -# Xiaomi Vela Hello World for Watch S4 +# SUNDIAL — sun-path dial for Xiaomi Watch S4 -This is the smallest practical Xiaomi Vela JS watch application. It shows two centered lines on a round black screen: +A round watch face-style app: an amber sun orbits the upper arc during daylight +(sunrise left → sunset right), a grey moon traces the lower arc at night. Center +shows the clock, DAYLIGHT/NIGHT phase, and a countdown to the next sunrise/sunset. +Location is hardcoded (Paris by default — edit `LAT`/`LON` in `src/pages/index/index.ux`). + +**Status: WORKING ON WATCH** (user-confirmed since v0.2). + +## Features + +- NOAA solar-position algorithm (Meeus), fully offline — no GPS/network +- Two-tone day/night dial with horizon line, bezel ring, and hour ticks +- Sun halo glow; moon marker at night +- 30s refresh; timer cleared on hide/destroy (battery-friendly) +- designWidth 466 = 1:1 mapping to the S4 41mm round screen + +## Project layout ```text -Hello World! -Xiaomi Watch S4 +src/ +├── app.ux # app lifecycle (must wrap JS in