Thermosync light bridge — ChopWatch implementation (v1)
Thermosync implements the localhost server. ChopWatch posts semantic state only — no colors. Protocol v1 (see D:\Thermosync\CHOPWATCH.md / CHOPWATCH_AGENT_BRIEF.md).
Goal
Push full merged snapshots so RGB shows download · GPU util · VRAM · GPU power · CPU · RAM · phase lanes at once. Never send colors or expect strip flashes — alerts are label-only.
Prerequisites (user)
- Thermosync running on the same PC.
- Effects → Extra → ChopWatch selected (otherwise
127.0.0.1:19553is closed). Meridian uses 19552. - ChopWatch Settings → Thermosync light bridge on (default off).
Soft-fail on connection refused. ChopWatch must keep running.
API
| Base URL | http://127.0.0.1:19553 |
| Bind | Loopback only |
| Content-Type | application/json |
| Protocol | v1 |
Path (helper ambient):
runThermosyncBridgeTick → buildThermosyncState → POST /v1/state
Helper publishes from the existing ~5s phase watcher when the setting is on (UI tab not required).
Payload (full merged)
Always include every channel (or omit modes / send all seven) so no lane dims:
{
"modes": ["download", "gpuUtil", "vram", "gpuPower", "cpuLoad", "sysRam", "phase"],
"downloadPct": 42,
"gpuUtilPct": 88,
"vramPct": 71,
"gpuPowerPct": 64,
"cpuLoadPct": 35,
"sysRamPct": 58,
"phase": "running",
"alert": null
}
| Channel | ChopWatch source |
|---|---|
downloadPct |
Bowl pull progress % while phase === downloading; else null (idle lane) |
gpuUtilPct |
gpu.gpus[0].utilGpuPct (nvidia-smi) |
vramPct |
gpu.gpus[0].utilMemPct (used ÷ total) |
gpuPowerPct |
gpu.gpus[0].powerPct (draw ÷ limit) |
cpuLoadPct |
host.cpuLoadPct |
sysRamPct |
host.memUsedPct |
phase |
Bowl / finding / pause / offline lifecycle |
alert |
download_bail while auto-bail is actively pausing/resuming/cooling; else null |
Phase enum: offline · finding · downloading · initializing · running · stopping · stopped · paused · unknown
Behavior
- Prefer full merged snapshots (all seven
modes) so every lane stays live. - Coalesce identical ambient payloads (~5s); phase/alert changes still post.
- Never rely on strip flashes for alerts.
- Soft-fail when Thermosync is off / ChopWatch effect not selected.
Config
| Key | Default | Meaning |
|---|---|---|
User setting thermosyncBridgeEnabled |
false |
Gate for the ambient publisher |
Code map
| Piece | Path |
|---|---|
| Publisher + state builder | helper/src/thermosyncBridge.js |
| Watcher tick | helper/src/index.js (~5s interval) |
| Setting default | helper/src/store.js → thermosyncBridgeEnabled |
| Settings UI | web/src/tabs/SettingsTab.jsx |
Test without ChopWatch UI
- Thermosync → Effects → Extra → ChopWatch.
- In Thermosync:
npm run chopwatch:clientand POST sample gauges. - Or enable the ChopWatch setting and watch the strip update from live Salad state.