print dmx data

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-20 17:33:13 +01:00
parent 328d2f3839
commit db3a26b36a
1 changed files with 1 additions and 1 deletions

View File

@ -130,6 +130,7 @@ def mqtt_publisher(ti_queue):
artNetPacket = artNet.readPacket() artNetPacket = artNet.readPacket()
# Make sure we actually *have* a packet # Make sure we actually *have* a packet
if artNetPacket is not None: if artNetPacket is not None:
print(artNetPacket.data)
if tube_index is not None: if tube_index is not None:
for index_row in tube_index: for index_row in tube_index:
if artNetPacket.universe == int(index_row[1]): if artNetPacket.universe == int(index_row[1]):
@ -144,7 +145,6 @@ def mqtt_publisher(ti_queue):
colors = [[p1_r, p1_g, p1_b], [p2_r, p2_g, p2_b], [p3_r, p3_g, p3_b], [p4_r, p4_g, p4_b], [p5_r, p5_g, p5_b], [p6_r, p6_g, p6_b]] colors = [[p1_r, p1_g, p1_b], [p2_r, p2_g, p2_b], [p3_r, p3_g, p3_b], [p4_r, p4_g, p4_b], [p5_r, p5_g, p5_b], [p6_r, p6_g, p6_b]]
result_str = [str(color) for color in colors] result_str = [str(color) for color in colors]
result = str(result_str) result = str(result_str)
print(result)
mqtt_client.publish(p1_topic, result) mqtt_client.publish(p1_topic, result)
except KeyboardInterrupt: except KeyboardInterrupt:
artNet.close() artNet.close()