Updated to a more reliable weather service for talking-clock.

This commit is contained in:
Storm Dragon 2019-09-15 00:47:08 -04:00
parent a862b9cc4a
commit caa3b55ade

View File

@ -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."