polybar: nightscout

This commit is contained in:
Michael Grote 2021-07-02 17:01:31 +02:00
parent c993763dc0
commit 8221762605

View file

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