Code Monkey home page Code Monkey logo

onedrive-slideshow's Introduction

OneDrive Slideshow

A simple OneDrive Slideshow designed to be run on a Raspberry Pi (running Linux), or any Windows or Linux desktop OS.

Setup

For pre-built binaries, look at the Artifacts attached to any successful build of main.

The app will authenticate to OneDrive via the "Device Flow": it will provide a URL (that you will need to open on another device where you can log in to OneDrive) and a code to enter.

You will need to create a file called slideshow.txt in the root of your OneDrive that configures the slideshow. This is a JSON file with the basic format of:

{
    "directories":
    [
        "Pictures"
    ],
    "interval": 5
}
  • directories is the list of directories to search recursively for images.
  • interval is the approximate number of seconds between each image.

Building

OneDrive Slideshow is built in Rust, so building it requires the Rust toolchain and then running:

cargo build --release

To build for the Raspberry Pi, you can either do it on-device or via cross:

cargo install cross
cross build --release --target armv7-unknown-linux-musleabihf

Auto-starting on Raspberry Pi OS

The most reliable way I've found to automatically start this on Raspberry Pi OS is to add an entry to ~/.config/lxsession/LXDE-pi/autostart: https://www.raspberrypi-spy.co.uk/2014/05/how-to-autostart-apps-in-rasbian-lxde-desktop/ (Note that the body of the article uses the older ~/.config/lxsession/LXDE/autostart path, but one of the comments has the updated LXDE-pi path).

onedrive-slideshow's People

Contributors

dependabot[bot] avatar dpaoliello 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.