Commit Graph
4 Commits
Author SHA1 Message Date
paulandClaude Opus 5.5 a7ebf42838 Privilege split 8/11: The Kurgan's logon task runs without admin rights
- setup.ps1: the elevated part removes the old tasks ("TT LCD Dashboard" and
  the elevated "The Kurgan"); back in the unelevated part, setup registers
  "The Kurgan" as the user with RunLevel Limited and starts it. Registered
  as the user, the tray's "Start with Windows" can change it without admin
  rights (checked on this machine with a throwaway task). Running setup.ps1
  from an elevated window is refused, since the task must be registered
  unelevated. The hardware service's install follows in stage 9.
- kurgan/tray.py: texts for an unelevated task; a failed toggle suggests
  re-running setup.ps1 (for a task an older setup registered elevated).
- README: the task is unelevated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 19:46:48 +13:00
paulandClaude Opus 5.5 8cc1e9223f The sword: tray icon, favicon, header logo and a backdrop for the web UI
- The-Kurgan-Sword.png is the source. kurgan/assets/make_assets.py cleans it
  (drops the white fringe left by the cut-out, smooths the edge to about a
  pixel) and builds everything from it:
  - kurgan/assets/kurgan.ico: the tray icon, 16-256 px, cropped to the
    crossguard; sizes of 32 px and under are brightened a little so the
    metal still reads on a dark taskbar.
  - web/static/favicon.ico: the same crop, 16-48 px.
  - web/static/logo.png: the header logo, the whole sword with the cut-off
    blade faded out.
  - web/static/sword-vertical.png: the whole sword turned 90 degrees
    clockwise.
- tray.py: ICON_PATH replaces the drawn power-tank icon (make_icon is gone).
  app.py already imports ICON_PATH; it went in with f717f7a.
- style.css: the vertical sword is a fixed backdrop below the header, lined
  up with the right edge of the tiles; the cards are 90% opaque so it shows
  through. 90% keeps the grey text at 4.5:1 contrast or better over the
  sword in both themes; 80% dropped it to 3.4:1.
- favicon.svg removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-05 18:25:27 +13:00
paul ba39016d52 Sensor health in the API and UI; balloon tips when something starts going wrong
- telemetry: _source() now remembers each failing source's error message, not
  just the log timestamp; health() reports them and every snapshot carries a
  "health" key, so /api/state shows which sensor source is failing and since
  when. A source that reads again clears its entry.
- Web UI: a header pill counts the failing sources; hovering lists the errors.
- tray: notify() shows a balloon tip from any thread (queued on the tray
  window, NIF_INFO). app.py grows an alert monitor: every 5 s it diffs the
  current bad states (fan failsafes/control errors, AI backend errors, failing
  sensor sources) against the last look and balloons only what is new. The
  first look is the baseline: problems that predate the tray icon stay quiet.
- Tests: test_telemetry.py (5) and test_alerts.py (7); README updated.
2026-12-05 17:51:00 +13:00
paul f631386618 The Kurgan 1.0.0: one process for the LCD, fans, lighting, local LLM servers and the web UI 2026-12-05 16:20:49 +13:00