Hi! i need some help with a program in python on Raspberry pi3.

Terry Reedy tjreedy at udel.edu
Fri Apr 14 14:45:29 EDT 2017

On 4/14/2017 10:27 AM, Kasper wrote:
> every time i run the program i get this messeage:
> Traceback (most recent call last):
>   File "smartmirror.py", line 159, in get_weather
>     temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])),
> degree_sign)
> KeyError: 'currently'
> Error: 'currently'. Cannot get weather.
> How do i fix that?

Use a valid key for weather_obj.  Check doc or add
before the failing subscription.

> Here is the program:

I second Steve's comment.

Terry Jan Reedy

More information about the Python-list mailing list