Determine Rotation

GET /framing/determine-rotation

Determine rotation from camera. This does nothing else than what the button in the framing assistant does. If waitForResult is set to true, the method will wait until the rotation is determined. This will only work if an image is loaded in the framing assistant

Query parameters

  • waitForResult boolean

    Whether to wait for the result.

Responses

  • 200 application/json

    Successful response

    One of:
    Hide attributes Show attributes
    • Response string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
  • 400 application/json

    Process could not be started

    Hide response attributes Show response attributes object
    • Response string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
  • 500 application/json

    Internal server error, Unknown error

    Hide response attributes Show response attributes object
    • Response string
    • Error string
    • StatusCode integer
    • Success boolean
    • Type string
GET /framing/determine-rotation
curl \
 --request GET 'http://localhost:1888/v2/api/framing/determine-rotation'
Response examples (200)
{
  "Response": "Determine rotation started",
  "Error": "string",
  "StatusCode": 200,
  "Success": true,
  "Type": "API"
}
{
  "Response": {
    "BoundHeight": 42,
    "BoundWidth": 42,
    "CameraHeight": 42,
    "CameraWidth": 42,
    "CameraPixelSize": 42,
    "DecDegrees": 42,
    "DecMinutes": 42,
    "DecSeconds": 42,
    "RAHours": 42,
    "RAMinutes": 42,
    "RASeconds": 42,
    "FieldOfView": 42,
    "FocalLength": 42,
    "HorizontalPanels": 42,
    "VerticalPanels": 42,
    "Rectangle": {
      "OriginalX": 42,
      "OriginalY": 42,
      "Id": 42,
      "DSOPositionAngle": 42,
      "OriginalOffset": 42,
      "RotationOffset": 42,
      "Rotation": 42,
      "TotalRotation": 42,
      "X": 42,
      "Y": 42,
      "Width": 42,
      "Height": 42
    }
  },
  "Error": "string",
  "StatusCode": 42,
  "Success": true,
  "Type": "string"
}
Response examples (400)
{
  "Response": "string",
  "Error": "Could not start process",
  "StatusCode": 400,
  "Success": false,
  "Type": "API"
}
Response examples (500)
{
  "Response": "string",
  "Error": "Unknown error",
  "StatusCode": 500,
  "Success": false,
  "Type": "API"
}