Open Mission Control Techologies for Mission Control Web Services (Open MCT for MCWS) is a next-generation web-based mission control framework for visualization of data on desktop and mobile devices. Open MCT for MCWS is built on 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).
Various configurations and customizations are available by editing config.js
. Descriptions of each configuration reside with the configuration in the file.
camUrl
: The url to the CAM server, if CAM is to be used for authentication.mcwsUrl
: The url to the MCWS server.- In the
namespaces
configuration,url
, the path to the MCWS persistence spaces, are required.
In a terminal, run this command to install Open MCT for MCWS and its dependencies. This may take a few minutes.
npm install
If you've installed Open MCT for MCWS locally before, first run this command.
npm run clean
Uncomment the proxyUrl
setting in config.js
. It is located under Developer
Settings near the end of the file.
npm start
With that running, browse to http://localhost:8080/ to access Open MCT for MCWS.
npm run build:prod
With the stylesheets rebuilt, you can reload your browser (assuming the server is running) to see the rebuilt CSS.
To connect Open MCT for MCWS to MCWS, either run a local mock server, run MCWS locally, or connect to a remote instance of MCWS.
An example mock mcws server - https://github.com/davetsay/mcws-test-server *requires request access
Refer to MCWS documentation.
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.
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 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 test
Running the tests creates a code coverage report in target/coverage
.
npm install
mvn clean install
This will create a deployable artifact, openmct_client.war
in the target
directory.
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.