Skip to main content

A plugin for OpenVoiceOS hardware abstraction layer

Project description

ovos-PHAL-plugin - system

Provides system specific commands to OVOS. The dbus interface for this plugin is not yet established.

Install

pip install ovos-PHAL-plugin-system

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-system": {"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 systemctl without sudo. Not yet implemented

handle bus events to interact with the OS

self.bus.on("system.ntp.sync", self.handle_ntp_sync_request)
self.bus.on("system.ssh.status", self.handle_ssh_status)
self.bus.on("system.ssh.enable", self.handle_ssh_enable_request)
self.bus.on("system.ssh.disable", self.handle_ssh_disable_request)
self.bus.on("system.reboot", self.handle_reboot_request)
self.bus.on("system.shutdown", self.handle_shutdown_request)
self.bus.on("system.factory.reset", self.handle_factory_reset_request)
self.bus.on("system.factory.reset.register", self.handle_reset_register)
self.bus.on("system.configure.language", self.handle_configure_language_request)
self.bus.on("system.mycroft.service.restart", self.handle_mycroft_restart_request)

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_system-1.3.7a2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

ovos_phal_plugin_system-1.3.7a2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file ovos_phal_plugin_system-1.3.7a2.tar.gz.

File metadata

File hashes

Hashes for ovos_phal_plugin_system-1.3.7a2.tar.gz
Algorithm Hash digest
SHA256 0ce52926b84cc2d96084e2bd91353d391a5773b8c0b94e002c2ab1d7b61d77fc
MD5 5784394af80eadab1ab92acba94ecea6
BLAKE2b-256 c4fd3f434082ce212a1cf6d9eb1487bdfbaba2be6ca0f55b492ca3fbedea1365

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ovos_phal_plugin_system-1.3.7a2-py3-none-any.whl
Algorithm Hash digest
SHA256 cce8d9d3a5b9bb3b54dd30e48ad3ddbafc50a0bf0ff22eb16bdf98ec112b27de
MD5 9c31e0139d92c3f18926d8a7b6afeda4
BLAKE2b-256 60559ddf368c22494e178ae1eedf4486c8f451510c7453adff81a77cdb852908

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