better weather

This commit is contained in:
steven 2025-04-21 00:06:44 -04:00
parent 58704035dd
commit 347b8b1d1c
2 changed files with 3 additions and 4 deletions

View file

@ -27,7 +27,6 @@
},
"custom/weather":{
"interval":600,
"return-type":"json",
"exec":"~/.config/waybar/scripts/wttr.sh"
},
"network#warp":{

View file

@ -1,3 +1,3 @@
wttr=$(curl -s "https://wttr.in/Louisville?m&format=%t")
tooltip=$(curl -s "https://wttr.in/Louisville?m&format=<u>%C</u>:RealFeel+%f:UV+Index+%u:Precip.+%p:Wind+%w"|sed 's/:/\\n/g')
echo -E "{\"text\":\"$wttr\",\"tooltip\":\"$tooltip\"}"
echo "Weather "
curl -s "https://wttr.in/Louisville?m0dQT"|tr '\n' '\r'
printf "Last Updated ";date +%T