parent
17ae6220ab
commit
9acd2e9d78
|
@ -127,6 +127,7 @@ def start_mqtt_publishers():
|
|||
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
|
||||
result = cur.fetchall()
|
||||
for row in result:
|
||||
try:
|
||||
dmx_address = int(row[2])
|
||||
if artNetPacket.universe == int(row[1]):
|
||||
#Define RGB values per pixel
|
||||
|
@ -169,6 +170,8 @@ def start_mqtt_publishers():
|
|||
mqtt_client.publish(p4_topic, str([p4_r, p4_g, p4_b]))
|
||||
mqtt_client.publish(p5_topic, str([p5_r, p5_g, p5_b]))
|
||||
mqtt_client.publish(p6_topic, str([p6_r, p6_g, p6_b]))
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
artNet.close()
|
||||
|
|
Loading…
Reference in New Issue