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", "sensor_state", "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.

In the control panel the plugin has a page under Device for camera and default_volume, saved in PHAL.ovos-phal-plugin-browser (controlpanel.json).

Sensors that ask

The sensors whose readings the browser only gives after asking the user are off until turned on in PHAL.ovos-phal-plugin-browser.sensors (the same page has a switch for each):

Sensor Readings Asks
position position_location ("lat,lon", with latitude, longitude, gps_accuracy) yes
presence presence_user_active, presence_screen_locked (Idle Detection, Chrome) yes
mic_level microphone_level (dBFS, every 5 s) yes, for the microphone
motion acceleration_magnitude, rotation_magnitude, magnetic_field_magnitude on iOS (and there also for moving/still, position and compass)

Off means off: the page never touches a sensor that is off, so the browser never asks. Turned on, the browser asks on the device. A browser only asks after a tap, so a sensor turned on from somewhere else (another control panel, Home Assistant) waits, with a "Tap to allow" on the screen. Each sensor's state (on, waiting, denied, absent in this browser, off) is answered on ovos.browser-device.status. The page is asked with {"request": "sensors", "on": {sensor: bool}} at the start and whenever the setting changes, and reports sensor_state events back.

License

Apache-2.0

Metadata

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

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.0a6
File Size Uploaded Provenance Actions
ovos_phal_plugin_browser-0.1.0a6.tar.gz 29.6 kB With provenance Details for ovos_phal_plugin_browser-0.1.0a6.tar.gz

Built distribution (wheel)

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

Total release size: 63.7 kB

Release files / ovos_phal_plugin_browser-0.1.0a6.tar.gz

Download URL ovos_phal_plugin_browser-0.1.0a6.tar.gz
Size 29.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f2b78e7d5dd123fe5c640cbcf6bd4a2ce3f94adf33d655f5e144f6bf099788fa
BLAKE2b-256 checksum
How to use checksums
b15f080a0b3f248ed39dfe7999063984184f7c89f5ced0639196d3f78f6d5b7b
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 23, 2026.

Transparency log

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

Download URL ovos_phal_plugin_browser-0.1.0a6-py3-none-any.whl
Size 34.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5b704f891bb927a6ee54395878b337112a3b8f492281af091f98ddfef812f17
BLAKE2b-256 checksum
How to use checksums
2f76a396735ba9a4f418aece6de58de1b3b293dfd823b434898d1440da9c7066
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 23, 2026.

Transparency log

Security for ovos-phal-plugin-browser 0.1.0a6

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.0a6.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 23, 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