Add based API for (fix #548) (for Autopage and other future applicaations)#551
Open
geeksville wants to merge 1 commit intoStreamController:mainfrom
Open
Add based API for (fix #548) (for Autopage and other future applicaations)#551geeksville wants to merge 1 commit intoStreamController:mainfrom
geeksville wants to merge 1 commit intoStreamController:mainfrom
Conversation
The main component of this change is adding api.py, a dasbus based dbus API server with the following features: * icon pack enumeration * page enumeration * addpage(name, json) * removepage * streamdeck enumeration * export the datadir location (for eventual use adding other metadata/backgrounds on-the-fly) To support this feature a small number of changes were needed elsewhere: * change add_page so it can throw if the page already exists (the threeish usages elsewhere in the app now have a try/catch to handle that) * The flatpak yaml had to be updated to add dasbus (and since the tool is now newer it emitted slightly different yaml)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes/motivation
The main component of this change is adding api.py, a dasbus based dbus API server with the following features:
To support this feature a small number of changes were needed elsewhere:
How to use
This new api can be used either via the autopage application or the "stream-client" test harness/client. Run "pipx install stream-autopage" to get the current version of these tools.
Here's a video of an app using the api (with streamcontroller automatically changing pages when apps change)
Questions for devs
A few questions before I think this change should be merged:
Rock on, thanks for making this. I'm happy to discuss this idea more either here or in #548