Giter VIP home page Giter VIP logo

artnet-dmx-to-osc's Introduction

DMX2OSC

Web-Server that receives ArtNet DMX and translates it to OSC Messages.

Currently, 1 DMX channel is read and its value is sent as OSC message.

Hardware Setup

The general Signal Flow is

DMX (RS232) -> Interface -> ArtNet(UDP) -> PC with this Program running -> OSC(UDP)

Configuration

Currently, exactly 1 DMX channel is routed to exactl 1 OSC message and all configuration is hardcoded in app.js.

All parameters are defined by variables in the Configuration-section in app.js

Network Settings:

  • UDP_PORT_ARTNET: Listening-Port for ArtNet Input - 6454 is standard for ArtNet
  • UDP_PORT_OSC: Port to which the OSC messages are sent - has to be configured to match the receiver, default is 3333
  • IP_OSC_TARGET: IP of the OSC receiver - has to be configured, default is 127.0.0.1 aka localhost

Routing Settings:

  • DMX_UNIVERSE: Only messages in this DMX Universe are forewarded. Default is 0
  • DMX_SEQUENCE: Only messages in this DMX Sequence are forewarded. Default is 0
  • DMX_PHYSICAL: Only messages in this DMX Physical are forewarded. Default is 0
  • DMX_CHANNEL: The channel that should be mapped to the OSC message. Default is 0 (Which is the first channel)
  • OSC_MSG_NAME: The OSC message in which the value should be sent. Has to be configured to match the receiver.

Setup & Run

Setup

Prerequisites

This program is implemented as a node.js-module - therefore, node.js has to be installed on the machine.

Installation

  • In a commandline terminal, go to the root folder of this project
  • Install the dependencies by running npm install
  • Done

RUN

  • In a commandline terminal, go to the root folder of this project
  • Start the program by running npm start
  • Done

Debugging

Some useful Debugging Tools:

artnet-dmx-to-osc's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

artnet-dmx-to-osc's Issues

Problem when start

[email protected] /usr/local/lib/node_modules/npm
Macintosh-3:artnet-dmx-to-osc-master zdigital$ npm start

[email protected] start /Users/zdigital/Downloads/artnet-dmx-to-osc-master
node ./app.js

util.js:997
Object.setPrototypeOf(ctor.prototype, superCtor.prototype);
^

TypeError: Object.setPrototypeOf called on null or undefined
at Function.setPrototypeOf ()
at Object.inherits (util.js:997:10)
at Object. (/Users/zdigital/Downloads/artnet-dmx-to-osc-master/artnet_server.js:68:6)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node ./app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/zdigital/.npm/_logs/2017-08-24T05_48_18_784Z-debug.log
Macintosh-3:artnet-dmx-to-osc-master zdigital$

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.