zeversolarlocal
Access solar energy data from your local Zeversolar inverter.
Principle
This library accesses the home.cgi endpoint which returns a bytes object, which is parsed returning current power generation and the daily generated energy.
The inverter is powered by the solar energy generated by the connected solar panels.
This means that some generated errors can mean different things depending on circumstances.
If the inverter cannot be reached a ZeverTimeout is raised. Which could mean:
- The ip-address of the inverter is wrong.
- The inverter is switched off (no solar power). But can be considered expected behavior.
If returning data cannot be parsed properly a ZeverError is raised. Which could mean:
- The returned data is wrong and is indeed an error.
- Sometimes some other data is returned (which meaning is currently unknown), which cannot be parsed, but everything else is fine.
installation
pip install zeversolarlocal
usage
import asyncio
import zeversolarlocal
loop = asyncio.get_event_loop()
def get():
address = "192.168.1.12" # ip address of your zeversolar inverter.
url = zeversolarlocal.default_url(address)
solar_data = loop.run_until_complete(zeversolarlocal.solardata(url))
print(solar_data)
CLI
from the commandline use:
python -m zeversolarlocal 192.168.1.12
Changelog
1.0.0
- First release
Metadata
Release files for zeversolarlocal 1.1.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 | Provenance | Actions |
|---|---|---|---|---|
| zeversolarlocal-1.1.0.tar.gz | 21.5 kB | Without provenance | Details for zeversolarlocal-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zeversolarlocal-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for zeversolarlocal-1.1.0-py3-none-any.whl |
Total release size: 26.4 kB
Release files / zeversolarlocal-1.1.0.tar.gz
| Download URL | zeversolarlocal-1.1.0.tar.gz |
|---|---|
| Size | 21.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
131672e64e5113b93e0f49469ae224196ad643e9b6e0ada8a9b50483804056e6
|
|
BLAKE2b-256 checksum How to use checksums |
aa483d4aa0a8c686bed2e0e0ca9ab8c980daa66311d5dc8487484bb9fcda94f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Release files / zeversolarlocal-1.1.0-py3-none-any.whl
| Download URL | zeversolarlocal-1.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0538e57b797b5dbda4a832aebf386d3d27abc4ff4ce30460ead0ee935e27843
|
|
BLAKE2b-256 checksum How to use checksums |
20c6dbc0bb1fc1aea2ee7a43ef496525e002639841dba847904c6c9045102677
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Security for zeversolarlocal 1.1.0
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.