Touch OSC MUX for iOS

multiplex Touch OSC commands to and from multiple iOS devices.

[{"id":"6a7db35b.95824c","type":"osc in","name":"","addr":"192.168.0.112","port":"8001","x":198.00001525878906,"y":89.71429252624512,"z":"f70f5920.08f0a8","wires":[["a43591b1.5bca7","33aef299.cc510e"]]},{"id":"33aef299.cc510e","type":"debug","name":"","active":true,"console":"false","complete":"payload","x":677.0714416503906,"y":337.89286708831787,"z":"f70f5920.08f0a8","wires":[]},{"id":"b4402083.4bbfe","type":"osc in","name":"","addr":"192.168.0.105","port":"8000","x":192.00001525878906,"y":157.71429252624512,"z":"f70f5920.08f0a8","wires":[["a43591b1.5bca7","33aef299.cc510e"]]},{"id":"f3f464b5.0c0b98","type":"osc out","name":"","addr":"192.168.0.105","port":"9000","path":"","x":686.857177734375,"y":165.1428623199463,"z":"f70f5920.08f0a8","wires":[]},{"id":"dd1c1213.22e3f","type":"osc out","name":"","addr":"192.168.0.112","port":"9001","path":"","x":684.0000152587891,"y":99.71429252624512,"z":"f70f5920.08f0a8","wires":[]},{"id":"4e6a4677.b195b8","type":"comment","name":"iPad - mini","info":"","x":155.00001525878906,"y":58.71429252624512,"z":"f70f5920.08f0a8","wires":[]},{"id":"f0894d67.0f76b","type":"comment","name":"iPhone","info":"","x":143.00001525878906,"y":125.71429252624512,"z":"f70f5920.08f0a8","wires":[]},{"id":"e670d6ff.198f28","type":"comment","name":"iPad - mini","info":"# TEST #","x":637.9999389648438,"y":66.85715103149414,"z":"f70f5920.08f0a8","wires":[]},{"id":"e64cca40.19b338","type":"comment","name":"iPhone","info":"","x":643.4285888671875,"y":131.285719871521,"z":"f70f5920.08f0a8","wires":[]},{"id":"14ddf58.feb220a","type":"osc in","name":"","addr":"192.168.0.114","port":"8002","x":187.00001525878906,"y":222.71429252624512,"z":"f70f5920.08f0a8","wires":[["a43591b1.5bca7","33aef299.cc510e"]]},{"id":"bb483fea.44b7c","type":"comment","name":"iPad - regular","info":"","x":154.00001525878906,"y":190.71429252624512,"z":"f70f5920.08f0a8","wires":[]},{"id":"73c0ed5d.8c3f14","type":"osc out","name":"","addr":"192.168.0.114","port":"9002","path":"","x":685,"y":239.04762077331543,"z":"f70f5920.08f0a8","wires":[]},{"id":"47dcdb12.b82324","type":"comment","name":"iPad Regular","info":"# iPad - regular ","x":645.6666870117188,"y":201.04762840270996,"z":"f70f5920.08f0a8","wires":[]},{"id":"a43591b1.5bca7","type":"function","name":"/1/steer","func":"if (msg.topic ==\"/5\") {\n return[ null ];\n} else {\n\n    if (msg.topic == \"/1/steer\") {\n        msg.topic = \"/1/rudder_FUP\";\n        msg.payload = msg.payload/4;\n        return [ msg, null ];\n    } else {\n        return [ null, msg ];\n}\n}","outputs":"2","valid":true,"x":432.00001525878906,"y":62.71429252624512,"z":"f70f5920.08f0a8","wires":[["dd1c1213.22e3f","73c0ed5d.8c3f14","f3f464b5.0c0b98"],["dd1c1213.22e3f","f3f464b5.0c0b98","73c0ed5d.8c3f14"]]},{"id":"31ccc6ab.ce333a","type":"udp in","name":"","iface":"","port":"10110","ipv":"udp4","multicast":"false","group":"","datatype":"utf8","x":128.58734130859375,"y":388.93654441833496,"z":"f70f5920.08f0a8","wires":[["717bffe1.8e84"]]},{"id":"717bffe1.8e84","type":"function","name":"/1/label_nmea_data","func":"1\n        msg.topic = \"/1/label_nmea_sentences\";\n        msg.payload = msg.payload;\n        return [ msg ];\n ","outputs":"1","valid":true,"x":331.30162048339844,"y":387.22229385375977,"z":"f70f5920.08f0a8","wires":[["73c0ed5d.8c3f14","dd1c1213.22e3f"]]},{"id":"854a3af9.7ab5c8","type":"trigger","op1":"{{msg.payload}}","op2":"180","op1type":"val","op2type":"pay","duration":"1","extend":"false","units":"s","name":"payload","x":340.57147216796875,"y":323.2857208251953,"z":"f70f5920.08f0a8","wires":[["33aef299.cc510e","dd1c1213.22e3f","73c0ed5d.8c3f14"]]},{"id":"550d262a.aaf2d8","type":"inject","name":"/1/steer 45","topic":"/1/steer","payload":"45","payloadType":"string","repeat":"","crontab":"","once":false,"x":167.07146453857422,"y":273.285719871521,"z":"f70f5920.08f0a8","wires":[["854a3af9.7ab5c8"]]},{"id":"136d9e56.ec9262","type":"inject","name":"/1/steer -45","topic":"/1/steer","payload":"-45","payloadType":"string","repeat":"","crontab":"","once":false,"x":169.57146453857422,"y":322.2857151031494,"z":"f70f5920.08f0a8","wires":[["854a3af9.7ab5c8"]]}]

Flow Info

Created 9 years, 3 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x6)
  • debug (x1)
  • function (x2)
  • inject (x2)
  • trigger (x1)
  • udp in (x1)
Other
  • osc in (x3)
  • osc out (x3)

Tags

  • TouchOSC
  • ios
  • mux
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option