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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4bcff52e75bdc6710f5b44c5dd965edd21707d1cfaddaf750067f411ca791b5 |
|
MD5 | fd98d156a46e9ba3a6c0b8e55ac55b83 |
|
BLAKE2b-256 | e06eb00eab3e1fb9288ac6e4d5246e976cd2b8d0c0fcf860575c1f8a7096a4d3 |
Close
Hashes for SolarWattEnergyManagerAPI-0.5.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38ca0cb120c5d7b6bab3714e17d409a86fdc93f6ac1c1b4121caf824e3c03633 |
|
MD5 | 1719a764b83497afcaf00e07d6aadbd9 |
|
BLAKE2b-256 | 8d251c48b90dab736719ad08ba4df233616951352f3b95d8beb2105552b372f4 |