This script allows you to automatically change your desktop wallpaper based on the current season and temperature in your location (city must be specified). I personally created it to change wallpapers after booting up Windows 10 (by adding it to system startup). It has not been tested on other OS and is not planned to be tested.
- Download the script and open it with any text editor of your choice.
- Install the latest version of Python from python.org
- In the
location = "your_city"
line, replaceyour_city
with the full name of your city in Latin letters. - Get your API key from openweathermap.org as follows:
- Register on the openweathermap.org website.
- Click on your nickname in the upper right corner of the page and go to the
My API keys
section. - Generate a new API key with any name.
- Copy the key and paste it into the
api_key_openweathermap = "your_api"
line instead ofyour_api
.
- Get your API key from unsplash.com as follows:
- Register on the unsplash.com website.
- Click on the
View more links
button (represented by three horizontal bars) in the upper right corner of the page, go to theDevelopers/API
section. - Click
Your Apps
, thenNew Application
. - Agree to everything, specify any name and description, and complete the app creation process.
- Go to your app page, copy the Access Key, and paste it into the
api_key_unsplash = "your_api"
line instead ofyour_api
.
- Save the changes in the script.
Now you can run the script in a way that is convenient for you.