1
0
mirror of https://github.com/Llewellynvdm/CoinRate.git synced 2024-11-26 20:16:27 +00:00

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
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} " &&

View File

@ -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

View File

@ -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

3
sms.sh
View File

@ -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")