diff --git a/functions.sh b/functions.sh index 22c1541..9203e42 100644 --- a/functions.sh +++ b/functions.sh @@ -311,7 +311,11 @@ function setMessage () { if (( "$showAB" == 1 )); then message="${Currency} is ${target_type} ${target_value} ${Target} at ${current_value} ${Target}" 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 # first send to comand line echoTweak "${message} - ${Datetimenow} " && diff --git a/getPrice.sh b/getPrice.sh index 1d2a23f..4f4e886 100755 --- a/getPrice.sh +++ b/getPrice.sh @@ -77,7 +77,7 @@ Getting Coin Value in Fiat Currency at set price example: 14000 or 14000,15000 -b Send Notice below target value once a day -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) ====================================================== @@ -189,7 +189,7 @@ while getopts hc:C:o:v:B:A:baqtT:sS:M:lf:I:kp:P: opt; do AboveValue=1 ;; k) - showAB=0 + showAB=1 ;; q) allowEcho=0 diff --git a/main.sh b/main.sh index 3987ca7..0cd364b 100644 --- a/main.sh +++ b/main.sh @@ -58,7 +58,7 @@ PercentSwitch=0 # message settings send=0 sendSwitch=2 -showAB=1 +showAB=0 sendKey=$(TZ=":ZULU" date +"%m/%d/%Y" ) allowEcho=1 Telegram=0 diff --git a/sms.sh b/sms.sh index 1dedf36..aa40573 100644 --- a/sms.sh +++ b/sms.sh @@ -35,6 +35,9 @@ function smsMe() { fi # set Args local message="$1" + # little fix just incase + message="${message//▲/(up)}" + message="${message//▼/(down)}" # get first line local SMSd=$(sed -n "${smsID}p" < "$DIR/sms") local to=$(sed -n "${smstoID}p" < "$DIR/smsto")