SMS COMMAND from LOVELAND entrance

This commit is contained in:
qo-op 2020-05-28 17:55:06 +02:00
parent 12ffbf5d97
commit 0481948db8
2 changed files with 16 additions and 3 deletions

View File

@ -51,6 +51,16 @@ dayofthemonth=$(date +%d)
weeknumber=$(date +%V)
echo $timebar
#
# _________
# / ____< /________ ___ _____
# / / __ / / ___/ __ `__ \/ ___/
#/ /_/ // (__ ) / / / / (__ )
#\____//_/____/_/ /_/ /_/____/
#
$MY_PATH/g1sms/sms_ASTROPORT.sh
# TIME NTP SYNC: TODO: Problem being root (stickybit INSTALL?)
# G1Tx. G1sms. G1Dab Zen economy needs precise time sync (RpiZero !!)
# Tx rates is limited by Station time synchronisation.

View File

@ -12,7 +12,7 @@
MY_PATH="`dirname \"$0\"`" # relative
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
[[ ! $(which gammu-smsd-inject) ]] && exit 0 ## TODO: ONLY SMS equiped NODE run that part of code !! DO BETTER
[[ ! $(which gammu-smsd-inject) ]] && exit 0 ## TODO: ONLY SMS equiped NODE run that part of code !! DO IT BETTER MAY BE
source $MY_PATH/init.sh
source $MY_PATH/functions.sh
@ -74,8 +74,11 @@ for hashfile in /tmp/loveland_entrance/*; do
# Send response SMS
sms_SEND "$PHONE" "$mess"
fi
fi
### REMOVE SMS COMMAND from LOVELAND entrance
[[ -f $hashfile ]] && rm -f $hashfile
done
[[ -d /home/$YOU/.zen/g1sms/$PHONE ]] && [[ $(whoami) == "root" ]] && chown -R $YOU /home/$YOU/.zen/g1sms/$PHONE