Browse Source

readme: insert config sections into usage section

Fabian Peter Hammerle 2 months ago
parent
commit
46e81a44e3
1 changed files with 15 additions and 19 deletions
  1. 15 19
      README.md

+ 15 - 19
README.md

@@ -41,6 +41,19 @@ $ systemctl-mqtt --mqtt-host HOSTNAME_OR_IP_ADDRESS
 
 
 `systemctl-mqtt --help` explains all available command-line options / parameters.
 `systemctl-mqtt --help` explains all available command-line options / parameters.
 
 
+### MQTT via TLS
+
+TLS is enabled by default.
+Run `systemctl-mqtt --mqtt-disable-tls …` to disable TLS.
+
+### MQTT Authentication
+
+```sh
+systemctl-mqtt --mqtt-username me --mqtt-password-file /run/secrets/password …
+# or for testing (unsafe):
+systemctl-mqtt --mqtt-username me --mqtt-password secret …
+```
+
 ### Schedule Poweroff
 ### Schedule Poweroff
 
 
 Schedule poweroff by sending a MQTT message to topic `systemctl/hostname/poweroff`.
 Schedule poweroff by sending a MQTT message to topic `systemctl/hostname/poweroff`.
@@ -49,6 +62,8 @@ Schedule poweroff by sending a MQTT message to topic `systemctl/hostname/powerof
 $ mosquitto_pub -h MQTT_BROKER -t systemctl/hostname/poweroff -n
 $ mosquitto_pub -h MQTT_BROKER -t systemctl/hostname/poweroff -n
 ```
 ```
 
 
+Adapt delay via: `systemctl-mqtt --poweroff-delay-seconds 60 …`
+
 ### Shutdown Report
 ### Shutdown Report
 
 
 `systemctl-mqtt` subscribes to [logind](https://freedesktop.org/wiki/Software/systemd/logind/)'s `PrepareForShutdown` signal.
 `systemctl-mqtt` subscribes to [logind](https://freedesktop.org/wiki/Software/systemd/logind/)'s `PrepareForShutdown` signal.
@@ -133,22 +148,3 @@ automation:
     service: switch.turn_off
     service: switch.turn_off
     entity_id: switch.desk_lamp
     entity_id: switch.desk_lamp
 ```
 ```
-
-## MQTT via TLS
-
-TLS is enabled by default.
-Run `systemctl-mqtt --mqtt-disable-tls …` to disable TLS.
-
-## MQTT Authentication
-
-```sh
-systemctl-mqtt --mqtt-username me --mqtt-password-file /run/secrets/password …
-# or for testing (unsafe):
-systemctl-mqtt --mqtt-username me --mqtt-password secret …
-```
-
-## Adapt Poweroff Delay
-
-```sh
-systemctl-mqtt --poweroff-delay-seconds 60 …
-```