feat: harden dashcam transfer tegen flakke SD-lezer + stale-mount cleanup

- dashcam-transfer.py: log echte OSError (shutil.copy2 i.p.v. cp), pre-flight
  leesbaarheidscheck voor ruimte-wissen, retry (3x) + early-abort (5x), guards
  op bestandssysteem-calls, WhatsApp GESTOPT bij defecte kaart
- dashcam-transfer-mount.sh: skip als service al draait, read-only fsck.exfat
  health check, %k device-naam doorgeven
- dashcam-transfer-cleanup.sh: nieuw - ruimt stale mount op bij udev REMOVE
- udev/99-dashcam-trigger.rules: ADD + REMOVE regels met %k
- tests: 20 python + 7 mount + 12 cleanup checks
- README: architectuur, robuustheid, deploy-instructies
This commit is contained in:
Eddy de Vink 2026-08-11 20:23:24 +02:00
commit 8cc04ea409
9 changed files with 779 additions and 76 deletions

4
.gitignore vendored
View file

@ -19,6 +19,10 @@ build/
.env.test.local
.env.production.local
# Python
__pycache__/
*.pyc
# Logs
logs/
*.log