all
🚀 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-17 00:44:22 +02:00
parent 209f81aa3d
commit 9a006f1457
23 changed files with 3712 additions and 484 deletions
+39 -18
View File
@@ -1,5 +1,5 @@
# ============================================================
# JH Photomaton Configuration principale
# JH Photomaton -- Configuration principale
# Association Les Sapins Du Web (LSDW)
# ============================================================
@@ -11,30 +11,37 @@ app:
secret_key: "photomaton-jh-2026-secret-change-me"
admin_password: "PhotoBooth2026!"
# --- Intégration photobooth-app ---
# --- Integration photobooth-app ---
photobooth:
base_url: "http://localhost:8083"
base_url: "http://localhost:8000"
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"
show_delete_button: false
# --- Evenement en cours ---
event:
name: "Evenement"
slug: "evenement"
started_at: 0
# --- Bouton physique ---
button:
pin: 23 # GPIO BCM (input, pull-up interne)
relay_pin: 12 # GPIO BCM (output, relay ON/OFF bouton 12V)
pin: 23
relay_pin: 12
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
double_click_ms: 400
long_press_ms: 1500
max_clicks: 4
long_press_action: "print_last"
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
pin: 18
count: 35
brightness: 180 # Luminosite normale (0-255)
freq_hz: 800000
dma: 10
strip_type: "WS2812"
@@ -43,36 +50,51 @@ leds:
color: [0, 30, 80]
mode: "breathe"
speed: 0.025
countdown:
color: [0, 200, 80]
mode: "fill_progressive"
capture:
color: [255, 255, 255]
# BLANC CHAUD pour photo -- les WS2812b ont une LED bleue tres efficace.
# [255,255,255] donne un rendu tres bleu sur les photos.
# Reduisez le bleu (3eme valeur) et augmentez le rouge pour corriger.
# Exemples :
# [255, 200, 80] -> blanc chaud (recommande pour debuter)
# [255, 180, 40] -> blanc tres chaud / jaune
# [255, 220, 120] -> blanc neutre legerement chaud
color: [255, 200, 80]
mode: "flash"
flashes: 2
flash_duration: 0.1
# Duree en secondes de chaque flash (plus long = plus de lumiere)
flash_duration: 0.30
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
mode: "validation"
script_path: "/home/pi/photobooth-data/script/script_print.sh"
default_copies: 1
printers:
@@ -88,9 +110,8 @@ gallery:
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 }
2: { label: "Photo etoile", photobooth_index: 1 }
3: { label: "Photo cailloux", photobooth_index: 2 }
4: { label: "Photo soirée", photobooth_index: 3 }
4: { label: "Photo soiree", photobooth_index: 3 }