Giter VIP home page Giter VIP logo

pylontech-python's Introduction

pylontech-python

Functions to communicate to Pylontech Batteries using RS-485 serial communication

3 Layer model - each can be used as lib:

  1. pylontech_base.py - Communication layer, RS485 to pylontech with raw frame support
  2. pylontech_decode.py and pylontech_encode.py for decodeing and encoding the frame content
  3. pylontech_stack.py high level abstraction for the whole stack. It iterates over batteries and calculates overall results and combines battery results to lists. Some detail information from layer 2 might not be implemented in this layer.

Installation using pypi.org:

  • run 'pip install pylontech-python'

build and Installation from source using pip:

  • build requires pip to be installed
  • run 'pip wheel -r requirements.txt' (installs e.g. pyserial) this downloads the required packages
  • run 'pip wheel .' this builds the wheel package
  • run 'pip install --force-reinstall ./*.whl' this installs the packages (both downloaded and build) --force-reinstall is used if you like to modify, rebuild and reinstall it.

Example: an example to use pylontech-python:

from pylontech import PylontechStack x = PylontechStack("/dev/ttyUSB0",baud=115200,manualBattcountLimit=5) x.battcount 2

A big "Thanks" to Daniel Schramm for his contibution!

pylontech-python's People

Contributors

danielschramm avatar tomcat42 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.