A python API to access the Go-eCharger wallbox. Official Go-eCharger API documentation.
python3 -m pip install -e .
This is needed for the first time when working with the library/examples/tests.
GOE_API_URL="https://REPLACE_ME.api.v3.go-e.io" GOE_API_TOKEN="REPLACE_ME" python3 examples/simple.py
or
from goechargerv2.goecharger import GoeChargerApi
charger = GoeChargerApi('provide_api_url', 'provide_api_token')
# or you can define additional optional parameters
# charger = GoeChargerApi('provide_api_url', 'provide_api_token', timeout=10, wait=True)
print(charger.request_status())
python3 -m pip install -r requirements.txt
pre-commit install -t pre-push
pylint tests/*.py src/**/*.py
pytest
# show logs
pytest -o log_cli=true
# code coverage
pytest --durations=10 --cov-report term-missing --cov=src.goechargerv2 tests