Skip to content

A full stack setup that allows you to crop and resize your gifs so that it can be displayed and then pushed to your pi hosted matrix

License

Notifications You must be signed in to change notification settings

KillahB33/rgb-matrix-app

Repository files navigation

Getting Started with RGB Matrix App

When this app was created, the goal was to have it running on the same pi as the matrix, but because of hardware limitations I couldn't get it to run. So this project was born, it can live on any server you want and run, while your pi is running somewhere else with the matrix library installed.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode (currently how the docker setup runs).
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

Docker-compose

As mentioned before this was built to run as a docker container, below is the compose used. Volume mount is present because the gifs being displayed will disappear if the container gets recreated.

version: '3.8'
services:
  rgbmatrix:
    image: rgbmatrix
    container_name: rgbmatrix
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Toronto
      - SSH_host=<ip of pi rgbmatrix>
      - SSH_user=<pi user>
      - SSH_pass=<pi password>
      - SSH_pipath=/home/dietpi/rpi-rgb-led-matrix #path on the pi where the library was cloned
    volumes:
      - /opt/images:/app/public/images #path where images for ui are stored
    ports:
      - 3030:3030 #port for Node
      - 3031:3000 #port for React
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "node", "/app/src/healthcheck.js"]
      interval: 12s
      timeout: 12s
      start_period: 30s
      retries: 3

About

A full stack setup that allows you to crop and resize your gifs so that it can be displayed and then pushed to your pi hosted matrix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages