weather module rain check fix
This commit is contained in:
parent
dcdf5ab970
commit
beaa788dea
1 changed files with 1 additions and 1 deletions
|
@ -12,6 +12,6 @@ if [[ "$location" != "" ]]
|
||||||
fi
|
fi
|
||||||
curl -s wttr.in/$location > ~/.weatherreport
|
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 "°"}'
|
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…
Reference in a new issue