## Commwatt Gen4 Python client
This module allow you to retrieve data from your Comwatt PowerGen4 box.
It connects to the Commwatt website using Selenium webdriver and firefox and reads teh data.
# Installation
Prerequisites:
- Install Firefox
- Download geckodriver form https://github.com/mozilla/geckodriver/releases
Install using pip:
```
$ python -m pip install comwatt
```
# Usage
```
import comwatt
c = comwatt.PowerGEN4(<username>, <password>)
s = c.get_devices("sun")
print(s[0].value_instant)
```
Available device types are:
- injection
- withdrawal
- sun
- hotwatertank
- plug
Raw data
{
"_id": null,
"home_page": "https://github.com/51CGO/comwatt",
"name": "comwatt",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Comwatt, client",
"author": "Christophe Godart",
"author_email": "51CGO@lilo.org",
"download_url": "https://files.pythonhosted.org/packages/77/bf/0e70deb68f9ca7231fe2b60337221866be806610b923cb80b899464710c8/comwatt-0.12.0.tar.gz",
"platform": null,
"description": "## Commwatt Gen4 Python client\n\nThis module allow you to retrieve data from your Comwatt PowerGen4 box.\nIt connects to the Commwatt website using Selenium webdriver and firefox and reads teh data.\n\n# Installation \n\nPrerequisites:\n- Install Firefox \n- Download geckodriver form https://github.com/mozilla/geckodriver/releases\n\nInstall using pip:\n\n```\n$ python -m pip install comwatt\n```\n\n# Usage\n\n```\nimport comwatt\nc = comwatt.PowerGEN4(<username>, <password>)\ns = c.get_devices(\"sun\")\nprint(s[0].value_instant)\n```\n\nAvailable device types are:\n- injection\n- withdrawal\n- sun\n- hotwatertank\n- plug\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python client for Comwatt",
"version": "0.12.0",
"project_urls": {
"Homepage": "https://github.com/51CGO/comwatt"
},
"split_keywords": [
"comwatt",
" client"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "def22493a7dd1fbab161ffbb3115cfbe454250e86b113db972d109cb4fb70912",
"md5": "e2588d945afd0cdc6a227931f66657fd",
"sha256": "db617c2ea00971aa65cc6c569fc4dfff0570c4d546d3d557c05104e16f9bbed8"
},
"downloads": -1,
"filename": "comwatt-0.12.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e2588d945afd0cdc6a227931f66657fd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4409,
"upload_time": "2024-06-26T11:19:34",
"upload_time_iso_8601": "2024-06-26T11:19:34.187488Z",
"url": "https://files.pythonhosted.org/packages/de/f2/2493a7dd1fbab161ffbb3115cfbe454250e86b113db972d109cb4fb70912/comwatt-0.12.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "77bf0e70deb68f9ca7231fe2b60337221866be806610b923cb80b899464710c8",
"md5": "4c9616a6d3ef7e3b17c5d7296a43d7a2",
"sha256": "8fa19c1e1a49f952e99a5c431e9388ac7fc66c5696f1e1b297c55626683d278d"
},
"downloads": -1,
"filename": "comwatt-0.12.0.tar.gz",
"has_sig": false,
"md5_digest": "4c9616a6d3ef7e3b17c5d7296a43d7a2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4166,
"upload_time": "2024-06-26T11:19:35",
"upload_time_iso_8601": "2024-06-26T11:19:35.558631Z",
"url": "https://files.pythonhosted.org/packages/77/bf/0e70deb68f9ca7231fe2b60337221866be806610b923cb80b899464710c8/comwatt-0.12.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-26 11:19:35",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "51CGO",
"github_project": "comwatt",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "comwatt"
}