better weather
This commit is contained in:
parent
58704035dd
commit
347b8b1d1c
2 changed files with 3 additions and 4 deletions
|
@ -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":{
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue