aboutsummaryrefslogtreecommitdiffstats
path: root/tasmota-mqtt-client.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2024-06-05 09:31:20 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2024-06-05 09:31:20 +0100
commita8e7d91e8cdc3c48568fee9c8ca69bdc3ae28ef9 (patch)
tree10a4b000d7cddf7be439dc3f9990ac2fd19c62cd /tasmota-mqtt-client.py
parentd399ef3df2ac08cfc6b58fa50abc3e4ad1cf4af6 (diff)
downloadTasmotaCLI-a8e7d91e8cdc3c48568fee9c8ca69bdc3ae28ef9.tar.gz
TasmotaCLI-a8e7d91e8cdc3c48568fee9c8ca69bdc3ae28ef9.zip
Added script to automatically fetch the mqtt IP
Diffstat (limited to 'tasmota-mqtt-client.py')
-rw-r--r--tasmota-mqtt-client.py3
1 files changed, 2 insertions, 1 deletions
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",