NINA Flats

Control flat capture via N.I.N.A. ninaAPI

Take Trained Dark Flat

AI-generated

Summary

Capture a specified number of trained dark flat frames using the N.I.N.A. ninaAPI, optionally configuring filter slot, binning, gain, offset, and whether to keep the flat panel closed after capture.

Inputs

  • Count — Number of flats to capture; defaults to 10 if not specified.
  • Filter ID — Filter slot index to use during capture; defaults to 0.
  • Binning — Binning mode, e.g., '1x1'; optional.
  • Gain — Camera gain setting; defaults to 0.
  • Offset — Camera offset setting; defaults to 0.
  • Keep Closed — Boolean indicating whether to keep the flat panel closed after capture; defaults to false.

Output shape

a JSON array containing the API response objects about the captured flats

Returns the response from the N.I.N.A. API as an array of JSON objects. Errors for individual items are outputted as JSON objects with an 'error' property if continueOnFail is enabled.

Examples

Example 1: Capture 5 trained dark flats with binning 2x2 and keep the panel closed afterwards

Set Count to 5, Binning to '2x2', Keep Closed to true; other parameters optional or default.

Links

Discussion