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
Metadata
Release files for SungrowModbusWebClient 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| SungrowModbusWebClient-0.2.0.tar.gz | 18.8 kB | Details |
Release files / SungrowModbusWebClient-0.2.0.tar.gz
| Download URL | SungrowModbusWebClient-0.2.0.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68964ad75e27d11671cc1a474bd48deaac8d40fd8d50ec6535caaf022b10b057
|
|
BLAKE2b-256 checksum How to use checksums |
b456262a1e209bd948388ea8345f328a37af89e6104c68acda52b97bb68e6540
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|