Git Product home page Git Product logo

gdrive-scroll's Introduction

gdrive-scroll

A tool for fetching and scrolling images (and music) stored in Google Drive.

This program was developed to be used on a Raspberry Pi for a digital signage purpose, but it should work fine on other *nix hosts.

Dependencies

Google Drive API

You will need to have a project in Google Cloud with a configured OAuth client in order to access the Drive API. The only scope needed in the consent screen is: https://www.googleapis.com/auth/drive.readonly Read more here: https://developers.google.com/drive/api/v3/about-sdk

Credential Store

Before the first run of the program, create a JSON file with the following OAuth keys and values from your Google Cloud project:

{"client_id": "FOO", "client_secret": "BAR"}

After the first run, the program will store the access token in that file and transparently take care of refreshing the token.

Music

Since we use mpg123 to play music, only MPEG (mp1/mp2/mp3) files are allowed.

Usage

usage: scroll.py [-h] --credential-store CREDENTIAL_STORE --images-parent-id IMAGES_PARENT_ID [--music-parent-id MUSIC_PARENT_ID] [--slideshow-interval SLIDESHOW_INTERVAL]

A tool for fetching and scrolling images (and music) stored in Google Drive.

optional arguments:
  -h, --help            show this help message and exit
  --credential-store CREDENTIAL_STORE
                        Location of persistent credential store.
  --images-parent-id IMAGES_PARENT_ID
                        Google Drive parent (folder) id that contains the child images.
  --music-parent-id MUSIC_PARENT_ID
                        Google Drive parent (folder) id that contains the child music files.
  --slideshow-interval SLIDESHOW_INTERVAL
                        Number of seconds between images. (default: 10)

gdrive-scroll's People

Contributors

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