From fc6f382e26abf3fd871e22570f8f2ba0968c485d Mon Sep 17 00:00:00 2001 From: Kevin Petremann Date: Fri, 23 Jun 2023 20:11:36 +0200 Subject: [PATCH] fix: dh2mqtt prefix => dht2mqtt --- README.md | 2 +- cmd/dht2mqtt/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 650e980..4e5c788 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Usage of ./dht2mqtt: -log-level string log level (debug, info, warn, error, fatal, panic, disabled) (default "info") -mqtt-topic-root string - MQTT url, example: dh2mqtt/ (default "dh2mqtt/") + MQTT url, example: dht2mqtt/ (default "dht2mqtt/") -mqtt-url string MQTT url, example: tcp://127.0.0.1:1883 -mqtt-username string diff --git a/cmd/dht2mqtt/config.go b/cmd/dht2mqtt/config.go index e6a74bf..601a644 100644 --- a/cmd/dht2mqtt/config.go +++ b/cmd/dht2mqtt/config.go @@ -27,7 +27,7 @@ func readConfig() config { fahrenheit := flag.Bool("fahrenheit", false, "Temperature unit. Fahrenheit if set, default is Celcius") mqttUrl := flag.String("mqtt-url", "", "MQTT url, example: tcp://127.0.0.1:1883") - mqttTopicRoot := flag.String("mqtt-topic-root", "dh2mqtt/", "MQTT url, example: dh2mqtt/") + mqttTopicRoot := flag.String("mqtt-topic-root", "dht2mqtt/", "MQTT url, example: dht2mqtt/") mqttUsername := flag.String("mqtt-username", "", "username to connect to MQTT. The password must be set as in 'DHT2MQTT_PASSWORD' varenv") mqttPassword := os.Getenv("DHT2MQTT_PASSWORD")