Kiosk : git pull auto + diagnostic caméra dans admin

- kiosk-session.sh : git pull à chaque démarrage du backend
  (les correctifs Gitea sont maintenant déployés automatiquement)
- Log backend dans /tmp/photobooth-backend.log (lisible via admin)
- Admin > Infos : bouton "Diagnostic camera" → appelle /api/camera/debug
  et affiche mode, connectee, erreur capture_preview, widgets gphoto2

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 09:56:55 +02:00
parent d3a71a9866
commit f977189a93
4 changed files with 29 additions and 1 deletions

View File

@@ -25,8 +25,10 @@ sleep 1
_backend_loop() {
while true; do
cd /home/jules/photobooth
# Mise à jour automatique depuis Gitea
git pull --ff-only 2>&1 | logger -t photobooth-git
source .venv/bin/activate
authbind --deep python -m backend.main
authbind --deep python -m backend.main 2>&1 | tee -a /tmp/photobooth-backend.log
echo "[kiosk] backend terminé, redémarrage dans 3s..."
sleep 3
done