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
Release history Release notifications | RSS feed
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
Close
Hashes for ovos-PHAL-plugin-system-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad1ece2efd43cd0817384ce993b4f2ea15bc55a8adcb60cc651a9b285b27e71d |
|
MD5 | 4089887a2993d4c5adc90d8cc3ce67c7 |
|
BLAKE2b-256 | e920b52a9a7ccc5bd484dafb4111f8208b0802a1870a4ef700c811e9c0af94df |
Close
Hashes for ovos_PHAL_plugin_system-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d160f6ae357e994fcb2fdea591e53a2b58e50b01676571a1a41c66f41e2aca6d |
|
MD5 | 28193472e781e28b7d382e3872686bcb |
|
BLAKE2b-256 | 96436038c932dd369c8b4171f0acce49469a614f37ac30a1c407ad36eec4345f |