Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing additional parameter to historical telemetry plugin #42

Open
mnawaz779 opened this issue Sep 8, 2020 · 7 comments
Open

Passing additional parameter to historical telemetry plugin #42

mnawaz779 opened this issue Sep 8, 2020 · 7 comments

Comments

@mnawaz779
Copy link

I am using openmct framework to build telemetry dashboard. I am implementing historical telemetry plugin for the application. The options object passed to the "request function" of the "provider" supplies the options.start and options.end time for the historical query. The telemetry data source requires one more parameter like "level" to get the historical telemetry. Currently I have the "level" parameter hard coded in the plugin and it is working. However, I want to remove the hard coded "level" parameter and pass it as an additional parameter to the "request function" using "options" object or some other mechanism. How to go about it? What are my choices here? Any idea or assistance will be greatly appreciated as I am new to Openmct.

Note: if this is not the right forum for such questions, please advise appropriate mechanism to get help in such scenario.

Thanks,
-mnawaz779

@deeptailor
Copy link
Member

deeptailor commented Sep 8, 2020 via email

@mnawaz779
Copy link
Author

Hi Deep,

i can extend the domainObject to include level. However, i am not sure how to pass the level selection from level selector vue control to the domain object. I have 10 different levels at which historical data can be viewed so I have to use single domain object or plugin to pull historical data. So, how to pass level information from level selector to domaiObject is still a challenge for me. Any help will be greatly appreciated. It could be through some global scope variables or through context which I do not know.

Thank you for your assistance.
-mnawaz779

@deeptailor
Copy link
Member

deeptailor commented Sep 8, 2020 via email

@mnawaz779
Copy link
Author

Hi Deep,

The level selector has been created using Vuejs that resides inside the timeConductor plugin folder. The historytelemetry plugin lives in its own folder. I am trying to use level select event handler of the Vue component to mutate the domainObject and update the level parameter that will be used by historyTelemetry plugin. But is does not work. I am missing some basic mechanism to pass data from one component to another., By any chance do we have some additional information or sample code on openmct.objects.mutate etc.

Thank you for your help in this effort.
-mnawaz779

@mnawaz779
Copy link
Author

mnawaz779 commented Sep 9, 2020

Looking for information on how to pass data from one plugin to another using Openmct framework. If anyone has some guidance or hints please let me know.
Thanks,

@deeptailor
Copy link
Member

deeptailor commented Sep 9, 2020 via email

@mnawaz779
Copy link
Author

Thank you for your time and sharing your thoughts on this task. I will look into this further and update the forum once I have something concrete.
Thanks again,
-mnawaz779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants