Files
winf-photobooth-app/.env

25 lines
1.0 KiB
Bash

# Photobooth configuration, loaded from the directory the app is started from.
# Variables already set in the environment (e.g. by systemd) take precedence.
# Every variable is optional; the values below are the built-in defaults.
# Thermal printer (ESC/POS). Set to an empty value to disable printing.
# A device path for USB/serial printers, or tcp://host[:port] for network
# printers (port defaults to 9100).
PHOTOBOOTH_PRINTER=/dev/usb/lp0
# Printable width in dots: 576 for 80 mm paper (384 for 58 mm).
PHOTOBOOTH_PRINTER_DOTS=576
# Mid-tone brightening before dithering, offsetting thermal dot gain
# (1.8-3.0 is typical; 1 disables it).
PHOTOBOOTH_PRINTER_GAMMA=2.7
# Head energy in percent of rated (70-130) and print speed: quality (120 mm/s),
# low (150), silent (180) or high (200). Both are SII RP-D10 commands (DC2 ~
# and GS s); the Birch 0CP-Q3 in the booth misparses either one and then prints
# the photo as two metres of text, so leave both empty unless the printer is
# known to understand them.
PHOTOBOOTH_PRINTER_DENSITY=
PHOTOBOOTH_PRINTER_SPEED=