February 21, 20233 yr 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.
February 21, 20233 yr 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 February 21, 20233 yr by Lorby_SI LORBY-SI
February 21, 20233 yr 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
February 21, 20233 yr 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. Using an S: event with the entire script didn't work for me either. I'm sure I'm just doing something wrong. Edited February 21, 20233 yr by flycln
February 21, 20233 yr 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 February 21, 20233 yr by Lorby_SI LORBY-SI
February 21, 20233 yr 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 February 21, 20233 yr by flycln
February 21, 20233 yr Commercial Member 2 minutes ago, flycln said: Looks like I'm still doing something wrong with the call. I think that you got the name wrong. Doublecheck the syntax of the script names in the K: box LORBY-SI
February 21, 20233 yr 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?
February 21, 20233 yr Commercial Member Looks OK to me. Make sure to close the script editor when you call them from the SD. LORBY-SI
February 21, 20233 yr 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).
February 21, 20233 yr 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 February 21, 20233 yr by Lorby_SI LORBY-SI
February 21, 20233 yr 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.
February 21, 20233 yr 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 February 21, 20233 yr by Lorby_SI LORBY-SI
Archived
This topic is now archived and is closed to further replies.