项目作者: ngreatorex

项目描述 :
Present an Elgato Stream Deck as a Homie MQTT device
高级语言: JavaScript
项目地址: git://github.com/ngreatorex/homie-streamdeck.git
创建时间: 2019-12-15T15:41:23Z
项目社区:https://github.com/ngreatorex/homie-streamdeck

开源协议:

下载


homie-streamdeck

Present an Elgato Stream Deck as a Homie MQTT device

Configuration

You can specify the MQTT host and port using a file named config.json. This should specify two fields: mqtt_host and mqtt_port. For example:

  1. {
  2. "mqtt_host": "localhost",
  3. "mqtt_port": 1883
  4. }

The program will try to load a PNG image for each key from the current working directory. The images should be named simply <key number>.png,
with the first key (top left) being key 0.

Installation

A systemd unit file is provided if you wish to install it as a systemd service.
You will need to edit the WorkingDirectory= line in the file and then copy it into /etc/systemd/system. Once you’ve done that, you can run the following:

  1. systemctl refresh-daemon
  2. systemctl enable --now homie-streamdeck.service

Docker

Alternatively, a Docker image of this is available on Docker Hub.