From e40d0e7fa7f67732dc20b6fa8500ea78afdf6164 Mon Sep 17 00:00:00 2001 From: eduardo Date: Wed, 8 May 2024 12:39:28 +0200 Subject: [PATCH] Update label text and warning images configurations Updated the text displayed on the brother label printer to only show "ST-TEN-10" instead of "ETICHETTA \nST-TEN-10". Also changed the warning images in machine settings for st-ten-3 and st-ten-2 to use a generic image instead of their specific ones. --- config/machine_settings/st-ten-2.ini | 2 +- config/machine_settings/st-ten-3.ini | 2 +- src/components/brother_label_printer.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/machine_settings/st-ten-2.ini b/config/machine_settings/st-ten-2.ini index e8954b0..6bf4d0b 100644 --- a/config/machine_settings/st-ten-2.ini +++ b/config/machine_settings/st-ten-2.ini @@ -1,7 +1,7 @@ [machine] description = ST-TEN-2 - COLLAUDO TUBI RISCALDATI VOLPIANO instruction_folder = st-ten-1 -image_for_warning= st-ten-2 +image_for_warning= generic [hardware_config] archive_synchronizer: present diff --git a/config/machine_settings/st-ten-3.ini b/config/machine_settings/st-ten-3.ini index ff28436..42475f6 100644 --- a/config/machine_settings/st-ten-3.ini +++ b/config/machine_settings/st-ten-3.ini @@ -1,7 +1,7 @@ [machine] description = ST-TEN-3 - COLLAUDO TUBI RISCALDATI ANTARES instruction_folder = st-ten-3 -image_for_warning= st-ten-3 +image_for_warning= generic [hardware_config] archive_synchronizer: present diff --git a/src/components/brother_label_printer.py b/src/components/brother_label_printer.py index e36862e..7d9b33a 100644 --- a/src/components/brother_label_printer.py +++ b/src/components/brother_label_printer.py @@ -34,7 +34,7 @@ class BrotherLabelPrinter(Component): draw = ImageDraw.Draw(label_img) font = ImageFont.truetype("config/label_templates/Fonts/FreeSansBold.ttf", 40) font2 = ImageFont.truetype("config/label_templates/Fonts/FreeSansBold.ttf", 28) - draw.text((280, 50), "ETICHETTA \nST-TEN-10", (0, 0, 0), font=font) + draw.text((280, 50), "ST-TEN-10", (0, 0, 0), font=font) draw.text((280, 150), barcode, (0, 0, 0), font=font2) if not os.path.exists("./tmp/"):