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
pip install SungrowModbusWebClient
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
- SG10RT with WiNet-S Dongle
Building
python setup.py sdist
twine upload dist/*
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.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| SungrowModbusWebClient-0.3.2.tar.gz | 19.3 kB | Without provenance | Details |
Release files / SungrowModbusWebClient-0.3.2.tar.gz
| Download URL | SungrowModbusWebClient-0.3.2.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c790f0054a5cf6ff8bbb5c2d7497324359631b1658b4133404ae32093d86fda7
|
|
BLAKE2b-256 checksum How to use checksums |
04e505657d897530dbd9ad67fe3db1a2fb5cde9f28e1b3c87b3a84892397495e
|
| 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
|
Security for SungrowModbusWebClient 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.