Refactored and updated dsmr_parser
This commit is contained in:
22
README.md
22
README.md
@@ -31,7 +31,7 @@ MQTT_USERNAME=<mqtt-user>
|
||||
MQTT_PASSWORD=<mqtt-password>
|
||||
```
|
||||
|
||||
Inspect the source [`app_settings.py`](app_settings.py) to find out about the other less frequently used settings.
|
||||
Inspect the source [`settings.py`](dsmr2mqtt/settings.py) to find out about the other less frequently used settings.
|
||||
|
||||
## Configuring ser2net
|
||||
|
||||
@@ -52,3 +52,23 @@ connection: &Dsmr
|
||||
```
|
||||
|
||||

|
||||
|
||||
## Build
|
||||
|
||||
You can run the app directly from Python, after installing the modules with [poetry](https://python-poetry.org/docs/):
|
||||
|
||||
```bash
|
||||
pip install poetry
|
||||
poetry install --without dev --no-root
|
||||
python -m dsmr2mqtt
|
||||
```
|
||||
|
||||
Alternatatively, you can use the supplied Dockerfile to build a Docker container to run app.
|
||||
|
||||
Building for docker hub can be done with:
|
||||
|
||||
```bash
|
||||
VERSION=0.5.1
|
||||
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag git.etxean.net/ardkuijpers/dsmr2mqtt:$VERSION --tag git.etxean.net/ardkuijpers/dsmr2mqtt:latest .
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user