Skip to main content

ovos-ui-enclosure-protocol

The consumer/listener home of the legacy Mark-1 hardware enclosure protocol for OpenVoiceOS.

The enclosure.* bus messages control the Mark-1 hardware enclosure: the LED eyes, the mouth/faceplate display, and the system LEDs. This package provides EnclosureProtocolListener, a consumer mix-in that a hardware enclosure plugin inherits to wire the enclosure.* subscriptions to overridable no-op handlers. ovos-PHAL-plugin-mk1 is the reference listener implementation.

The producer side — EnclosureAPI, the skill-facing helper that emits enclosure.* — lives in ovos-gui-api-client alongside GUIInterface, so self.gui and self.enclosure come from the same client.

The enclosure protocol is no longer a core abstraction: PHALPlugin in ovos-plugin-manager no longer bakes in the enclosure.* handlers, and modern visual output is done through GUIInterface (OVOS-GUI-1). This package exists so hardware enclosure plugins keep a stable, dependency-light home for the listener side of the protocol. It does not reimplement GUI templates.

Install

pip install ovos-ui-enclosure-protocol

Implementing a listener

from ovos_ui_enclosure_protocol import EnclosureProtocolListener

class MyEnclosure(EnclosureProtocolListener):
    def __init__(self, bus):
        self.bus = bus
        self.register_enclosure_namespace()

    def on_eyes_color(self, message=None):
        ...  # drive the hardware

    def shutdown(self):
        self.shutdown_enclosure_namespace()

Every handler defaults to a no-op, so a plugin only overrides the commands its hardware supports. ovos-PHAL-plugin-mk1 is the reference listener implementation.

Documentation

License

Apache-2.0

Download files

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

Source Distribution

ovos_ui_enclosure_protocol-0.0.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

ovos_ui_enclosure_protocol-0.0.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file ovos_ui_enclosure_protocol-0.0.1.tar.gz.

File metadata

File hashes

Hashes for ovos_ui_enclosure_protocol-0.0.1.tar.gz
Algorithm Hash digest
SHA256 84b0e00abc35fba4a14b317cb210caf5c6af335930df45f5b0658130dbf50647
MD5 22c253ff270018fa5f6186570c4a933a
BLAKE2b-256 acc444b68228a1fc5168eb323e6c84071ea23f2d7b54b7fab6c8333791adc67a

See more details on using hashes here.

File details

Details for the file ovos_ui_enclosure_protocol-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_ui_enclosure_protocol-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82a9353108d9a6e96dfd44d1c3e0110232b6c6f86dcd23d1ae500fe84dbfc4df
MD5 2ab1f7b189f091167ba2c2ed48b82157
BLAKE2b-256 86a7d0c311bac6d63426bf3d5ff95e56c15cbe8b3787588ee6e9a4b4766ea2ef

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Supported by

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