QR_oasis_saubole.png
This commit is contained in:
parent
e5d28daf9d
commit
5943d7a969
|
@ -135,12 +135,16 @@ 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/${ts}_qrcode.png
|
convert -background White label:"$xzuid ${phone}" -append /tmp/${ts}_message.png
|
||||||
brother_ql_create --model QL-700 /tmp/${ts}_qrcode.png --label-size 62 > /tmp/${ts}_qrcode.bin
|
brother_ql_create --model QL-700 /tmp/${ts}_message.png --label-size 62 > /tmp/${ts}_message.bin
|
||||||
|
brother_ql_print /tmp/${ts}_qrcode.bin /dev/usb/lp0
|
||||||
|
|
||||||
|
brother_ql_create --model QL-700 /home/${YOU}/.zen/SMS/PHONE/${phonehash}/qrcode.png --label-size 62 > /tmp/${ts}_qrcode.bin
|
||||||
brother_ql_print /tmp/${ts}_qrcode.bin /dev/usb/lp0
|
brother_ql_print /tmp/${ts}_qrcode.bin /dev/usb/lp0
|
||||||
|
|
||||||
## TODO RESIZE IMAGE
|
## TODO RESIZE IMAGE
|
||||||
convert -background White label:"${groupe} ${avis}" -append /tmp/${ts}_message.png
|
sms=$(echo "${groupe} ${avis}" | cut -b160- | fold -w 40 )
|
||||||
|
convert -background White label:"$sms" -append /tmp/${ts}_message.png
|
||||||
brother_ql_create --model QL-700 /tmp/${ts}_message.png --label-size 62 > /tmp/${ts}_message.bin
|
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
|
brother_ql_print /tmp/${ts}_message.bin /dev/usb/lp0
|
||||||
fi
|
fi
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Loading…
Reference in New Issue