diff --git a/sms/GUILDE.sh b/sms/GUILDE.sh index c9fa425..9e762db 100755 --- a/sms/GUILDE.sh +++ b/sms/GUILDE.sh @@ -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 - ######################################################################## 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 - brother_ql_create --model QL-700 /tmp/${ts}_qrcode.png --label-size 62 > /tmp/${ts}_qrcode.bin + convert -background White label:"$xzuid ${phone}" -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}_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 ## 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_print /tmp/${ts}_message.bin /dev/usb/lp0 fi diff --git a/sms/QR_oasis_saubole.png b/sms/QR_oasis_saubole.png new file mode 100644 index 0000000..c3191f3 Binary files /dev/null and b/sms/QR_oasis_saubole.png differ