mirror of
https://github.com/BetterCorp/BetterFrame.git
synced 2026-05-26 17:56:34 +00:00
Three related fixes: 1. Idle reverts (and any other kiosk-initiated layout switch) now POST layout.changed to /api/kiosk/event. Previously the server only emitted on admin-initiated switches, so Node-RED never saw the idle revert. 2. Server's /api/kiosk/event splays the payload to the top level when the topic has a dedicated trigger node (layout.changed, kiosk.changed, kiosk.status, display.power.changed, camera.changed). The trigger nodes expect flat shapes matching the admin emit; the old wrapped shape left every field undefined. 3. Auto-provisioning of bf-server-config in Node-RED: extend retry window to ~5 min, log per attempt, force v2 API + full-deploy header so credentials inline get accepted, surface response body on failure. |
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| bsb-tests.json | ||
| package.json | ||
| tsconfig.json | ||