Desktop background on Windows 10, based on current weather and time
A python script that changes our background based on current weather and time of the day. The weather is obtained from https://openweathermap.org/ API.
Steps
- Register to
https://openweathermap.org/for free and generate your free API key. The default one should look something like:93aa1ae52d8df6151ee049fid863a3q0. Then copy paste your API key to theapi_keyvariable. - Save the photos you want for each season, time of the day and weather in any map you want (just make sure to remember absolute path to your map and save it to
path_to_photosvariable). Make sure that map with photos is organized as noted below:- photos
- autumn
- day
- snowy.jpg
- clear.jpg
- rainy.jpg
- cloudy.jpg
- night
- snowy.jpg
- clear.jpg
- rainy.jpg
- cloudy.jpg
- day
- spring
- summer
- winter
- autumn
- photos
- Convert
main.pyfile tomain.exefile and put it in your StartUp folder that the program will run everytime you start your computer: - Done. You can manually change photos whenever you want.