Updates to weather to make it much more powerful and accurate.
This commit is contained in:
@ -356,6 +356,8 @@ if [ "$speakTime" == "true" ] ; then
|
||||
fi
|
||||
#Add temperature if zipcode is set
|
||||
if [ -n "$zipcode" ] ; then
|
||||
zipcode="${zipcode//[[:space:]]/+}"
|
||||
zipcode="${zipcode#ip}"
|
||||
temperature="$(curl -s "https://wttr.in/${zipcode}?format=%t%20degrees%20and%20%C")"
|
||||
temp="${temperature//[^-[:digit:]]/}"
|
||||
temperature="${temp} ${temperature#* }"
|
||||
|
Reference in New Issue
Block a user