Skip to content

dpaoliello/onedrive-slideshow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages