Skip to content

Commit 0b54304

Browse files
committed
add example flow for scene-controller
1 parent 1ced43e commit 0b54304

File tree

1 file changed

+302
-0
lines changed

1 file changed

+302
-0
lines changed
Lines changed: 302 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,302 @@
1+
[
2+
{
3+
"id": "5b7a58776b1aebd9",
4+
"type": "tab",
5+
"label": "sACN Scene-Controller",
6+
"disabled": false,
7+
"info": "",
8+
"env": []
9+
},
10+
{
11+
"id": "c6c769dcfc22bcd6",
12+
"type": "sacn_in",
13+
"z": "5b7a58776b1aebd9",
14+
"universe": 1,
15+
"port": 5568,
16+
"interface": "",
17+
"mode": "htp",
18+
"output": "full",
19+
"outputs": 1,
20+
"x": 130,
21+
"y": 60,
22+
"wires": [
23+
[
24+
"798c40460ec6f640"
25+
]
26+
]
27+
},
28+
{
29+
"id": "dd4e607fcf7bc389",
30+
"type": "sacn_in",
31+
"z": "5b7a58776b1aebd9",
32+
"universe": "2",
33+
"port": 5568,
34+
"interface": "",
35+
"mode": "ltp",
36+
"output": "full",
37+
"outputs": 1,
38+
"x": 130,
39+
"y": 100,
40+
"wires": [
41+
[
42+
"dbc06a79fc141635",
43+
"aeb1f9adbf77d574"
44+
]
45+
]
46+
},
47+
{
48+
"id": "798c40460ec6f640",
49+
"type": "change",
50+
"z": "5b7a58776b1aebd9",
51+
"name": "",
52+
"rules": [
53+
{
54+
"t": "set",
55+
"p": "universe1",
56+
"pt": "flow",
57+
"to": "payload",
58+
"tot": "msg"
59+
}
60+
],
61+
"action": "",
62+
"property": "",
63+
"from": "",
64+
"to": "",
65+
"reg": false,
66+
"x": 420,
67+
"y": 60,
68+
"wires": [
69+
[]
70+
]
71+
},
72+
{
73+
"id": "1b2939f9c31808ce",
74+
"type": "inject",
75+
"z": "5b7a58776b1aebd9",
76+
"name": "Store Preset 1",
77+
"props": [
78+
{
79+
"p": "action",
80+
"v": "save",
81+
"vt": "str"
82+
},
83+
{
84+
"p": "scene",
85+
"v": "1",
86+
"vt": "num"
87+
},
88+
{
89+
"p": "payload"
90+
},
91+
{
92+
"p": "payload[1]",
93+
"v": "universe1",
94+
"vt": "flow"
95+
}
96+
],
97+
"repeat": "",
98+
"crontab": "",
99+
"once": false,
100+
"onceDelay": 0.1,
101+
"topic": "",
102+
"payload": "{}",
103+
"payloadType": "json",
104+
"x": 150,
105+
"y": 220,
106+
"wires": [
107+
[
108+
"1f18fafd6b0e272e"
109+
]
110+
]
111+
},
112+
{
113+
"id": "dbc06a79fc141635",
114+
"type": "change",
115+
"z": "5b7a58776b1aebd9",
116+
"name": "",
117+
"rules": [
118+
{
119+
"t": "set",
120+
"p": "universe2",
121+
"pt": "flow",
122+
"to": "payload",
123+
"tot": "msg"
124+
}
125+
],
126+
"action": "",
127+
"property": "",
128+
"from": "",
129+
"to": "",
130+
"reg": false,
131+
"x": 420,
132+
"y": 100,
133+
"wires": [
134+
[]
135+
]
136+
},
137+
{
138+
"id": "1f18fafd6b0e272e",
139+
"type": "scene_controller",
140+
"z": "5b7a58776b1aebd9",
141+
"x": 410,
142+
"y": 300,
143+
"wires": [
144+
[
145+
"b353b66ae79cb71b"
146+
]
147+
]
148+
},
149+
{
150+
"id": "0c2a8828c9a12d35",
151+
"type": "inject",
152+
"z": "5b7a58776b1aebd9",
153+
"name": "Store Preset 2",
154+
"props": [
155+
{
156+
"p": "action",
157+
"v": "save",
158+
"vt": "str"
159+
},
160+
{
161+
"p": "scene",
162+
"v": "2",
163+
"vt": "num"
164+
},
165+
{
166+
"p": "universe",
167+
"v": "1",
168+
"vt": "num"
169+
},
170+
{
171+
"p": "payload"
172+
}
173+
],
174+
"repeat": "",
175+
"crontab": "",
176+
"once": false,
177+
"onceDelay": 0.1,
178+
"topic": "",
179+
"payload": "universe1",
180+
"payloadType": "flow",
181+
"x": 150,
182+
"y": 260,
183+
"wires": [
184+
[
185+
"1f18fafd6b0e272e"
186+
]
187+
]
188+
},
189+
{
190+
"id": "aeb1f9adbf77d574",
191+
"type": "sacn_out",
192+
"z": "5b7a58776b1aebd9",
193+
"universe": "3",
194+
"port": 5568,
195+
"interface": "",
196+
"speed": "30",
197+
"priority": 100,
198+
"sourceName": "Node-RED",
199+
"x": 370,
200+
"y": 140,
201+
"wires": []
202+
},
203+
{
204+
"id": "b353b66ae79cb71b",
205+
"type": "sacn_out",
206+
"z": "5b7a58776b1aebd9",
207+
"universe": "4",
208+
"port": 5568,
209+
"interface": "",
210+
"speed": "30",
211+
"priority": 100,
212+
"sourceName": "Node-RED",
213+
"x": 710,
214+
"y": 300,
215+
"wires": []
216+
},
217+
{
218+
"id": "f05b664d2d1894b6",
219+
"type": "inject",
220+
"z": "5b7a58776b1aebd9",
221+
"name": "Play Preset 1",
222+
"props": [
223+
{
224+
"p": "action",
225+
"v": "play",
226+
"vt": "str"
227+
},
228+
{
229+
"p": "scene",
230+
"v": "1",
231+
"vt": "num"
232+
}
233+
],
234+
"repeat": "",
235+
"crontab": "",
236+
"once": false,
237+
"onceDelay": 0.1,
238+
"topic": "",
239+
"x": 150,
240+
"y": 340,
241+
"wires": [
242+
[
243+
"1f18fafd6b0e272e"
244+
]
245+
]
246+
},
247+
{
248+
"id": "c74b401033149040",
249+
"type": "inject",
250+
"z": "5b7a58776b1aebd9",
251+
"name": "Play Preset 2",
252+
"props": [
253+
{
254+
"p": "action",
255+
"v": "play",
256+
"vt": "str"
257+
},
258+
{
259+
"p": "scene",
260+
"v": "2",
261+
"vt": "num"
262+
}
263+
],
264+
"repeat": "",
265+
"crontab": "",
266+
"once": false,
267+
"onceDelay": 0.1,
268+
"topic": "",
269+
"x": 150,
270+
"y": 380,
271+
"wires": [
272+
[
273+
"1f18fafd6b0e272e"
274+
]
275+
]
276+
},
277+
{
278+
"id": "2370ba2ef9244377",
279+
"type": "inject",
280+
"z": "5b7a58776b1aebd9",
281+
"name": "Stop!",
282+
"props": [
283+
{
284+
"p": "action",
285+
"v": "reset",
286+
"vt": "str"
287+
}
288+
],
289+
"repeat": "",
290+
"crontab": "",
291+
"once": false,
292+
"onceDelay": 0.1,
293+
"topic": "",
294+
"x": 130,
295+
"y": 440,
296+
"wires": [
297+
[
298+
"1f18fafd6b0e272e"
299+
]
300+
]
301+
}
302+
]

0 commit comments

Comments
 (0)