Installation
pvmon is one program file. It uses a data directory and a configuration file, config.yaml. The configuration file is optional.
pvmon operates on Linux (amd64, arm64, armv7) and macOS (amd64, arm64). It does not operate on Windows.
Time zone
Set the time zone with the environment variable TZ. pvmon uses it to calculate days, months and years.
Docker Compose
Copy the example directory to your host.
Set the addresses of your devices in
config.yaml.Set your time zone in
TZincompose.yaml.Start pvmon:
bashdocker compose up -dOpen
http://<host>:8080.
The image is ghcr.io/dombyte/pvmon. The volume at /app/data contains the database, the backups and the encryption key.
Program file
Download the archive for your platform from the releases page.
Extract the archive.
Write a
config.yaml. Refer to Configuration.Start pvmon:
bashTZ=Europe/Berlin ./pvmon -config config.yaml
After a fatal error, pvmon stops with exit code 1. It does not start again. Use a supervisor to start it again, for example systemd or Docker restart: unless-stopped.
RS485 adapter
For a Modbus RTU adapter on the host, do these steps:
Give the container access to the device in
compose.yaml:yamlservices: pvmon: devices: - /dev/ttyUSB0:/dev/ttyUSB0Add the connection to
config.yaml:yamlconnections: rs485: { address: "rtu:///dev/ttyUSB0", speed: 9600, parity: N, stop_bits: 1 }
Simulated devices
You can start pvmon without hardware:
pvmon simulate --setup R3The command writes to ./data/simulate.db. Refer to Example setups.