Skip to main content

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

import SolarWattEnergyManagerAPI as 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')

# 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.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

SolarWattEnergyManagerAPI-0.3-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

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