No project description provided
Project description
Viessmann Gridbox Connector
This is not an official Viessmann library
a GridboxConnector Lib to fetch your Data from the Cloud. It is using the same Rest-API like the Dashboard and the App.
Installation
pip install viessmann-gridbox-connector
Set your email and password in the config.json. Use your Login Data from the App or from https://mygridbox.viessmann.com/login
Setup the python environment and install all dependencies
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
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
}
Usage
from gridbox_connector import GridboxConnector
# Initialize the connector with your configuration
config = {
"urls": {
"login": "https://example.com/login",
"gateways": "https://example.com/gateways",
"live": "https://example.com/live/{}",
},
"login": {"username": "your_username", "password": "your_password"},
}
connector = GridboxConnector(config)
# Retrieve live data
live_data = connector.retrieve_live_data()
print(live_data)
Configuration
You need to provide a configuration dictionary with the following keys:
urls: Dictionary containing endpoint URLs. login: Dictionary containing login credentials.
Dependencies
requests
Contributing
If you'd like to contribute to viessmann-gridbox-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
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
File details
Details for the file viessmann-gridbox-connector-1.0.1.tar.gz
.
File metadata
- Download URL: viessmann-gridbox-connector-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 820ac745b25e955d69eab0a48c6132be781f8da779746e4567c1afe20dabdebf |
|
MD5 | 6ea51d48be4da95f40f5bbb83c1f94c9 |
|
BLAKE2b-256 | e49c673f8ea187af23c2e3cf9d73236f2585f62a1f7cda41685b450ddd7f571e |
Provenance
File details
Details for the file viessmann_gridbox_connector-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: viessmann_gridbox_connector-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d891484a8c2ae899013ae99345cf7fa0987d0c2f7308a653b6c483ab42cd6f4 |
|
MD5 | 51503c843aac7a906b7d756161b483dc |
|
BLAKE2b-256 | 2cb6f4f003b6cc20cd933e1424e0886154b269bcc3a06d46aabb695a85afb542 |