polybar script an laptop angepasst
This commit is contained in:
parent
50bef56ace
commit
348ecc0339
2 changed files with 2 additions and 2 deletions
|
@ -55,7 +55,7 @@ cursor-scroll = ns-resize
|
||||||
type = custom/script
|
type = custom/script
|
||||||
exec = /home/mg/dotfiles/polybar/nightscout_cgm.sh
|
exec = /home/mg/dotfiles/polybar/nightscout_cgm.sh
|
||||||
interval = 120
|
interval = 120
|
||||||
format-prefix = "BG"
|
format-prefix = "BG "
|
||||||
|
|
||||||
[module/xwindow]
|
[module/xwindow]
|
||||||
type = internal/xwindow
|
type = internal/xwindow
|
||||||
|
|
|
@ -3,5 +3,5 @@ curl -s -X GET "https://nightscout.mgrote.net/api/v1/entries/sgv?count=1&token=p
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "---"
|
echo "---"
|
||||||
else
|
else
|
||||||
curl -s -X GET "https://nightscout.mgrote.net/api/v1/entries/sgv?count=1&token=polybar-ae6fe2720f2c30f4" | awk '{$zw=$3 * 0.0555} {printf "%.1f\n",$zw}'
|
curl -s -X GET "https://nightscout.mgrote.net/api/v1/entries/sgv?count=1&token=polybar-ae6fe2720f2c30f4" | awk '{printf "%.1f\n",$3*0.0555}'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue