GithubHelp home page GithubHelp logo

hobbyquaker / mqtt-dmx-sequencer Goto Github PK

View Code? Open in Web Editor NEW
23.0 4.0 5.0 12 KB

Control DMX devices via Art-Net by MQTT. Includes a simple sequencer. ๐Ÿ’ก๐ŸŽฌ

License: MIT License

JavaScript 100.00%
dmx artnet sequencer stage lighting led mqtt

mqtt-dmx-sequencer's Introduction

mqtt-dmx-sequencer

mqtt-smarthome NPM version Dependency Status Build Status XO code style License

Control DMX devices via Art-Net by MQTT.

This is the headless counterpart to the MQTT DMX Controller. Uses scenes and sequences created with - and exported from - the MQTT DMX Controller that can be controlled via MQTT.

Installation

Node.js >= 6 needed.

sudo npm install -g mqtt-dmx-sequencer
mqtt-dmx-sequencer --help

Usage

Usage: mqtt-dmx-sequencer [options]

Options:
  -v, --verbosity  possible values: "error", "warn", "info", "debug"
                                                               [default: "info"]
  -a, --address    artnet host address              [default: "255.255.255.255"]
  -p, --port       artnet host port                              [default: 6454]
  -n, --name       instance name. used as mqtt client id and as prefix for
                   connected topic                              [default: "dmx"]
  -j, --scenes     json file containing scene definitions              [default:
         "/Users/basti/WebstormProjects/mqtt-dmx-sequencer/example-scenes.json"]
  -s, --sequences  json file containing sequence definitions           [default:
      "/Users/basti/WebstormProjects/mqtt-dmx-sequencer/example-sequences.json"]
  -u, --url        mqtt broker url. See
                   https://github.com/mqttjs/MQTT.js#connect-using-a-url
                                                   [default: "mqtt://127.0.0.1"]
  -h, --help       Show help                                           [boolean]
  --version        Show version number                                 [boolean]


MQTT Topics

Topic structure follows mqtt-smarthome architecture.

dmx/set/channel/<channel>

set a channels value

payload: integer number. channel value, min 0, max 255

dmx/set/scene/<scene>

call a scene

payload (optional): float number. transition time in seconds.

dmx/set/sequence/<sequence>

start a sequence or change options of a running sequence

payload (optional): json object with following attributes:

  • repeat (boolean)
  • shuffle (boolean)
  • speed (float number)

dmx/set/sequence/<sequence>/stop

stop a running sequence

dmx/set/sequence/all/stop

stop all running sequences

License

MIT ยฉ Sebastian Raff

mqtt-dmx-sequencer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mqtt-dmx-sequencer's Issues

Broker not using the sequencer?

Hey @hobbyquaker
So if i lay out what I'm trying to do, I have OLA a DMX node running ARTNET and I'm trying to get a light turn on from my iPhone to the OLA Artnet node, Through homebridge sending MQTT to your mitt-dmx-sequencer.

When ever i try to run mqtt-dmx-sequencer i just get this back:

artnet.data[0] = [];
               ^

TypeError: Cannot set property '0' of undefined
    at Object.<anonymous> (/usr/local/lib/node_modules/mqtt-dmx-sequencer/index.js:22:16)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

I have had no issues getting the connection between homebridge and the MQTT broker but i can't for the life of me figure out how this sequencer is meant to work, is there an npm start for it or something like that, because right now its just sitting around with all of its config in order looking pretty, any help would be amazing!

Im currently running Ubuntu 16.04 Server LTS with node version v7.4.0 and NPM version 4.1.2.
I have check through MQTT.fx that the information is getting to the broker and it is, its just an issue between the broker and the sequencer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.