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

Uploaded Source

Built Distribution

ovos_PHAL_plugin_system-1.0.0a1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file ovos-PHAL-plugin-system-1.0.0a1.tar.gz.

File metadata

File hashes

Hashes for ovos-PHAL-plugin-system-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 ba671ff244b656f4705cc1a598a75c1b14f30a33706f04baf37d04c74ca026f4
MD5 8f7107186dd75a996a4391cb03c054e4
BLAKE2b-256 c32505dbf99c6fee84a72ebb0a478d806e1c482e4fe27183be8521d4d788ed19

See more details on using hashes here.

File details

Details for the file ovos_PHAL_plugin_system-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_PHAL_plugin_system-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 96edc69b88f30d2f33e8b1dbbb13f591f70b0731e1a918a207d1fcfd753f11a4
MD5 af3affe8b7ce6611b0b9ee40f38ceb2f
BLAKE2b-256 f605b0b6be589a761b200b1b2c9fd89b955fefde8f1885809872a5f45cc695c7

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