Template taken from Wekinator input example bundle. Tested with public domain hosting to support remote OSC messages.
OSC library changed from from osc-min
to node-osc
. However, I haven't tested the orginal example so this may not be neccessary. Some parts of the code have been commented out, meaning this can only be used to send OSC messages.
This example weds Wekinator machine learning and P5.js.
Mouse locations control background colors.
Simply:
npm install
node app.js
- navigate to http://localhost:3000
- train in Wekinator
Follow the instrctions to install ngrok on the host machine that will be recieving messages: https://ngrok.com
Once configuresd, cd into the main directory in a separate tab/window and run the following command:
./ngrok http 3000
Copy the unique url to the client's browser to send data.
To quickly test if data is being received by the host, try netcat:
nc -u -l 12000