osc_sender.py 349 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
# sudo -H python3 -m pip install setuptools
# sudo -H python3 -m pip install python-osc

import argparse
import random
import time
from pythonosc import osc_message_builder
from pythonosc import udp_client

frankie's avatar
frankie committed
10
oscsender = udp_client.SimpleUDPClient("192.168.1.100", 23000)
11 12 13 14

while True:
	oscsender.send_message("/random", random.random())
	time.sleep(1)