From 735dded69b0c8b9e295492585d67fb818400f5c2 Mon Sep 17 00:00:00 2001 From: David Kilias Date: Tue, 7 Apr 2020 14:24:52 +0200 Subject: [PATCH] add shell wrapper --- address-label.py | 2 +- address-label.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 address-label.sh diff --git a/address-label.py b/address-label.py index 29e3014..c81bc18 100644 --- a/address-label.py +++ b/address-label.py @@ -11,4 +11,4 @@ d = ImageDraw.Draw(img) d.text((20,10), "Netz39 e.V., Leibnizstr. 32, 39104 Magdeburg", font=fnt0, fill=(0,0,0)) d.text((20,25), address.strip('\"'), font=fnt, fill=(0, 0, 0)) -img.save('pil_text_font.png') \ No newline at end of file +img.save('address-label.png') \ No newline at end of file diff --git a/address-label.sh b/address-label.sh new file mode 100644 index 0000000..a699617 --- /dev/null +++ b/address-label.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +source venv/bin/activate +python address-label.py <&0 + +export BROTHER_QL_MODEL=QL-720NW !3678 +export BROTHER_QL_PRINTER=tcp://brw008092c0c4ca + +venv/bin/brother_ql print -l 62 address-label.png + +rm address-label.png \ No newline at end of file