Updated to a more reliable weather service for talking-clock.
This commit is contained in:
parent
a862b9cc4a
commit
caa3b55ade
@ -360,7 +360,7 @@ if [ "$speakTime" == "true" ] ; then
|
||||
fi
|
||||
#Add temperature if key is set
|
||||
if [ -n "$key" ] ; then
|
||||
temperature="$(curl -s "http://api.weatherstack.com/current?access_key=$key&query=${zipcode:-fetch:ip}&units=${units:-f}" | jq '.current.temperature')"
|
||||
temperature="$(curl -s "http://api.weatherstack.com/current?access_key=$key&query=${zipcode:-fetch:ip}&units=${units:-f}" | jq -r '.current.temperature')"
|
||||
if [ -n "$temperature" ] ; then
|
||||
if [ "$format" = "24" ]; then
|
||||
timeString="$timeString and $(number_to_text $temperature) degrees."
|
||||
|
Loading…
Reference in New Issue
Block a user