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-1.0.1.tar.gz
.
File metadata
- Download URL: ovos-PHAL-plugin-system-1.0.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8e2cfb99ca756ba3c1b2c2f2dbe27623a05d8117561fd2fbc69574613e15bf3 |
|
MD5 | 348dae45040e73795fae4b768b8a037a |
|
BLAKE2b-256 | e6a5fc6e21016b22456750abb8682b46c0b4cde0f9847294bf1ffc7b8ceac335 |
File details
Details for the file ovos_PHAL_plugin_system-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: ovos_PHAL_plugin_system-1.0.1-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbb903158711b6db520d49aff9234da42a923fdfaebe51d55c4df7540e6b72ca |
|
MD5 | 67234e2d1e5d1f55b28ab7a1a70047f0 |
|
BLAKE2b-256 | 0ad816af946b1577417cc87e3c5a4c42a97a7713b52bfd77e12db0628ef1772b |