From 025a973311885dedd8ccf8632c6019a67896a8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 13 Feb 2024 16:51:50 +0100 Subject: [PATCH] test 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, 2 insertions(+), 2 deletions(-) diff --git a/server/exampleReceiver.py b/server/exampleReceiver.py index b97a5de..ad553f9 100644 --- a/server/exampleReceiver.py +++ b/server/exampleReceiver.py @@ -7,7 +7,7 @@ def get_eth0_ip(): try: # Get the IP address of the eth0 interface eth0_ip = netifaces.ifaddresses('eth0')[netifaces.AF_INET][0]['addr'] - return str(eth0_ip) + return eth0_ip except (KeyError, IndexError, OSError) as e: print(f"Error getting eth0 IP: {e}") return None @@ -18,7 +18,7 @@ debug = True dmxChannels = [1,2,3,4,5,6] ### ArtNet Config ### -print(get_eth0_ip()) +print(str(get_eth0_ip())) artnetBindIp = get_eth0_ip() artnetUniverse = 0