Skip to main content
Pre-release

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

ovos-phal-plugin-browser

An OpenVoiceOS PHAL plugin whose hardware is a browser tab: volume, location, power, connectivity, sensors and the camera, answered on the bus exactly as the device plugins answer them, with the actual work done by the web page OVOS runs in.

It was made for Emkay, OpenVoiceOS in the browser (Pyodide), and is what Emkay uses. Any host that runs OVOS in a page can use it the same way.

What it answers

Bus messages Behaves like The page does
mycroft.volume.get/set/increase/decrease/mute/unmute/mute.toggle ovos-PHAL-plugin-alsa: percent 0..1, {percent, muted} answers and change reports, level kept in the plugin's settings sets the gain of the one audio node everything plays through
ovos.ipgeo.update ovos-phal-plugin-ipgeo: fills the assistant config layer (below the user layer, so a location the user set always wins) asks the browser's geolocation (the user is asked first); OVOS' get_reverse_geolocation turns it into city, country and time zone. Until then, the browser's time zone
system.reboot, system.shutdown, system.mycroft.service.restart, system.factory.reset, system.configure.language, system.ssh.* ovos-PHAL-plugin-system reloads the page, blanks the screen until tapped, wipes the saved data; ssh is reported as not available
ovos.PHAL.internet_check ovos-PHAL-plugin-connectivity-events reports navigator.onLine and its changes
ovos.phal.camera.ping/open/close/get ovos-PHAL-plugin-camera: b64_frame JPEG answers opens the browser camera (the user is asked first) and takes a picture
ovos.kiosk.fullscreen/keep_awake/install/status ovos-skill-kiosk's contract: answered on <type>.response (and <type>.done after a tap) full screen, keeps the screen on (wake lock), offers "install as an app"; the first and last need a tap, so it shows a button and answers needs_tap
ovos.local_only, ovos.local_only.status ovos-skill-guardian's contract: {enabled, stt, tts} on <type>.response, ovos.local_only.changed when it switches STT and TTS move into the page (whisper-browser, piper-browser), the network is refused but for the app's own site and model downloads, a shield shows on the screen. Kept in the user mycroft.conf (local_only)
ovos.phal.sensor, ovos.phal.binary_sensor (emitted) ovos-PHAL-sensors sends what the browser knows: battery, network, screen on and orientation, moving or still, how the phone lies, compass, storage, memory and CPU cores

How a host uses it

The plugin talks to the page through one callable, given when it is made:

from ovos_phal_plugin_browser import BrowserPHAL

plugin = BrowserPHAL(bus=bus, config=config, post=send_to_page,
                     reload_speech=reload_stt_and_tts)

post(change: dict) gets what the page should do: {"volume": 0.6, "muted": false}, or {"request": "location" | "camera_check" | "camera_open" | "camera_close" | "picture" | "reload" | "off" | "forget_welcome"}, {"request": "kiosk", "message": {type, data}} (the page answers on the bus) or {"request": "local_only", "enabled": bool} (show or hide the shield). reload_speech() is called after local only changed the STT/TTS modules. The page answers through the plugin's methods: on_position(lat, lon, error), on_picture(id, jpeg_b64, error) and on_page_event(event, data) for "online", "sensor", "camera" and "picture".

Emkay's page side is web/device.js, and the wiring is in worker_main.py.

On an ordinary device, with real hardware, use the device plugins instead. The kiosk and local only messages are hardware-neutral: a PHAL plugin for other hardware can answer the same ones, and the skills work there too.

Config

PHAL.ovos-phal-plugin-browser in mycroft.conf; nothing needs setting. The volume is kept in ~/.config/OpenVoiceOS/ovos-phal-plugin-browser.json.

License

Apache-2.0

Metadata

Release files for ovos-phal-plugin-browser 0.1.0a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-phal-plugin-browser 0.1.0a3
File Size Uploaded Provenance Actions
ovos_phal_plugin_browser-0.1.0a3.tar.gz 18.5 kB With provenance Details for ovos_phal_plugin_browser-0.1.0a3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ovos-phal-plugin-browser 0.1.0a3
File Interpreter ABI Platform Actions
ovos_phal_plugin_browser-0.1.0a3-py3-none-any.whl Python 3 none any Details for ovos_phal_plugin_browser-0.1.0a3-py3-none-any.whl

Total release size: 38.1 kB

Release files / ovos_phal_plugin_browser-0.1.0a3.tar.gz

Download URL ovos_phal_plugin_browser-0.1.0a3.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2e93781471f4eedea614ae123cdb6be5bfb394017d6c6acfc41ee195fa1cb9db
BLAKE2b-256 checksum
How to use checksums
0cdaade5fc96cf54d90f27ef889b4a538133cffe9f8599ce11add89d62a5fcea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / ovos_phal_plugin_browser-0.1.0a3-py3-none-any.whl

Download URL ovos_phal_plugin_browser-0.1.0a3-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8daa8761f13523ccf54e75df4d844441bfdf24db56c39035288880d81f3d45e
BLAKE2b-256 checksum
How to use checksums
ff9e0a25d7c2f90c016d86abda589aae22a88142f356c82343157a167bbcf39c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for ovos-phal-plugin-browser 0.1.0a3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ovos_phal_plugin_browser-0.1.0a3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page