A python library to connect with Goodwe API Rest and get production data of solar panels.
- Create virtual envinroment:
python -m venv .\venv
- Install requirements.txt.
pip install -r requirements.txt
A.2. Create JSON file 'goodwe_config.json' like this (base repository path), with the following fields:
- System Id
- Account
- Password
Example of goodwe_config.json
{
"goodwe_api_connection":{
"system_id":"",
"account":"",
"password":""
}
}
Run the sample.py with python:
Define the extrategy that you want launch and running python script file:
python3 sample.py
Similar ouput like this:
{
"2023-08-02": 10.7
}
Generated 36.70 kWh (avg. 12.23 kWh per day) in 3 days.
{
"2023-08-01": 14.5,
"2023-08-02": 10.7,
"2023-08-03": 11.5
}
- Build documentation:
mkdocs build
- Serve:
mkdocs serve
Goodwe Api information: