Legacy Mark-1 hardware enclosure protocol listener for OpenVoiceOS
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ovos_ui_enclosure_protocol-0.0.1.tar.gz.
File metadata
- Download URL: ovos_ui_enclosure_protocol-0.0.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84b0e00abc35fba4a14b317cb210caf5c6af335930df45f5b0658130dbf50647
|
|
| MD5 |
22c253ff270018fa5f6186570c4a933a
|
|
| BLAKE2b-256 |
acc444b68228a1fc5168eb323e6c84071ea23f2d7b54b7fab6c8333791adc67a
|
File details
Details for the file ovos_ui_enclosure_protocol-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ovos_ui_enclosure_protocol-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82a9353108d9a6e96dfd44d1c3e0110232b6c6f86dcd23d1ae500fe84dbfc4df
|
|
| MD5 |
2ab1f7b189f091167ba2c2ed48b82157
|
|
| BLAKE2b-256 |
86a7d0c311bac6d63426bf3d5ff95e56c15cbe8b3787588ee6e9a4b4766ea2ef
|