aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/pause_resume.py
Commit message (Collapse)AuthorAgeFilesLines
* print_stats: add `cancelled` when `CANCEL_PRINT` used (#4366)Kamil TrzciƄski2021-06-141-3/+6
| | | | | | | | | | | Before this change, a `CANCEL_PRINT` set a `print_stats` to `paused` that would later be workaround-ed with `fluidd`/`mainsail` to re-define `CANCEL_PRINT`. This sets a proper canceled state, but additionally closes a file from a `virtual_sdcard` context for `canceled`/`error`, as this is no longer resumable from this point. Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
* gcode: Update gcode descriptions (#4335)Stefan Dej2021-06-021-4/+13
| | | | | | | | | | Add help description to HELP Add help description to RESPOND Add help description to MEASURE_AXES_NOISE, TEST_RESONANCES and SHAPER_CALIBRATE Add help description to PAUSE, RESUME, CLEAR_PAUSE and CANCEL_PRINT Add help description to GET_POSITION Add help description to SET_RETRACTION and GET_RETRACTION Signed-off-by: Stefan Dej <meteyou@gmail.com>
* pause_resume: Perform setup via "klippy:connect" instead of "klippy:ready"Kevin O'Connor2021-04-011-2/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* palette2: Add support for P2 devices (#4057)Clifford Roche2021-03-261-6/+9
| | | | | Module which bring support for P2 devices running in connected mode. This enables using a Palette2 directly with Klippy without Octoprint, or without Palette2 plugins for Octoprint which are not functional out of the box with Klipper. Signed-off-by: Clifford Roche <clifford.roche@gmail.com>
* webhooks: Remove "method" parameter from webhook requestsKevin O'Connor2020-08-161-19/+12
| | | | | | | Don't require or use the "method" parameter of requests. This simplifies the interface. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pause_resume: Add CANCEL_PRINT gcodeArksine2020-06-241-0/+26
| | | | | | Register API endpoints for "pause_resume/pause", "pause_resume/resume" and "pause_resume/cancel". Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-10/+8
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Create new wrapper class for gcode command parametersKevin O'Connor2020-05-051-1/+1
| | | | | | | | Instead of passing a dictionary to the command handlers, create a wrapper class and pass that class to the command handlers. This can simplify the command handler code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* pause_resume: add CLEAR_PAUSE gcodeArksine2019-06-281-0/+3
| | | | | | Allow the user to clear the pause state without restoring position. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: Use Octoprint's "paused" and "resumed" action commands.Arksine2019-06-021-2/+2
| | | | | | These action commands prevent Octoprint from sending extra gcodes that can interfere with Klipper's pause/resume control. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: use new save/restore gcodes to handle stateArksine2019-06-021-30/+15
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: Implement send_pause_command()Arksine2019-03-011-7/+14
| | | | | | This allows for pausing from inside a reactor callback. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: fixesArksine2019-02-081-12/+28
| | | | | | | | - When using absolute extrusion the gcode position e-axis position is now captured on PAUSE and restored in RESUME with a call to the G92 handler. - Add a get_status() function that returns a dictionary with an 'is_paused' key. - Do not allow consective calls to PAUSE or RESUME to exectue. Also do not allow a RESUME to executed without a previous PAUSE. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* pause_resume: initial implementation of pause/resume functionality for KlipperArksine2019-01-281-0/+56
This module adds PAUSE and RESUME gcodes that can programatically determine if the gcode is printing from virtual sd or over the serial connection. It also captures the current toolhead position and gcode feedrate on pause, and recovers that position and feedrate on resume. Signed-off-by: Eric Callahan <arksine.code@gmail.com>