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":{ "custom/weather":{
"interval":600, "interval":600,
"return-type":"json",
"exec":"~/.config/waybar/scripts/wttr.sh" "exec":"~/.config/waybar/scripts/wttr.sh"
}, },
"network#warp":{ "network#warp":{

View file

@ -1,3 +1,3 @@
wttr=$(curl -s "https://wttr.in/Louisville?m&format=%t") echo "Weather "
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') curl -s "https://wttr.in/Louisville?m0dQT"|tr '\n' '\r'
echo -E "{\"text\":\"$wttr\",\"tooltip\":\"$tooltip\"}" printf "Last Updated ";date +%T