4 lines
239 B
Bash
4 lines
239 B
Bash
|
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\"}"
|