Skip to main content

Network Manager plugin for OpenVoiceOS hardware abstraction layer

Project description

PHAL plugin - Network Manager

Provides the network manager interface for NetworkManager based plugins. This plugin utilizes nmcli for all communications with network manager. The dbus interface for this plugin is a work in progress. #15

Requires

This plugin has the following requirements:

  • nmcli

It also provides a GUI interface to setup wifi on screen, in this case you also need:

Install

pip install ovos-PHAL-plugin-network-manager

Config

This plugin is a Admin plugin, it needs to run as root and to be explicitly enabled in mycroft.conf

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

if not enabled (omit config above) it will be run as the regular user, you need to ensure polkit policy is set to allow usage of nmcli without sudo

Event Details:

Scanning

This plugin provides scanning operations for Network Manager to scan for available nearby networks, the following event can be used to initialize the 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 provides handling of connection operations for Network Manager, the following events can be used to connect a network, disconnect a network using the network manager interface.

# 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

The plugin also provides a interface to forget already connected networks, The following events can be used 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

Project details


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.5a1.tar.gz (95.6 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.5a1.tar.gz.

File metadata

File hashes

Hashes for ovos_phal_plugin_network_manager-1.3.5a1.tar.gz
Algorithm Hash digest
SHA256 55dcdce4a9ad5892f5df4b469d208fbf58ee58c59eeb2a2491bf8d9b4e23486c
MD5 f339d0d06eafeb1e799034635a5578d1
BLAKE2b-256 52aa6de97e401e6082fe475b09b254c7d8151290108ffbcba2dcd8ccce2f9112

See more details on using hashes here.

File details

Details for the file ovos_phal_plugin_network_manager-1.3.5a1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_phal_plugin_network_manager-1.3.5a1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fdab717ca217429beb6a1a54e524ca65129c14b78a6f3759f8dfce08fe45a98
MD5 039f867b8cd7c3dae480f64c4804e044
BLAKE2b-256 de240af8126498af0fa42f4af98fd72ff0b70aea5dd8652f82a57a59a28626cf

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 Pingdom Monitoring Sentry Error logging StatusPage Status page