From 3fc41f806a2a6569890d33f6f0c154128a27adb2 Mon Sep 17 00:00:00 2001 From: n07070 Date: Fri, 13 Nov 2026 19:15:32 +0100 Subject: [PATCH] Update configuration file to add printer specifics --- configuration/config.toml | 15 ++++++++++++++- configuration/config.toml.sample | 17 +++++++++++++++-- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/configuration/config.toml b/configuration/config.toml index 31f6e5f..4b16436 100644 --- a/configuration/config.toml +++ b/configuration/config.toml @@ -1,11 +1,24 @@ # Configuration file the LittlePrynter [defaults] -signature = "Anonymous" +signature = "" # Printer settings [printer] upload_folder = "src/static/uploads" +# How long do we wait before giving up on waiting for a printer connexion +waiting_time = 5 + +[printer.epson] +# Configurations for EPSON printers +profile = "TM-T20III" +label_type = 80 # 80 or 58 ( label width in mm ) +align_text = "center" + +[printer.brother] +# Configurations for Brother printers +label_type = "62" # See https://github.com/pklaus/brother_ql#usage for label types + # Raspberry Pi Configuration [rpi] diff --git a/configuration/config.toml.sample b/configuration/config.toml.sample index 0c45fbc..3d95bdc 100644 --- a/configuration/config.toml.sample +++ b/configuration/config.toml.sample @@ -5,8 +5,21 @@ signature = "Anonymous" # Printer settings [printer] -vendor_id = "0x04b8" -device_id = "0x0e28" +# Where do we upload the pictures and such +upload_folder = "src/static/uploads" + +# How long do we wait before giving up on waiting for a printer connexion +waiting_time = 5 + +[printer.epson] +# Configurations for EPSON printers +profile = "TM-T20III" +label_type = 80 # 80 or 58 ( label width in mm ) +align_text = "center" + +[printer.brother] +# Configurations for Brother printers +label_type = 62 # See https://github.com/pklaus/brother_ql#usage for label types # Raspberry Pi Configuration [rpi]