|
@@ -251,11 +251,11 @@ class ArtNetNodes():
|
|
|
node["REFRESHSTAMP"] = time.time()
|
|
|
update_node = 1
|
|
|
update_node = 0
|
|
|
- print("x-node:",update_node,add_node)
|
|
|
+ #print("x-node:",update_node,add_node)
|
|
|
if not update_node: # ADD NEW NODE
|
|
|
node = add_node
|
|
|
if node:
|
|
|
- print("add_node",node)
|
|
|
+ #print("add_node",node)
|
|
|
node["BOOT"] = BOOT
|
|
|
info = node["MAC"],node["IP"].ljust(16," "),[node["SwIn"],node["SwOut"],node["PortTypes"]]
|
|
|
|
|
@@ -266,7 +266,11 @@ class ArtNetNodes():
|
|
|
self.__tick += 1
|
|
|
self.__nodes += [node]
|
|
|
|
|
|
-
|
|
|
+ for node in self.__nodes:
|
|
|
+ print("Node: ")
|
|
|
+ for k,v in node.items():
|
|
|
+ print(" -",[k,v])
|
|
|
+ print("")
|
|
|
finally:
|
|
|
#print("release lock")
|
|
|
self.__lock.release()
|
|
@@ -710,6 +714,7 @@ def node_cmd_recive():
|
|
|
#send_node_cmd(ip=(255,255,255,255),ip2=(255,255,255,255),cmd="DMX OUT STORE")
|
|
|
#exit()
|
|
|
#
|
|
|
+node_list2 = []
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
thread.start_new_thread(node_cmd_recive, () )
|
|
@@ -724,7 +729,8 @@ if __name__ == "__main__":
|
|
|
|
|
|
nodes = rx.get()
|
|
|
#print(len(nodes))
|
|
|
-
|
|
|
+ node_list2.extend(nodes)
|
|
|
+ print(node_list2)
|
|
|
if z % 10 == 0:
|
|
|
print()
|
|
|
pass
|