This is a online information WebUI with rest api based on php showing information from Victron Cerbo GX via Modus TCP
Activate Modbus within the Victron Remote Console.
- Settings -> Services -> Modbus TCP -> Enabled
Within the following file you can configure your modbus connection:
- setup_modbus.php
Example Configuration
- url = ip from the Victron Cerbo GX device
- meters information can be found in Victron "CCGX-Modbus-TCP-register-list" Excel-Document
$setup = '
[{
"name":"Victron",
"url":"192.168.178.36",
"protocol":"TCP",
"meters":[
{
"name":"Grid L1",
"unit_of_measurement":"W",
"data_type":"int16",
"unit_id":"100",
"address":"820",
"scale":"1"
},
{
"name":"Grid L2",
"unit_of_measurement":"W",
"data_type":"int16",
"unit_id":"100",
"address":"821",
"scale":"1"
},
{
"name":"Grid L3",
"unit_of_measurement":"W",
"data_type":"int16",
"unit_id":"100",
"address":"822",
"scale":"1"
},
{
"name":"ESS Minimum SoC setpoint",
"unit_of_measurement":"%",
"data_type":"uint16",
"unit_id":"100",
"address":"2901",
"scale":"10"
},
{
"name":"Battery state (System)",
"unit_of_measurement":"(0=idle;1=charging;2=discharging)",
"data_type":"uint16",
"unit_id":"100",
"address":"844",
"scale":"1"
},
{
"name":"Battery State of Charge (System)",
"unit_of_measurement":"%",
"data_type":"uint16",
"unit_id":"100",
"address":"843",
"scale":"1"
}
]
}]';
Example of Victron "CCGX-Modbus-TCP-register-list" documentation file:
Actual Supported "data_type":
- string
- int16
- uint16
- int32
- uint32
Victron Remote Console "unit_id":
Settings -> Services -> Modbus TCP -> Existing Services