External Camera#

ExternalCamera

A Raster Prop Monitor external camera: a part that the MFD camera pages show, such as the JSI External Radial-mount Camera. Obtained by calling POST /raster-prop-monitor/cameras.

A ExternalCamera object is passed and returned as its identifier, a number. A path that acts on an object takes it as (id).

GET /raster-prop-monitor/external-camera/(id)/part#

The part the camera is on.

Parameters:
Response JSON Object:
  • value (SpaceCenter.Part)

GET /raster-prop-monitor/external-camera/(id)/name#

The camera’s identifier, e.g. ExtCam1, which the MFD camera pages select it by. The player sets the number in the part’s menu.

Parameters:
Response JSON Object:
  • value (string)

GET /raster-prop-monitor/external-camera/(id)/min-fov#

The smallest field of view of the camera, in degrees.

Parameters:
Response JSON Object:
  • value (float)

GET /raster-prop-monitor/external-camera/(id)/max-fov#

The largest field of view of the camera, in degrees.

Parameters:
Response JSON Object:
  • value (float)

GET /raster-prop-monitor/external-camera/(id)/fov#

The field of view that POST /raster-prop-monitor/external-camera/(id)/image renders at, in degrees. It starts at GET /raster-prop-monitor/external-camera/(id)/max-fov, as on an MFD camera page, and a value set is clamped to the camera’s range.

Parameters:
Response JSON Object:
  • value (float)

PUT /raster-prop-monitor/external-camera/(id)/fov#

The field of view that POST /raster-prop-monitor/external-camera/(id)/image renders at, in degrees. It starts at GET /raster-prop-monitor/external-camera/(id)/max-fov, as on an MFD camera page, and a value set is clamped to the camera’s range.

Parameters:
Request JSON Object:
  • value (float) – The new value.

POST /raster-prop-monitor/external-camera/(id)/image#

The camera’s view as an image, rendered now. Streamed at a rate, it is a video of the camera, for which JPEG is smaller and faster. Throws an exception if the camera is not on the active vessel.

Parameters:
Request JSON Object:
  • width (int32) – The width of the image, in pixels.

  • height (int32) – The height of the image, in pixels.

  • format (StdLib.ImageFormat) – The format of the image. Optional, defaults to "png".

  • quality (int32) – The quality of a JPEG image, from 1 to 100. Optional, defaults to 75.

Response JSON Object:
  • value (bytes) – The image data.