Init photobooth - borne photo evenementielle RPi4
Backend FastAPI complet : camera gphoto2, filtres/overlays Pillow, chroma key OpenCV, multi-shot/collage, GIF, impression CUPS, email SMTP, QR code. Frontend web vanilla (HTML/CSS/JS) pour Chromium kiosk. Menu admin cache (appui long coin ecran). Toutes les fonctionnalites activables/desactivables. Scripts install + systemd pour RPi4. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
39
scripts/start.sh
Normal file
39
scripts/start.sh
Normal file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
# Demarrage du photobooth (backend + chromium kiosk)
|
||||
set -e
|
||||
|
||||
DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$DIR"
|
||||
|
||||
# Activer le venv
|
||||
source .venv/bin/activate
|
||||
|
||||
# Demarrer le backend en arriere-plan
|
||||
echo "Demarrage du backend..."
|
||||
python -m backend.main &
|
||||
BACKEND_PID=$!
|
||||
|
||||
# Attendre que le backend soit pret
|
||||
sleep 3
|
||||
|
||||
# Cacher le curseur souris
|
||||
unclutter -idle 0.1 -root &
|
||||
|
||||
# Demarrer Chromium en mode kiosk
|
||||
echo "Demarrage de Chromium kiosk..."
|
||||
chromium-browser \
|
||||
--kiosk \
|
||||
--noerrdialogs \
|
||||
--disable-infobars \
|
||||
--disable-translate \
|
||||
--disable-features=TranslateUI \
|
||||
--disable-session-crashed-bubble \
|
||||
--disable-component-update \
|
||||
--check-for-update-interval=31536000 \
|
||||
--autoplay-policy=no-user-gesture-required \
|
||||
--start-fullscreen \
|
||||
--incognito \
|
||||
http://localhost:8080
|
||||
|
||||
# Si Chromium se ferme, arreter le backend
|
||||
kill $BACKEND_PID 2>/dev/null
|
||||
Reference in New Issue
Block a user