diff --git a/frontend/index.html b/frontend/index.html index dac236d..864f3cd 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -657,6 +657,13 @@

Chargement...

+
+

Diagnostic camera

+ +
+
+ Appuyer sur Tester... +
diff --git a/frontend/js/admin.js b/frontend/js/admin.js index 97388f6..2aa2539 100644 --- a/frontend/js/admin.js +++ b/frontend/js/admin.js @@ -939,3 +939,22 @@ async function regenererBoothPassword() { afficherStatut('Erreur connexion au serveur booth', 'erreur'); } } + +async function chargerDiagCamera() { + const el = document.getElementById('diag-camera-contenu'); + el.textContent = 'Test en cours...'; + try { + const data = await apiGet('/api/camera/debug'); + let txt = ''; + for (const [k, v] of Object.entries(data)) { + if (k === 'config_widgets_top') { + txt += `${k}: ${Array.isArray(v) ? v.join(', ') : v}\n`; + } else { + txt += `${k}: ${JSON.stringify(v)}\n`; + } + } + el.textContent = txt || 'Aucune donnee'; + } catch (e) { + el.textContent = 'ERREUR : ' + e.message; + } +} diff --git a/printer-driver-gutenprint_5.3.4.20220624T01008808d602-4_amd64.deb b/printer-driver-gutenprint_5.3.4.20220624T01008808d602-4_amd64.deb new file mode 100644 index 0000000..10434fb Binary files /dev/null and b/printer-driver-gutenprint_5.3.4.20220624T01008808d602-4_amd64.deb differ diff --git a/scripts/kiosk-session.sh b/scripts/kiosk-session.sh index 8e3e255..c7067cd 100755 --- a/scripts/kiosk-session.sh +++ b/scripts/kiosk-session.sh @@ -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