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
Please check whether your charge controller has a rs232 or rs485 port.
rs485
Voucher code for 7% off Renogy: https://go.referralcandy.com/share/672HVC9
- rs485 to USB serial cable (UK) https://uk.renogy.com/rs485-to-usb-serial-cable/
- rs485 to USB serial cable (US) https://renogy.com/rs485-to-usb-serial-cable/
rs232
Unfortunately the rs232 to USB serial cable has been discontinued by Renogy. It is possible to make your own.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for renogymodbus-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa4d190f9ceb16efb0aeecde82075f82954fb412838692e28acb136ee6bcd74d |
|
MD5 | 881ba4aea46a32b0d3701ed0284cc80b |
|
BLAKE2b-256 | ce084f110ece416dd78a0593b68a8fce8012a34864015bff590ecb689612ee5e |