Code Monkey home page Code Monkey logo

lightwall's Introduction

Lightwall

Code for a DMX controlled light feature.

####What is DMX? DMX is a standard for control of lighting fixtures and other devices. Historically used in theatre and film lighting and effects. Connected devices listen to the constant stream of information for all the channels and act if the information for that particular addressed fixture changes. Updating the stream requires updating the buffer.

####The Plan Initially the approach was to use Open Lighting Architecture to control the dmx output via a python script. Although even with perseverance the compiled build failed to work for us. We looked at simple DMX but this seemed to require large amounts of code to keep the state for the buffer and to continiously update the dmx stream. Finally after some quick tests we settled on node-dmx as the base to build our application from.

####Challenges faced

###Technology used:

  • axios npm package - HTTP Request handiling with Promises
  • gulp - Build workflow, running babel
  • babel - Transcompiling ES6 -> ES5 Javascript
  • node-dmx - Controlling the dmx stream
  • metar npm package - Parsing the METAR response from the API request
  • Enntec dmx usb pro - USB -> DMX breakout
  • Raspberry Pi - Running the node script from Debian based os

###How to use:

  1. Clone the repo: git clone <package ssh/https info from github>
  2. Run npm install to install the dependencies.
  3. cd into the public folder and then into js.
  4. Run node runfile.js, the script should run.
  5. If you want/need to edit, open the source directory and edit the files in there. Then run gulp this will update the public folder.

lightwall's People

Contributors

willcook4 avatar

Watchers

James Cloos avatar  avatar

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.