Strata dashboard plasmoid v1.2: barre a soglie e velocita decode/prefill

- card GPU con barre progressive: VRAM (informativa), utilizzo 60/85 %,
  temperatura 75/85 C, potenza su budget 350 W (ambra 70 %, rosso 90 %)
- velocita del motore: DEC (generazione) e PRE (prefill) in tok/s, live
  durante la generazione, ultima richiesta da fermo (badge LIVE/ULTIMA);
  semantica inversa: verde sopra la nominale, ambra fra 50 % e nominale
- card servizio + controllo unificata con switch load/unload nativo e
  stato che si chiude sulla fase osservata
- MetricBar condiviso con levelColor()/speedColor() e soglie in testa al QML
- README: requisiti, campi del control plane, tabella soglie, limiti del box
- avatar pixel-art 512x512 in assets/repository-avatar.png
This commit is contained in:
enne2
2026-10-25 16:12:52 +01:00
commit 2a0020ca91
8 changed files with 730 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
# action.sh <load|unload> [uniq] — POST in background, esce subito.
API="${STRATACTL_API:-http://172.30.150.224:18090}"
KEYF="$HOME/.config/strata-control/control.key"
[ $# -ge 1 ] || exit 1
[ -r "$KEYF" ] || exit 1
setsid curl -s -m 320 -X POST -H "X-API-Key: $(cat "$KEYF")" "$API/$1" >/dev/null 2>&1 < /dev/null &
exit 0
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# Stato del control plane Strata (JSON su stdout).
API="${STRATACTL_API:-http://172.30.150.224:18090}"
KEYF="$HOME/.config/strata-control/control.key"
if [ ! -r "$KEYF" ]; then printf '{"error":"chiave mancante"}'; exit 0; fi
out=$(curl -s -m 6 -H "X-API-Key: $(cat "$KEYF")" "$API/status" 2>/dev/null)
if [ -z "$out" ]; then printf '{"error":"control plane non raggiungibile"}'; else printf '%s' "$out"; fi