Use a config.ini file
This commit is contained in:
20
README.md
20
README.md
@@ -41,7 +41,7 @@ Installing `sslpsk` needs some extra steps:
|
||||

|
||||
|
||||
```bash
|
||||
hc-login $USERNAME $PASSWORD > config.json
|
||||
hc-login $USERNAME $PASSWORD > devices.json
|
||||
```
|
||||
|
||||
The `hc-login` script perfoms the OAuth process to login to your
|
||||
@@ -58,8 +58,24 @@ your mDNS or DNS server resolves the names correctly.
|
||||
|
||||
## Home Connect to MQTT
|
||||
|
||||
Use the following config/config.ini example:
|
||||
|
||||
```
|
||||
devices_file = "/config/devices.json"
|
||||
mqtt_host = "localhost"
|
||||
mqtt_username = "mqtt"
|
||||
mqtt_password = "password"
|
||||
mqtt_port = 1883
|
||||
mqtt_prefix = "homeconnect/"
|
||||
mqtt_ssl = False
|
||||
mqtt_cafile = None
|
||||
mqtt_certfile = None
|
||||
mqtt_keyfile = None
|
||||
mqtt_clientname="hcpy"
|
||||
```
|
||||
|
||||
```bash
|
||||
hc2mqtt config.json
|
||||
hc2mqtt --config config/config.ini
|
||||
```
|
||||
|
||||
This tool will establish websockets to the local devices and
|
||||
|
||||
Reference in New Issue
Block a user