970 B
970 B
OSC2MQTT
This OSC2MQTT translates any OSC message on a server to MQTT.
The server will listen to ALL OSC messages coming in at a specified port, and forwards these to an MQTT address. If the OSC address is /synthesizer/volume, it will be forwarded to the MQTADDRESS of OSC/synthesizer/volume, so make sure to subscribe to OSC.
Be aware, It's OSC2MQTT, not MQTT2OSC!
I would like to create MIDI2MQTT
Running
- Create a secrets.py with the following
mqtt_username = "yourusername"
mqtt_password = "yourpass"
- Need to create a virtual environment for python?
python -m venv venv
& activate usingsource venv/bin/activate
- Install the needed packages using
pip install -r requirements.txt
- Set your OSC & MQTT information in app.py
- Run
python app.py
Testing
I've included a small pure data script that can trigger some OSC messages, for testing purposes. Of course, you are more then welcome to use any OSC software you'd like!