BetterFrame/kiosk/src
Mitchell R 515f7088cc
fix: graceful FK violation on event insert + kiosk stale file cleanup
- Event insert: if source_camera_id FK fails (stale kiosk sending old
  integer IDs), retry with camera_id=NULL. Event still logs, just
  without camera association. Stops 500 spam until kiosk updates.
- Kiosk cleanup on first healthy boot: remove stale OS update staging
  files (>24h old) from /var/lib/betterframe/tmp/, and old firmware
  .prev binaries (>7 days) from /opt/betterframe/kiosk/.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-26 13:56:24 +02:00
..
at_rest.rs feat(harden): hardware-bound at-rest encryption of kiosk state files 2026-05-21 11:34:29 +02:00
axiom.rs feat(kiosk): include kiosk_id in Axiom log entries after pairing 2026-05-26 01:24:52 +02:00
bundle.rs refactor(kiosk): migrate all bundle IDs to String for UUIDv7 + ONVIF image proxy 2026-05-26 13:09:32 +02:00
cec.rs feat(display): report and control power state 2026-05-21 09:10:30 +02:00
firmware.rs feat: expand BF_DATA on first boot + wire update progress banner + partition reporting 2026-05-26 08:09:20 +02:00
gpio.rs fix: gpio lines binding must be mut for read_event 2026-05-13 01:23:09 +02:00
hwmon.rs feat: expand BF_DATA on first boot + wire update progress banner + partition reporting 2026-05-26 08:09:20 +02:00
local_server.rs refactor(kiosk): migrate all bundle IDs to String for UUIDv7 + ONVIF image proxy 2026-05-26 13:09:32 +02:00
main.rs refactor(kiosk): migrate all bundle IDs to String for UUIDv7 + ONVIF image proxy 2026-05-26 13:09:32 +02:00
onvif_events.rs refactor(kiosk): migrate all bundle IDs to String for UUIDv7 + ONVIF image proxy 2026-05-26 13:09:32 +02:00
os_update.rs feat: expand BF_DATA on first boot + wire update progress banner + partition reporting 2026-05-26 08:09:20 +02:00
pipeline.rs fix(kiosk): extract RTSP creds as rtspsrc properties for digest auth 2026-05-26 06:23:38 +02:00
remote_debug.rs fix(terminal): plain bash as bfkiosk, no sudo/root + journal via group 2026-05-22 23:35:40 +02:00
server.rs refactor(kiosk): migrate all bundle IDs to String for UUIDv7 + ONVIF image proxy 2026-05-26 13:09:32 +02:00
ui.rs fix: graceful FK violation on event insert + kiosk stale file cleanup 2026-05-26 13:56:24 +02:00
ws_client.rs refactor(kiosk): migrate all bundle IDs to String for UUIDv7 + ONVIF image proxy 2026-05-26 13:09:32 +02:00