Connector for GridX to fetch live data from your Photovoltaic System
Project description
Gridx Connector
This is not an Offical Gridx Library
Harness the power of your photovoltaic system with the GridboxConnector library. This versatile tool taps into the same REST API as the official dashboard and app, providing you with direct access to your data from the cloud.
Whether you're a developer looking to integrate solar data into your own project, or a power user seeking command-line access, GridboxConnector has you covered. With its dual functionality, you can either embed it into your Python project as a library or use it as a standalone command-line interface (CLI) tool.
Take control of your solar data with GridboxConnector, and unlock the full potential of your photovoltaic system.
Supported Realms
- Viessmann (will shutdown end of 2025)
- eon Home
Installation
pip install gridx-connector
Usage
You can use the CLI to retrieve live data from the Viessmann Gridbox API or use the GridboxConnector class in your own code.
Use your Login data from the App or from https://company.gridx.de/login
CLI
pip install gridx-connector
viessmann --username <username> --password <password>
in your code
from gridx_connector import GridboxConnector
from importlib.resources import files
import json
from supported_oem import SupportedOEM
config_file = files('gridx_connector').joinpath(f'{oem}.config.json')
with open(config_file, 'r') as file:
data = json.load(file)
data["login"]["username"] = username
data["login"]["password"] = password
connector = GridboxConnector(data)
# Retrieve live data
live_data = connector.retrieve_live_data()
return live_data
Example Output
{
"consumption": 496,
"directConsumption": 413,
"directConsumptionEV": 0,
"directConsumptionHeatPump": 0,
"directConsumptionHeater": 0,
"directConsumptionHousehold": 413,
"directConsumptionRate": 1,
"grid": 83,
"gridMeterReadingNegative": 4318200000,
"gridMeterReadingPositive": 14499360000,
"measuredAt": "2023-08-04T11:29:43Z",
"photovoltaic": 413,
"production": 413,
"selfConsumption": 413,
"selfConsumptionRate": 1,
"selfSufficiencyRate": 0.8326612903225806,
"selfSupply": 413,
"totalConsumption": 496
}
Dependencies
- requests
Contributing
If you'd like to contribute to gridx-connector, please follow these steps:
Fork the repository. Create a new branch for your feature or bug fix. Make your changes and write tests if possible. Run tests and ensure they pass. Submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gridx_connector-1.0.1.tar.gz.
File metadata
- Download URL: gridx_connector-1.0.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a2a25be791877c2a30cfcfa66c138f0a33b6f3be80bdaf09e7b99f6047afe0f
|
|
| MD5 |
f5ef23ea9e940ebacaf872fd6ab4126e
|
|
| BLAKE2b-256 |
e56ade620a16e580b8bf7465bb45e8d870fe922a0fa7d59ca59ad11297ef1d19
|
Provenance
The following attestation bundles were made for gridx_connector-1.0.1.tar.gz:
Publisher:
python-publish.yml on unl0ck/gridx-connector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gridx_connector-1.0.1.tar.gz -
Subject digest:
3a2a25be791877c2a30cfcfa66c138f0a33b6f3be80bdaf09e7b99f6047afe0f - Sigstore transparency entry: 728010056
- Sigstore integration time:
-
Permalink:
unl0ck/gridx-connector@a6c919e6d2322fb1b83dcf07b0b093123dc8ac5e -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/unl0ck
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a6c919e6d2322fb1b83dcf07b0b093123dc8ac5e -
Trigger Event:
release
-
Statement type:
File details
Details for the file gridx_connector-1.0.1-py3-none-any.whl.
File metadata
- Download URL: gridx_connector-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38d03256dc2634ca38c8e1f9e62faec22352d998d55f084bec5b253da3af7d7c
|
|
| MD5 |
3480410699acb40d51258f6cdd900dcf
|
|
| BLAKE2b-256 |
252a84ecba2f188f4afaf56369f5559f1814b127f485acc2364bcc6f3e70c08e
|
Provenance
The following attestation bundles were made for gridx_connector-1.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on unl0ck/gridx-connector
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gridx_connector-1.0.1-py3-none-any.whl -
Subject digest:
38d03256dc2634ca38c8e1f9e62faec22352d998d55f084bec5b253da3af7d7c - Sigstore transparency entry: 728010072
- Sigstore integration time:
-
Permalink:
unl0ck/gridx-connector@a6c919e6d2322fb1b83dcf07b0b093123dc8ac5e -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/unl0ck
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a6c919e6d2322fb1b83dcf07b0b093123dc8ac5e -
Trigger Event:
release
-
Statement type: