openmct-mcws-plugin
v1.1.0-rc3
Published
Open MCT for MCWS
Downloads
43
Readme
Open MCT for MCWS Plugin
Open Mission Control Technologies for Mission Control Web Services Plugin (Open MCT for MCWS) is used with Open MCT, a next-generation web-based mission control framework for visualization of data on desktop and mobile devices. Open MCT for MCWS Plugin is built for the Open MCT Framework, and includes adapter code for using MCWS as a telemetry and persistence provider. Open MCT is developed at NASA Ames Research Center in Silicon Valley, in collaboration with NASA AMMOS and the Jet Propulsion Laboratory, California Institute of Technology (under its contract with NASA, 80NM0018D0004).
Configuration
Various configurations and customizations are available by editing recipes/default.yaml.
Development configurations and customizations are available by editing recipes/development.yaml.
AMMOS configurations
camUrl: The url to the CAM server, if CAM is to be used for authentication.mcwsUrl: The url to the MCWS server.- In the
namespacesconfiguration,url, the path to the MCWS persistence spaces, are required.
Further configuration documentation can be found in the CONFIGURATION.md.
Development
Prerequisite
You will need to install the Open MCT Configurator
1. Install Open MCT for MCWS
In a terminal, run this command to install Open MCT for MCWS and its dependencies. This may take a few minutes.
npm installIf you've installed Open MCT for MCWS locally before, first run this command.
npm run clean2. Modify development.yaml
If necessary, make any modifications to development.yaml, such as adding Open MCT core plugins or modifying settings for the Openmct for MCWS Plugin
3. Build Open MCT with the Open MCT for MCWS Plugin locally using Open MCT Configurator
npm run build:prod
mct build --recipe recipes/development.yaml --instance development
npm run serveWith that running, browse to http://localhost:8080/ to access Open MCT with the Open MCT for MCWS Plugin
Development MCWS server
To connect Open MCT to MCWS, either run a local mock server, run MCWS locally, or connect to a remote instance of MCWS.
Running a mock MCWS server
An example mock mcws server - https://github.com/davetsay/mcws-test-server *requires request access
Running MCWS locally
Refer to MCWS documentation.
Running a development server
Running a development server requires that you are on the JPL network so that you can access a development MCWS server. You'll need to retrieve an authentication cookie and make a small modification to your Open MCT for MCWS configuration; here's how.
1. Get your CAM cookie
To get past CAM, you will need to export an environment variable,
COOKIE, that contains your CAM authentication cookie. Instructions for
retrieving this cookie are at the bottom of the README. If you've copied
your CAM cookie into the clipboard, use this command to set the variable:
export COOKIE=`pbpaste`Tests
Tests are written for Jasmine 4.4 and run by Karma.
Test files end with Spec.js, and will be automatically executed when running the following command:
npm testRunning the tests creates a code coverage report in target/coverage.
Building for production
npm install
npm run build:prod
mct build --recipe recipes/default.yaml --instance defaultTODO: UPDATE THIS sentence, possibly with compressing the necessary files into a war.
This will create a deployable artifact, openmct_client.war in the target
directory.
Notes
Getting your CAM cookie
Go to the MCWS server location and log in to CAM. Then retrieve the cookie from your browser.
Unsure how to get cookies from the browser? Here's a shortcut: create a bookmarklet with the following code:
javascript:(function () {prompt('Your cookies for ' + location.host, document.cookie);})();Pressing this bookmarklet will show you your cookies for the current host, which you can then copy into your clipboard to use to set the cookie environment variable. Note that logging out of CAM or getting a new session will require you to get the cookie again.
