feat: load printer configuration from .env

Configure the 80 mm thermal printer (576 dots) via a committed .env file,
loaded at startup with dotenvy. Real environment variables take precedence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bankosegger
2026-11-11 15:00:03 +01:00
parent eae81bb052
commit a2b83744db
5 changed files with 27 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
//! ESC/POS thermal printing for captured photos.
//!
//! Configuration (environment variables, read once at startup):
//! Configuration (environment variables or the committed `.env`; read once at
//! startup):
//! - `PHOTOBOOTH_PRINTER`: where to send print data. Either a device path such as
//! `/dev/usb/lp0` (USB printer class) or a raw network printer as
//! `tcp://host[:port]` (port defaults to 9100). Printing is disabled when unset.