Trained Flats

GET /flats/trained-flat

Start capturing flats based on previous training done in NINA. This requires the camera to be connected. Any omitted parameter will default to the instruction default.

Query parameters

  • count integer Required

    The number of flats to capture

    Minimum value is 0.

  • filterId integer

    The filter to use for the flats. The current filter will be used if this is not specified

    Minimum value is 0.

  • binning string

    The binning to use for the flats

  • gain integer

    The gain to use for the flats. The camera gain will be used if this is not specified

    Minimum value is 0.

  • offset integer

    The offset to use for the flats. The camera offset will be used if this is not specified

    Minimum value is 0.

  • keepClosed boolean

    Whether to keep the flat panel closed after taking the flats

Responses

GET /flats/trained-flat
curl \
 --request GET 'http://localhost:1888/v2/api/flats/trained-flat?count=1'
Response examples (200)
{
  "Response": "Process started",
  "Error": "string",
  "StatusCode": 200,
  "Success": true,
  "Type": "API"
}
Response examples (400)
{
  "Response": "string",
  "Error": "Process already running",
  "StatusCode": 400,
  "Success": false,
  "Type": "API"
}
Response examples (500)
{
  "Response": "string",
  "Error": "Unknown error",
  "StatusCode": 500,
  "Success": false,
  "Type": "API"
}