forked from OpenVoiceOS/ovos-PHAL-plugin-system
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor into Neon package Revert Changes from OpenVoiceOS#48 that added ovos-config>0.X dependency * Undo changes from OpenVoiceOS#48 that added ovos-config>0.X dependency
- Loading branch information
1 parent
21e6726
commit 49cc163
Showing
19 changed files
with
353 additions
and
252 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Propose Stable Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release_type: | ||
type: choice | ||
description: Release Type | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
jobs: | ||
update_version: | ||
uses: neongeckocom/.github/.github/workflows/propose_semver_release.yml@master | ||
with: | ||
branch: dev | ||
release_type: ${{ inputs.release_type }} | ||
update_changelog: True | ||
version_file: neon_phal_plugin_system/version.py | ||
alpha_var: VERSION_ALPHA | ||
build_var: VERSION_BUILD | ||
minor_var: VERSION_MINOR | ||
major_var: VERSION_MAJOR | ||
pull_changes: | ||
uses: neongeckocom/.github/.github/workflows/pull_master.yml@master | ||
needs: update_version | ||
with: | ||
pr_reviewer: neonreviewers | ||
pr_assignee: ${{ github.actor }} | ||
pr_draft: false | ||
pr_title: ${{ needs.update_version.outputs.version }} | ||
pr_body: ${{ needs.update_version.outputs.changelog }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This workflow will generate a release distribution and upload it to PyPI | ||
|
||
name: Publish Build and GitHub Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build_and_publish_pypi_and_release: | ||
uses: neongeckocom/.github/.github/workflows/publish_stable_release.yml@master | ||
secrets: inherit |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This workflow will generate a distribution and upload it to PyPI | ||
|
||
name: Publish Alpha Build | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
paths-ignore: | ||
- 'neon_phal_plugin_system/version.py' | ||
|
||
jobs: | ||
publish_alpha_release: | ||
uses: neongeckocom/.github/.github/workflows/publish_alpha_release.yml@master | ||
secrets: inherit | ||
with: | ||
version_file: "neon_phal_plugin_system/version.py" | ||
alpha_var: VERSION_ALPHA | ||
build_var: VERSION_BUILD | ||
minor_var: VERSION_MINOR | ||
major_var: VERSION_MAJOR | ||
publish_prerelease: true | ||
update_changelog: true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,19 @@ | ||
# ovos-PHAL-plugin - system | ||
# neon-phal-plugin-system | ||
|
||
Provides system specific commands to OVOS. | ||
Provides system specific commands to Neon. | ||
The dbus interface for this plugin is not yet established. | ||
|
||
# Install | ||
|
||
`pip install ovos-PHAL-plugin-system` | ||
`pip install neon-phal-plugin-system` | ||
|
||
# Config | ||
|
||
This plugin is a Admin plugin, it needs to run as root and to be explicitly enabled in mycroft.conf | ||
This plugin is an Admin plugin, it needs to run as root and to be explicitly enabled in mycroft.conf | ||
|
||
```javascript | ||
{ | ||
"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 | ||
|
||
```python | ||
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) | ||
```yaml | ||
PHAL: | ||
admin: | ||
neon-phal-plugin-system: | ||
enabled: true | ||
``` |
Oops, something went wrong.