first commit
🚀 Deploy — JH Photomaton / 🔍 Vérification (push) Has been cancelled
🚀 Deploy — JH Photomaton / 🍓 Deploy sur le Pi (push) Has been cancelled

This commit is contained in:
2026-07-16 00:55:29 +02:00
commit 209f81aa3d
100 changed files with 17682 additions and 0 deletions
+96
View File
@@ -0,0 +1,96 @@
# ============================================================
# JH Photomaton — Configuration principale
# Association Les Sapins Du Web (LSDW)
# ============================================================
app:
name: "JH Photomaton"
host: "0.0.0.0"
port: 8090
debug: false
secret_key: "photomaton-jh-2026-secret-change-me"
admin_password: "PhotoBooth2026!"
# --- Intégration photobooth-app ---
photobooth:
base_url: "http://localhost:8083"
data_dir: "/home/pi/photobooth-data"
config_file: "/home/pi/.config/photobooth-app/config.json"
media_dir: "/home/pi/photobooth-data/media/processed_full"
userdata_dir: "/home/pi/photobooth-data/userdata"
# --- Bouton physique ---
button:
pin: 23 # GPIO BCM (input, pull-up interne)
relay_pin: 12 # GPIO BCM (output, relay ON/OFF bouton 12V)
debounce_ms: 50
double_click_ms: 400 # Délai max entre clics pour multi-clic
long_press_ms: 1500 # Durée min long appui
max_clicks: 4 # Nombre max de clics reconnus
long_press_action: "print_last" # print_last | none
print_enabled: true
# --- Anneau LED WS2812b ---
leds:
pin: 18 # GPIO BCM (PWM hardware, pin physique 12)
count: 35 # Nombre de LEDs dans l'anneau
brightness: 180 # 0-255
freq_hz: 800000
dma: 10
strip_type: "WS2812"
effects:
idle:
color: [0, 30, 80]
mode: "breathe"
speed: 0.025
countdown:
color: [0, 200, 80]
mode: "fill_progressive"
capture:
color: [255, 255, 255]
mode: "flash"
flashes: 2
flash_duration: 0.1
captured:
color: [150, 0, 200]
mode: "solid"
finished:
color: [0, 100, 255]
mode: "solid"
duration: 2.0
printing:
color: [0, 120, 255]
mode: "spin"
speed: 0.05
error:
color: [220, 0, 0]
mode: "flash"
flashes: 4
disabled:
color: [60, 0, 0]
mode: "solid"
# --- Impression ---
print:
mode: "validation" # direct | gallery | validation
script_path: "/home/pi/photobooth-data/script/script_print.sh"
default_copies: 1
printers:
- name: "Selphy_Blanche_WiFi"
label: "Selphy Blanche (WiFi)"
- name: "Selphy_Noire_WiFi"
label: "Selphy Noire (WiFi)"
# --- Galerie ---
gallery:
public_enabled: true
photos_per_page: 24
qr_base_url: "https://photomaton.lessapinsduweb.com"
# --- Mapping clics bouton -> actions photobooth-app ---
# n clics -> photobooth_index dans la liste actions.image de config.json
button_actions:
1: { label: "Photo normale", photobooth_index: 0 }
2: { label: "Photo étoile", photobooth_index: 1 }
3: { label: "Photo cailloux", photobooth_index: 2 }
4: { label: "Photo soirée", photobooth_index: 3 }