Skip to content

Commit

Permalink
fix: dh2mqtt prefix => dht2mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
kpetremann committed Jun 23, 2023
1 parent 591e036 commit fc6f382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/dht2mqtt/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fc6f382

Please sign in to comment.