Klipper

App · 10 actions

Monitor a Klipper 3D printer through its Moonraker server.

Actions

ActionWhat it does
Get endstop statusReport which printer endstops are open or triggered.
Get G-code historyRead the recent commands and responses recorded by Moonraker.
Get print statusRead the current job name, print state and progress.
Get printer infoRead the printer state and Klipper version.
Get server infoRead the status of Moonraker and its connection to Klipper.
Get temperature historyRead recent temperature readings recorded by Moonraker.
Get toolhead statusRead the toolhead position and motion limits.
List G-code commandsRead the printer’s available documented G-code commands and help text.
List print historyRead recorded print jobs and their status from Moonraker.
List printer objectsList the printer objects this Klipper installation exposes.

Get endstop status

Report which printer endstops are open or triggered.

Inputs

None.

Outputs

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page, when available.
Example output
{
  "data": {
    "result": {
      "x": "open",
      "y": "TRIGGERED",
      "z": "open"
    }
  },
  "has_more": false,
  "next_cursor": null
}

Get G-code history

Read the recent commands and responses recorded by Moonraker.

Inputs

Countcountnumber
Maximum entries to return.At least 1.

Outputs

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page, when available.
Example output
{
  "data": {
    "result": {
      "gcode_store": [
        {
          "message": "STATUS",
          "time": 1735689600.0,
          "type": "command"
        }
      ]
    }
  },
  "has_more": false,
  "next_cursor": null
}

Get print status

Read the current job name, print state and progress.

Inputs

None.

Outputs

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page, when available.
Example output
{
  "data": {
    "result": {
      "eventtime": 123.4,
      "status": {
        "print_stats": {
          "filename": "example.gcode",
          "state": "printing"
        },
        "virtual_sdcard": {
          "progress": 0.42
        }
      }
    }
  },
  "has_more": false,
  "next_cursor": null
}

Get printer info

Read the printer state and Klipper version.

Inputs

None.

Outputs

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page, when available.
Example output
{
  "data": {
    "result": {
      "software_version": "v0.13.0",
      "state": "ready",
      "state_message": "Printer is ready"
    }
  },
  "has_more": false,
  "next_cursor": null
}

Get server info

Read the status of Moonraker and its connection to Klipper.

Inputs

None.

Outputs

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page, when available.
Example output
{
  "data": {
    "result": {
      "klippy_connected": true,
      "klippy_state": "ready",
      "moonraker_version": "v0.9.3"
    }
  },
  "has_more": false,
  "next_cursor": null
}

Get temperature history

Read recent temperature readings recorded by Moonraker.

Inputs

Include monitorsinclude_monitorstrue/false
Include temperature monitors as well as sensors and heaters.

Outputs

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page, when available.
Example output
{
  "data": {
    "result": {
      "extruder": {
        "targets": [
          0.0
        ],
        "temperatures": [
          21.0
        ]
      }
    }
  },
  "has_more": false,
  "next_cursor": null
}

Get toolhead status

Read the toolhead position and motion limits.

Inputs

None.

Outputs

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page, when available.
Example output
{
  "data": {
    "result": {
      "eventtime": 123.4,
      "status": {
        "toolhead": {
          "homed_axes": "xyz",
          "position": [
            0.0,
            0.0,
            0.0,
            0.0
          ]
        }
      }
    }
  },
  "has_more": false,
  "next_cursor": null
}

List G-code commands

Read the printer’s available documented G-code commands and help text.

Inputs

None.

Outputs

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page, when available.
Example output
{
  "data": {
    "result": {
      "STATUS": "Report the printer status"
    }
  },
  "has_more": false,
  "next_cursor": null
}

List print history

Read recorded print jobs and their status from Moonraker.

Inputs

Limitlimitnumber
Maximum jobs to return.From 1 to 100.
Offsetoffsetnumber
Number of matching jobs to skip.At least 0.
Orderordertext
Choose the chronological sort order.One of: asc (Oldest first), desc (Newest first).

Outputs

Response.

dataobject
Moonraker response.
has_moretrue/false
Whether another page may be available.
next_cursortext
Offset for the next page, when available.
Example output
{
  "data": {
    "result": {
      "count": 1,
      "jobs": [
        {
          "filename": "test-print.gcode",
          "job_id": "00001A",
          "print_duration": 322.5,
          "status": "completed"
        }
      ]
    }
  },
  "has_more": false,
  "next_cursor": null
}

List printer objects

List the printer objects this Klipper installation exposes.

Inputs

None.

Outputs

dataobject
Data.
has_moretrue/false
Whether another page is available.
next_cursortext
Continuation value for the next page, when available.
Example output
{
  "data": {
    "result": {
      "objects": [
        "toolhead",
        "print_stats",
        "extruder"
      ]
    }
  },
  "has_more": false,
  "next_cursor": null
}

On this page