parent
a3cc4ca81d
commit
aa1e1e708e
|
@ -120,15 +120,14 @@ def start_mqtt_publishers():
|
||||||
try:
|
try:
|
||||||
# Gets whatever the last Art-Net packet we received is
|
# Gets whatever the last Art-Net packet we received is
|
||||||
artNetPacket = artNet.readPacket()
|
artNetPacket = artNet.readPacket()
|
||||||
print(artNetPacket.length)
|
|
||||||
# Make sure we actually *have* a packet
|
# Make sure we actually *have* a packet
|
||||||
if artNetPacket is not None and artNetPacket.data is not None:
|
if artNetPacket is not None and artNetPacket.data is not None:
|
||||||
#Checks to see if the current packet is for the specified DMX Universe
|
#Checks to see if the current packet is for the specified DMX Universe
|
||||||
dmxPacket = artNetPacket.data
|
dmxPacket = artNetPacket.data
|
||||||
for i in range(512):
|
for i in range(512):
|
||||||
|
try:
|
||||||
print(str(i))
|
print(str(i))
|
||||||
print(str(artNetPacket.universe))
|
print(str(artNetPacket.universe))
|
||||||
try:
|
|
||||||
# Create MQTT topic based on the universe and channel
|
# Create MQTT topic based on the universe and channel
|
||||||
topic = f"{str(artNetPacket.universe)}/{str(i)}"
|
topic = f"{str(artNetPacket.universe)}/{str(i)}"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = False, SHORTNAME = "PiXelT
|
||||||
tuple_ip = (str(get_eth0_ip()), 6454)
|
tuple_ip = (str(get_eth0_ip()), 6454)
|
||||||
artNet.art_pol_reply(tuple_ip)
|
artNet.art_pol_reply(tuple_ip)
|
||||||
artNetPacket = artNet.readPacket()
|
artNetPacket = artNet.readPacket()
|
||||||
print(type(artNetPacket.universe))
|
print(artNetPacket)
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
# Gets whatever the last Art-Net packet we received is
|
# Gets whatever the last Art-Net packet we received is
|
||||||
|
|
Loading…
Reference in New Issue