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}')
|
wert=$(echo $api_url | awk '{printf "%.1f\n",$3*0.0555}')
|
||||||
#echo $wert
|
#echo $wert
|
||||||
case $symbol in
|
case $symbol in
|
||||||
'"Flat"')
|
'"SingleDown"')
|
||||||
echo $wert "="
|
echo $wert "-"
|
||||||
;;
|
;;
|
||||||
|
'"SingleUp"')
|
||||||
|
echo $wert "+"
|
||||||
|
;;
|
||||||
|
'"DoubleDown"')
|
||||||
|
echo $wert "--"
|
||||||
|
;;
|
||||||
|
'"DoubleUp"')
|
||||||
|
echo $wert "++"
|
||||||
|
;;
|
||||||
'"FortyFiveDown"')
|
'"FortyFiveDown"')
|
||||||
echo $wert "-"
|
echo $wert "\"
|
||||||
;;
|
;;
|
||||||
|
'"FortyFiveUp"')
|
||||||
|
echo $wert "/"
|
||||||
|
;;
|
||||||
|
'"Flat"')
|
||||||
|
echo $wert "="
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo $symbol
|
echo $symbol
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue