/raspiashow

Digital signage application that displays and cycles through websites specified in a configuration file on a remote server. Supports live updates and CSS/JS injection.

Primary LanguageJavaScript

NodeJS Puppeteer Configuration

What is Raspiashow?

Raspiashow is a small program that will display and cycle through websites. To configure the displayed websites a remote configuration file is used so you don't have to edit a configuration file on the device you're running the program.

This project is intended to be run on a RaspberryPi with a minimal Raspbian image.

A demonstration

Installation on a Raspberry Pi using Raspbian

See here

Configuration

The configuration of the TV app is specified in a json file (example below). It has to be hosted on some kind of webserver so the application can fetch it. The URL to the configuration file has to be specified when building the image. Several options are supported.

Domains

Domains must include the https:// prefix.

Switch time

Per domain you can specify a timeout in seconds, which will trigger the next site when ran out.

JS / CSS Injection

Optionally, you can inject a custom js / css file from a URL with the "css" and "js" parameter.

Reference configuration file

{
    "configuration": {
        "domains": [
            {
                "url": "https://mycompany.com/blog/",
                "switch-time": 60
            },
            {
                "url": "https://reddit.com/",
                "switch-time": 60,
                "css": "https://example.com/files/custom.css",
                "js": "https://example.com/files/custom.js"
            }
        ]
    }
}