polybar: nightscout
This commit is contained in:
parent
c993763dc0
commit
8221762605
1 changed files with 22 additions and 8 deletions
|
@ -9,15 +9,29 @@ else
|
|||
wert=$(echo $api_url | awk '{printf "%.1f\n",$3*0.0555}')
|
||||
#echo $wert
|
||||
case $symbol in
|
||||
'"Flat"')
|
||||
echo $wert "="
|
||||
;;
|
||||
'"SingleDown"')
|
||||
echo $wert "-"
|
||||
;;
|
||||
'"SingleUp"')
|
||||
echo $wert "+"
|
||||
;;
|
||||
'"DoubleDown"')
|
||||
echo $wert "--"
|
||||
;;
|
||||
'"DoubleUp"')
|
||||
echo $wert "++"
|
||||
;;
|
||||
'"FortyFiveDown"')
|
||||
echo $wert "-"
|
||||
;;
|
||||
echo $wert "\"
|
||||
;;
|
||||
'"FortyFiveUp"')
|
||||
echo $wert "/"
|
||||
;;
|
||||
'"Flat"')
|
||||
echo $wert "="
|
||||
;;
|
||||
*)
|
||||
echo $symbol
|
||||
;;
|
||||
echo $symbol
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue