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-0.0.5a2.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

ovos_PHAL_plugin_system-0.0.5a2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file ovos-PHAL-plugin-system-0.0.5a2.tar.gz.

File metadata

File hashes

Hashes for ovos-PHAL-plugin-system-0.0.5a2.tar.gz
Algorithm Hash digest
SHA256 3005faa2011aa69581b6cbac4c38b9c4d928964ef6585dde3b56695eafa22af2
MD5 bd865454fe078a005fecb2e96bb12ee9
BLAKE2b-256 2d66c9ef74fb45ba1dcf27399e45082296a06e223538c661d84bf46ed6f0a49c

See more details on using hashes here.

File details

Details for the file ovos_PHAL_plugin_system-0.0.5a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_PHAL_plugin_system-0.0.5a2-py3-none-any.whl
Algorithm Hash digest
SHA256 17832bab6ec743ebb2829d78a14b3beb41e8c80faa90fefa548b17887953b1cc
MD5 94b78e86adeb02b240d8bd9740022f43
BLAKE2b-256 6942900cf89dc30ec57c37488e283830a8ac0a016c99576ed172c14d3bd4035f

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