A simply API to the Huawei Fusion Solar web interface.
Project description
FusionSolarPy
A very basic python client for the HuaweiFusionSolar API used to monitor solar power plants.
This client is currently hard-coded to use the https://region01eu5.fusionsolar.huawei.com end point and has not been tested on any other end-points.
Installation
Simply install from pypi using:
pip install fusion_solar_py
Usage
The basic usage centers around the FusionSolarClient
class. It currently
only has one method to extract the current power production, the total
power production for the current day, and the total energy ever produced
by the plant.
from fusion_solar_py.client import FusionSolarClient
# log into the API - with proper credentials...
client = FusionSolarClient("my_user", "my_password")
# get the stats
stats = client.get_power_status()
# print all stats
print(f"Current power: {stats.current_power_kw} kW")
print(f"Total power today: {stats.total_power_today_kwh} kWh")
print(f"Total power: {stats.total_power_kwh} kWh")
# log out - just in case
client.log_out()
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 fusion_solar_py-0.0.2.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebbf0844e71b3d2bd6040395755fba02d455f648506d18cf48ffb9d52083f123 |
|
MD5 | a83926a65a112068cad66ca483b21ceb |
|
BLAKE2b-256 | 480202c1dd67f0cfc1314a63cd8eed98e17fc15c552b3240dffa5928b296cc3d |
Close
Hashes for fusion_solar_py-0.0.2.post1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a03ea171cf72ed0616da5bde295e9daa093b3413ece56736b0c6473d8e04b186 |
|
MD5 | 3024dc5eb92cd525e37afc54317921ad |
|
BLAKE2b-256 | 0e8e99b96278081418a9e062def0d4a7c0a65085d1318b1c6a048c79e824be56 |