Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-13 15:04:20 +01:00
parent 995a00eba6
commit 984375902d
1 changed files with 7 additions and 6 deletions

View File

@ -124,13 +124,14 @@ def mqtt_publisher(universe, artnetPacket):
dmx_values = artnetPacket.data dmx_values = artnetPacket.data
if dmx_values is not None: if dmx_values is not None:
dmxPacket = artnetPacket.data dmxPacket = artnetPacket.data
for i in dmx_values: print(str(dmxPacket))
# # Create MQTT topic based on the universe and channel # for i in dmx_values:
# topic = f"{universe}/{channel}" # # # Create MQTT topic based on the universe and channel
# # topic = f"{universe}/{channel}"
# # Publish the DMX value to the MQTT topic # # # Publish the DMX value to the MQTT topic
# mqtt_client.publish(topic, value) # # mqtt_client.publish(topic, value)
print(dmxPacket[i-1], end=" ") # print(dmxPacket[i-1], end=" ")
except Exception as e: except Exception as e:
print(f"Error in universe {universe}: {e}") print(f"Error in universe {universe}: {e}")