parent
c90ca8aa90
commit
f1000a053a
|
@ -128,7 +128,6 @@ def mqtt_publisher(ti_receiver):
|
||||||
print("Receiving of artnet packet took: "+str(end-start))
|
print("Receiving of artnet packet took: "+str(end-start))
|
||||||
if artNetPacket is not None:
|
if artNetPacket is not None:
|
||||||
if tube_index is not None:
|
if tube_index is not None:
|
||||||
start = time.time()
|
|
||||||
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]):
|
||||||
dmx_address = int(index_row[2])
|
dmx_address = int(index_row[2])
|
||||||
|
@ -143,8 +142,6 @@ def mqtt_publisher(ti_receiver):
|
||||||
result_str = [str(color) for color in colors]
|
result_str = [str(color) for color in colors]
|
||||||
result = str(result_str)
|
result = str(result_str)
|
||||||
mqtt_client.publish(p1_topic, result)
|
mqtt_client.publish(p1_topic, result)
|
||||||
end = time.time()
|
|
||||||
print("Sending out to all tubes took: "+str(end-start))
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
artNet.close()
|
artNet.close()
|
||||||
def tube_index_updater(ti_queue):
|
def tube_index_updater(ti_queue):
|
||||||
|
|
Loading…
Reference in New Issue