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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user