Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-busmon

A DevTools-style live log for the OpenVoiceOS messagebus. Every message streams into a dense, one-row-per-message log. Filter it with chips and click-to-filter, inspect a row, group the stream by session, inject messages, and export a capture.

The dense DevTools-style log

See the docs for a full walkthrough with screenshots. Start with the tutorials.

Debug your OVOS device from a URL

The monitor UI is a single static page. Host it on GitHub Pages, and anyone with a laptop that can reach an OVOS device connects to its messagebus at once. No install, no server: the page opens a WebSocket straight to ws://localhost:8181/core. Set the host and port in the connection panel or with the ?host=&port= query parameters.

The bus is noisy. Sensor polling, sync heartbeats, enclosure animation, and IPC traffic can drown the messages you care about, so the log mutes that noise by default. Click Show noise to bring it back.

Browser note: Chromium browsers allow a ws://localhost connection from an https:// page, because localhost is a trustworthy origin. Safari and some Firefox versions block it. If the connection is refused, click Save offline copy in the UI and open the saved file locally. It has the same functions and no restrictions.

Two transport modes, one UI

Mode 1: fully in-browser (zero server)

Open static/index.html directly, or deploy it to GitHub Pages. The page opens a WebSocket directly to the OVOS messagebus (ws://localhost:8181/core by default). Set the host, port, and path in the connection panel or with query parameters:

file:///path/to/static/index.html?host=192.168.1.10&port=8181&path=/core

This works whenever the browser can reach the bus, on the same machine as OVOS or on a LAN. No server is required.

Mode 2: service (ovos-busmon)

Install and run the FastAPI service. It connects server-side to the bus through ovos-bus-client and serves:

Endpoint Description
GET / The same static UI (auto-detected transport: SSE instead of WS)
GET /api/status Service health, buffer stats, bus coordinates
GET /api/messages Ring buffer contents (?since_id=N&limit=M)
GET /api/stream SSE live tail
POST /api/send Inject a message onto the bus
POST /api/chat Send a text utterance as a real client would (chat panel)
GET /api/export JSONL download of the full capture buffer

The UI auto-detects the transport:

  • served from http:// or https://: SSE and REST (Mode 2)
  • opened as file:// or from a static host: direct WebSocket (Mode 1)

Installation

pip install ovos-busmon

Or from source:

git clone https://github.com/OpenVoiceOS/ovos-busmon
cd ovos-busmon
pip install -e .[dev]

Running the service

ovos-busmon
# Listens on http://127.0.0.1:8005 by default

Configuration

Set every option through environment variables, or through a .env file:

Variable Default Description
OVOS_BUS_HOST localhost OVOS messagebus host
OVOS_BUS_PORT 8181 OVOS messagebus port
BUSMON_HOST 127.0.0.1 Address to bind the HTTP service
BUSMON_PORT 8005 Port to bind the HTTP service
BUSMON_TOKEN (empty) Shared-secret token. When set, the API needs it
BUSMON_USERNAME (empty) HTTP Basic auth username
BUSMON_PASSWORD (empty) HTTP Basic auth password
BUFFER_SIZE 2000 Ring buffer capacity (messages)

Authentication is off until you set BUSMON_TOKEN, or BUSMON_USERNAME and BUSMON_PASSWORD. There are no default credentials.

Docker

docker compose up --build

The compose file binds the service to 127.0.0.1:8005 only (localhost). To reach an OVOS bus on the host machine, it sets OVOS_BUS_HOST=host.docker.internal automatically.

Message injection

The Inject panel is a power tool. It sends arbitrary messages onto the bus, which helps with development and testing. The service binds only to 127.0.0.1 by default. Do not expose it to untrusted networks.

Features

  • Live "now" line: the assistant state (Heard, Thinking, Speaking, or Didn't understand), inferred from the latest traffic
  • Dense, one-row-per-message log with a per-category color on the left edge (errors in red)
  • Firehose control: high-frequency plumbing (sensor polling, sync heartbeats, enclosure animation, mic and IPC chatter) is muted by default; click Show noise to reveal it
  • Consecutive rows of the same message type coalesce into one row with a ×N count
  • Category chips (all, heard, intents, skills, speech, errors) with live counts, plus click-to-filter on every type, session, source, and destination shown in a row
  • Click a row to expand its JSON inline, with Copy JSON. The log freezes while a row is open and resumes on collapse
  • Filter bar: type glob, full-text search, session, source, destination, and a newest/oldest order select, with removable active-filter tags and a Clear button
  • Group by session: group the stream into expandable per-interaction traces
  • Chat panel: chat with the assistant in text over one stable session id (multi-turn and converse work) while you watch the bus handle each turn
  • Pause and resume capture, plus auto-pause on filter match
  • Bounded client-side buffer (configurable, with a visible dropped-count)
  • A Tools menu for Export JSONL, Export JSON, Save offline copy, Clear buffer, pause-on-match, and buffer size
  • Message injection (type, JSON data, and optional JSON context), with presets, and Resend / Edit & send on any captured row
  • Session editor: build the OVOS Session (session_id, lang, site_id, system_unit, pipeline) that travels in context["session"], and attach it to injects and chat
  • Session-aware chat with a per-turn bus trace
  • Ring buffer with configurable capacity and since_id pagination
  • GitHub Pages deployable (Mode 1, no server needed)

Development

pip install -e .[dev]
pytest tests/ -v

Security

ovos-busmon is a local debugging tool. It can inject any message onto the bus, so an open bind beyond loopback is a remote-control hole.

Authentication is off by default and is meant for loopback use. There are no default credentials. To use the service beyond loopback, set BUSMON_TOKEN (recommended), or set BUSMON_USERNAME and BUSMON_PASSWORD. The service refuses to start on a non-loopback host when no authentication is set.

A token travels as ?token= on the URL or as an Authorization: Bearer header. The ?token= form lets the live UI carry the token on its SSE stream, which HTTP Basic cannot. HTTP Basic auth sends credentials in plaintext unless you add TLS. Keep the default 127.0.0.1 bind for local use, and do not expose the service to the public internet.

Related projects

License

MIT. See LICENSE.

Credits

Developed by TigreGotico for OpenVoiceOS.

Funded by NGI0 Commons Fund / NLnet under grant agreement No 101135429, through the European Commission's Next Generation Internet programme.

Download files

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

Source Distribution

ovos_busmon-0.1.1a8.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

ovos_busmon-0.1.1a8-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file ovos_busmon-0.1.1a8.tar.gz.

File metadata

  • Download URL: ovos_busmon-0.1.1a8.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ovos_busmon-0.1.1a8.tar.gz
Algorithm Hash digest
SHA256 16cefee6c0c23befc7fb318af387559638b4f8523578f0f226623f9834e469f9
MD5 3c24676408538279b16a9d08471a1417
BLAKE2b-256 1d0993ce583453422127ed64e31c26d3295d422cb14087f79b31bc3effdfa7f8

See more details on using hashes here.

File details

Details for the file ovos_busmon-0.1.1a8-py3-none-any.whl.

File metadata

  • Download URL: ovos_busmon-0.1.1a8-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ovos_busmon-0.1.1a8-py3-none-any.whl
Algorithm Hash digest
SHA256 7a86079dac1527beb843bac4f72bd47d92510c32953569891c9fe71ff094dee2
MD5 16fce3a323b093d2b3acaf2b0140c994
BLAKE2b-256 3a0bebaa5ba60b7037f2add3e10a5feca1f147462e44e01cc7e68441ab50d698

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 Sentry Error logging StatusPage Status page