From 1d7577159de809bc655d9c23f0c62f9718f3b831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 13 Feb 2024 13:58:19 +0100 Subject: [PATCH] added artnetpacket arg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 66aa728..52ea5c4 100644 --- a/server/app.py +++ b/server/app.py @@ -137,9 +137,13 @@ def start_mqtt_publishers(universe_count): used_universes = universe_count print("universe count: "+str(used_universes)) universes_to_publish = list(range(1, used_universes + 1)) + + artnet_receiver = Artnet.Artnet(get_eth0_ip(), DEBUG=True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster - "+str(get_mac_address)) + print(str(get_eth0_ip())) + artnetPacket = artnet_receiver.readPacket() # Create and start a thread for each universe for universe in universes_to_publish: - threads = [threading.Thread(target=mqtt_publisher, args=(universe,))] + threads = [threading.Thread(target=mqtt_publisher, args=(universe, artnetPacket))] for thread in threads: thread.start()