Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

AAO Stream Deck Plug-in Rotary LVAR

Featured Replies

I only just bought AAO for my new Stream Deck Plus and despite researching I just can’t seem to get how LVAR manipulating works for the rotaries in the AAO SD plug-in. 
 

I’m trying to assign one rotary dial to change the altitude knob that only has an associated LVAR (L:HJET_AP_ALT_VAR).

Nothing I do seems to do the trick. So far I’ve tried to create events for counter-clockwise and clockwise turns, assigned those to “L:HJET_AP_ALT_VAR, Number” with a value of 100 but apparently that’s just totally wrong and I’m a noob. 
 

Help would be greatly appreciated, I’ve spent hours looking for an answer. 

  • Commercial Member
2 hours ago, flycln said:

I only just bought AAO for my new Stream Deck Plus and despite researching I just can’t seem to get how LVAR manipulating works for the rotaries in the AAO SD plug-in. 
 

I’m trying to assign one rotary dial to change the altitude knob that only has an associated LVAR (L:HJET_AP_ALT_VAR).

Nothing I do seems to do the trick. So far I’ve tried to create events for counter-clockwise and clockwise turns, assigned those to “L:HJET_AP_ALT_VAR, Number” with a value of 100 but apparently that’s just totally wrong and I’m a noob. 
 

Help would be greatly appreciated, I’ve spent hours looking for an answer. 

Are you certain that this LVar is doing what you think that it does? It looks to me like it is just storing the current selected altitude. 

LVars are not "input events" of any kind - they are just variables. They only work for input purposes by accident or if the developer made it so on purpose. They don't do that "naturally". 

Is this about the Honda Jet from the market place? I think that there is a script collection and template on flightsim.to for that plane.

Be mindful that the rotary encoders on the "Plus" are just sending button events - left, right or press. They don't have a value "range" or something (=they aren't "axis")

Edited by Lorby_SI

LORBY-SI

  • Commercial Member

So I've looked into my library. The LVar you mentioned only stores the current alt value - that's it. 

So you can only change this with a proper script, something like the following:

INC by 100
(L:HJET_AP_ALT_VAR, Number) 100 + (>L:HJET_AP_ALT_VAR, Number)

DEC by 100
(L:HJET_AP_ALT_VAR, Number) 100 - 0 max (>L:HJET_AP_ALT_VAR, Number)

Either create those scripts in AAO and call them from the StreamDeck as K - Events or use type "S:" on the Action and enter the entire script code right there.

 

LORBY-SI

  • Author

I’ll try that later, thanks for the great support! 

  • Author
6 hours ago, Lorby_SI said:

So I've looked into my library. The LVar you mentioned only stores the current alt value - that's it. 

So you can only change this with a proper script, something like the following:

INC by 100
(L:HJET_AP_ALT_VAR, Number) 100 + (>L:HJET_AP_ALT_VAR, Number)

DEC by 100
(L:HJET_AP_ALT_VAR, Number) 100 - 0 max (>L:HJET_AP_ALT_VAR, Number)

Either create those scripts in AAO and call them from the StreamDeck as K - Events or use type "S:" on the Action and enter the entire script code right there.

 

I'm afraid I'm still learning and struggling. I've created the script in AAO and it works just fine when testing it in AAO.

Trying to call the script in the Stream Deck plugin on the other hand keeps failing.

spacer.png

 

spacer.png

 

Using an S: event with the entire script didn't work for me either. I'm sure I'm just doing something wrong.

Edited by flycln

  • Commercial Member
3 minutes ago, flycln said:

Trying to call the script in the Stream Deck plugin on the other hand keeps failing.

As you can see by looking at the red light above the editor window, your script is incorrect. The header line "DEC by 100" is of course not part of the code... I just wrote that to make it clear which script is which.

Correct the code so the LED turns green, then use the "Test" button to make sure that it works.

Edited by Lorby_SI

LORBY-SI

  • Author
4 minutes ago, Lorby_SI said:

As you can see by looking at the red light above the editor window, your script is incorrect. The header line "DEC by 100" is of course not part of the code... 

You're right of course. I'm afraid the call from the Stream Deck software still doesn't work even after fixing that aspect. Looks like I'm still doing something wrong with the call. The script itself works.

Edited by flycln

  • Author
3 minutes ago, Lorby_SI said:

I think that you got the name wrong. Doublecheck the syntax of the script names in the K: box

There was a typo in one of the two for the last test but it was correct before and is correct now... I think?

 

spacer.png

  • Author
2 minutes ago, Lorby_SI said:

Looks OK to me. Make sure to close the script editor when you call them from the SD.

I did, yeah. No luck, sadly. Restarted Stream Deck and AAO since then as well (admin mode).

  • Commercial Member

I've just tested this, it is working fine for me. Bit of a lag, but that is to be expected when using scripts. 

Are you quite certain that the StreamDeck is working at all with AAO? 

Make sure that there are no unwanted space characters (or other invisible ones) in those boxes - and also not in the script names in AAO

Edited by Lorby_SI

LORBY-SI

  • Author
19 minutes ago, Lorby_SI said:

Are you quite certain that the StreamDeck is working at all with AAO?

Looks like that's the issue. I've added incoming and outgoing rules for the ports in use and restarted the PC but that hasn't helped. I'll see what I can do.

  • Commercial Member

1. Make sure to work through the WebAPI TroubleShooting guide PDF
2. Follow the instructions as to how the WebAPI must be set up and activated in AAO itself
3. Change the port from 9080 to something else - the guide, the PDF that comes with the SD plugin and the AAO manual will tell you how to do that. Read the instructions carefully. The port must be changed in two places, AAO itself and the StreamDeck plugin (obviously) Both can be done from within the AAO app.
4. Use the "Connection Status" Action on the SD so you can see if the SD can reach the web service in AAO

Edited by Lorby_SI

LORBY-SI

  • Author

Changing the port fixed it. Thanks a lot. The script works as well.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.