Been successful with the API Openweathermap project I wanted to change to lat long co-ordinates instead of City and Country code.
Has this been covered anywhere?
If not please can someone give me a few pointers as to where I start
Thanks
Steve
3 Answers
Hi.
You need to change your script to get the longitude and latitude. You can get them like this:
latitude = weather_data.json().get('coord').get('lon') longitude = weather_data.json().get('coord').get('lat')
Then, display it in the OLED as you wish.
I hope this helps.
Regards,
Sara