This commit is contained in:
parent
14c3017745
commit
e5d28daf9d
|
@ -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 -
|
# 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
|
if [[ -e /dev/usb/lp0 ]]; then
|
||||||
convert /home/${YOU}/.zen/SMS/PHONE/${phonehash}/qrcode.png -background White label:"$xzuid ${phone}" -append /tmp/qrcode.png
|
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/qrcode.png --label-size 62 > /tmp/${ts}.bin
|
brother_ql_create --model QL-700 /tmp/${ts}_qrcode.png --label-size 62 > /tmp/${ts}_qrcode.bin
|
||||||
brother_ql_print /tmp/${ts}.bin /dev/usb/lp0
|
brother_ql_print /tmp/${ts}_qrcode.bin /dev/usb/lp0
|
||||||
|
|
||||||
convert -background White label:"${groupe} ${avis}" -append /tmp/message.png
|
## TODO RESIZE IMAGE
|
||||||
brother_ql_create --model QL-700 /tmp/qrcode.png --label-size 62 > /tmp/${ts}.bin
|
convert -background White label:"${groupe} ${avis}" -append /tmp/${ts}_message.png
|
||||||
brother_ql_print /tmp/${ts}.bin /dev/usb/lp0
|
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
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue