118 lines
2.9 KiB
YAML
118 lines
2.9 KiB
YAML
# ============================================================
|
|
# 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!"
|
|
|
|
# --- Integration photobooth-app ---
|
|
photobooth:
|
|
base_url: "http://localhost:8000"
|
|
data_dir: "/home/pi/photobooth-data"
|
|
config_file: "/home/pi/photobooth-data/config/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
|
|
relay_pin: 12
|
|
debounce_ms: 50
|
|
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
|
|
count: 35
|
|
brightness: 180 # Luminosite normale (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:
|
|
# 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
|
|
# 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"
|
|
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 ---
|
|
button_actions:
|
|
1: { label: "Photo normale", photobooth_index: 0 }
|
|
2: { label: "Photo etoile", photobooth_index: 1 }
|
|
3: { label: "Photo cailloux", photobooth_index: 2 }
|
|
4: { label: "Photo soiree", photobooth_index: 3 }
|