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
|
fi
|
||||||
#Add temperature if key is set
|
#Add temperature if key is set
|
||||||
if [ -n "$key" ] ; then
|
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 [ -n "$temperature" ] ; then
|
||||||
if [ "$format" = "24" ]; then
|
if [ "$format" = "24" ]; then
|
||||||
timeString="$timeString and $(number_to_text $temperature) degrees."
|
timeString="$timeString and $(number_to_text $temperature) degrees."
|
||||||
|
Loading…
Reference in New Issue
Block a user