fix(devices): K200L status parser reads a fault's Yes, which the board wraps in <FONT color=#ff0000>
Build & push images / images (push) Successful in 2m55s
Build & push images / images (push) Successful in 2m55s
First live run on park-lab with the cover open reported "unexpected status page (missing coverOpen, paperEnd, offline)" — exactly the three fault cells. The board writes a fault as <FONT color=#ff0000>Yes</FONT> and a clear row as a bare padded No; the parser accepted only tag-free cells. Cell text is now read with inner tags stripped (row-anchored match). Tests pin the verbatim captured markup plus other shapes. Live after the fix: degraded "cover open, paper out, printer off-line"; cover closed → ready. Wiki: the markup on the K200L page; Periphery "not loaded after reboot" (unit never enabled → `systemctl --user enable --now periphery`) as a §7a gotcha in the provisioning runbook; log. Claude-Session: https://claude.ai/code/session_01FWncR69HgGPuei1dLrW3cU
This commit is contained in:
@@ -314,6 +314,12 @@ sudo loginctl enable-linger admin # so the user service starts at boot witho
|
||||
**Verify:** `systemctl --user status periphery` → active; the server **`park-buzi`** appears and
|
||||
goes **OK/green** in Core → Servers. Then **delete the onboarding key**.
|
||||
|
||||
> **After a reboot: `Unit periphery.service not loaded` (park-lab, 2026-09-09).** The unit
|
||||
> existed but had never been **enabled**, so nothing started it at boot and `reset-failed` /
|
||||
> `restart` had nothing to act on. Fix: `systemctl --user daemon-reload && systemctl --user enable
|
||||
> --now periphery`. Add `enable --now` to the install sequence above whenever the installer's own
|
||||
> enable did not stick (check with `systemctl --user is-enabled periphery` before leaving).
|
||||
|
||||
**➜ Next step is §7b below — the Stack itself is not deployed yet.** A green Server in Core just
|
||||
means the agent connected; it runs nothing until you add the Registry/Git accounts and deploy.
|
||||
|
||||
|
||||
@@ -67,6 +67,12 @@ Paper Near End Yes/No
|
||||
Printer Off-Line Yes/No
|
||||
```
|
||||
|
||||
A fault is written as **`<FONT color=#ff0000>Yes</FONT>`** while a clear row is a bare, space-padded
|
||||
`No` — the first parser only accepted tag-free cells, so with the cover open the booth showed
|
||||
*"unexpected status page (missing coverOpen, paperEnd, offline)"*: exactly the Yes cells. Fixed
|
||||
the same day (cell text is read with inner tags stripped); the verbatim markup is pinned in the
|
||||
driver's tests.
|
||||
|
||||
**Same rows, same `<TD>label</TD><TD>Yes|No</TD>` shape as the Rongta board's `/prn_stat.htm`**
|
||||
([[printer-status-monitoring]]) — only the path differs, which is why nobody found it in July
|
||||
(the Rongta driver looked for `/prn_stat.htm`, got nothing, and the unit was filed as "serves no
|
||||
|
||||
+11
@@ -3297,3 +3297,14 @@ factory reset), radar (idle level → activeLow), printers (K200L / Rongta / Cas
|
||||
USB; "Test" probes, print a card to verify), the on-site order of work, and the gaps still
|
||||
unrecorded (Cashino/Rongta factory addresses, the reader tool screens, camera activation, where
|
||||
the site record lives). Linked from [[appliance-provisioning]] and [[k200l-printer]]; indexed.
|
||||
|
||||
## [2026-09-09] fix | K200L status parser — a fault's "Yes" is wrapped in <FONT color=#ff0000>
|
||||
First live run on park-lab (driver `k200l`, LAN, cover open) showed *degraded — unexpected status
|
||||
page (missing coverOpen, paperEnd, offline)*: precisely the three Yes cells. Captured the raw page
|
||||
with the cover open: the board writes `<FONT color=#ff0000>Yes</FONT>` for a fault and a bare
|
||||
padded `No` otherwise; the parser accepted only tag-free cells. Fix: cell text is read with inner
|
||||
tags stripped (row-anchored regex); tests pin the verbatim markup plus other shapes (devices 79).
|
||||
Live after the fix: degraded "cover open, paper out, printer off-line"; closed → ready. User:
|
||||
"we are good using the network with this printer." Also: park-lab Periphery was "not loaded"
|
||||
after a reboot — the unit had never been enabled; `systemctl --user enable --now periphery`
|
||||
recorded as a §7a gotcha on [[appliance-provisioning]]. Pages: [[k200l-printer]].
|
||||
|
||||
Reference in New Issue
Block a user