logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
smudge1977  
#1 Posted : Sunday, January 8, 2017 3:14:37 PM(UTC)
smudge1977

Rank: Advanced Member

Groups: Registered
Joined: 4/3/2014(UTC)
Posts: 58
Location: UK

Thanks: 19 times
Was thanked: 4 time(s) in 1 post(s)
I have started looking at node-red as a way to make custom web interfaces to vMix

I have shared the initial flow i have created. However i need to work out how to use the change node to select based on what my global.active is set to.

If you know Java Script i think you will enjoy node-red!

So I want a node that gives me an output on the object that is the currently active input - ideas on a postcard please!

Thanks


Here is the flow:
[{"id":"c3bab68a.fbd848","type":"ui_button","z":"c18d93ca.f179c","name":"btn_preview","group":"48ed91f1.e353d","order":0,"width":0,"height":0,"label":"Preview","color":"","bgcolor":"","icon":"","payload":"payload","payloadType":"str","topic":"topic","x":110.5,"y":104.59998321533203,"wires":[["f6dd974d.e7e248"]]},{"id":"f6dd974d.e7e248","type":"http request","z":"c18d93ca.f179c","name":"","method":"POST","ret":"txt","url":"http://127.0.0.1:8088/api/?Function=Fade&Duration=1000","tls":"","x":287.9000549316406,"y":104.60003662109375,"wires":[[]]},{"id":"209d6992.a476a6","type":"http request","z":"c18d93ca.f179c","name":"vMixAPI","method":"POST","ret":"txt","url":"http://127.0.0.1:8088/API?","tls":"","x":277.2000427246094,"y":169.2000274658203,"wires":[["8b4cac0c.69f17"]]},{"id":"e41a0f2e.ed072","type":"inject","z":"c18d93ca.f179c","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"x":112.5,"y":169.39999389648438,"wires":[["209d6992.a476a6"]]},{"id":"8b4cac0c.69f17","type":"xml-converter","z":"c18d93ca.f179c","name":"xml","ignorenamespace":false,"autoinline":false,"multithread":false,"x":421.2000274658203,"y":169.1999969482422,"wires":[["50c5ef5a.efd37","3a5eb197.290b2e","78fc600c.5dbef"]]},{"id":"50c5ef5a.efd37","type":"change","z":"c18d93ca.f179c","name":"Active","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.vmix.active.$text","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":566.2000274658203,"y":168.1999969482422,"wires":[["2e46ac44.ff7cf4"]]},{"id":"50558c33.d86114","type":"debug","z":"c18d93ca.f179c","name":"","active":true,"console":"false","complete":"false","x":797.4999847412109,"y":173,"wires":[]},{"id":"3a5eb197.290b2e","type":"change","z":"c18d93ca.f179c","name":"input0_title","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.vmix.inputs.input[0].title","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":588.2000274658203,"y":226.1999969482422,"wires":[[]]},{"id":"78fc600c.5dbef","type":"change","z":"c18d93ca.f179c","name":"input0","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.vmix.inputs.input[0]","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":569.2000274658203,"y":279.20001220703125,"wires":[["11300575.cb165b"]]},{"id":"11300575.cb165b","type":"change","z":"c18d93ca.f179c","name":"input_title","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.title","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":717.4999847412109,"y":280.59999084472656,"wires":[["50558c33.d86114"]]},{"id":"2e46ac44.ff7cf4","type":"change","z":"c18d93ca.f179c","name":"global_active","rules":[{"t":"set","p":"active","pt":"global","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":661.5000152587891,"y":87.60000610351562,"wires":[["50558c33.d86114"]]},{"id":"48ed91f1.e353d","type":"ui_group","z":"","name":"Default","tab":"75a41c44.b7b104","disp":true,"width":"6"},{"id":"75a41c44.b7b104","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.