A library to communicate with a Reposit Controller
Project description
reposit-python-client
Python client library to communicate with a Reposit Controller.
Compatibility
- Python 2.7
- Python 3+
- Python 3.6 preferred
Quickstart
from reposit.auth import RPConnection
from reposit import Controller, Account
user = RPConnection('username', 'password')
account = Account(user)
user_keys = account.get_user_keys()
controller = Controller(user, user_key=user_keys[0])
print(controller.battery_capacity)
Data
Method | Params | Description |
---|---|---|
battery_capacity |
- | Get the capacity of the battery in kWh |
battery_min_state_of_charge |
- | Get the minimum state of charge of the battery |
has_battery |
- | Bool of whether the user has a battery or not |
has_inverter |
- | Bool of whether the user has an inverter or not |
get_historical_generation |
|
Get a list of generation data based on start or end |
latest_historical_generation |
- | Get a list of the latest generation data. Goes back the last 24 hours. |
get_historical_house |
|
Get a list of house data based on start or end |
latest_historical_house |
- | Get a list of the latest house data. Goes back the last 24 hours. |
get_historical_grid_credits |
|
Get a list of grid credits earned based on start or end |
latest_historical_house |
- | Get a list of the latest grid credits earned. Goes back the last 24 hours. |
get_historical_inverter |
|
Get a list of inverter data based on start or end |
latest_historical_inverter |
- | Get a list of the latest inverter data. Goes back the last 24 hours. |
get_historical_meter |
|
Get a list of meter data based on start or end |
latest_historical_meter |
- | Get a list of the latest meter data. Goes back the last 24 hours. |
weekday_tou_tariff |
- | Get weekday tou tariff information such as peak/off peak times and rates. |
weekend_tou_tariff |
- | Get weekend tou tariff information such as peak/off peak times and rates. |
feed_in_tariff |
- | Get the feed-in-tariff |
Links
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
reposit-0.3.tar.gz
(7.7 kB
view hashes)