# C3S vending controller — copy to /etc/c3s-vending/config.ini # Permissions: sudo chown root:c3svend /etc/c3s-vending/config.ini && sudo chmod 640 /etc/c3s-vending/config.ini [server] base_url = https://c3s.example.com machine_id = VM-001 # Generated by the C3S admin (Machines → New secret) or: php server/tools/c3s.php machine-secret VM-001 api_secret = REPLACE_WITH_MACHINE_SECRET verify_tls = true # Custom CA bundle (self-signed/internal CA); leave empty for the system store ca_bundle = timeout = 10 [timing] heartbeat_interval = 3 command_poll_interval = 2 max_backoff = 30 # Seconds without contact before the screen shows "connection lost" offline_display_after = 15 [display] listen_host = 127.0.0.1 listen_port = 8080 static_dir = /opt/c3s-vending/display brand_name = C3S [controller] # gpio = real machine, mock = simulated controller (no beverage is prepared) driver = gpio # Normal preparation time (seconds) — used ONLY for the on-screen estimate expected_duration = 60 # Controller must assert BUSY within this delay after the selection pulse start_timeout = 15 # Still BUSY after this → UNKNOWN (never treated as success) max_duration = 180 pulse_ms = 300 # Selection outputs: SELECTION_CODE:BCM_PIN (codes must match the C3S menu) selection_pins = A1:5, A2:6, A3:13, A4:19, A5:26 selection_active_low = false # BUSY feedback input (REQUIRED for the gpio driver) busy_pin = 17 busy_active_low = false # Optional inputs (0 = not wired) error_pin = 27 error_active_low = false dispensing_pin = 0 dispensing_active_low = false [mock] duration = 60 # none | not_started | error | timeout | random failure = none [storage] state_dir = /var/lib/c3s-vending [logging] file = /var/log/c3s-vending/controller.log level = INFO