barcode-server/barcode_server.yaml

37 lines
998 B
YAML

barcode_server:
# (optional) the verbosity level of log output
log_level: DEBUG
# (optional) an identifier for this barcode-server instance
# if omitted, this will be a UUIDv4
id: cash-register-1
# (optional) Time period to retry delivering failed queued events before giving up and dropping the event
drop_event_queue_after: 2h
# (optional) Time to wait between retries
retry_interval: 2s
# (optional) Serial push configuration
serial:
# URL to send events to using a request
pathA: "/dev/ttyUSB0"
pathB: "/dev/ttyUSB1"
# (optional) file push configuration
file:
# URL to send events to using a request
path: "/var/www/barcode-server"
# A list of regex patterns to match USB device names against
devices:
- ".*Bar Code Scanner.*"
# A list of absolute file paths to devices
device_paths:
#- "/dev/input/barcode_scanner"
# (optional) Statistics configuration
stats:
# (optional) port to provide statistics on
port: 8009