Converts OSC bundles to spacebro events.
spacebrOsc is meant to be used as is. You install it, provide a custom configuration file and run it.
$ git clone git@github.com:spacebro/spacebrOsc.git
$ cd spacebrOsc/
$ npm i
$ cp settings/settings.default.js settings/settings.js
$ vim settings/settings.js
$ node index.js
{
"verbose": false, // does spacebrOsc logs everything or not
"useCustomEventName": 'my-custom-event',
// if set to false, OSC message address will be used as spacebro event name
// else, provide a string that will be the event name and OSC message address will be sent as data
"spacebro": {
"host": "127.0.0.1", // host of your spacebro server
"port": 8888, // port of your spacebro server
"channelName": "spacebrosc" // channel name you want to use (optionnal)
},
"osc": {
"localAddress": "0.0.0.0",
// on which local ip do you want to open an UDP socket for your OSC sending app to connect
"localPort": 12345 // on which port you open that UDP socket
}
}
If you don't have an OSC sending app, you can test with the tools/osc-emitter.js
script. Just make sure the settings matches.