Skip to content

timnicolas/photobooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

photobooth

Photobooth avec raspberrypi, Canon Selphy CP1500 et interface WEB

Principe de fonctionnement

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

Installation rapide sur Raspberry Pi

git clone https://github.com/timnicolas/photobooth.git ~/photobooth && cd ~/photobooth && bash scripts/setup.sh

Le 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-backend et photobooth-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.

Point d'accès WiFi

Configurer le Raspberry Pi comme routeur WiFi (IP fixe 10.4.4.12, partage internet via RJ45) :

sudo bash scripts/03_wifi_ap.sh

Ce script :

  • Crée un hotspot WPA2 via NetworkManager (SSID: PhotoBooth, mdp: photobooth)
  • Attribue l'IP fixe 10.4.4.12 au Raspberry Pi
  • Active le partage de connexion depuis eth0 si 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.

Post-installation

Créer un utilisateur admin et un utilisateur classique :

cd ~/photobooth/backend && ../photobooth-venv/bin/python create_user.py

Installer l'imprimante Canon SELPHY CP1500 via CUPS :

sudo apt-get install -y cups printer-driver-gutenprint

Puis accéder à l'interface CUPS sur http://localhost:631 pour ajouter l'imprimante.

Configuration git (si besoin de contribuer)

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 GitHub

Installation manuelle

Préparer l'environnement python

python3 -m venv --system-site-packages photobooth-venv
source photobooth-venv/bin/activate

pip install -r backend/requirements.txt

Dépendances Node

cd frontend
npm install

Lancement

Lancer le backend

source photobooth-venv/bin/activate
cd backend
python run.py

Lancer le frontend

cd frontend
npm run dev

Todo

  • Test raspberry CAM
  • Test connection imprimante
  • Gestion erreurs d'imprimante ?
  • Tester en mode hors connection

About

Photobooth avec raspberrypi, Canon Selphy CP1500 et interface WEB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors