Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

settingsmeta.json #5

Open
JarbasAl opened this issue Dec 21, 2024 · 0 comments
Open

settingsmeta.json #5

JarbasAl opened this issue Dec 21, 2024 · 0 comments

Comments

@JarbasAl
Copy link

JarbasAl commented Dec 21, 2024

we have a settingsmeta.json specification around from the old mycroft Selene backend days

this specifies what settings fields to render for each skill, optionally with text to explain them. This also had the benefit of allowing skill devs to have setting fields they dont want users to see but that the skills can use.

example: https://github.com/OpenVoiceOS/ovos-skill-weather/blob/dev/settingsmeta.json

Special note: lists in settingsmeta are used to populate drop-down options, so we can limit the values for some text fields, there is no list/dict construct that can be edited in the UI, only int/bool/string are supported

We also have utils to generate this automatically from existing settings.json , I can make ovos-workshop populate this file together with settings.json in the XDG path to make it easier to adopt

https://github.com/OpenVoiceOS/OVOS-workshop/blob/2e4926915c5e9532427ecddaa26c384f15fd43b5/ovos_workshop/settings.py#L4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant