From 128fddb8f796f4c6dd35e696080f8cce685a67ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Mon, 4 Apr 2022 17:49:07 +0200 Subject: [PATCH] Improvements --- requirements.txt | 11 ++++++++++- smallprint.py | 4 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index acef573..ff810ac 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,19 +1,28 @@ appdirs==1.4.4 argcomplete==1.12.0 certifi==2020.6.20 +cffi==1.15.0 chardet==3.0.4 -feedparser==5.2.1 +cryptography==3.4.7 +feedparser==6.0.8 +icalendar==4.0.9 idna==2.10 ignition-gemini==0.1.7 importlib-metadata==1.7.0 +lxml==4.8.0 Pillow==7.2.0 pycairo==1.19.1 +pycparser==2.21 pyserial==3.4 +python-dateutil==2.8.2 python-escpos==2.2.0 +pytz==2021.3 pyusb==1.0.2 PyYAML==5.3.1 qrcode==6.1 requests==2.24.0 +sgmllib3k==1.0.0 six==1.15.0 urllib3==1.25.10 +webdavclient3==3.14.6 zipp==3.1.0 diff --git a/smallprint.py b/smallprint.py index 11c613b..8612b2b 100644 --- a/smallprint.py +++ b/smallprint.py @@ -55,7 +55,9 @@ def initialize(): printer_interface = config.get("PRINTER_INTERFACE") or 0 printer_endpoint = config.get("PRINTER_ENDPOINT") or 0x01 - return Usb(prid1, prid2, printer_interface, printer_endpoint) + printer = Usb(prid1, prid2, printer_interface, printer_endpoint) + printer.charcode(code="WEST_EUROPE") + return printer def reset_defaults(printer):