add shell wrapper
This commit is contained in:
parent
d76fb68696
commit
735dded69b
2 changed files with 12 additions and 1 deletions
|
@ -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')
|
||||
img.save('address-label.png')
|
11
address-label.sh
Normal file
11
address-label.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue