Service#

This service provides the IVA screens, variables and external cameras of Raster Prop Monitor.

Note

A persistent variable is a number a script and the props share: a prop shows it, and a switch or numeric input sets it. Raster Prop Monitor updates the variables that depend on the vessel only for the active vessel.

GET /raster-prop-monitor/available#

Whether Raster Prop Monitor is installed.

Response JSON Object:
  • value (bool)

POST /raster-prop-monitor/computer#

The computer of a part. Throws an exception if the part has no Raster Prop Monitor computer.

Request JSON Object:
  • part (SpaceCenter.Part) – The part.

Response JSON Object:
  • value (RasterPropMonitor.Computer)

POST /raster-prop-monitor/computers#

The computers of the parts of a vessel.

Request JSON Object:
  • vessel (SpaceCenter.Vessel) – The vessel.

Response JSON Object:
  • value (list<RasterPropMonitor.Computer>)

POST /raster-prop-monitor/global-persistent-variable#

The value of a persistent variable of a vessel, or null if it is not set. Throws an exception if the vessel has no Raster Prop Monitor computer.

Request JSON Object:
  • vessel (SpaceCenter.Vessel) – The vessel.

  • name (string) – The name of the variable, without the PERSISTENT_ prefix.

Response JSON Object:
  • value (double?)

POST /raster-prop-monitor/set-global-persistent-variable#

Set a persistent variable of a vessel. The props that show it update. Throws an exception if the vessel has no Raster Prop Monitor computer.

Request JSON Object:
  • vessel (SpaceCenter.Vessel) – The vessel.

  • name (string) – The name of the variable, without the PERSISTENT_ prefix.

  • value (double) – The value.

POST /raster-prop-monitor/remove-global-persistent-variable#

Remove a persistent variable of a vessel. The props that show it update. Throws an exception if the vessel has no Raster Prop Monitor computer.

Request JSON Object:
  • vessel (SpaceCenter.Vessel) – The vessel.

  • name (string) – The name of the variable, without the PERSISTENT_ prefix.

POST /raster-prop-monitor/monitors#

The monitors in the IVAs of a vessel’s parts. Throws an exception if the vessel is not the active vessel.

Note

KSP builds IVAs only for the active vessel.

Request JSON Object:
  • vessel (SpaceCenter.Vessel) – The active vessel.

Response JSON Object:
  • value (list<RasterPropMonitor.Monitor>)

POST /raster-prop-monitor/display#

The display of a vessel with the given name, which every page whose KRPCDisplay handler names it shows.

Request JSON Object:
  • vessel (SpaceCenter.Vessel) – The vessel.

  • name (string) – The name of the display.

Response JSON Object:
  • value (RasterPropMonitor.Display)

POST /raster-prop-monitor/cameras#

The external cameras on a vessel’s parts.

Request JSON Object:
  • vessel (SpaceCenter.Vessel) – The vessel.

Response JSON Object:
  • value (list<RasterPropMonitor.ExternalCamera>)