Getting weather data in python


#1

Hello, I just need some code that can get the temperature of a given location and store it in a variable as a string / integer. Is there any way i can get this?


#2

This is perhaps not the most concise answer, but you could extract the relevant code from this example: https://github.com/pimoroni/inky-phat/blob/master/examples/weather.py

Which displays the temperature/pressure of a local region on Inky pHAT.