A python API wrapper for Solaredge monitoring service
Project description
# Solaredge
API wrapper for Solaredge monitoring service.
See https://www.solaredge.com/sites/default/files/se_monitoring_api.pdf
## Create a new connection by supplying your Solaredge API key
```
s = solaredge.Solaredge("APIKEY")
```
## API Requests
12 API requests are supported. The methods return the parsed JSON response as a dict.
```
def get_list(self, size=100, start_index=0, search_text="", sort_property="", sort_order='ASC', status='Active,Pending'):
def get_details(self, site_id):
def get_data_period(self, site_id, parsed=False):
def get_energy(self, site_id, start_date, end_date, time_unit='DAY'):
def get_time_frame_energy(self, site_id, start_date, end_date, time_unit='DAY'):
def get_power(self, site_id, start_time, end_time):
def get_overview(self, site_id):
def get_power_details(self, site_id, start_time, end_time, meters=None):
def get_energy_details(self, site_id, start_time, end_time, meters=None, time_unit="DAY", as_dataframe=False):
def get_current_power_flow(self, site_id):
def get_storage_data(self, site_id, start_time, end_time, serials=None):
def get_inventory(self, site_id):
```
`get_energy_details` can also return the result as a Pandas DataFrame
## TODO
* Add support for bulk requests
* Add API documentation
API wrapper for Solaredge monitoring service.
See https://www.solaredge.com/sites/default/files/se_monitoring_api.pdf
## Create a new connection by supplying your Solaredge API key
```
s = solaredge.Solaredge("APIKEY")
```
## API Requests
12 API requests are supported. The methods return the parsed JSON response as a dict.
```
def get_list(self, size=100, start_index=0, search_text="", sort_property="", sort_order='ASC', status='Active,Pending'):
def get_details(self, site_id):
def get_data_period(self, site_id, parsed=False):
def get_energy(self, site_id, start_date, end_date, time_unit='DAY'):
def get_time_frame_energy(self, site_id, start_date, end_date, time_unit='DAY'):
def get_power(self, site_id, start_time, end_time):
def get_overview(self, site_id):
def get_power_details(self, site_id, start_time, end_time, meters=None):
def get_energy_details(self, site_id, start_time, end_time, meters=None, time_unit="DAY", as_dataframe=False):
def get_current_power_flow(self, site_id):
def get_storage_data(self, site_id, start_time, end_time, serials=None):
def get_inventory(self, site_id):
```
`get_energy_details` can also return the result as a Pandas DataFrame
## TODO
* Add support for bulk requests
* Add API documentation
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
solaredge-0.0.1.tar.gz
(6.6 kB
view details)
Built Distribution
File details
Details for the file solaredge-0.0.1.tar.gz
.
File metadata
- Download URL: solaredge-0.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c55e64181ceab1d5bfe7dd4f4994edb94e3eebb2a8bd4dc4b74014a7b9a2834 |
|
MD5 | 3089cdee6283b76b4916782c9cd8073a |
|
BLAKE2b-256 | 288a99947c853cccb82ccce83b4f6d07ce68fa7a3b9ce218d3c2d0efc98961e6 |
Provenance
File details
Details for the file solaredge-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: solaredge-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a91e031194b8e3200b53b33489e9879690a0dfebefb01734e11bbfab35802283 |
|
MD5 | 98109d6678de0fce494da30b59106597 |
|
BLAKE2b-256 | 0c38352193f7af346b968341551e1276d40bcec609e76c8e394d1407862f30fa |