From b6b2720b950e76c6e5e8a5ad23e9bd45d58523cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 03:52:00 +0100 Subject: [PATCH] cleaned up some shit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/server/app.py b/server/app.py index 88d369a..5154619 100644 --- a/server/app.py +++ b/server/app.py @@ -132,29 +132,29 @@ def start_mqtt_publishers(): dmx_address = int(row[2]) if artNetPacket.universe == int(row[1]): #Define RGB values per pixel - p1_r = dmxPacket[dmx_address+0+0] - p1_g = dmxPacket[dmx_address+0+1] - p1_b = dmxPacket[dmx_address+0+2] + p1_r = dmxPacket[dmx_address] + p1_g = dmxPacket[dmx_address+1] + p1_b = dmxPacket[dmx_address+2] - p2_r = dmxPacket[dmx_address+3+0] - p2_g = dmxPacket[dmx_address+3+1] - p2_b = dmxPacket[dmx_address+3+2] + p2_r = dmxPacket[dmx_address+3] + p2_g = dmxPacket[dmx_address+4] + p2_b = dmxPacket[dmx_address+5] - p3_r = dmxPacket[dmx_address+6+0] - p3_g = dmxPacket[dmx_address+6+1] - p3_b = dmxPacket[dmx_address+6+2] + p3_r = dmxPacket[dmx_address+6] + p3_g = dmxPacket[dmx_address+7] + p3_b = dmxPacket[dmx_address+8] - p4_r = dmxPacket[dmx_address+9+0] - p4_g = dmxPacket[dmx_address+9+1] - p4_b = dmxPacket[dmx_address+9+2] + p4_r = dmxPacket[dmx_address+9] + p4_g = dmxPacket[dmx_address+10] + p4_b = dmxPacket[dmx_address+11] - p5_r = dmxPacket[dmx_address+12+0] - p5_g = dmxPacket[dmx_address+12+1] - p5_b = dmxPacket[dmx_address+12+2] + p5_r = dmxPacket[dmx_address+12] + p5_g = dmxPacket[dmx_address+13] + p5_b = dmxPacket[dmx_address+14] - p6_r = dmxPacket[dmx_address+15+0] - p6_g = dmxPacket[dmx_address+15+1] - p6_b = dmxPacket[dmx_address+15+2] + p6_r = dmxPacket[dmx_address+15] + p6_g = dmxPacket[dmx_address+16] + p6_b = dmxPacket[dmx_address+17] # Pixel topics p1_topic = "tube-"+str(row[0])+"/p1"