diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 10:33:13 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 10:33:13 +0100 |
| commit | 6933aa3220ff420beeb883d25fc68b9c79aa7df1 (patch) | |
| tree | 0ca54434b4b8c8d0768d1d5165c2e00e33fde6ac /AGENTS.md | |
| parent | 213a82118a7f5db58759edffe8d1776475e4e4e4 (diff) | |
| download | deck-it-6933aa3220ff420beeb883d25fc68b9c79aa7df1.tar.gz deck-it-6933aa3220ff420beeb883d25fc68b9c79aa7df1.zip | |
feat: K1C printer tab and proper cards for switched-off sources
A K1C tab follows a Klipper printer through Moonraker ([k1c] url):
state, file, progress with elapsed, left and finish time, layer, the
slicer's model thumbnail, nozzle and bed with target and power, fan,
speed, position, filament, and the camera snapshot. It is read-only bar
one action, the emergency stop (M112), behind a press-and-hold button so
a stray touch on an always-on tablet cannot kill a print. Klipper being
down (after a stop) shows its message in a red banner.
The printer is often off, so a failed poll backs off 10s instead of
costing every tick a timeout. File metadata is fetched once per job; the
slicer's estimate covers the start of a print until the file-position
estimate settles. The tablet loads the camera and the thumbnail straight
from the printer, so both need it on the printer's LAN.
OBS, the build VM and LLM usage showed raw text when their source was
off ("OBS offline: [Errno 111] ..."). They now share static/offline.js:
a greyed app icon, what is off, what brings it back, and a pulsing
"checking" note, with the raw error in the tooltip. OBS hides its empty
blocks while off. The card is not rebuilt on every poll.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -43,6 +43,14 @@ Keep the server dependency-free apart from that one package. Keystone's deck-it page (quickshell repo, `desktop/modules/deckit`) writes that sparse file and reads the defaults from `deck-it defaults`; keep that JSON shape stable. +- A panel whose source can be switched off (OBS, build VM, LLM, K1C) shows + `static/offline.js`'s card, not raw error text; the error goes in its tooltip. +- `k1c` reads a Klipper printer through Moonraker (`[k1c] url`); its one action + is the emergency stop, a press-and-hold button on the tab. While the printer + is off it backs off 10s between tries. The camera snapshot and the slicer + thumbnail are loaded by the tablet straight from the printer. +- The page holds a Screen Wake Lock while visible, so the tablet never sleeps + over the dashboard; nothing on the tablet's settings is changed. - Launchers are `[launch] apps`, desktop ids run with `gtk-launch`; label and icon come from the `.desktop` file. The client sends the id, which must be configured and installed. |
