- 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>
- telemetry/record.py: a Recorder subscribed to Telemetry keeps min/avg/max
per metric for the current hour and appends each finished hour as one JSON
line to records-YYYY-MM.jsonl in the data dir (~400 days kept; whole months
older than that are pruned on start). Best effort by design: a failing disk
logs once and stops recording; nothing else notices. load() merges lines per
hour (a restart re-writes the current hour; torn last lines are skipped).
- app.py: the recorder runs unless --demo (simulated samples must not mix into
real records) and flushes the open hour in close(), after the telemetry
thread has stopped. records(days) validates 1..400.
- Web: GET /api/records?days=N (bad values answer 400 with the reason).
- UI: a range selector above the power/temperature charts switches them
between the live 10 minutes and hourly averages for 24 h / 7 d / 30 d /
1 y; the chart window, tick labels (min/h/d), tooltips and table captions
adapt to the span. Live samples keep accumulating behind a long-range view,
so switching back is instant.
- Tests: test_record.py (5) and a /api/records case in test_web.py; README
updated (API table, System section, layout).
- 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.
- readings.py: PowerReadings.total now sums the known parts (None only when
nothing is known), with a complete property saying whether it under-counts;
the snapshot exposes it as partial and the web UI marks it with a tilde.
- display/service.py: telemetry older than 15 s is drawn as -- instead of
re-rendering frozen readings as if they were current.
- sensors.py: Commander PRO last-known RPMs expire after 10 s instead of
feeding the power model forever (empty list = unknown); a runtime MSR
failure backs off 15 s instead of re-opening PawnIO every second; GPU NVML
reconnects back off 10 s instead of nvmlInit() every second, and the
sample-buffer timestamp resets on a driver-reset reconnect.
- control.py: CpuTemperature read failures back off 15 s instead of churning
the MSR handle every poll.