After seeing Chameleon today in my backyard changing its body colour with it’s surrounding. I got a thought how would that be if my computer can also change the desktop wallpaper according to weather conditions.
And began searching for an application if there is any. Luckily there is an application which serves my exact needs. Thanks to GitHub for the great search feature.
Now I will show you how you can change the Wallpaper according to your weather in your area on your Linux computer.
Here are some best wallpapers for your Linux OS for this Diwali Festival You can download Diwali Images 2017 from here
The settings that I am going to describe below are not really necessary to follow but as a geek, I love to do :-P, So don’t scold me. 😛 Don’t worry I will also share how you can do without any additional steps.
There is a program “WeatherDesk”, Which can change the background image of Linux Mint depending on the current weather situation – and according to the current time of day which is an optional feature, I found this program more interesting and started using on my computer.
Preparation: Pictures for all weather
First of all you need six different pictures for “normal” weather, thunderstorm, wind, rain, snow and clouds. These images should be named with .jpg extension, So, for example, the naming of the images should be like this Summer.jpg, rainy.jpg, windy.jpg, and cloudy.jpg.
If you are impatient to grab the images from Internet for your wallpaper and want to try the application quickly then you can try downloading this folder for quick images which are recommended by the developer and the best part of this image folder the images are already named, So you don’t need to even name.
After downloading the images from above source, Extract the image folder and copy those images to the folder .weatherdesk_walls in the home directory.
In principle, it is also possible to define different times of the day. To do this, you would have to add “morning-“, “day-“, “evening-” or “night-” to the above-mentioned images, and set the time parameters when starting the Python script. How this works exactly can be found on the website of the developer of WeatherDesk.
Installation of Weather Desk:
Weather Desk was built with Python so in order to make this script work , You will also need the psutil package on Linux Mint. This can be installed from the terminal with the following statement:
sudo apt-get install python3-psutil
From github.com you can download the latest version of WeatherDesk in the form of a zip file . These are then unpacked to the desired location, for example in the home directory in the folder WeatherDesk. Now you can start the WeatherDesk program with the following statement:
Python3 WeatherDesk.py —city Werl
If you do not live in the beautiful Werl you have to adapt the name of the city, of course. In addition, the statement only works directly from the WeatherDesk folder, otherwise you would have to specify the file path to WeatherDesk.py. For example, how this works in a subfolder of the home directory is shown by the sample code at the end of this article.
If you liked WeatherDesk and want to use it Everytime you turn on the laptop, then it is recommended to start the script automatically with Linux Mint.
To do this, We need to invoke the Start programme option from the Mint Start menu and add the command to run WeatherDesk. For me the Python Script in the home directory is in a subfolder called WeatherDesk,
So enter this command in the text box Python3 WeatherDesk.py —city Werl to run the application.