aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/print_stats.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename everything significant to Kutter except for docsTomasz Kramkowski2025-08-151-1/+1
|
* Run black on all first party python codeTomasz Kramkowski2025-08-061-34/+53
|
* print_stats: Fix for filament statistics bug in print_stats.py for ↵Ingo Donasch2025-05-311-0/+5
| | | | | | | toolchangers (#6946) added extruder:activate_extruder event hook to print_stats.py to update self.last_epos Signed-off-by: Ingo Donasch <ingo@donasch.net>
* print_stats: add `SET_PRINT_STATS_INFO` G-Code for pass slicer variables to ↵Stefan Dej2022-10-051-1/+28
| | | | | | | Klipper (#5726) This adds a gcode command that can be used insight the slicer to pass the total layer count and current layer information. Signed-off-by: Stefan Dej <meteyou@gmail.com>
* print_stats: Fix exception when canceling in/as first G-codeDennis Marttinen2021-11-211-0/+2
| | | | Signed-off-by: Dennis Marttinen <twelho@welho.tech>
* print_stats: add `cancelled` when `CANCEL_PRINT` used (#4366)Kamil Trzciński2021-06-141-4/+8
| | | | | | | | | | | 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>
* print_stats: exclude time prior to first extrusion from "print_duration"Arksine2020-11-131-1/+10
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* gcode_move: Move GCodeMove class from gcode.py to new extras moduleKevin O'Connor2020-08-201-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Split G0/G1 command handling to new gcode_move classKevin O'Connor2020-08-201-3/+3
| | | | | | | | Split up the main GCodeParser class into GCodeDispatch and GCodeMove classes. The GCodeMove class is now available using the "gcode_move" printer object name. This split simplifies the gcode.py code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Convert get_status() last_xpos to use a namedtupleKevin O'Connor2020-08-201-2/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* print_stats: Add virtual_sdcard state trackingArksine2020-08-051-7/+21
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* print_stats: stat tracking for virtual sdcard prints in progressArksine2020-08-051-0/+64
Signed-off-by: Eric Callahan <arksine.code@gmail.com>