From e5d28daf9d105ee6e8af5bff498667892d95df4d Mon Sep 17 00:00:00 2001 From: qo-op Date: Tue, 22 Jun 2021 05:49:43 +0200 Subject: [PATCH] print --- sms/GUILDE.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sms/GUILDE.sh b/sms/GUILDE.sh index c87e340..c9fa425 100755 --- a/sms/GUILDE.sh +++ b/sms/GUILDE.sh @@ -135,13 +135,14 @@ chmod 775 /home/${YOU}/.zen/SMS/${ts}.tosend.sh # echo -n -e '\x1b\x69\x55\x41\x00\x00' | brother_ql -m QL-700 -p /dev/usb/lp0 send - ######################################################################## if [[ -e /dev/usb/lp0 ]]; then - convert /home/${YOU}/.zen/SMS/PHONE/${phonehash}/qrcode.png -background White label:"$xzuid ${phone}" -append /tmp/qrcode.png - brother_ql_create --model QL-700 /tmp/qrcode.png --label-size 62 > /tmp/${ts}.bin - brother_ql_print /tmp/${ts}.bin /dev/usb/lp0 + convert /home/${YOU}/.zen/SMS/PHONE/${phonehash}/qrcode.png -background White label:"$xzuid ${phone}" -append /tmp/${ts}_qrcode.png + brother_ql_create --model QL-700 /tmp/${ts}_qrcode.png --label-size 62 > /tmp/${ts}_qrcode.bin + brother_ql_print /tmp/${ts}_qrcode.bin /dev/usb/lp0 - convert -background White label:"${groupe} ${avis}" -append /tmp/message.png - brother_ql_create --model QL-700 /tmp/qrcode.png --label-size 62 > /tmp/${ts}.bin - brother_ql_print /tmp/${ts}.bin /dev/usb/lp0 +## TODO RESIZE IMAGE + convert -background White label:"${groupe} ${avis}" -append /tmp/${ts}_message.png + brother_ql_create --model QL-700 /tmp/${ts}_message.png --label-size 62 > /tmp/${ts}_message.bin + brother_ql_print /tmp/${ts}_message.bin /dev/usb/lp0 fi exit 0