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

Add feature to open a user defined profile with Generic Toggle #183

Open
janpfischer opened this issue Feb 18, 2021 · 3 comments
Open

Add feature to open a user defined profile with Generic Toggle #183

janpfischer opened this issue Feb 18, 2021 · 3 comments
Labels
enhancement New feature or request pending-streamdeck

Comments

@janpfischer
Copy link
Contributor

janpfischer commented Feb 18, 2021

Describe the solution you'd like
It would be very great if we can have a Generic Toggle Event to open up an other profile of Stream Deck which you can set on your own.
So you can have an Generic Toggle for Flaps (e.g.) with Information about current Position on it und if you click that button you open up an other Profile where you can set Flaps Positions.
With this you would have more possibilitys to customize your Stream Deck.
Or maybe instead of click you can hold like on COM Buttons. So you could add an AP Toogle and if you hold you come to a profile with all further settings like ALT, HDG, NAV and + and - buttons.

Describe alternatives you've considered
You can do folders or profiles, but then you don't have simconnect informations on it.

Additional context
I could try this on my own but not sure if I would handle it because no experience in Stream Deck API and C# (other languages)
Parameter could be something like "SWITCH_PROFILE:[profilename]"

@janpfischer
Copy link
Contributor Author

janpfischer commented Feb 22, 2021

So I tried this out and got it fully working until I realised that you can only switch to Profiles intstalled by the Plugin.
But you could bypass this as follows:

  1. Create your Profile as you like which you want to switch on button push/hold
  2. Export this Profile and paste it in the Plugins Folder
  3. Delete the Profile in Stream Deck
  4. Insert profile in manifest.json
  5. Push the Generic Toggle
  6. Let the Plugin install the Profile

Even when the Plugin is updated and the manifest.json is replaced and the custom profiles disappear you can still change to that profile. So it seems to be only important to be there on install of the Profile.
Also if you import the profile as editable you can easily customize it afterwards.

Do you think this would be something interesting or is it to confusing in handling?
As an alternative you could ship like 5-10 empty Profiles predefined and select them for the toggles.

I am happy about every feedback!

@rmroc451
Copy link
Collaborator

Having the 5 to 10 custom profiles preload is a very interesting idea!

@nguyenquyhy
Copy link
Owner

As you have already observed, the plugin can only switch to profiles it installed (or switch back to previous profile), so we can't really switch freely.

Also, the installed profile is readonly, so you'll have to trick Stream Deck by export and replace the plugin source, which I really don't want to encourage any of our users to do.

I'll leave it here until Elgato open up more on the profile switching API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pending-streamdeck
Projects
None yet
Development

No branches or pull requests

3 participants