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.
This commit is contained in:
1 parent
b2da2213b7
commit
ba39016d52
7 files changed
+292
-10
No files matched your search
@@ -50,9 +50,12 @@ is elevated (see `kurgan/ai/launcher.py`). The web UI shows each server's integr
|
||||
|
||||
Open it from the tray icon (left-click, or **Open The Kurgan** in its menu) or browse to
|
||||
<http://127.0.0.1:8080/>. It only listens on 127.0.0.1. The page refreshes once a second while it
|
||||
is visible. Every chart has a **Table** button that shows the same numbers as a table.
|
||||
is visible. Every chart has a **Table** button that shows the same numbers as a table. The tray
|
||||
icon also pops a balloon tip when something starts to go wrong — a fan group entering failsafe,
|
||||
an AI server reporting an error, or a sensor source starting to fail. What is already wrong when
|
||||
The Kurgan starts is not ballooned; it sits in the tray menu and the UI.
|
||||
|
||||
- **System**: CPU and GPU temperature, load, clock and power; GPU memory; the LCD's state. Charts show whole-PC power (stacked: other, CPU, GPU) and temperatures over the last 10 minutes.
|
||||
- **System**: CPU and GPU temperature, load, clock and power; GPU memory; the LCD's state. Charts show whole-PC power (stacked: other, CPU, GPU) and temperatures over the last 10 minutes. When a sensor source's last read failed — a disconnected Commander PRO, a busy NVML — a pill in the header names it and hover shows the error.
|
||||
- **Cooling**: the fan profile selector; each fan group's duty, temperature and RPMs; fan speeds over time; and the selected profile's curves, with a dot for each group's current operating point. Hover over a profile to preview its curves.
|
||||
- **Lighting**: a mode selector per zone (case fans, RAM, GPU), the zone's status, and the shared chase speed.
|
||||
- **AI**: pick Strata (and its model), llama.cpp or None; requests to either address also pick it. Then see the server's process, model, context size, live request progress and token speeds, and when it will stop if unused; load or unload the model; GPU memory over time; and recent requests.
|
||||
@@ -64,7 +67,7 @@ next start.
|
||||
|
||||
| Request | Body / result |
|
||||
| --- | --- |
|
||||
| `GET /api/state` | Everything live (what the UI polls) |
|
||||
| `GET /api/state` | Everything live (what the UI polls), including `telemetry.health`: the sensor sources whose latest read failed, each with its error and age |
|
||||
| `GET /api/history` | The last 10 minutes of telemetry and fan duty |
|
||||
| `GET /api/config` | Fan profiles and LCD theme thresholds |
|
||||
| `POST /api/lighting` | `{"zone": "case_fans"\|"memory"\|"gpu", "mode": "off"\|"temperature"\|"chase"}` |
|
||||
|
||||
Reference in new issue
Block a user