Coder Social home page Coder Social logo

sebersta / web-screenshot-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

Periodically capture screenshots of a webpage and serve them through a web service. Works with Kindle Online Screensaver.

License: MIT License

Dockerfile 21.56% Python 78.44%
kindle screenshot docker

web-screenshot-server's Introduction

Web Screenshot Server

Periodically capture screenshots of a webpage and serve them through a web service. It supports various resolutions, rotation, zooming, and grayscale.

Installation

docker-compose

A docker-compose.yml file is available as an example. It must be edited to match your needs. You probably want to adjust the port mapping and environment variables.

Note: If you are running it on macOS, you have to disable Airplay Receiver in Settings.

version: '3.8'

services:
  web-screenshot-server:
    image: sebersta/web-screenshot-server
    ports:
      - 5000:5000
    environment:
      - URL=https://example.com
      - RESOLUTION=1488x1072
      - ROTATION=-90         
      - ZOOM=200%           
      - GRAYSCALE=True
      - WAIT_TIME=2       
      - UPDATE_INTERVAL=30 
    restart: unless-stopped

Environment variables

  • URL: The web page URL to capture screenshots from.
  • RESOLUTION: The resolution for the screenshot (width x height).
  • ROTATION: Rotation angle for the image (anticlockwise).
  • ZOOM: The zoom level for the web page.
  • GRAYSCALE: Convert the screenshot to grayscale if set to True.
  • WAIT_TIME: The time in seconds to wait for the web page to load before capturing the screenshot.
  • UPDATE_INTERVAL: The interval in seconds at which to update and recapture the screenshot.

Then lauch the container:

docker-compose up -d

Integration with Kindle

Web Screenshot Server is designed to be work with a jailbroken Kindle and Online Screensaver. The Web Screenshot Server captures screenshots and makes them available for download on the Kindle. The Online Screensaver, running on the Kindle, fetches these images and uses them as the Screensaver.

Instructions

  • Set RESOLUTION to match the exact physical resolution of your specific Kindle model. For instance, the Kindle Voyage has a resolution of 1488x1072.
  • Set GRAYSCALE to True.
  • For landscape usage, set ROTATION to either -90 or 90.
  • To use it with landscape, set ROTATION to -90 or 90.
  • Set ZOOM to your preference.

web-screenshot-server's People

Contributors

sebersta avatar

Watchers

 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.