Git Product home page Git Product logo

wallpaper_server's Introduction

README

Intended as an accompaniment to RandomWallpaperGnome3, this micro-ish service serves up the wallpaper images from a local directory.

Currently it will resize images on the fly, as well as add a border to the image that is the mean colour in the image.

Use

Wallpaper Server

Docker

As simple as:

docker run \
  -p <Port on host machine>:5000 \
  -v <Path to directory of backgrounds>:/data/backgrounds \
  --detach --restart always \
  --name wallpaper_server \
  gordonei/wallpaper_server:latest

Directly

  1. Change to this directory.
  2. Install python dependencies: pip3 install -r requirements.txt
  3. Run the service PYTHONPATH=. python3 wallpaper_server/server.py

NB this will serve up to any host that contacts it on port 5000.

Random Wallpaper Settings

  1. Open the Settings menu, go to the Wallpaper Sources table.
  2. Fill in the following settings:
    1. Select the Generc JSON option from the drop down menu.
    2. Make the Request URL field http://127.0.0.1:<port on host machine>/?resolution=<desired resolution, e.g. 3840x2160>
    3. Make the JSON Path field $.backgrounds[@random]
    4. Make the Image URL prefix field http://127.0.0.1:<port on host machine>/backgrounds/

wallpaper_server's People

Contributors

gordonei avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.