Added some arrows to messages, also made (at) the default message display

This commit is contained in:
Llewellyn van der Merwe 2018-01-02 23:11:24 +02:00
parent b77b427f18
commit 161c77164d
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
4 changed files with 11 additions and 4 deletions

View File

@ -311,7 +311,11 @@ function setMessage () {
if (( "$showAB" == 1 )); then if (( "$showAB" == 1 )); then
message="${Currency} is ${target_type} ${target_value} ${Target} at ${current_value} ${Target}" message="${Currency} is ${target_type} ${target_value} ${Target} at ${current_value} ${Target}"
else else
message="${Currency} at ${current_value} ${Target}" if [ "${target_type}" == "above" ]; then
message="${Currency} at ${current_value} ${Target}"
else
message="${Currency} at ${current_value} ${Target}"
fi
fi fi
# first send to comand line # first send to comand line
echoTweak "${message} - ${Datetimenow} " && echoTweak "${message} - ${Datetimenow} " &&

View File

@ -77,7 +77,7 @@ Getting Coin Value in Fiat Currency at set price
example: 14000 or 14000,15000 example: 14000 or 14000,15000
-b Send Notice below target value once a day -b Send Notice below target value once a day
-a Send Notice above target value once a day (default) -a Send Notice above target value once a day (default)
-k hide the above and below from result string -k show the above value and below value in the result string
Advance options (factory option) Advance options (factory option)
====================================================== ======================================================
@ -189,7 +189,7 @@ while getopts hc:C:o:v:B:A:baqtT:sS:M:lf:I:kp:P: opt; do
AboveValue=1 AboveValue=1
;; ;;
k) k)
showAB=0 showAB=1
;; ;;
q) q)
allowEcho=0 allowEcho=0

View File

@ -58,7 +58,7 @@ PercentSwitch=0
# message settings # message settings
send=0 send=0
sendSwitch=2 sendSwitch=2
showAB=1 showAB=0
sendKey=$(TZ=":ZULU" date +"%m/%d/%Y" ) sendKey=$(TZ=":ZULU" date +"%m/%d/%Y" )
allowEcho=1 allowEcho=1
Telegram=0 Telegram=0

3
sms.sh
View File

@ -35,6 +35,9 @@ function smsMe() {
fi fi
# set Args # set Args
local message="$1" local message="$1"
# little fix just incase
message="${message//▲/(up)}"
message="${message//▼/(down)}"
# get first line # get first line
local SMSd=$(sed -n "${smsID}p" < "$DIR/sms") local SMSd=$(sed -n "${smsID}p" < "$DIR/sms")
local to=$(sed -n "${smstoID}p" < "$DIR/smsto") local to=$(sed -n "${smstoID}p" < "$DIR/smsto")