Coder Social home page Coder Social logo

axpert-inverter-monitor's Introduction

axpert-inverter-monitor

Simple monitoring for Axpert/Voltronic type inverters via a connected Raspberry Pi. No MQTT needed.

image

Pre-requisites:

  1. Download, build and install Manio's inverter poller: https://github.com/manio/skymax-demo
  2. Test and make sure you can poll your inverter (poller returns results).
  3. Recommended - install and run log2ram to save your SD card since polling writes to disk very frequently - https://github.com/azlux/log2ram
  4. A web server with PHP installed, serving files from "/var/www/html". I recommend Lighttpd.

Installation:

  1. Copy poll.sh and monitorconfig.json to same directory as inverter poller.
  2. Copy InverterMonitor.php, InverterMonitor.png and loader.js to "/var/www/html" directory.
  3. Run "chmod +x ./inverter_poller" to make executable.
  4. Run "chmod +x ./poll.sh" to make executable.
  5. Edit "/etc/log2ram.conf" and add the "/var/www/html/im" directory to cache it to RAM.
  6. Execute by running "./poll.sh &". The ampersand lets the script run in the background. To terminate it, find the PID with "pidof -x poll.sh", then "kill x", where x is the PID returned.

Optional:

  • Edit monitorconfig.json (applies only to web-monitor) - Set your inverter model and battery count here (battery count used in voltage calculation).
  • Edit inverter.conf (you should not need to, interval here does not apply).

Usage:

Use with included PHP web-monitor. This is a webpage showing your inverter data that auto-resfreshes every 10 seconds. Simply navigate to http://yourraspberrypi/InverterMonitor.php

Or

Use with IOT Dashboard: https://play.google.com/store/apps/details?id=com.cpk.iotdashboard

IOT Dashboard must fetch data from:

It can also fetch graph data:

You can create your own graphs by editing poll.sh and grepping different values of interest.

NOTE: IOT Dashboard requires extensive configuration to parse the JSON data, so be prepared for trial and error.

Bonus points:

Install ZerotierOne on your Pi and mobile device to be able to monitor your inverter from anywhere, not just your local network. You'll need to bridge your LAN/WLAN and Zerotier interface on the Pi. More info here: https://zerotier.atlassian.net/wiki/spaces/SD/pages/224395274/Route+between+ZeroTier+and+Physical+Networks

Credits:

axpert-inverter-monitor's People

Contributors

j-broo avatar

Watchers

 avatar

Forkers

xevgen jonnylewis

axpert-inverter-monitor's Issues

Add command support?

Add ability to send commands to inverter. Poller supports this, but it must be passed from webpage or IOT Dashboard.

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.