feat: Add Web iface with QR codes

This commit is contained in:
Piotr Gaczkowski 2026-03-24 14:27:32 +01:00
parent 3897d37f2a
commit 2a2b5973df
10 changed files with 1293 additions and 739 deletions

View file

@ -4,6 +4,7 @@ from math import inf
from brother_ql import BrotherQLRaster, create_label
from brother_ql.backends import guess_backend, backend_factory
from brother_ql.conversion import convert
from pysnmp.entity.engine import SnmpEngine
from pysnmp.hlapi import getCmd, CommunityData, UdpTransportTarget, ContextData
from pysnmp.smi.rfc1902 import ObjectType, ObjectIdentity
@ -43,9 +44,9 @@ class E550W(Printer):
im = PILImage.open(io.BytesIO(label.bytes))
qlr = BrotherQLRaster("PT-E550W")
create_label(
convert(
qlr,
im,
[im],
self.__media_width_to_type(label.height),
red=False,
threshold=70,