Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 1.54 KB

README.md

File metadata and controls

59 lines (48 loc) · 1.54 KB

SmartMatrixServer

GPLv3 License CodeFactor

SmartMatrixServer is a MQTT-based helper that serves as the backend for the SmartMatrix-IDF project.

Run with Docker Compose

  smx:
    image: ghcr.io/acvigue/smartmatrixserver:main
    volumes:
      - ./tidbytcommunity/apps:/sprites
      - ./devices:/devices
    environment:
      REDIS_HOSTNAME: redis
      REDIS_USERNAME: default
      REDIS_PASSWORD: redispassword
      MQTT_HOST: ~~~~~~~
      MQTT_USERNAME: ~~~~~~~
      MQTT_PASSWORD: ~~~~~~~
      DEVICE_FOLDER: /devices
      SPRITE_FOLDER: /sprites
  redis:
    image: redis:alpine
    command: redis-server --requirepass redispassword
    volumes: 
      - ./redis_data:/data

Configuration

Files should be stored in the containers attached /devices directory as SmartMatrixXXXXXX.json where XXXXXX is the last 6 characters of the ESP32's MAC address

Array of objects containing name, duration, and any required configuration parameters.

Applets must be stored in the container with the format /sprites/[name]/[name].star

[
    {
      "name": "paraland",
      "duration": 10,
      "config": {
        "image": "north_carolina_morning"
      }
    },
    {
      "name": "paraland",
      "duration": 10,
      "config": {
        "image": "arizona_day"
      }
    },
]