5. The control panel

The idea

Emkay doesn't have its own settings app. It uses OpenVoiceOS' own control panel – the same one any OVOS device has – set up for Emkay through configuration. Two good things come of that: Emkay users learn the real OVOS, and everything made for the panel (pages, descriptions, translations) helps every OVOS, not only Emkay.

Emkay is the panel's test of being a distribution: can a distribution give the panel its own look, its own store and its own setup guide, and hide what doesn't apply – without changing the panel's code? One rule follows:

Nothing in the control panel may be Emkay-specific. It is plain OVOS, set up for Emkay (or anything else) through configuration.

Where to find it

What it does

The panel's menu is grouped, with the everyday things on top and the rest folded away:

Group For example
Everyday Voice (wake word, STT, TTS), language and location, Skills, the exercise coach, the house, My devices
Library, Music documents, books, podcasts, local music
Advanced the pipeline, plugins one by one, the message bus, logs, backups

Every skill and plugin is on one Skills page, each with its settings.

How Emkay sets it up

All in mycroft.conf, the way any distribution would (see boot.py):

{"webui": {
   "branding": {"name": "Emkay", "logo": "…", "colors_dark": {"…": "…"}},
   "release_channel": "alpha",
   "pypi_index": "https://store.emkay.ai/simple/"}}

The code

The panel can have an access token. Emkay keeps the panel's normal flow: you set one yourself, and from then on Emkay's own settings ask for it too (see chapter 4).

Pages from skills and plugins

A skill or plugin can bring its own page to the panel. There are two ways, and the design handbook says which to use (control panel):

Use it when What it is
settingsmeta.json the skill just has a few settings a form, shown on the Skills page
controlpanel.json the skill benefits from its own page a page described as data: texts, status, lists, actions, forms – the panel draws it

A controlpanel.json page talks to its skill over the bus. A shortened example from the exercise coach:

{
 "controlpanel": 1,
 "id": "exercise-coach",
 "title": "coach.title",
 "group": "everyday",
 "icon": "controlpanel.svg",
 "bus": "ovos.exercise_coach.",
 "blocks": [
  {"type": "text", "text": "coach.intro"},
  {"type": "status", "query": "ovos.exercise_coach.stats", "rows": [
     {"label": "coach.week.count", "value": "{week_count}"}]},
  {"type": "list", "query": "ovos.exercise_coach.routines",
   "actions": [{"label": "coach.start", "send": "ovos.exercise_coach.start"}]},
  {"type": "form", "save": {"settings": true}, "fields": [
     {"name": "level", "type": "select", "default": "normal"}]}
 ]
}

The words (coach.title …) are keys, translated in locale/<lang>/controlpanel.json. Because the page is data, not HTML, another control panel – say, one in Home Assistant – could draw it too.

Rules worth knowing:

Pages emkay-voice brings

The exercise coach, dance and music teachers, The house (peers), Home (the home and its brands), My devices (sync), the calendar, the network policy, the browser device (sensors, camera), MIDI and more. Each is described with its skill or plugin in chapters 11 and 12.