Giter VIP home page Giter VIP logo

energydisplay-backend's Introduction

energydisplay-backend

This is a quick and dirty Victron-compatible backend for the energydisplay and energydisplay-m5 projects. It is designed to run on a linux pc or raspberry that is in the same LAN as a Victron inverter system. No special database is required, only a webserver. You have to set up a root password on the Victron system using the remote console, then enter the appropriate data into the vrm_fetch.php script. The backend comes in two parts: vrm_fetch.php is supposed to be run via runfetch.sh (for example using GNU SCREEN in the background), while vrm_histogram.php should be run once per minute via cronjob. This script takes the average of the values collected by vrm_fetch and adds to the histogram graph data files.

NOTE: You could run the dbus commands directly on the beaglebone used by Victron, and have these scripts on that system as well, but this would mean that any firmware update by Victron would erase your changes. Hence I opted to keep this on a separate computer/raspberry and use SSH to remotely issue the required commands. You can easily adapt this to whatever system you have. It is recommended to read directly from the sensors as much as possible instead of querying manufacturer cloud data stores, because the cloud solutions tend to keep only averages and not really "live" values.

If you also run the ELK stack, there's a bit of code to fill in an elasticsearch index with the retrieved data.

energydisplay-backend's People

Contributors

toumal avatar dividebysandwich avatar

Stargazers

Geert avatar  avatar Jim Bledsoe avatar  avatar

Watchers

James Cloos avatar  avatar

energydisplay-backend's Issues

Did not work with Debian 11 and PHP74

Hi,
i am currently searching for a solution to monitor my data from the victron cerbo gx. So i found your project, tried it out, but got stuck.
Everytime i try to execute "php vrm_fetch.php" i get the following erros and no values are in the output section.

PHP Notice: Trying to get property 'Ac/Grid/L1/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 179 PHP Notice: Trying to get property 'Ac/Grid/L2/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 179 PHP Notice: Trying to get property 'Ac/Grid/L3/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 179 PHP Notice: Trying to get property 'Ac/Consumption/L1/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 180 PHP Notice: Trying to get property 'Ac/Consumption/L2/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 181 PHP Notice: Trying to get property 'Ac/Consumption/L3/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 182 PHP Notice: Trying to get property 'Ac/Consumption/L1/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 183 PHP Notice: Trying to get property 'Ac/Consumption/L2/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 183 PHP Notice: Trying to get property 'Ac/Consumption/L3/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 183 PHP Notice: Trying to get property 'Ac/PvOnGrid/L1/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 184 PHP Notice: Trying to get property 'Ac/PvOnGrid/L2/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 184 PHP Notice: Trying to get property 'Ac/PvOnGrid/L3/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 184 PHP Notice: Trying to get property 'Dc/Battery/Soc' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 185 PHP Notice: Trying to get property 'Dc/Battery/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 186 PHP Notice: Trying to get property 'Dc/Battery/Voltage' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 188 PHP Notice: Trying to get property 'Dc/Battery/Current' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 189 PHP Notice: Trying to get property 'Ac/L1/Voltage' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 218 PHP Notice: Trying to get property 'Ac/L2/Voltage' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 219 PHP Notice: Trying to get property 'Ac/L3/Voltage' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 220 PHP Notice: Trying to get property 'Ac/L1/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 222 PHP Notice: Trying to get property 'Ac/L2/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 223 PHP Notice: Trying to get property 'Ac/L3/Power' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 224 PHP Notice: Trying to get property 'Ac/L1/Energy/Forward' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 226 PHP Notice: Trying to get property 'Ac/L2/Energy/Forward' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 227 PHP Notice: Trying to get property 'Ac/L3/Energy/Forward' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 228 PHP Notice: Trying to get property 'Ac/L1/Energy/Reverse' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 230 PHP Notice: Trying to get property 'Ac/L2/Energy/Reverse' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 231 PHP Notice: Trying to get property 'Ac/L3/Energy/Reverse' of non-object in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 232 PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /home/a-mon01/energydisplay-backend/vrm_fetch.php:284 Stack trace: #0 {main} thrown in /home/a-mon01/energydisplay-backend/vrm_fetch.php on line 284

And would it also be possible that you share your ELK Connector?
Wouldn't it be easyer to push the Information directly from the Controller to ELK?

Thanks for your help!
Kind regards

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.