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

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

Built Distribution

File details

Details for the file ovos-PHAL-plugin-network-manager-1.1.1a3.tar.gz.

File metadata

File hashes

Hashes for ovos-PHAL-plugin-network-manager-1.1.1a3.tar.gz
Algorithm Hash digest
SHA256 c17c14e74906c7a3bc7281a7c7600d82ca3beda81b5129cbf1474b9012045224
MD5 3f851944cd434c2911c2b970e2a985ff
BLAKE2b-256 6d5fd42c32caccd6122d23b0cc14c497ea827ec986aeeb9d8c718d6e36614576

See more details on using hashes here.

File details

Details for the file ovos_PHAL_plugin_network_manager-1.1.1a3-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_PHAL_plugin_network_manager-1.1.1a3-py3-none-any.whl
Algorithm Hash digest
SHA256 a51fb7ba6ba321c376b9528e698cb012ebcc610aaed1ac51d8cf6571cf0e7e01
MD5 7938b4428068aa9300aba2c316ffdf20
BLAKE2b-256 e8de3cf3193875e491a3bd874a0a39cb35f48a99d9de7c678dde172ab7eafabf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page