API wrapper for solar watt energy manager
Project description
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
Close
Hashes for SolarWattEnergyManagerAPI-0.5.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67073c35ece8d20e7d4582c185bb7b12c3e3e4923a09e9b3d0e9ed4958d5947d |
|
MD5 | b3c3a9734326772b480259e5ea6306fa |
|
BLAKE2b-256 | 617fb66697fe11992320224e18b4cb4347e42e0f730d095267b735cbc314cba5 |
Close
Hashes for SolarWattEnergyManagerAPI-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b54b8a40660600e9910bd56b1f90df367a3a019c089e3023de95eb77adc2c9b |
|
MD5 | a1a05cfba82b6d4d4ad4d0b0acdb8d53 |
|
BLAKE2b-256 | 7fe288853e86e56588aa330ecbb11c1294f880b6703ba5df8a0e5e1b9075469e |