Skip to main content

Python library for communication with Atrea ventilation units

Project description

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","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))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyatrea, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size pyatrea-0.5-py3-none-any.whl (5.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyatrea-0.5.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page