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))
Execute a one-shot register command:
This is intended for write-only registers which are not exposed in the unit's parameter metadata. Register meanings remain the responsibility of the caller.
atrea.executeOneShotCommand(register_id, value)
Metadata
Release files for pyatrea 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyatrea-0.10.0.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyatrea-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / pyatrea-0.10.0.tar.gz
| Download URL | pyatrea-0.10.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcc16ae9420ee5e9d6f2bbc186fd044b2b7520fbaf8c2a6a847588a00f78a343
|
|
BLAKE2b-256 checksum How to use checksums |
b1aa231fdb8e3bd680a8a9e358035e091fa37461713e88e0fb2f773e6c77f32c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / pyatrea-0.10.0-py3-none-any.whl
| Download URL | pyatrea-0.10.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0cfcc5d781a3d3c0f41bcb0086a92faa802536610b0b493db68f587689053003
|
|
BLAKE2b-256 checksum How to use checksums |
520d2bd276bc6d9cda468f17ad848f39b5d2b8c6fc82a49198f86d6536f7ab5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|