mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2025-10-07 07:22:36 +02:00
weather module rain check fix
This commit is contained in:
parent
dcdf5ab970
commit
beaa788dea
@ -12,6 +12,6 @@ if [[ "$location" != "" ]]
|
||||
fi
|
||||
curl -s wttr.in/$location > ~/.weatherreport
|
||||
|
||||
echo -n $(cat ~/.weatherreport | sed -n 16p | sed -e 's/[^m]*m//g' | grep -o "[0-9]*%" | sort -n | sed -e "$!d;s/^/☔ /")
|
||||
echo -n $(cat ~/.weatherreport | sed -n 16p | sed -e 's/[^m]*m//g' | grep -o "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/☔ /g")
|
||||
|
||||
cat ~/.weatherreport | sed -n 13p | sed -e 's/[^m]*m//g;s/[^0-9]/ /g;s/ /\n/g;/^s*$/d' | grep [0-9] | sort -n | sed -e 1b -e '$!d' | tr '\n' ' ' | awk '{print " ❄️",$1 "°","☀️",$2 "°"}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user