Flash Canon configurable, choix de cadre a l'impression, fixes capture/reconnexion DSLR
- Flash integre Canon activable/desactivable depuis l'admin (configurer_flash) - Popup de choix de cadre juste avant impression, layout sans defilement (flex nowrap + aspect-ratio) - Capture : ignore camera_erreur pendant une capture en cours (laisse l'API trancher) - surveiller_dslr : grace period preview augmentee a 2s, reapplique la config camera apres reconnexion - start.sh simplifie (Chromium gere par kiosk-session.sh), remote debugging port 9222 active
This commit is contained in:
@@ -54,6 +54,7 @@ async function chargerMateriel() {
|
||||
if (cam.appareil) selectApp.value = cam.appareil;
|
||||
|
||||
setValue('admin-car', cam.compte_a_rebours || 3);
|
||||
document.getElementById('tog-flash-integre').checked = cam.flash_integre !== false;
|
||||
|
||||
// Imprimantes
|
||||
await rafraichirImprimantes();
|
||||
@@ -135,10 +136,12 @@ async function rafraichirStatutImprimante() {
|
||||
}
|
||||
|
||||
async function sauvegarderMateriel() {
|
||||
const flashIntegre = document.getElementById('tog-flash-integre').checked;
|
||||
await apiPost('/api/config', {
|
||||
camera: {
|
||||
appareil: getValue('admin-appareil'),
|
||||
compte_a_rebours: parseInt(getValue('admin-car')) || 3,
|
||||
flash_integre: flashIntegre,
|
||||
},
|
||||
impression: {
|
||||
imprimante: getValue('admin-imprimante'),
|
||||
|
||||
Reference in New Issue
Block a user