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

[OpenMCT Tutorial] Using only Realtime (no historical data) telemetry issue #44

Open
AcidLeroy opened this issue Jan 18, 2021 · 2 comments

Comments

@AcidLeroy
Copy link

I'm looking into using OpenMCT for a project of mine, however I do not need historical telemetry data. In order to see if OpenMCT was going to be the tool I could use, followed the getting started tutorial and slightly modified the index.html to only include the realtime plugin. My changes to the tutorial are below:

diff --git a/index.html b/index.html
index 8b9cdf3..7c772af 100644
--- a/index.html
+++ b/index.html
@@ -5,7 +5,7 @@
     <script src="node_modules/openmct/dist/openmct.js"></script>
     <script src="lib/http.js"></script>
     <script src="dictionary-plugin.js"></script>
-    <script src="historical-telemetry-plugin.js"></script>
+    <!-- script src="historical-telemetry-plugin.js"></script>-->
     <script src="realtime-telemetry-plugin.js"></script>
 </head>
 <body>
@@ -19,7 +19,7 @@
         openmct.install(openmct.plugins.Espresso());
 
         openmct.install(DictionaryPlugin());
-        openmct.install(HistoricalTelemetryPlugin());
+        // openmct.install(HistoricalTelemetryPlugin());
         openmct.install(RealtimeTelemetryPlugin());
 
         openmct.start();

After running this code, everything seems to work until I attempted to click something like the "Fuel" telemetry object (or any object within the spacecraft top level). When I did that, I get the following exception:
image

My question is this: Does OpenMCT support using only realtime data, and if it does, why does the tutorial barf when not including the historical data? What changes would I need to make to the tutorial code to prove that this feature is available?

Thanks for your time!

@evanfitzgerald
Copy link

evanfitzgerald commented Jul 26, 2021

@AcidLeroy Yes, openMCT supports only realtime data. The problem may be stemming from the example-server, where it is still attempting to use historical data (see server.js). If you comment that out, then the error should be resolved.

@jvigliotta
Copy link
Contributor

Thanks @evanfitzgerald ! Another option would be to return false here:

return domainObject.type === 'example.telemetry';
some views will request both realtime and historical, but if you have a historical provider that returns false for "supportsRequest" then it shouldn't make those calls.

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

3 participants