added debug

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 00:51:45 +01:00
parent d443eddb93
commit b5ec4ba7d1
1 changed files with 2 additions and 1 deletions

View File

@ -118,10 +118,11 @@ def mqtt_publisher(universe):
mqtt_client = connect_mqtt() mqtt_client = connect_mqtt()
try: try:
receiver = sacn.sACNreceiver(bind_address=get_eth0_ip()) receiver = sacn.sACNreceiver(bind_address=get_eth0_ip())
print(str(get_eth0_ip()))
receiver.start() receiver.start()
@receiver.listen_on('universe', universe=universe) # listens on universe 1 @receiver.listen_on('universe', universe=universe) # listens on universe 1
def sacn_callback(packet): # packet type: sacn.DataPacket def callback(packet): # packet type: sacn.DataPacket
print(packet.dmxData) print(packet.dmxData)
global dmx_values global dmx_values
dmx_values = packet.dmxData dmx_values = packet.dmxData