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
docs/index.md— overview, install, listener guide.docs/enclosure-protocol.md— the fullenclosure.*message contract with producers and listeners.
License
Apache-2.0
Metadata
Release files for ovos-ui-enclosure-protocol 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos_ui_enclosure_protocol-0.0.1.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_ui_enclosure_protocol-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / ovos_ui_enclosure_protocol-0.0.1.tar.gz
| Download URL | ovos_ui_enclosure_protocol-0.0.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84b0e00abc35fba4a14b317cb210caf5c6af335930df45f5b0658130dbf50647
|
|
BLAKE2b-256 checksum How to use checksums |
acc444b68228a1fc5168eb323e6c84071ea23f2d7b54b7fab6c8333791adc67a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / ovos_ui_enclosure_protocol-0.0.1-py3-none-any.whl
| Download URL | ovos_ui_enclosure_protocol-0.0.1-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82a9353108d9a6e96dfd44d1c3e0110232b6c6f86dcd23d1ae500fe84dbfc4df
|
|
BLAKE2b-256 checksum How to use checksums |
86a7d0c311bac6d63426bf3d5ff95e56c15cbe8b3787588ee6e9a4b4766ea2ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|