From d9cfdaacd025f1531463aeae558b84ba540d042c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 13 Feb 2024 17:06:14 +0100 Subject: [PATCH] fixed artnet poll MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/exampleReceiver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/exampleReceiver.py b/server/exampleReceiver.py index 998335e..217b376 100644 --- a/server/exampleReceiver.py +++ b/server/exampleReceiver.py @@ -27,7 +27,9 @@ artnetUniverse = 0 # Creates Artnet socket on the selected IP and Port artNet = Artnet.Artnet(BINDIP = get_eth0_ip(), DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", REFRESH = 60) -artNet.art_pol_reply(("10","0","0","228")) +tuple_ip = tuple(str(get_eth0_ip()).split(".")[:-1]) + +artNet.art_pol_reply(tuple_ip, 6454) while True: try: # Gets whatever the last Art-Net packet we received is