This service emulates a smart shunt configured as energy meter and display the data that comes from a configured dbus ac charger. It is useful if you have and hacked Victron IP22 Smart Charger
-
See config.sample.ini and amend for your own needs. Copy to
/data/conf
ascharger_meter_config.ini
- In
[Setup]
setdebug
to enable debug level on logs,device
is your charger device to get the data via dbus
- In
-
- install SetupHelper
- enter
Package Manager
in Settings - Enter
Inactive Packages
- on
new
enter the following:package name
->ChargerMeter
GitHub user
->mebitek
GitHub branch or tag
->master
- go to
Active packages
and click onChargerMeter
- click on
download
->proceed
- click on
install
->proceed
- click on
| velib_pyhton available here
You can turn debug off on config.ini
-> debug=false
The log you find in /var/log/ChargerMeter
tail -f -n 200 /data/log/ChargerMeter/current
You can check the status of the service with svstat:
svstat /service/ChargerMeter
It will show something like this:
/service/ChargerMeter: up (pid 10078) 325 seconds
If the number of seconds is always 0 or 1 or any other small number, it means that the service crashes and gets restarted all the time.
When you think that the script crashes, start it directly from the command line:
python /data/ChargerMeter/ChargerMeter.py
and see if it throws any error messages.
Tested with:
- Victron IP22 Smart Charger (with VE.Direct hack)