diff --git a/server/app.py b/server/app.py index f0672d2..72a0537 100644 --- a/server/app.py +++ b/server/app.py @@ -114,7 +114,7 @@ def connect_mqtt(): def mqtt_publisher(artnetUniverse): mqtt_client = connect_mqtt() - artnetBindIp = "192.168.0.1" + artnetBindIp = get_eth0_ip() artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = False, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454, REFRESH=30) tuple_ip = (str(get_eth0_ip()), 6454) artNet.art_pol_reply(tuple_ip)