cleaned up some shit

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 03:52:00 +01:00
parent d4e8582b20
commit b6b2720b95
1 changed files with 18 additions and 18 deletions

View File

@ -132,29 +132,29 @@ def start_mqtt_publishers():
dmx_address = int(row[2]) dmx_address = int(row[2])
if artNetPacket.universe == int(row[1]): if artNetPacket.universe == int(row[1]):
#Define RGB values per pixel #Define RGB values per pixel
p1_r = dmxPacket[dmx_address+0+0] p1_r = dmxPacket[dmx_address]
p1_g = dmxPacket[dmx_address+0+1] p1_g = dmxPacket[dmx_address+1]
p1_b = dmxPacket[dmx_address+0+2] p1_b = dmxPacket[dmx_address+2]
p2_r = dmxPacket[dmx_address+3+0] p2_r = dmxPacket[dmx_address+3]
p2_g = dmxPacket[dmx_address+3+1] p2_g = dmxPacket[dmx_address+4]
p2_b = dmxPacket[dmx_address+3+2] p2_b = dmxPacket[dmx_address+5]
p3_r = dmxPacket[dmx_address+6+0] p3_r = dmxPacket[dmx_address+6]
p3_g = dmxPacket[dmx_address+6+1] p3_g = dmxPacket[dmx_address+7]
p3_b = dmxPacket[dmx_address+6+2] p3_b = dmxPacket[dmx_address+8]
p4_r = dmxPacket[dmx_address+9+0] p4_r = dmxPacket[dmx_address+9]
p4_g = dmxPacket[dmx_address+9+1] p4_g = dmxPacket[dmx_address+10]
p4_b = dmxPacket[dmx_address+9+2] p4_b = dmxPacket[dmx_address+11]
p5_r = dmxPacket[dmx_address+12+0] p5_r = dmxPacket[dmx_address+12]
p5_g = dmxPacket[dmx_address+12+1] p5_g = dmxPacket[dmx_address+13]
p5_b = dmxPacket[dmx_address+12+2] p5_b = dmxPacket[dmx_address+14]
p6_r = dmxPacket[dmx_address+15+0] p6_r = dmxPacket[dmx_address+15]
p6_g = dmxPacket[dmx_address+15+1] p6_g = dmxPacket[dmx_address+16]
p6_b = dmxPacket[dmx_address+15+2] p6_b = dmxPacket[dmx_address+17]
# Pixel topics # Pixel topics
p1_topic = "tube-"+str(row[0])+"/p1" p1_topic = "tube-"+str(row[0])+"/p1"