Prometheus exporter for Solax inverter data over the modbus protocol
Solax Pocket Wi-Fi 3.0
This seems to be the only dongle that supports modbus. I've also tested the Pocket LAN 3.0 and that definitely doesn't work.
Solax X3-Hybrid inverter
Other Solax inverters should work fine if you correctly define the registers in the registers.yml
file.
docker build . -t prometheus-solaxmodbus-exporter-php
Make sure to properly set the 3 environment variables in docker-compose.yml
docker compose up -d
curl localhost:8065/metrics
This URL returns data in prometheus text-based format
curl localhost:8065/json
This URL returns data in json format