OSC streaming not working as expected
Posted: Mon Feb 15, 2021 10:36 pm
I have OSC Stream Target IP set to "192.168.0.157", which is the IP address of my Mac Mini on the local network.
I am doing this:
But, nothing is happening when I run this script.
I would expect it to print something.
What am I missing here? And is there a guide for getting started with this?
Thanks!
I am doing this:
Code: Select all
from pythonosc import dispatcher
from pythonosc import osc_server
def eeg_handler(unused_addr, args, ch1, ch2, ch3, ch4):
print("EEG per channel: ", ch1, ch2, ch3, ch4)
if __name__ == "__main__":
dispatcher = dispatcher.Dispatcher()
dispatcher.map("/debug", print)
dispatcher.map("/Muse/eeg", eeg_handler, "EEG")
server = osc_server.ThreadingOSCUDPServer(("192.168.0.157", 5000), dispatcher)
server.serve_forever()
I would expect it to print something.
What am I missing here? And is there a guide for getting started with this?
Thanks!