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

Simple button to display a number for one or more Simulation Variables

Open sromeroi opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. I have Simple Gauge buttons for Airspeed, Throttle RPM, Trim value, Altitude, Vertical Speed, etc. (a six-pack like page in my Stream Deck with some additional info such as the current trim %, RPMs, etc). For some of them is nice to have the "gauge" but for other, I woud like just to have the value and the title, like:

  200

  HDG

It would also be interesting that pressing this "Value button" could (optionally) trigger an event or set a variable to a value, and the same for long-pressing (hold button) with a different event/variable set.

One sample usage is having a HEADING INDICATOR instrument showing the current plane heading and allowing to simple press it to set the HDG BUG to the current direction, or set it to 0 with Long Press.

Describe the solution you'd like or alternatives you've considered

Different ways to achieve this:

1.- Take advantage of the "gauge button" and:

  • add a checkbox option for "Hide gauge", that hides the yellow gauge, leaving only the number, colored.
  • Add the colors option from the Complex one ("10:red,20:yellow,70:green") to define the colors of the text.
  • Add "Trigger Event on Press", "Parameter" and "Trigger Event on Hold" and "Parameter" input-texts to be able to "call" events on press (allowing also to not only call "events" but set variables to values).

2.- Take advantage of the "Toggle button" and:

  • Add a "Font Style" option for Display Value (I can use the Feedback Value to read any variable like INDICATED_ALTITUDE but the number is quite small).
  • Add the colors option from the Complex Gauge ("10:red,20:yellow,70:green") to define the colors of the text (up to 3).

3.- Create a new "Simple Value" button with

  • Title (allowing to define font, size and position)
  • Simvar properties to read (up to 3).
  • Add the colors option from the Complex Gauge ("10:red,20:yellow,70:green") to define the colors of the text (up to 3).
  • Add the Trigger Events/Set values on press/hold explained in 1.-
SIMVAR1(user presses enter here)
SIMVAR2

And that would display as:

1234
3452

(Including Title on top or bottom if it's visible)

Ideally, both options 1 and 3 would be perfect, but as Gauge already implements colors, it might be the easiest way to add it.

Thanks :)

sromeroi avatar Sep 02 '22 08:09 sromeroi

Photo 2-9-22, 13 09 03

Picture of my current "six-pack screen". I'm trying to remove the gauge from ALT, HDG, VS and TRIM and also provide them the capability to trigger "events" (toggle something) or set simVar values on press/hold.

sromeroi avatar Sep 03 '22 05:09 sromeroi

Pretty sure instead of using gauge button, you can just use https://github.com/nguyenquyhy/Flight-Tracker-StreamDeck/blob/main/docs/USERGUIDE.md#generic-toggle-button

Give that a try?

rmroc451 avatar Sep 03 '22 10:09 rmroc451

Pretty sure instead of using gauge button, you can just use https://github.com/nguyenquyhy/Flight-Tracker-StreamDeck/blob/main/docs/USERGUIDE.md#generic-toggle-button

Give that a try?

Yes, that was Option 2.- in my original request (reuse Generic Toggle by adding font style and position options for the Display Value item:

Photo 6-9-22, 16 16 07

The problem is that the number is too small compared with the Gauge values:

Photo 6-9-22, 16 15 42

sromeroi avatar Sep 06 '22 14:09 sromeroi

I guess at some point I should merge those 2 button types as a lot should be common between the 2. Maybe the generic button can have 3 different display mode: no gauge, simple gauge and custom gauge.

For now, maybe I'll add in font size for both buttons. I do see issues occasionally when the number are too long/short.

You won't get the color options for now though. And I am not sure what you mean by this Add the Trigger Events/Set values on press/hold explained in 1.- in option 2. I thought it is already there.

nguyenquyhy avatar Sep 07 '22 16:09 nguyenquyhy

I guess at some point I should merge those 2 button types as a lot should be common between the 2. Maybe the generic button can have 3 different display mode: no gauge, simple gauge and custom gauge.

Good solution.

For now, maybe I'll add in font size for both buttons. I do see issues occasionally when the number are too long/short.

Perfect, thanks! Being to change font size / color and position (top/center/bottom) would be fantastic. I will put then for my "ALT/HDG/TRIM etc." indicators the title on bottom and the number of top with a bigger font.

And I am not sure what you mean by this Add the Trigger Events/Set values on press/hold explained in 1.- in option 2. I thought it is already there.

Yes, that's right, they are present in option 2. It is missing in the Gauge buttons, and it would be very useful to be able to trigger 2 different events (on press and on hold, with their respective parameters) when "pressing" gauge buttons.

Thanks a lot for your quick response.

sromeroi avatar Sep 07 '22 18:09 sromeroi

I split this into #378 and #379 and close this one for now.

nguyenquyhy avatar Dec 19 '22 08:12 nguyenquyhy

Thanks!

sromeroi avatar Dec 19 '22 09:12 sromeroi