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}') 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