Skip to main content

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


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.4.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xaal.monitor-0.4-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file xaal_monitor-0.4.tar.gz.

File metadata

  • Download URL: xaal_monitor-0.4.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for xaal_monitor-0.4.tar.gz
Algorithm Hash digest
SHA256 292d856db28902991b4ae354b7950b0381dc347ab76c73c4eeb6bd23b309b12e
MD5 19cca5acec858ef3aa668742b9ed280e
BLAKE2b-256 d78415ade77cb09c61bf93449ab1c8b1d81802d6845fa8b1a02b1fdbcbce4308

See more details on using hashes here.

File details

Details for the file xaal.monitor-0.4-py3-none-any.whl.

File metadata

  • Download URL: xaal.monitor-0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for xaal.monitor-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 42c3905b1d8561b809db938fd49f44b03dfa79bc19917dbb4a922df1aaa55c6c
MD5 c573790f8836c1a1020dba5913e1dad2
BLAKE2b-256 43746db2f37f66746413b07346d0915a5b8fc1e028e84ec74d47519fe684e78d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page