This service is meant to be run on a Raspberry Pi with Venus OS from Victron.
The Python script cyclically reads data from the Fronius SmartMeter via the Fronius REST API and publishes information on the dbus, using the service name com.victronenergy.grid. This makes the Venus OS work as if you had a physical Victron Grid Meter installed.
This service has been modified fromt he original to allow for single phase support and separation of configuration from the service script. It also was updated to include all attributes in the VenusOS dashboard
Special thanks goes to the following for the basis of this modified code:
- Ralf Zimmermann - https://github.com/RalfZim/venus.dbus-fronius-smartmeter
- VictronEnergy - https://github.com/victronenergy/velib_python
If you are using the installation script the two parameters (IP Address and Number of Phases) is set automatically.
Typically the IP address for the REST API is that of your inverter connected to the Smart Meter using RS485.
-
Logon to VenusOS on Raspberry Pi using SSH as root
-
Run following command:
bash <(curl -s https://raw.githubusercontent.com/unifiedcommsguy/victron-dbus-fronius-smartmeter/main/install.sh)
- Follow prompts and this will automatically download the service files, libraries and make the service persistent after firmware upgrade.
-
Copy
install.sh
from repo to/tmp
-
Set execute permissions on file:
chmod 755 /tmp/install.sh
- Run
install.sh
:
/tmp/install.sh
- Follow prompts and this will automatically download the service files, libraries and make the service persistent after firmware upgrade.
To be completed
You can check the status of the service with svstat:
svstat /service/dbus-fronius-smartmeter
To restart the service, run the following command:
/data/dbus-fronius-smartmeter/kill_me.sh
If you are required to change the IP Address or Number of phases in your setup, just rerun the installation script again and it will update the service for you automatically.