Giter Site home page Giter Site logo

datjan / php-victron-cerbogx-modbus-tcp Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 794 KB

This is a online information WebUI with rest api based on php showing information from Victron Cerbo GX via Modus TCP

PHP 94.65% Hack 5.35%
cerbo gx modbus php tcp victron rest venus

php-victron-cerbogx-modbus-tcp's Introduction

php-victron-cerbogx-modbus-tcp

This is a online information WebUI with rest api based on php showing information from Victron Cerbo GX via Modus TCP

WebUi

index.php alt text

Rest Json

reload_modbus.php alt text

Configuration Victron Cerbo GX

Activate Modbus within the Victron Remote Console.

  • Settings -> Services -> Modbus TCP -> Enabled

Configuration PHP

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: alt text

Actual Supported "data_type":

- string
- int16
- uint16
- int32
- uint32

Victron Remote Console "unit_id":

Settings -> Services -> Modbus TCP -> Existing Services

php-victron-cerbogx-modbus-tcp's People

Contributors

datjan avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.