From 6ce761b9f483ce61ca51c83a87c5846703706976 Mon Sep 17 00:00:00 2001 From: Tiago Medeiros Date: Thu, 1 Oct 2026 14:46:44 -0400 Subject: [PATCH 1/2] Add filament unload status messages for frontend feedback Right now UNLOAD_FILAMENT works, but from the UI side it's a bit of a black box. The printer does the right thing, but the user has no idea if it's still cutting, retracting, or if it's already finished and waiting for them to pull the filament. This adds status messages so GrumpyScreen (and other frontends) can show the same kind of feedback we already have during loading. The goal is simple: stop users from having to second guess what the printer is doing. --- meta-opencentauri/recipes-apps/klipper/files/macros.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-opencentauri/recipes-apps/klipper/files/macros.cfg b/meta-opencentauri/recipes-apps/klipper/files/macros.cfg index 906cbd96..d9cc32de 100644 --- a/meta-opencentauri/recipes-apps/klipper/files/macros.cfg +++ b/meta-opencentauri/recipes-apps/klipper/files/macros.cfg @@ -486,15 +486,21 @@ gcode: [gcode_macro UNLOAD_FILAMENT] gcode: + RESPOND TYPE=command MSG="FILAMENT_STATE=START" _CG28 AXIS=XY + + RESPOND TYPE=command MSG="FILAMENT_STATE=CUTTING" CUT_FILAMENT ; Wait for movements to complete + RESPOND TYPE=command MSG="FILAMENT_STATE=UNLOADING" MOVE_TO_TRAY COLD_EXTRUDE HEATER=extruder ENABLE=1 ; Move to the tray G1 E-30 F600 COLD_EXTRUDE HEATER=extruder ENABLE=0 G0 Y250 M400 ; Wait for movements to complete + RESPOND TYPE=command MSG="FILAMENT_STATE=REMOVE" + [gcode_macro CUT_FILAMENT] variable_retract_length: 10 From 3ea31690669ae03fd5379fa0163009f851478d1b Mon Sep 17 00:00:00 2001 From: Tiago Medeiros Date: Thu, 1 Oct 2026 17:57:48 -0400 Subject: [PATCH 2/2] Updated to take into account @suchmememanyskill 's suggestion. --- meta-opencentauri/recipes-apps/klipper/files/macros.cfg | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/meta-opencentauri/recipes-apps/klipper/files/macros.cfg b/meta-opencentauri/recipes-apps/klipper/files/macros.cfg index d9cc32de..947c442f 100644 --- a/meta-opencentauri/recipes-apps/klipper/files/macros.cfg +++ b/meta-opencentauri/recipes-apps/klipper/files/macros.cfg @@ -486,21 +486,17 @@ gcode: [gcode_macro UNLOAD_FILAMENT] gcode: - RESPOND TYPE=command MSG="FILAMENT_STATE=START" _CG28 AXIS=XY - RESPOND TYPE=command MSG="FILAMENT_STATE=CUTTING" CUT_FILAMENT ; Wait for movements to complete - RESPOND TYPE=command MSG="FILAMENT_STATE=UNLOADING" MOVE_TO_TRAY COLD_EXTRUDE HEATER=extruder ENABLE=1 ; Move to the tray G1 E-30 F600 COLD_EXTRUDE HEATER=extruder ENABLE=0 G0 Y250 M400 ; Wait for movements to complete - RESPOND TYPE=command MSG="FILAMENT_STATE=REMOVE" - + _SHOW_PROMPT TITLE="Unload completed" MESSAGE="Filament is safe to remove now" [gcode_macro CUT_FILAMENT] variable_retract_length: 10