Photobooth avec raspberrypi, Canon Selphy CP1500 et interface WEB
La carte Raspberrypi emet un réseau WIFI.
- L'imprimante se connecte au réseau du Raspberry (ou en USB).
- Une interface (tablette, tel, ordi, etc.) se connecte au réseau et ouvre un page web avec l'interface
git clone https://github.com/timnicolas/photobooth.git ~/photobooth && cd ~/photobooth && bash scripts/setup.shLe script installe automatiquement :
- Les packages système (node, vim, git, tmux, zsh, network-manager, picamera2)
- Oh My Zsh
- Le venv Python et les dépendances backend
- Les dépendances Node.js du frontend
- Les services systemd
photobooth-backendetphotobooth-frontend(démarrage automatique au boot)
Chaque étape vérifie si elle a déjà été effectuée — le script peut être relancé sans risque.
Configurer le Raspberry Pi comme routeur WiFi (IP fixe 10.4.4.12, partage internet via RJ45) :
sudo bash scripts/03_wifi_ap.shCe script :
- Crée un hotspot WPA2 via NetworkManager (
SSID: PhotoBooth,mdp: photobooth) - Attribue l'IP fixe
10.4.4.12au Raspberry Pi - Active le partage de connexion depuis
eth0si un câble est branché - Peut être relancé sans risque pour reconfigurer
Pour modifier le SSID ou le mot de passe, éditer les variables en tête de
scripts/03_wifi_ap.sh.
Créer un utilisateur admin et un utilisateur classique :
cd ~/photobooth/backend && ../photobooth-venv/bin/python create_user.pyInstaller l'imprimante Canon SELPHY CP1500 via CUPS :
sudo apt-get install -y cups printer-driver-gutenprintPuis accéder à l'interface CUPS sur http://localhost:631 pour ajouter l'imprimante.
git config --global user.email "votre@email.com"
git config --global user.name "Votre Nom"
ssh-keygen -t ed25519 -C "votre@email.com"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub # Ajouter cette clé sur GitHubpython3 -m venv --system-site-packages photobooth-venv
source photobooth-venv/bin/activate
pip install -r backend/requirements.txtcd frontend
npm installLancer le backend
source photobooth-venv/bin/activate
cd backend
python run.pyLancer le frontend
cd frontend
npm run dev- Test raspberry CAM
- Test connection imprimante
- Gestion erreurs d'imprimante ?
- Tester en mode hors connection