Derived from xirixiz/dsmr-reader-docker, this repository was created to simplify docker compose v2 setup.
This setup is tested with a fresh installation of a Raspberry Pi 3 Model B, using the Raspberry Pi OS Lite (32-bit) image (no desktop environment).
- Docker (Compose) Raspberry Pi OS
- Task (3.15+) (optional, but recommended)
- DSMR-reader - Docker
- PostgreSQL
- Database backup
- Customised Dockerfile with post webhook script including rotate-backups and discord.sh; allows for notifications and AWS S3 sync (both optional).
- Clone/download this repository.
- Copy the
.env.example
to.env
and edit the values where needed.task dotenv
For security reasons please change at least the following variables:
POSTGRES_PASSWORD
DSMRREADER_ADMIN_PASSWORD
- By default, the devices mounted to the DSMR service in the docker compose config is set to
/dev/ttyUSB0
. If this differs on your device, please change this before continuing.- If you are not sure which
ttyUSB
it is, you can easily check this by plugging in the P1 cable into your Raspberry Pi and see whichttyUSB
was added in the/dev
directory (ls /dev/tty*
).
- If you are not sure which
- Up the stack.
task up
You should now be able to visit the dashboard at http://xxx.xxx.xxx.x:7777
.
You can restore database backups with the interactive restore
script.
docker compose exec -it postgres-backup restore
Distributed under the MIT License. See LICENSE for more information.