-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Get Weather, latitude #108
Comments
Hey Try to use this link to find your latitude and longtitude: http://www.mapcoordinates.net/en Best regards Sajuran |
Withing the program it says I must enter the coordinates in as a string. I am very very new to programming and do not know how to do that |
Current version of weather API is depricated, so SmartMirror needs to be updated.
There 0-a are keys and text after them represents values. To get this message add following code before error line: for k, v in location_obj.items():
print(k, v) |
After typing in your new code I am getting the error message Traceback (most recent call last) : |
Hi |
@keroe @sajuran123 @elijamesn01 @toottRenat pi@pi:~/Smart-Mirror $ python smartmirror.py |
@Ahendrix9624
or maybe printing r.text. |
@toottRenat I think my string format is wrong for the location_req_url Traceback (most recent call last): |
Yes, your string format is wrong. In your string you should replace ip and key by "%s", or completely remove string format (% and everything after it). |
|
Upon startup of the program, I receive this error message and the weather does not appear on the monitory.
Traceback (most recent call last) :
File "smartmirror.py", line 145, in get_weather
lat = location_obj[ 'latitude' ]
KeyError: 'latitude'
Error: 'latitude'. Cannot get weather.
After tinkering with the code for several hours I am at a loss.
Any help is appreciated!
The text was updated successfully, but these errors were encountered: