Giter Club home page Giter Club logo

resol-vbus-python's Introduction

resol-vbus-python

Python Script to read RESOL VBUS Data over LAN <<<<<<< HEAD

I created this script to display data from my solar installation on an info display (see https://github.com/rellit/InfoMirror).

Usage

The script prints data of received VBUS messages to console in JSON format.

To use this data just call by e.g. PHP

$json = `python resol.py`

or just write JSON Data to file via:

!#/bin/sh
resol.py > solar.json

Settings

Some config is needed in order to run this script:

  1. IP and port of DataLogger/VBUS_to_LAN Adapter in config.py

  2. Number of unique messages to wait for in config.py we need this, cause VBUS sends data in an not predictable way. To receive a full output, it is neccessary to know, how many different messages are expected. Don't choose a too high number, this will cause the script to run forever. Just find out by try'n'error

  3. The spec File to use in config.py
    Spec files are the dictionary to parse VBUS Messages. They are provided in XML by RESOL as part of the RSC (Resol Service Center) download. Just download, install (on linux use wine, it will work) and get the required file for your installation from: {Install_dir}/eclipse/plugins/de.resol.servicecenter.vbus.resol_2.0.0/

    Provided specs are in XML format. to convert you can use http://www.utilities-online.info/xmltojson Also, if the "mask" entry (https://github.com/rellit/resol-vbus-python/blob/master/spec/DeltaSolBXPlus.json#L6) should be missing, you need to set that for your system. The correct mask setting can be found here: https://danielwippermann.github.io/resol-vbus/vbus-packets.html

Debug

If anything wents wrong, xou can enable debug flag in config.py. This will print some basic information while executing the script, but will destroy the JSON output.

39c6e6503515b5917fd1c89aaf42bfd6651f3848

resol-vbus-python's People

Contributors

rellit avatar hmueller01 avatar delphi-fpc-lazarus avatar edwingh avatar nmaas87 avatar d-e-r-graf avatar

Watchers

James Cloos 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.