Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
DMX Scene Setter (Art Net)
Please take note that this is NOT a way to get OpenRemote to output an ART-Net stream, that is a very specific and processor hungry process.
This article details a technique specifically using OpenRemote to send (low speed) HTTP requests to an Art-Net to 6 universe DMX or SPi adaptor made by Yury of Electron Design Yury Shef - EBAY Seller with the latest firmware (Oct 2016) to control up to 512 single channels or 170 pixels on each of the 6 universes that are available on each box. This gives a capacity of 1020 individual pixels per box (or 3072 individual DMX channels).
If you are looking for fancy cross fades, chases or sound to light effects, then your best option is to use a separate machine to run software like FreeStyler X2 or MagicQ Pro, which both accept HTTP requests to trigger chases and full scenes, allowing OpenRemote to trigger a chase, its speed and other attributes.
The direct commands that these boxes support when in HTTP mode are
and for channels:
"uni" - number of universe
Net of controller must be =>0
to help translate an OpenRemote colour picker HEX output for use with differently wired PIXEL chips, this command details how the chip is expecting the command.
OpenRemote colour picker will send out a HEX value structured as RGB, whereas some SPi chips output colours are BGR
OpenRemote colour picker RGB output might be 4488FF and the chip needs to see this as FF8844
this command will get the correct colour from the pixel
- pixel.api - colour as hex, order - 3.2.1(R.G.B.)
Example: 3aff00 - R=0x3a;G=0xff;B=0x00;
- channel.api - channel data;
"3a" or "00003a" channel = 0x3a(58)
- pixel.api - number of start pixel
it should be - 1...170
- channel.api - number of start channel
it should be - 1...512
Start value must always be less than the end value. start<=end
- pixel.api - number of last pixel
it should be - 1...170
- channel.api - number of last channel
it should be - 1...512
End value must always be great or equal to the start value. start<=end
Set the first pixel as 100% red.
Set the first pixel as 100% green.
Set the first pixel as 100% blue.
Set the first pixel to OFF (Or RGB = 0)
Set the first channel as 100%.
Set the first channel as 50%.
Set the first channel as 0%.
The Art-Net boxes are NOT DHCP compatible, as is the standard with Art-Net devices.
However, they can be set to your normal subnet range when using low speed HTTP mode. Please set a static address on your PC to 126.96.36.199 and use a browser to access 188.8.131.52 where you will find the admin site for these boxes.
When in HTTP mode, there in no need for a virtual IP address to access universes 5 & 6. Simply change the Uni value in the HTTP command accordingly.
The only changes you will need to make to these boxes are on the first page of the admin interface.
Operational mode to HTTP IP address, subnet range, DNS server address.
Save the changes and reboot the device.
Don't forget to set your PC back to DCHP mode.
Now the magic within OpenRemote.
Simply create a HTTP command with the following line in the URL (nothing else is required).
(assuming your box's IP address is 192.168.0.100)
On your User Interface panel, place a colour picker and set the command to the the one you just created.
You will now be able to use your colour picker to set the DMX or SPi output for Universe 0 on the adaptor box.
You can create multiple commands with different pixel ranges for assigning to different colour pickers.
Or, if you can do the magic in rules, you could assign the colour picker value to an "In-Memory" command then have a rule to read each change and push it into multiple HTTP commands.
I am trying to work out if a set of rules could be created to calculate a simple slow sequence or chase. [Oct 2016, using an interval timer on a Velbus network as a trigger, a rule can create a random number and inject it into the command]
The only points worth noting are:-
There was an error in the OpenRemote controller that crashed the Art-net boxes because the HTTP request ports were not closed after each command. Rainer corrected this error in September 2016. Please ensure you are using the latest build or OpenRemote.
You can use the black edge to the normal colour picker to "switch off" the DMX or SPi output. You could use a colour picker with a black image, or a separate HTTP command to set the outputs to 000000