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