Coder Social home page Coder Social logo

victron-json-mppt's Introduction

victron-json-mppt

Python DBUS json mppt solar charger scripts for VenusOS.

Tested on RPi 3 CCGX

Tested on RPi 4 CCGX With python 3 and Venus_OS 3.10

Publishes an MPPT solarcharger on the DBUS based on the dbus definitions here: https://github.com/victronenergy/venus/wiki/dbus#solar-chargers

Both scripts run on startup on the CCGX https://www.victronenergy.com/live/ccgx:root_access#hooks_to_install_run_own_code_at_boot.

example rc.local: su root -c "screen -dm -S epever-dbus ~/dbus-service.py" su root -c "screen -dm -S epever-dbus ~/dbus-values.py"

Why?

I have an Epever Tracer MPPT which I needed to integrate with my victron multiplus & CCGX. I didnt want to spend lots of money on a new mppt when my current one works fine (it just doesn't communicate with the victron software)

Initially I tried getting the Tracer MPPT readings directly on the CCGX but turns out modbus would crash a lot and the Epever MPPT wasn't happy with the high rate of readings required to run the service well on DBUS.

Known issues:

This script 100% relies on keeping the remote json file up to date. I run a separate script every 60 seconds to grab the required modbus values from my Tracer MPPT and publish them to a json file. On smaller arrays, solar isn't likely to fluctuate massively within 60 seconds so an average is fine. This process is stable and that's what counts.

Special thanks:

I started with this script as a base for how to get it working with CCGX: https://github.com/CarlosBornay/venus-bornaywind

victron-json-mppt's People

Contributors

ganey avatar silios avatar

Stargazers

Christian Butterweck avatar  avatar  avatar  avatar Hendrik avatar Ross Warren avatar Tuomas avatar  avatar Jun - Jun Amparado avatar

Watchers

 avatar  avatar Jun - Jun Amparado avatar

Forkers

silios

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.