Files
admin 209f81aa3d
🚀 Deploy — JH Photomaton / 🔍 Vérification (push) Has been cancelled
🚀 Deploy — JH Photomaton / 🍓 Deploy sur le Pi (push) Has been cancelled
first commit
2026-07-16 00:55:29 +02:00

54 lines
2.2 KiB
Plaintext

# =============================================================================
# Notes GPIO - Simplification du declenchement bouton
# =============================================================================
#
# SITUATION ACTUELLE:
# Bouton physique -> Relay 12V -> GPIO -> Node-RED -> API photobooth-app
#
# PROBLEME:
# - Node-RED consomme ~150-300 Mo de RAM (Node.js)
# - Un composant intermediaire de plus = un point de panne de plus
# - Latence supplementaire
#
# SOLUTION RECOMMANDEE:
# photobooth-app supporte NATIVEMENT le GPIO Raspberry Pi via gpiozero.
# Tu peux brancher le bouton directement sur un GPIO sans relay ni Node-RED.
#
# OPTION A: GPIO DIRECT (recommande - sans relay)
# - Brancher le bouton entre GND et GPIO 27 (pin physique 13)
# - photobooth-app active les resistances pull-up internes
# - Bouton normalement ouvert (NO)
# - Schema: GND ---[BOUTON]--- GPIO27
#
# OPTION B: GARDER LE RELAY 12V (si le bouton necessite du 12V)
# - Le relay sort sur un GPIO du Pi
# - Configurer ce GPIO dans photobooth-app directement
# - PAS BESOIN de Node-RED pour ca
#
# CONFIGURATION DANS PHOTOBOOTH-APP:
# 1. Ouvrir l'admin: http://localhost:8083/admin
# 2. Aller dans: CONFIGURATION -> hardwareinput
# 3. Activer "GPIO"
# 4. Dans Actions, configurer:
# - Picture trigger: GPIO 27 (ou le GPIO connecte a ton relay)
# - Collage trigger: GPIO 22 (optionnel)
# - Print trigger: GPIO 23 (optionnel)
# - Shutdown: GPIO 17 (hold 2 secondes)
#
# GPIO PAR DEFAUT DE PHOTOBOOTH-APP:
# | Fonction | GPIO | Pin physique | Type |
# |-------------|------|-------------|------------|
# | Photo | 27 | 13 | Appui |
# | Collage | 22 | 15 | Appui |
# | Animation | 24 | 18 | Appui |
# | Video | 25 | 22 | Appui |
# | Impression | 23 | 16 | Appui |
# | Shutdown | 17 | 11 | Maintien 2s|
# | Reboot | 18 | 12 | Maintien 2s|
#
# APRES MIGRATION:
# - Desactiver Node-RED: sudo systemctl disable nodered.service
# - Gain: ~150-300 Mo de RAM liberee !
#
# =============================================================================