Giter VIP home page Giter VIP logo

fhem-artdmx's Introduction

fhem-artdmx

ArtNet and DMX modules for FHEM

Introduction

The fhem-artnet package provides three modules for primitive ArtNet and DMX support.

The ArtNet module is used to define an IO device that sends ArtNet messages via UDP.

The only tested device is the DMX AVR ArtNet node by Ulrich Radig. http://www.ulrichradig.de/home/index.php/avr/dmx-avr-artnetnode

The DMXBridge module stores a byte array for all the DMX512 channels and writes it to the ArtNet device configured as IO device.

A DMXDevice represents a group of one or more DMX channels representing the actuall device controlled via DMX, for example three channels for RGB LEDs.

One could probably replace the ArtNet module with something else sending DMX512 frames and still reuse the DMXBridge and DMXDevice modules.

Installation

The latest fhem-artdmx modules can be installed directly from the repository using the built in update mechanism for thirdparty code:

update force https://raw.githubusercontent.com/xusader/fhem-artdmx/master/controls_artdmx.txt

Configuration

Define an ArtNet IO device using its IP address and ArtNet universe:

define ArtNet0 ArtNet 192.168.10.90 0

Define a DMXBridge using the ArtNet device as IO device:

define DMX0 DMXBridge
attr DMX0 IODev ArtNet0

Finally define one or more DMXDevices, for example with three RGB channels and one for brightness:

define LED1 DMXDevice rgba 13,12,11,15
attr LED1 IODev DMX0
attr LED1 webCmd rgb:rgb ff0000:rgb 00ff00:rgb 0000ff:dim:on:off

or white flashing LEDs where one channel is again brightness and a second the flash rate:

define LED2 DMXDevice flash 14,16
attr LED2 IODev DMX0
attr LED2 webCmd dim:flash:on:off

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.