Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SolarWattEnergyManagerAPI-0.5.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SolarWattEnergyManagerAPI-0.5.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file SolarWattEnergyManagerAPI-0.5.4.tar.gz.

File metadata

File hashes

Hashes for SolarWattEnergyManagerAPI-0.5.4.tar.gz
Algorithm Hash digest
SHA256 e0e660acfe79ed3e96ed691ad0cf87ed491a77f30d42294dd4365f03404798db
MD5 83fc9d3899b1018551f05e40804a39bf
BLAKE2b-256 fc08bf58b2746b033d571b8947545ccf34fada5828014b5a1bbc5e7c5ec03790

See more details on using hashes here.

File details

Details for the file SolarWattEnergyManagerAPI-0.5.4-py3-none-any.whl.

File metadata

File hashes

Hashes for SolarWattEnergyManagerAPI-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d32cff02af3ea537c6c505819869c481f827b624dbb1da720b48cbe0ea7de172
MD5 ed8a23da3188eedfb49d1cc2b368b74f
BLAKE2b-256 c87ae6c008cfc4dd46056968f2e14349bf4baa040f226e2043281b2dc2c3df45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page