Skip to main content

No project description provided

Project description

renogymodbus

This package is intended to help you communicate with a Renogy charge controller. It has been tested with a Renogy Rover Elite but should work with other Renogy devices.

Features

  • Read real time data
  • Automatic retries

Connecting to the charge controller

Installing the package

To install the package run

pip install renogymodbus

This package requires Python 3, depending on your setup you might have to instead run:

pip3 install renogymodbus

Command line utility

To run the command line utility and see the debug output run the following on the command line:

renogymodbus --portname /dev/ttyUSB0 --slaveaddress 1
usage: renogymodbus [-h] [--portname PORTNAME] [--slaveaddress SLAVEADDRESS]

optional arguments:
  -h, --help            show this help message and exit
  --portname PORTNAME   Port name for example /dev/ttyUSB0
  --slaveaddress SLAVEADDRESS
                        Slave address 1-247

Example output

</code></pre>
<h2>Python usage</h2>
<p>To use the library within your Python code</p>
<pre lang="python"><code>from renogymodbus.driver import RenogyChargeController

controller = RenogyChargeController("/dev/ttyUSB0", 1)
controller.get_solar_voltage()

See https://github.com/rosswarren/renogymodbus/blob/main/renogymodbus/driver.py for all available methods

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

renogymodbus-0.0.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

renogymodbus-0.0.1-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page