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.
This commit is contained in:
eduardo 2024-05-08 12:39:28 +02:00
parent 53c34957cc
commit e40d0e7fa7
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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/"):