This release is a pre-release and may not be stable for production use.
ovos-PHAL-plugin-connectivity-events
This is a PHAL plugin for OVOS. It watches network and internet connectivity and publishes the result on the messagebus, so skills, the GUI, and the enclosure can react to going online or offline without probing the network themselves.
How it works
The plugin polls connectivity on an interval and tracks a connectivity state (UNKNOWN, NONE, PORTAL, LIMITED, FULL), modeled on NetworkManager's connectivity states. A check first tests DNS, then HTTP:
- No DNS reachable ->
NONE - DNS reachable but no HTTP ->
LIMITED - Both reachable ->
FULL
When the state changes, the plugin emits messagebus events:
mycroft.network.connected/mycroft.network.disconnectedmycroft.internet.connected/mycroft.internet.disconnectedenclosure.notify.no_internet
It also emits level snapshots on every check, mycroft.network.state and mycroft.internet.state, each with a {"state": "connected"|"disconnected"} payload.
Send ovos.PHAL.internet_check on the bus to trigger a check on demand. The plugin responds with {"internet_connected": bool, "network_connected": bool}.
Install
pip install ovos-PHAL-plugin-connectivity-events
Configuration
The plugin reads its settings from the PHAL configuration section:
{
"check_interval": 60,
"disable_scheduled_checks": false
}
check_interval: seconds between automatic checks. Default: 60.disable_scheduled_checks: if true, the plugin does not poll on a timer. It still responds toovos.PHAL.internet_check.
Related projects
- OpenVoiceOS/ovos-PHAL: the PHAL service that loads this plugin.
- OpenVoiceOS/ovos-plugin-manager: provides plugin discovery and the
PHALPluginbase class. - OpenVoiceOS/ovos-bus-client: the messagebus client used to emit and receive events.
License
Apache-2.0
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_phal_plugin_connectivity_events-0.1.6a2.tar.gz.
File metadata
- Download URL: ovos_phal_plugin_connectivity_events-0.1.6a2.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f03025fa165cd68af880aff28514242647873088f9b2116b8e55f41b37a79c0
|
|
| MD5 |
dfa6272dd9702c61b81862d7be9bf41a
|
|
| BLAKE2b-256 |
5093b170ddbcd35aaa27807d7c225fd24cb8dcb188de793e19c30e80dc207cca
|
File details
Details for the file ovos_phal_plugin_connectivity_events-0.1.6a2-py3-none-any.whl.
File metadata
- Download URL: ovos_phal_plugin_connectivity_events-0.1.6a2-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7bededfe84e1901913c845b9d81431bbbcd0ef0c7d273b7d305b4e7172e72d2
|
|
| MD5 |
1b435e085aeb8ab072968255dda88351
|
|
| BLAKE2b-256 |
b246b158511765985860ea15f904ba877347623178cd69b963395944504913c6
|