Git Product home page Git Product logo

weatherdesk's Introduction

WeatherDesk

Change the wallpaper based on the weather and (optionally) the time.

WeatherDesk

Thanks to Martin Hansen for the original Desktop.py module.

Powered by Yahoo!

Installation

Just download the repository, get some wallpapers (see the Wallpapers section) and run the WeatherDesk.py script.

NOTE: If you use OS X, see the note for OS X users.

Options

$ python3 WeatherDesk.py --help
usage: WeatherDesk.py [-h] [-d directory] [-f format] [-w seconds]
                      [-t [{2,3,4}]] [-n] [-c name [name ...]]

WeatherDesk - Change the wallpaper based on the weather
    (Uses the Yahoo! Weather API)

optional arguments:
  -h, --help            show this help message and exit

  -d directory, --dir directory
                        Specify wallpaper directory. Default: ~/.weatherdesk_walls

  -f format, --format format
                        Specify image file format. Default: .jpg

  -w seconds, --wait seconds
                        Specify time (in seconds) to wait before updating. Default: 600

  -t {2,3,4}, --time {2,3,4}
                        Use different backgrounds for different times.

                        Variations:
                          2 = day/night
                          3 = day/evening/night [Default]
                          4 = morning/day/evening/night

                        See --naming.

  -n, --naming          Show the image file-naming rules and exit.

  -c name, --city name
                        Specify city for weather. If not given, taken from ipinfo.io.

Wallpapers

You can choose your own custom set, conforming to the naming rules. Either put them in the default ~/.weatherdesk_walls/ directory or specify a directory with the --dir option.

Ready-to-Go wallpaper set

Don't want to go hunting for wallpapers? I recommend this beautiful set (called FireWatch, named after a game) (download the set using the ZIP file link given below) made by redditor JuniorNeves.

A zip download of the FireWatch set, named according to the rules: ZIP download. Just extract it into ~/.weatherdesk_walls (or into any directory and pass its path with --dir)

Naming of Pictures

$ python3 WeatherDesk.py --naming
This is how to name files in the wallpaper directory:


       WEATHER           |    FILENAME
_________________________|________________
 Clear, Calm, Fair:      | normal.jpg
 Thunderstorm:           | thunder.jpg
 Windy, Breeze, Gale:    | wind.jpg
 Drizzle, Rain, Showers: | rain.jpg
 Snow:                   | snow.jpg
 Cloudy:                 | cloudy.jpg
 Other:                  | normal.jpg

 If using with --time or --time 3, add:
 "day-", "night-" or "evening-" in front of filename.

 If using with --time 4, add:
 "morning-", "day-", "evening-" or "night-"

 If using with --time 2, add:
 "day-" or "night-"

Supported Platforms

  • Linux

    • Gnome 3
    • Pantheon
    • Unity
    • Gnome 2
    • Mate
    • Cinnamon
    • Openbox
    • LXDE
    • XFCE
    • LXQt
    • i3
    • KDE 3
    • Trinity
    • Fluxbox
    • Razor-Qt
    • JWM
    • AfterStep
    • IceWM
    • Blackbox
    • Windowmaker
    • Enlightenment
    • Awesome WM
  • Windows

  • OS X

In background mode (only for OS X and Linux)

Run

$ nohup python3 WeatherDesk.py > /dev/null &

Note for OS X users

Please disable the auto-reset/change of wallpaper in the "Desktop and Screen Saver" preferences.

Disable this

Note for KDE users

Since KDE 4 and above does not provide an interface to change the desktop background, KDE 4 and above is not supported.

Any contributions on this welcome.

weatherdesk's People

Contributors

bharadwaj-raju avatar jcowgill avatar olivervbk avatar krantideep95 avatar

Watchers

James Cloos avatar Rajesh  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.