Merge pull request #34 from Meatballs1/py_ext

Add .py extensions
This commit is contained in:
Ben Campbell
2024-03-22 18:30:34 +00:00
committed by GitHub
4 changed files with 6 additions and 6 deletions

View File

@@ -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 HCxml2json.py ./ COPY hc2mqtt.py hc-login.py HCDevice.py HCSocket.py HCxml2json.py ./
ENTRYPOINT ["python3"] ENTRYPOINT ["python3"]
CMD ["hc2mqtt", "--config", "./config/config.ini"] CMD ["hc2mqtt.py", "--config", "./config/config.ini"]

View File

@@ -41,17 +41,17 @@ Installing `sslpsk` needs some extra steps:
![laptop in a clothes washer with a display DoorState:Closed](images/doorclose.jpg) ![laptop in a clothes washer with a display DoorState:Closed](images/doorclose.jpg)
```bash ```bash
hc-login $USERNAME $PASSWORD > config/devices.json hc-login.py $USERNAME $PASSWORD > config/devices.json
``` ```
or or
```bash ```bash
docker-compose build docker-compose build
docker-compose run -T app hc-login $USERNAME $PASSWORD > config/devices.json docker-compose run -T app hc-login.py $USERNAME $PASSWORD > config/devices.json
``` ```
The `hc-login` script perfoms the OAuth process to login to your The `hc-login.py ` 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
a list of all the connected devices, their authentication a list of all the connected devices, their authentication
@@ -82,7 +82,7 @@ mqtt_clientname="hcpy"
``` ```
```bash ```bash
hc2mqtt --config config/config.ini hc2mqtt.py --config config/config.ini
``` ```
or or

View File