Refactored and updated dsmr_parser

This commit is contained in:
Ard Kuijpers
2025-03-22 17:20:52 +01:00
parent 53022aebb8
commit ccb31cbdc1
21 changed files with 731 additions and 69 deletions

View File

@@ -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
```
![Works with Homie](https://homieiot.github.io/img/works-with-homie.png)
## 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 .
```