Skip to main content
Pre-release

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.disconnected
  • mycroft.internet.connected / mycroft.internet.disconnected
  • enclosure.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 to ovos.PHAL.internet_check.

Related projects

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

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

File details

Details for the file ovos_phal_plugin_connectivity_events-0.1.6a2.tar.gz.

File metadata

File hashes

Hashes for ovos_phal_plugin_connectivity_events-0.1.6a2.tar.gz
Algorithm Hash digest
SHA256 8f03025fa165cd68af880aff28514242647873088f9b2116b8e55f41b37a79c0
MD5 dfa6272dd9702c61b81862d7be9bf41a
BLAKE2b-256 5093b170ddbcd35aaa27807d7c225fd24cb8dcb188de793e19c30e80dc207cca

See more details on using hashes here.

File details

Details for the file ovos_phal_plugin_connectivity_events-0.1.6a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_phal_plugin_connectivity_events-0.1.6a2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7bededfe84e1901913c845b9d81431bbbcd0ef0c7d273b7d305b4e7172e72d2
MD5 1b435e085aeb8ab072968255dda88351
BLAKE2b-256 b246b158511765985860ea15f904ba877347623178cd69b963395944504913c6

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