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":{
|
||||
"interval":600,
|
||||
"return-type":"json",
|
||||
"exec":"~/.config/waybar/scripts/wttr.sh"
|
||||
},
|
||||
"network#warp":{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue