-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Help With Object Provider and Composition Provider #2281
Comments
It looks like the problem lies within your composition provider. appliesTo: function (domainObject) {
return domainObject.identifier.namespace === 'public.namespace' &&
domainObject.type === 'folder' &&
domainObject.identifier.key === 'my-root-major-key';
} Also to answer your second question why they are not shown as telemetry types:
Try to use return {
identifier: identifier,
name: measurement.name,
type: 'example.telemetry',
telemetry: {
values: measurement.measurements,
},
location: 'public.namespace:my-root-major-key'
}; in your object provider. Also your root key 'my-root-major-key' and the root key in the json file ('sc') don't match. That is not a problem, but it is definitely confusing. |
Thanks for the help. That solved one of the issues I was facing. Now the hierarchy shows the spacecraft and the subsystems. However, it doesn't show the telemetry data point of each subsystem in the hierarchy tree on the left. It only shows it on the main screen (right). [as shown in the image] Do you have any suggestions for this? It seems to be pretty close, I just don't see what changes I need to do. This is what I have as far as types and providers: ` openmct.objects.addRoot({
|
@MauriceRivers - You need to provide values for all measurement types. Please share your repo so I can fully understand the issue you are having |
Here is the link to my repo: All the code is in the index.html because I am just trying to get this to work. Then I will clean out the repo. |
Was there any solution to this? |
I published my solution to folder hierarchy here: |
Hello, I am trying to build and display an object that has a root folder, subsystems, and the subsystem's data point. However, when I try in the code, the subsystems appear repeatedly every time [as shown in pic].

Can you guys help me figure out what I need to add to my Object Provider or Composition provider? I thought it would display it by adding the 'telemetry' argument
here is my json file (similar to tutorial found online):
And Object Provider:
And Composition Provider:
Issue: Help in displaying my objectn correctly with its subsystems and their respective telemetry.
Severirty: Trivial.
The text was updated successfully, but these errors were encountered: