Giter Site home page Giter Site logo

wksinverter-mqtt-venusos's Introduction

dbus-wks-inverter Service

Purpose

This service is meant to be run on a raspberry Pi with Venus OS from Victron.

The Python script cyclically reads data from the WKS Inverter via the MQTT info provided by WKSUpdate Service and publishes information on the dbus, using the service name com.victronenergy.multi. This makes the Venus OS work as if you had a physical Victron RS Multi 48V 6KvA installed.

Configuration

In the Python file, you should put the IP of your MQTT source that hosts publihed Data.

Installation

/data/dbus-wks-inverter/install.sh

Debugging

You can check the status of the service with svstat:

svstat /service/dbus-wks-inverter

It will show something like this:

/service/dbus-wks-inverter: up (pid 10078) 325 seconds

If the number of seconds is always 0 or 1 or any other small number, it means that the service crashes and gets restarted all the time.

When you think that the script crashes, start it directly from the command line:

python /data/dbus-wks-inverter/dbus-wks-inverter.py

and see if it throws any error messages.

If the script stops with the message

Restart the script

If you want to restart the script, for example after changing it, just run the following command:

/data/dbus-wks-inverter/restart.sh

The daemon-tools will restart the scriptwithin a few seconds.

Hardware

In my installation at home, I am using the following Hardware:

  • WKS II (single phase)
  • Raspberry Pi 3B+ - For running Venus OS
  • Pylontech US2000 Plus - LiFePO Battery

wksinverter-mqtt-venusos's People

Contributors

robin-73 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.