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.

Streamdeck plugin - read variable not working at all times

Featured Replies

Hi, I have a problem with toggles on the StreamDeck plugin.

To reproduce:
I have a toggle for CMD A (autopilot on/off) in the 737. If I only manipulate the AP with the StreamDeck, the status of the light works.

However, if I disconnect the AP with the yoke disconnect, the AP CMD still shows on, which is now desynced from the sim, even though it is reading the variable ngx_MCP_CMDA, number (which I double checked is now 0 in the sim, meaning the toggle should show OFF, not ON.)

How can I fix this?

  • Commercial Member

The StreamDeck software is switching the button picture every time you click it, it doesn't care about the plugin. Then the plugin is overwriting that with the actual variable value when it receives it. So I'm thinking that your read variable is probably not working at all.

No chance of a typo in the variable name, unit or type? Can you post a screenshot of that SD action config? Is that the only LVar that is not working, did you check others (because there is a very common mistake that prevents all LVars from working, and that is removing the package "lorbysi-content-hooks" from the Community folder - people tend to do that when there are sim updates and then forget to put it back)?

Edited by Lorby_SI

LORBY-SI

  • Author
3 hours ago, Lorby_SI said:

The StreamDeck software is switching the button picture every time you click it, it doesn't care about the plugin. Then the plugin is overwriting that with the actual variable value when it receives it. So I'm thinking that your read variable is probably not working at all.

No chance of a typo in the variable name, unit or type? Can you post a screenshot of that SD action config? Is that the only LVar that is not working, did you check others (because there is a very common mistake that prevents all LVars from working, and that is removing the package "lorbysi-content-hooks" from the Community folder - people tend to do that when there are sim updates and then forget to put it back)?

Hi Lorby.

I ensured the content hooks are there - and I also checked two other buttons - same issue with those. These screenshots show the full config of the toggle: 

https://ibb.co/Gx2Mbv1
https://ibb.co/Q84KRJ4
https://ibb.co/HP0Yrk4

Any issues pop out at you?
Thanks for your always prompt support - you are what I aspire to be as a developer.

  • Author

Perhaps I need the full (>L:) notation?

  • Author

Or, since these LVARs are either 0 or 1, the type is bool?

  • Author

Looks like the type of Bool may have been the ticket. 

  • Commercial Member

Oh, and LVars don't have only 0 and 1 as values. LVars are usually used to control animations, and it is entirely possible that they have values like 50 or 100 when the button is pressed in.
That would be an explanation why ", Bool" works, because that may force the value to be 0 or 1 only.

Edited by Lorby_SI

LORBY-SI

Just read the switch L:var, switch_4021_73X for CMD A and switch_4031_73X for CMD B

 

WW5130.png

| i7-14700KF - 4080 SUPER | 32 GB RAM | Win 11 Pro | HC Bravo | AAO | StreamDeck | 

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.