NINA Flats

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

Take Auto Flat (Brightness)

AI-generated

Summary

Capture a specified number of auto flats by panel brightness using the N.I.N.A. ninaAPI, adjusting parameters such as histogram mean, brightness range, exposure time, and camera settings.

Inputs

  • Count — Number of flats to capture; defaults to 10.
  • Histogram Mean — Target histogram mean value between 0 and 1 to control flat brightness.
  • Mean Tolerance — Acceptable tolerance for the histogram mean around the target value.
  • Filter ID — Filter slot index to select the filter used for the flats.
  • Binning — Camera binning setting, e.g., '1x1'.
  • Gain — Camera gain setting.
  • Offset — Camera offset setting.
  • Min Brightness — Minimum panel brightness for the flat capture.
  • Max Brightness — Maximum panel brightness for the flat capture.
  • Exposure Time — Exposure time in seconds for capture.
  • Keep Closed — Boolean option to keep the flat panel closed after capture; defaults to false.

Output shape

a JSON array containing the response from the N.I.N.A. ninaAPI endpoint for taking auto flats by brightness, generally indicating success and details of the capture process.

The operation returns data as obtained from the HTTP GET request to '/flats/auto-brightness' endpoint with query parameters set from input fields. Options are optional; if not set, defaults or omission applies. Errors can halt execution or continue if configured.

Links

Discussion