Flight-Tracker-StreamDeck icon indicating copy to clipboard operation
Flight-Tracker-StreamDeck copied to clipboard

Add feature to open a user defined profile with Generic Toggle

Open janpfischer opened this issue 4 years ago • 3 comments

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 avatar Feb 18 '21 12:02 janpfischer

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!

janpfischer avatar Feb 22 '21 00:02 janpfischer

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

rmroc451 avatar Feb 22 '21 00:02 rmroc451

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.

nguyenquyhy avatar Mar 29 '21 04:03 nguyenquyhy