# PyAtrea
Python library for communication with Atrea ventilation units
## Install:
```
python3 -m pip install pyatrea
```
## Usage examples:
### Initiate library:
```
from pyatrea import pyatrea
atrea = pyatrea.Atrea("192.168.0.2",80,"passwordOnAtreaWebsite")
```
### Get status of your unit with human readable identifications (if available):
```
status = atrea.getStatus()
if(status == False):
exit("Authentication failed")
for id, value in status.items():
print(atrea.getTranslation(id) + ":" + value)
```
### Get human readable warnings and errors:
```
status = atrea.getStatus()
params = atrea.getParams()
for warning in params['warning']:
if status[warning] == "1":
print(atrea.getTranslation(warning))
for alert in params['alert']:
if status[alert] == "1":
print(atrea.getTranslation(alert))
```
Raw data
{
"_id": null,
"home_page": "https://github.com/JurajNyiri/pyatrea",
"name": "pyatrea",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Juraj Ny\u00edri",
"author_email": "juraj.nyiri@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/94/3c/04185dca4bf720e8eaf275b828824ae4910f3ad58a874858e6327e796c81/pyatrea-0.9.9.tar.gz",
"platform": null,
"description": "# PyAtrea\nPython library for communication with Atrea ventilation units\n\n## Install:\n\n```\npython3 -m pip install pyatrea\n```\n\n## Usage examples:\n\n### Initiate library:\n```\nfrom pyatrea import pyatrea\n\natrea = pyatrea.Atrea(\"192.168.0.2\",80,\"passwordOnAtreaWebsite\")\n```\n\n### Get status of your unit with human readable identifications (if available):\n```\nstatus = atrea.getStatus()\nif(status == False):\n exit(\"Authentication failed\")\n\nfor id, value in status.items():\n print(atrea.getTranslation(id) + \":\" + value)\n```\n\n### Get human readable warnings and errors:\n```\nstatus = atrea.getStatus()\nparams = atrea.getParams()\n\nfor warning in params['warning']:\n if status[warning] == \"1\":\n print(atrea.getTranslation(warning))\nfor alert in params['alert']:\n if status[alert] == \"1\":\n print(atrea.getTranslation(alert))\n```\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Python library for communication with Atrea ventilation units",
"version": "0.9.9",
"project_urls": {
"Homepage": "https://github.com/JurajNyiri/pyatrea"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dccac6197a0f2db568dd67be26f0fafeaea39bf6b554cc125eecbee6be9a040e",
"md5": "9e2b3fd5df07e8fe533307ebcdb66a3c",
"sha256": "77d821112885002716c2b3d1ec894d9717b9556bebb7187a9d842214b4bcb1ee"
},
"downloads": -1,
"filename": "pyatrea-0.9.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9e2b3fd5df07e8fe533307ebcdb66a3c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 6862,
"upload_time": "2024-07-02T21:28:19",
"upload_time_iso_8601": "2024-07-02T21:28:19.586016Z",
"url": "https://files.pythonhosted.org/packages/dc/ca/c6197a0f2db568dd67be26f0fafeaea39bf6b554cc125eecbee6be9a040e/pyatrea-0.9.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "943c04185dca4bf720e8eaf275b828824ae4910f3ad58a874858e6327e796c81",
"md5": "e63aab624736876ede91ca9409e35979",
"sha256": "b6048783353c5bacd3e0f9f02ff3bb8986f3df4a09273a794d9ac755c6972b4f"
},
"downloads": -1,
"filename": "pyatrea-0.9.9.tar.gz",
"has_sig": false,
"md5_digest": "e63aab624736876ede91ca9409e35979",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6617,
"upload_time": "2024-07-02T21:28:21",
"upload_time_iso_8601": "2024-07-02T21:28:21.209090Z",
"url": "https://files.pythonhosted.org/packages/94/3c/04185dca4bf720e8eaf275b828824ae4910f3ad58a874858e6327e796c81/pyatrea-0.9.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-02 21:28:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "JurajNyiri",
"github_project": "pyatrea",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pyatrea"
}