Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-15 11:44:05 +01:00
parent a3cc4ca81d
commit aa1e1e708e
2 changed files with 3 additions and 4 deletions

View File

@ -120,15 +120,14 @@ def start_mqtt_publishers():
try:
# Gets whatever the last Art-Net packet we received is
artNetPacket = artNet.readPacket()
print(artNetPacket.length)
# Make sure we actually *have* a packet
if artNetPacket is not None and artNetPacket.data is not None:
#Checks to see if the current packet is for the specified DMX Universe
dmxPacket = artNetPacket.data
for i in range(512):
print(str(i))
print(str(artNetPacket.universe))
try:
print(str(i))
print(str(artNetPacket.universe))
# Create MQTT topic based on the universe and channel
topic = f"{str(artNetPacket.universe)}/{str(i)}"

View File

@ -22,7 +22,7 @@ artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = False, SHORTNAME = "PiXelT
tuple_ip = (str(get_eth0_ip()), 6454)
artNet.art_pol_reply(tuple_ip)
artNetPacket = artNet.readPacket()
print(type(artNetPacket.universe))
print(artNetPacket)
while True:
try:
# Gets whatever the last Art-Net packet we received is