API wrapper for solar watt energy manager
Project description
Important!
Active development of this package moved to https://pypi.org/project/LocalSolarWatt/
SolarWattEnergyManagerAPI
A python3 library to access the data of a solar watt energy manager
This library returns the current power data of your solar array via the unofficial local api.
Installation
pip install SolarWattEnergyManagerAPI
Usage
from SolarWattEnergyManagerAPI.SolarWatt import EnergyManagerAPI
# create a new api object
api = EnergyManagerAPI()
# set host or ip of energy manager device
api.set_host('hostname or ip')
# optional, change log level
api.set_log_level('WARNING')
# optional, change work units to Wh instead of kWh
from SolarWattEnergyManagerAPI.units import WorkUnit
api.set_unit(WorkUnit.Wh)
# test the connection (returns bool based on success)
result = api.test_connection()
# pull data from the device (retuirn dictionary with power values)
data = api.pull_data()
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file SolarWattEnergyManagerAPI-0.5.4.tar.gz.
File metadata
- Download URL: SolarWattEnergyManagerAPI-0.5.4.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0e660acfe79ed3e96ed691ad0cf87ed491a77f30d42294dd4365f03404798db
|
|
| MD5 |
83fc9d3899b1018551f05e40804a39bf
|
|
| BLAKE2b-256 |
fc08bf58b2746b033d571b8947545ccf34fada5828014b5a1bbc5e7c5ec03790
|
File details
Details for the file SolarWattEnergyManagerAPI-0.5.4-py3-none-any.whl.
File metadata
- Download URL: SolarWattEnergyManagerAPI-0.5.4-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d32cff02af3ea537c6c505819869c481f827b624dbb1da720b48cbe0ea7de172
|
|
| MD5 |
ed8a23da3188eedfb49d1cc2b368b74f
|
|
| BLAKE2b-256 |
c87ae6c008cfc4dd46056968f2e14349bf4baa040f226e2043281b2dc2c3df45
|