Initialize config via docker instead of venv if wanted
This commit is contained in:
@@ -10,7 +10,7 @@ RUN apt-get update && \
|
|||||||
apt-get remove -y gcc python3-dev libssl-dev && \
|
apt-get remove -y gcc python3-dev libssl-dev && \
|
||||||
apt-get autoremove -y
|
apt-get autoremove -y
|
||||||
|
|
||||||
COPY hc2mqtt hc-login HCDevice.py HCSocket.py ./
|
COPY hc2mqtt hc-login HCDevice.py HCSocket.py HCxml2json.py ./
|
||||||
|
|
||||||
ENTRYPOINT ["python3"]
|
ENTRYPOINT ["python3"]
|
||||||
CMD ["hc2mqtt", "/config/config.json"]
|
CMD ["hc2mqtt", "/config/config.json"]
|
||||||
|
|||||||
@@ -44,6 +44,12 @@ Installing `sslpsk` needs some extra steps:
|
|||||||
hc-login $USERNAME $PASSWORD > config/config.json
|
hc-login $USERNAME $PASSWORD > config/config.json
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker-compose run app hc-login $USERNAME $PASSWORD > config/config.json
|
||||||
|
```
|
||||||
|
|
||||||
The `hc-login` script perfoms the OAuth process to login to your
|
The `hc-login` script perfoms the OAuth process to login to your
|
||||||
Home Connect account with your usename and password. It
|
Home Connect account with your usename and password. It
|
||||||
receives a bearer token that can then be used to retrieves
|
receives a bearer token that can then be used to retrieves
|
||||||
|
|||||||
Reference in New Issue
Block a user