Expand description
cksk’s own library half: status feeds plus the boards that render them – all kept
entirely display-server-free (no Wayland, no PAM), so a future web build can reuse them
just as easily as src/bin/cksk.rs does. That binary is the only thing in this crate
that turns a rendered board frame into the Netpbm PAM images clck’s kiosk socket takes.
Boards are named for what they show, not for where they are displayed: the show rotates
several of them (show), and each one owns its render behind the same (state, size)
shape over shared chrome.
Re-exports§
pub use chrome::Fonts;pub use chrome::Header;pub use gatus::GatusSource;pub use model::Endpoint;pub use show::detail_pages;pub use show::Page;pub use show::Show;pub use show::DWELL_SECS;
Modules§
- chrome
- Shared kiosk chrome: palette, CPU primitives, fonts, and the persistent header.
Every board renders through this so
corbet status+ clock read identically on all screens. Puretiny-skia/fontdue: no GPU work, no Wayland, no display server. - gatus
- The Gatus feed: live-polls the statuses API into shared state.
Rendering lives in
groups(service boards) andoverview; this module only ever holds data, so every board reads the same snapshot. - groups
- Group boards: the service lists at room-readable type, laid out on the shared grid. One board shows a fixed set of groups; rows are big enough to read across a room, so a large estate spans several boards instead of one dense screen.
- layout
- Grid + rhythm + type system: every board is laid out on the same 12-column grid with 8px rhythm and one type scale, so spacing and alignment match across screens by construction instead of by hand-placed coordinates.
- model
- overview
- Overview board: the whole estate at a glance in giant type. One big verdict, then one row per group. Detail lives on the group boards. Geometry comes from the shared grid (layout.rs): rows, type and dots match every other board by construction.
- relay
- The relay feed: MQTT over WebSocket, the same retained tiles the web client shows.
- show
- The kiosk show: every board the feed warrants, one on screen for DWELL_SECS. The header (corbet status + clock) is identical everywhere; only the body rotates.
- system
- System board: host resources in giant type, read locally without GPU work.
Every source is a plain file read (
/proc,/sys): no subprocesses, no perf counters, nothing that wakes the GPU.rocm-smi/amdgpu_topare deliberately NOT used – they can pull the card out of its low-power state. Facts the kiosk cannot see itself (host links, pool aggregates) arrive via the optional host feed file instead – seeHostFeedFile.