Sending Commands from OpenMCT? #8140
Replies: 2 comments 3 replies
-
The button in that image is a custom button plugin created by the person who made that tutorial series. You prob have to create your own plugin. The plugin from the tutorial sends an HTTP request based on the passed command and URL Button plugin from their repo (warning the javascript is very outdated): https://gitlab.lrz.de/lls/vis-frame/-/blob/master/openmct/example/Button/plugin.js?ref_type=heads |
Beta Was this translation helpful? Give feedback.
-
@ljburtz A generic "button" object that simply calls out to the URL is a pretty neat idea, and would have a lot of utility in different scenarios. As you mentioned, this would need to be a new custom plugin based on our view API. If you implement this please share it with us! Here's a simple example of a custom view in Open MCT - https://github.com/nasa/openmct-hello/tree/master/src A fully-featured commanding capability is a high priority for us, but I don't have a timescale right now. In all likelihood what this would look like is a new commanding API that initially supports Yamcs, but which could be extended to support other commanding backends. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, from the tutorials I understand the rich visualization capabilities of OpenMCT.
Is it also possible to create a button that triggers a script (or Yamcs command)?
looking online it seems buttons with a command field that triggers a script was possible in an old version of OpenMCT. but I don't see the 'button' object in the CREATE menu.

https://youtu.be/sFui3dFBLuo?si=YCrv8aIMbftNHSaa
What is the recommended way to have a button currently? custom plugin?
Thank you for any pointers
Beta Was this translation helpful? Give feedback.
All reactions