Skip to content

Control N.I.N.A.

rennmaus-coder edited this page Jan 18, 2024 · 14 revisions

Profile ("api/profile"):

POST parameters:

  • Device: switch / change-value
  • Action: switch -> the profile ID
    change-value -> path to the property using '-' as seperator e.g. (CameraSettings-PixelSize)
  • Parameter[0]: the value to be set

Equipment ("api/equipment"):

POST parameters:

  • Device: camera / telescope / focuser / rotator / filterwheel / dome / switch / guider / flatdevice / safetymonitor / sequence / application
  • Action:
    • camera: connect / disconnect / abort-exposure
    • telescope: connect / disconnect / park / unpark
    • focuser: connect / disconnect / auto-focus
    • rotator: connect / disconnect
    • filterwheel: connect / disconnect
    • dome: connect / disconnect / open / close / stop
    • switch: connect / disconnect
    • guider: connect / disconnect / start / stop
    • flatdevice: connect / disconnect
    • safetymonitor: connect / disconnect
    • sequence: start / stop
    • application: screenshot (png) / switch (switches the current application tab)
  • Parameter[0]:
    • application: switch: equipment / skyatlas / framing / flatwizard / sequencer / imaging / options

The class POST will get deserialized into:

    public class POSTData
    {
        public string Device { get; set; }
        public string Action { get; set; }
        public List<object> Parameter { get; set; }
    }
Clone this wiki locally