dotfiles/polybar/nightscout_cgm.sh

3 lines
165 B
Bash
Raw Normal View History

2021-06-08 14:39:33 +02:00
#!/bin/bash
2021-06-08 15:08:00 +02:00
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}'