Name | solaxx3 JSON |
Version |
1.0.0
JSON |
| download |
home_page | None |
Summary | Read Solax X3 inverter registers via modbus interface (RS-485) |
upload_time | 2024-04-14 06:58:35 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | The MIT License (MIT) Copyright © 2022 <copyright Flavius Moldovan> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
solax
solax-x3
solaxx3
solar inverter
rtu
modbus
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# solax-x3
#### Read in real-time all parameters provided by Solax X3 solar inverter via its Modbus S-485 serial interface.
<br />
## Prerequisites
* Solax X3 inverter
* Modbus RS-485 serial adapter/interface
* [Modbus cable](https://github.com/mkfam7/solaxx3/blob/main/diagrams/rs485_cable.png)
* python version >= 3.8
* This python module
## Installation
```
pip install solaxx3
```
## Usage
```
from solaxx3.solaxx3 import SolaxX3
# adjust the serial port and baud rate as necessary
s = SolaxX3(port="/dev/ttyUSB0", baudrate=115200)
if s.connect():
s.read_all_registers()
available_stats = s.list_register_names()
for stat in available_stats:
print(stat)
battery_temperature = s.read("temperature_battery")
print(f"\n\nBattery temperature: {s.read('temperature_battery')}")
else:
print("Cannot connect to the Modbus Server/Slave")
exit()
```
Project Link: [https://github.com/mkfam7/solaxx3](https://github.com/mkfam7/solaxx3)
Raw data
{
"_id": null,
"home_page": null,
"name": "solaxx3",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "Solax, solax-x3, solaxx3, solar inverter, RTU, MODBUS",
"author": null,
"author_email": "Flavius Moldovan <mkfam@protonmail.com>",
"download_url": "https://files.pythonhosted.org/packages/62/78/61fbfade3e59cc59d0f925f98974a5835959794b906cf8ad5d88339dc162/solaxx3-1.0.0.tar.gz",
"platform": null,
"description": "# solax-x3\n#### Read in real-time all parameters provided by Solax X3 solar inverter via its Modbus S-485 serial interface.\n\n<br />\n\n## Prerequisites\n\n* Solax X3 inverter\n* Modbus RS-485 serial adapter/interface\n* [Modbus cable](https://github.com/mkfam7/solaxx3/blob/main/diagrams/rs485_cable.png)\n* python version >= 3.8\n* This python module\n\n## Installation\n\n```\npip install solaxx3\n``` \n\n## Usage\n\n\n```\nfrom solaxx3.solaxx3 import SolaxX3\n\n# adjust the serial port and baud rate as necessary\ns = SolaxX3(port=\"/dev/ttyUSB0\", baudrate=115200)\n\nif s.connect():\n s.read_all_registers()\n\n available_stats = s.list_register_names()\n for stat in available_stats:\n print(stat)\n\n battery_temperature = s.read(\"temperature_battery\")\n print(f\"\\n\\nBattery temperature: {s.read('temperature_battery')}\")\n\n\nelse:\n print(\"Cannot connect to the Modbus Server/Slave\")\n exit()\n\n\n```\n\nProject Link: [https://github.com/mkfam7/solaxx3](https://github.com/mkfam7/solaxx3)\n\n\n\n",
"bugtrack_url": null,
"license": "The MIT License (MIT) Copyright \u00a9 2022 <copyright Flavius Moldovan> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Read Solax X3 inverter registers via modbus interface (RS-485)",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/mkfam7/solaxx3"
},
"split_keywords": [
"solax",
" solax-x3",
" solaxx3",
" solar inverter",
" rtu",
" modbus"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "53c324d06b4470122634a372ce6c189d90a3224e62fccc5a91506376f381016b",
"md5": "27ea720c0aea815086a81af4915254ca",
"sha256": "acebdc82bf0a923e407f029d212eafbce74c135e6b599d7e0053294f8f5cfa25"
},
"downloads": -1,
"filename": "solaxx3-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "27ea720c0aea815086a81af4915254ca",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 14417,
"upload_time": "2024-04-14T06:58:34",
"upload_time_iso_8601": "2024-04-14T06:58:34.455622Z",
"url": "https://files.pythonhosted.org/packages/53/c3/24d06b4470122634a372ce6c189d90a3224e62fccc5a91506376f381016b/solaxx3-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "627861fbfade3e59cc59d0f925f98974a5835959794b906cf8ad5d88339dc162",
"md5": "7e65d447ea3f10002660bca0670182b1",
"sha256": "07cfd6d0f220ed811cc07f6b28827f07eb04441132b90e51491de553c1d2bdf1"
},
"downloads": -1,
"filename": "solaxx3-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "7e65d447ea3f10002660bca0670182b1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 14110,
"upload_time": "2024-04-14T06:58:35",
"upload_time_iso_8601": "2024-04-14T06:58:35.702696Z",
"url": "https://files.pythonhosted.org/packages/62/78/61fbfade3e59cc59d0f925f98974a5835959794b906cf8ad5d88339dc162/solaxx3-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-14 06:58:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mkfam7",
"github_project": "solaxx3",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "solaxx3"
}