5 Respuestas
+ 2
pip install pyowm
+ 1
check this out
it gets the weather using openweathermaps api. (it uses a geolocation api for location as well) and then you can take it a step further and set default clothes depending on the output
EDIT: the important module is: pyowm
https://code.sololearn.com/cn11KI97Xvn0/?ref=app
+ 1
Thomas , honestly it wont work even if you have pyowm. i imported some other personal modules and methods. But yeah, all the pyowm code should be fine to mess with. They also have a doc page that explains the common methods
0
Thanks for the idea. The code doesnt work (“No Module Named pyowm”) but I can look at the code and see what its doing.