Skip to content

Digital photo frame repository for Raspberry Pi based upon fbi, Apache2, and HAP-NodeJS

Notifications You must be signed in to change notification settings

organic-penguin/rpi-Canvas

Repository files navigation

rpi-Canvas

Digital photo frame repository for Raspberry Pi based upon fbi, Apache2, and HAP-NodeJS

Prerequisites

The following are required for Canvas to operate. The installation's make file will install each of these individually if they are not already pre-installed.

  • Apache2

  • php

  • node v8.2.1

  • fbi

  • HAP-NodeJS

Raspberry Pi Canvas

The Canvas web application enabled you to use a Raspberry Pi's HDMI output to display images that are controlled by a web app optimized for use on mobile phones.

Control of the Canvas being on/off is controllable through Apple's Siri and Amazon's Alexa

Installation Instructions

  • git clone https://github.com/organic-penguin/rpi-Canvas.git

  • cd rpi-Canvas

  • make

Start Services Upon Boot-Up

  • sudo nano /etc/rc.local

  • Add sudo sh /home/pi/rpi-Canvas/rpiStartup.sh just before the final line 'exit 0'

Configuration

Configuring Homekit Accessory

Use your favorite text editor to make adjustments. The name of the device can also be changed once added to Homekit, from the 'Home' app

/home/pi/rpi-Canvas/support_frameworks/HAP-NodeJS/accessories/Outlet_accessory.js

Install Web App (iPhone)

Install the web application to your iPhone homescreen to quickly access your Raspberry Pi

  • Navigate to your Raspberry Pi through IP address or 'hostname'.local

  • Hit the Share button and select to 'Add to Home Screen'

  • Name the App or leave default

  • Select Add

Web App Install

Adjust Image Cropping Size/Ratio

Use your favorite text editor and edit lines 67 and 68 for width and height contained at

/var/www/html/croppie/script.js

You will need to clear your browser cache to see changes

Troubleshooting

Images Not Appearing When Selected

The fbi framework that is used to publish images to the HDMI output requires a 'Terminal' to be selected. This is defaulted to 2 and has worked correctly on a Raspberry Pi Model 3b+ and Raspberry Pi Model Zero W. If your device has selected a different 'Terminal' as the HDMI output run sudo nano /var/www/html/settings.json where "terminal":2 is replaced with a number between 1 and 5 until your images are displayed

To-Do

  • Add Alexa Control

  • Add Google Assistant Control

  • Correct minor UI Element Issues

  • Android Web App

  • Control HDMI through Web App

  • Sync overall HDMI status to settings.json so Alexa/Google/Web/HDMI remain in sync

Credits

HAP-NodeJS by KhaosT

QuickPi

FIM: fbi

Apache Software Foundation

Croppie by Foliotek

Use Case Example

A LCD monitor mounted to a matted picture frame Mounted Monitor

About

Digital photo frame repository for Raspberry Pi based upon fbi, Apache2, and HAP-NodeJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published