Skip to content

Instantly share code, notes, and snippets.

@gobo-ws
Last active January 3, 2020 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gobo-ws/2fbbf4e86e34adadc03f155852461fac to your computer and use it in GitHub Desktop.
Save gobo-ws/2fbbf4e86e34adadc03f155852461fac to your computer and use it in GitHub Desktop.
Flic to DMX

Flow to control DMX devices with Flic buttons.
Also works with Flic 2 smart button.
This example sets the following values:

  • Button click - Channel 1 full on (255), universe 1
  • Button hold - Channel 1 blackout (0), universe 1
[
{
"id": "f12a1dae.d01468",
"type": "tab",
"label": "Flic DMX flow",
"disabled": false,
"info": ""
},
{
"id": "3f297f68.30c848",
"type": "flic",
"z": "f12a1dae.d01468",
"name": "Flic button",
"button": "d88f1198.00e4d",
"event": "ButtonClick",
"topic": "flic",
"x": 200,
"y": 240,
"wires": [
[
"6076f2d6.09ed34"
]
]
},
{
"id": "fb336820.be99f",
"type": "ola",
"z": "f12a1dae.d01468",
"name": "OLA Server",
"host": "localhost",
"port": 9090,
"universe": 1,
"size": 512,
"x": 710,
"y": 260,
"wires": []
},
{
"id": "6076f2d6.09ed34",
"type": "function",
"z": "f12a1dae.d01468",
"name": "Button click - Channel 1 full on",
"func": "msg.payload={\n \"channel\": 1,\n \"value\": 255\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 430,
"y": 240,
"wires": [
[
"fb336820.be99f"
]
]
},
{
"id": "3ec0a212.20baf6",
"type": "function",
"z": "f12a1dae.d01468",
"name": "Button hold - Channel 1 blackout",
"func": "msg.payload={\n \"channel\": 1,\n \"value\": 0\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 440,
"y": 300,
"wires": [
[
"fb336820.be99f"
]
]
},
{
"id": "c7860292.c3256",
"type": "flic",
"z": "f12a1dae.d01468",
"name": "Flic button",
"button": "d88f1198.00e4d",
"event": "ButtonHold",
"topic": "flic",
"x": 200,
"y": 300,
"wires": [
[
"3ec0a212.20baf6"
]
]
},
{
"id": "d88f1198.00e4d",
"type": "Flic Button",
"z": "",
"address": "xx:xx:xx:xx:xx:xx",
"name": "my_flic_button",
"host": "localhost",
"port": "5551"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment