DrSkunk / rpi-zero-picture-frame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raspberry Pi Zero Picture Frame

Raspberry Pi-powered digital photo frame that displays images from a Google Photos album.

NOTE: Only tested on a Raspberry Pi Zero.

What's inside?

Why not use Balena Photo Slideshow?

The Raspberry Pi zero is not compatible with Balena Photo Slideshow since its component Balena Dash is not compatible with older Raspberry Pi's.

Instead of using a browser, this uses feh as a minimal image viewer which is more RAM-friendly.

Setup and configuration

You can deploy this app to a new balenaCloud fleet in one click using the button below:

balena deploy button

Or, you can create a Fleet in your balenaCloud dashboard and balena push this code to it the traditional way. Just be aware that balenaDash requires that you allocate more memory to the GPU. This is achieved by adding (or editing the existing) the Device configuration variable Define device GPU memory in megabytes. For this project we recommend setting it to 128.

Setting up the photo album

  • On balenaCloud, go to Device variables D(x) and add the following:
ENV VAR Description Default
ALBUM_URL Gallery URL for google photos https://goo.gl/photos/XQ2sGUyPe3swFVga
CRON Cron scheduler to download new and delete old photos 0 0 * * *
WIDTH Width of the downloaded picture 1366
DELAY Delay between pictures in seconds 10
RELOAD_INTERVAL Interval on when to check locally for new pictures. This is parameter is directly passed to feh 60

About


Languages

Language:JavaScript 97.0%Language:Shell 3.0%