A ModbusWebClient wrapper for talking to Sungrow WiNet-S Dongle via HTTP API
Project description
SungrowModbusWebClient
Drop in replacement for SungrowModbusTCPClient/ModbusTCPClient that uses Websockets and HTTP API requests to work around Sungrow disabling Modbus requests on WiNet-S Dongle.
Report Bug
·
Request Feature
About The Project
Access Modbus RTU via HTTP API call to Sungrow WiNet-S.
This uses HTTP requests to retrieve Modbus packets, add a header and then pass to PyModbus to parse like a standard Modbus RTU message
Class based on pymodbus.ModbusTcpClient, completely interchangeable, just replace ModbusTcpClient() or SungrowModbusTcpClient() with SungrowModbusTcpClient()
Built With
Requires
Getting Started
Install via PIP, then if replace ModbusTcpClient() or SungrowModbusTcpClient() with SungrowModbusWebClient()
Installation
- Install with PIP
Usage
For Solariot, open solariot.py
Add to the top: from SungrowModbusWebClient import SungrowModbusWebClient
Replace SungrowModbusTcpClient with SungrowModbusWebClient near lines 100 & 101
Tested
- SG7.0RT with WiNet-S Dongle
License
Distributed under the GPL3 License. See LICENSE.txt
for more information.
Contact
Project Link: https://github.com/bohdan-s/SungrowModbusWebClient
Acknowledgments
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
Hashes for SungrowModbusWebClient-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c196e136ecc8b3aa7c8fe09d4da9328af414b41f82ddc6c47ef92ae5de9bcc02 |
|
MD5 | 05d3b1a8ee80b41507e733168e747629 |
|
BLAKE2b-256 | 1b7a82a6e6457745f9c2e56530ac6e1044d96ed70a2d78fa402bff52ff1fdf9b |