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
File details
Details for the file ovos-PHAL-plugin-system-0.0.5a4.tar.gz
.
File metadata
- Download URL: ovos-PHAL-plugin-system-0.0.5a4.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6230652c7cbb24bd24438bdc49d6b9a2a838e13c6400bc3a37fca8d75bdddf5a |
|
MD5 | 85fc7830525e0c1c3d7c8f5cf92063dd |
|
BLAKE2b-256 | 12844ed918cb71a80af4e061f881385aaf163a25d68562579a36ca96398205ef |
File details
Details for the file ovos_PHAL_plugin_system-0.0.5a4-py3-none-any.whl
.
File metadata
- Download URL: ovos_PHAL_plugin_system-0.0.5a4-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6443bccafc36e660865a3251ec37912138322acf777194bc247a4a1c95d2dfdb |
|
MD5 | 851e6302551faaa05d03e7f720c8dfa5 |
|
BLAKE2b-256 | c0fdbeea6ba388cd3741da24728d50d23dd22c6f3fa489ed6fa9f31866e37434 |