diff --git a/img/QR_oasis_saubole.png b/img/QR_oasis_saubole.png deleted file mode 100644 index 7114693..0000000 Binary files a/img/QR_oasis_saubole.png and /dev/null differ diff --git a/sms/GUILDE.sh b/sms/GUILDE.sh index e55813f..234b4d2 100755 --- a/sms/GUILDE.sh +++ b/sms/GUILDE.sh @@ -34,8 +34,8 @@ echo "=> ${phonehash}" htest=$(ls /home/${YOU}/.zen/SMS/PHONE/${phonehash} 2>dev/null) if [[ $htest ]]; then - echo "$phone already registered in $htest" xzuid=$(cat "/home/${YOU}/.zen/SMS/PHONE/${phonehash}/xzuid") + echo "$phone already registered it is $xzuid" fi mkdir -p /home/${YOU}/.zen/SMS/PHONE/${phonehash}/ @@ -137,6 +137,7 @@ chmod 775 /home/${YOU}/.zen/SMS/PHONE/${phonehash}/${ts}.tosend.sh ## PRINT ID + MESSAGE # Disable power off = https://github.com/pklaus/brother_ql/issues/50 # echo -n -e '\x1b\x69\x55\x41\x00\x00' | brother_ql -m QL-700 -p /dev/usb/lp0 send - +## IMAGE MAGICK https://legacy.imagemagick.org/Usage/layers/#append ######################################################################## if [[ -e /dev/usb/lp0 ]]; then convert -background White label:"$xzuid ${phone}" -append /tmp/${ts}_message.png diff --git a/sms_received.sh b/sms_received.sh index ff58c3b..1343392 100755 --- a/sms_received.sh +++ b/sms_received.sh @@ -53,13 +53,13 @@ case "$CMD" in A|AIDE) ## ASK FOR HELP $MY_PATH/sms/AIDE.sh "$phone" & - exit 0 ;; + TEST) echo "TEST: sending ___ $TEXT _to_ $phone" gammu-smsd-inject TEXT "$phone" -text "$TEXT" - exit 0 ;; + *) echo "MESSAGE DE $phone POUR $CMD" MESSAGE=$(echo "$TEXT" | cut -d ' ' -f 2-) @@ -74,8 +74,6 @@ case "$CMD" in # sudo service gammu-smsd stop # sudo gammu sendsms TEXT "$phone" -text "Message pour ${CMD} bien reçu." # sudo service gammu-smsd start - - exit 0 ;; esac