From a8e7d91e8cdc3c48568fee9c8ca69bdc3ae28ef9 Mon Sep 17 00:00:00 2001 From: jwansek Date: Wed, 5 Jun 2024 09:31:20 +0100 Subject: Added script to automatically fetch the mqtt IP --- tasmota-mqtt-client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tasmota-mqtt-client.py') diff --git a/tasmota-mqtt-client.py b/tasmota-mqtt-client.py index c4be92a..9c9ccb5 100644 --- a/tasmota-mqtt-client.py +++ b/tasmota-mqtt-client.py @@ -2,6 +2,7 @@ import paho.mqtt.client as paho import threading import argparse import getpass +import docker_net import time import json @@ -61,7 +62,7 @@ parser.add_argument( "-m", "--mqtt-host", type = str, help = "MQTT Server", - default = "172.18.0.2", + default = docker_net.get_mqtt_addr()[0] ) parser.add_argument( "-u", "--user", -- cgit v1.2.3