xAAL devices Monitor Lib
Project description
This package is a library for monitoring the xAAL devices on the network. It provides a easy way to get the list of devices and their status (attributes, description, metadata, etc…). It also provides a simple way to subscribe to events.
This package is used by a lot of xAAL programs like: The dashboard, the REST API, the Home Assistant plugin…
Usage
from xaal.monitor import Monitor
from xaal.schemas import devices
from xaal.lib import Engine
def on_event(ev_type, device):
print("Event type: %s from device %s" % (ev_type, device))
dev = devices.hmi()
eng = Engine()
eng.add_device(dev)
mon = Monitor(dev)
mon.subscribe(on_event)
eng.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xaal_monitor-0.3.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for xaal.monitor-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b81449d2a64b59348db6b41c4f8279dfca11f0f4cef5ac6a31a9d7a9a971d58 |
|
MD5 | dc6b7f9335750121897b1fa7ae12a74b |
|
BLAKE2b-256 | 5ce73a970317d9010e6acecf69b10a9555ab0955277735cd91bc5401d5341b2e |