Skip to main content
Pre-release

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

PHAL plugin - Network Manager

This plugin provides the network manager interface for OpenVoiceOS. It uses nmcli for all communication with NetworkManager. The D-Bus interface is a work in progress (#15).

Requires

This plugin needs nmcli.

Install

pip install ovos-PHAL-plugin-network-manager

Config

This plugin is an admin plugin. It needs to run as root and to be enabled in mycroft.conf.

{
"PHAL": {
    "admin": {
        "ovos-PHAL-plugin-network-manager": {"enabled": true}
    }
}
}

If you omit this config, the plugin runs as the regular user. In that case, set the polkit policy to allow nmcli without sudo.

Event Details

Scanning

This plugin scans for nearby networks. Use the following event to start a scan.

# Scanning:
# ovos.phal.nm.scan
# - type: Request
# - description: Allows client to request for a network scan
#
# ovos.phal.nm.scan.complete
# - type: Response
# - description: Emited when the requested scan is completed
# with a network list
Connecting

This plugin connects to and disconnects from networks. Use the following events to manage a connection.

# Connecting:
# ovos.phal.nm.connect
# - type: Request
# - description: Allows clients to connect to a given network
#
# ovos.phal.nm.connection.successful
# - type: Response
# - description: Emitted when a connection is successfully established
#
# ovos.phal.nm.connection.failure
# - type: Response
# - description: Emitted when a connection fails to establish
#
# Disconnecting:
# ovos.phal.nm.disconnect
# - type: Request
# - description: Allows clients to disconnect from a network
#
# ovos.phal.nm.disconnection.successful
# - type: Response
# - description: Emitted when a connection successfully disconnects
#
# ovos.phal.nm.disconnection.failure
# - type: Response
# - description: Emitted when a connection fails to disconnect
Forget Networks

This plugin also forgets networks that a client already connected to. Use the following events to forget a network.

# Forgetting:
# ovos.phal.nm.forget
# - type: Request
# - description: Allows a client to forget a network
#
# ovos.phal.nm.forget.successful
# - type: Response
# - description: Emitted when a connection successfully is forgetten
#
# ovos.phal.nm.forget.failure
# - type: Response
# - description: Emitted when a connection fails to forget

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

ovos_phal_plugin_network_manager-1.3.7a2.tar.gz (8.8 kB view details)

Uploaded Source

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_network_manager-1.3.7a2.tar.gz.

File metadata

File hashes

Hashes for ovos_phal_plugin_network_manager-1.3.7a2.tar.gz
Algorithm Hash digest
SHA256 84611f5bce731e12eee48fa35ab1321e7af4216c4f5f8b7c2de0c8cf36e915a1
MD5 b5382b3bed6baf1aaf5138161b3eab56
BLAKE2b-256 cb127e8e50112e38a305da96dc0a877bc0a81ddbd924f6ebbd741cf00a97a124

See more details on using hashes here.

File details

Details for the file ovos_phal_plugin_network_manager-1.3.7a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_phal_plugin_network_manager-1.3.7a2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b9f72b1027bc5d8d55a10fb50863b63f6af42ba90bd0247d4b8dc6760ecc5c1
MD5 1ccbe8c773d4156cd8a53ba009db6f9f
BLAKE2b-256 b0055e3bdae44a5cf82ba891c061abb625048d80701213fc27e6ead2f9540010

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