Browse Source

readme: move mqtt auth section

Fabian Peter Hammerle 2 years ago
parent
commit
717ab31d1a
1 changed files with 11 additions and 11 deletions
  1. 11 11
      README.md

+ 11 - 11
README.md

@@ -62,6 +62,17 @@ and provide its path via the `--device-password-file` option:
 $ switchbot-mqtt --device-password-file /some/where/switchbot-passwords.json …
 ```
 
+### MQTT Authentication
+
+```sh
+switchbot-mqtt --mqtt-username me --mqtt-password secret …
+# or
+switchbot-mqtt --mqtt-username me --mqtt-password-file /var/lib/secrets/mqtt/password …
+```
+
+⚠️  `--mqtt-password` leaks the password to other users on the same machine,
+if `/proc` is mounted with `hidepid=0` (default).
+
 ## Home Assistant 🏡
 
 ### Rationale
@@ -140,17 +151,6 @@ services:
     restart: unless-stopped
 ```
 
-## MQTT Authentication
-
-```sh
-switchbot-mqtt --mqtt-username me --mqtt-password secret …
-# or
-switchbot-mqtt --mqtt-username me --mqtt-password-file /var/lib/secrets/mqtt/password …
-```
-
-⚠️  `--mqtt-password` leaks the password to other users on the same machine,
-if `/proc` is mounted with `hidepid=0` (default).
-
 ## Alternatives
 
 * https://github.com/binsentsu/switchbot-ctrl