Skip to main content

A Systemair-savecair API Wrapper

Project description

python-systemair-savecair

This is a simple package that expose the savecair API as a python module.

Installation

pip install python-systemair-savecair

Example

from systemair.savecair.client import SavecairClient
import asyncio
if __name__ == "__main__":

    async def on_connect():
        pass

    async def on_disconnect():
        pass

    async def on_update():
        pass

    async def on_error():
        pass

    async def start(loop=asyncio.get_event_loop()):
        x = SavecairClient(iam_id="xxxxx", password="xxxxx", loop=loop)
        x.on_connect.append(on_connect)
        x.on_disconnect.append(on_disconnect)
        x.on_update.append(on_update)
        x.on_error.append(on_error)

        x.start()

    loop = asyncio.get_event_loop()
    loop.run_until_complete(start(loop))
    loop.run_forever()

Version History

1.0.0 - Initial Version

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 python-systemair-savecair, version 2.0.1
Filename, size File type Python version Upload date Hashes
Filename, size python_systemair_savecair-2.0.1-py3-none-any.whl (9.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size python-systemair-savecair-2.0.1.tar.gz (7.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