Change wallpaper based on the weather conditions – WeatherDesk

WeatherDesk is a free wallpaper changer for linux, windows and mac OS  from the developer Bharadwaj Raju. It is a simple python script and it will change your desktop wallpapers based on the weather conditions in your area. You can also change desktop background based on 4 optional times of the day. It uses Yahoo! Weather API to find the weather of your location.

Install WeatherDesk on ubuntu

Open your ubuntu terminal app and run (type and enter) the below codes one by one to install WeatherDesk on Ubuntu.

sudo wget https://github.com/bharadwaj-raju/WeatherDesk/archive/master.tar.gz -O /tmp/weatherdesk.tar.gz
sudo tar -xvf /tmp/weatherdesk.tar.gz -C /tmp/
sudo mkdir /opt/weatherdesk
sudo cp /tmp/WeatherDesk-master/*.py /opt/weatherdesk/
sudo chmod +x /opt/weatherdesk/WeatherDesk.py
sudo ln -s /opt/weatherdesk/WeatherDesk.py /usr/local/bin/weatherdesk

Then go to the Home directory and create a folder and name it as

.weatherdesk_walls

Download the wallpapers from this link. Download Wallpapers

Then extract the downloaded file to the .weatherdesk_walls folder.
Note: .weatherdesk_walls is a hidden folder. In file manager check the show hidden files option to view it.

Also Read:  How to Install Pipewire Volume Control Pwvucontrol

If you want to put your favorite wallpapers, just rename your wallpapers and replace with the exciting one in the .weatherdesk_walls folder

Then type and enter the below command in terminal to run the weatherdesk.

weatherdesk

To see all the available WeatherDesk options, run the following command:

weatherdesk --help

Note: You need to run this script every time if you want to change the wallpaper. To do it automatic, just type the below command it terminal and press enter.

gnome-session-properties

This will open the the ubuntu startup manager. Click the add button give the below details in the name,command and comment field.

Name:

weatherdeskWallpaperChanger

Command:

weatherdesk

Comment:

Automatically changes desktop wallpaper based on the weather conditions!

And click add then it will run on your Ubuntu startup.

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Leave a Reply