Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Action commands #1434

Closed
danielegger1 opened this issue Dec 31, 2018 · 3 comments
Closed

Feature Request: Action commands #1434

danielegger1 opened this issue Dec 31, 2018 · 3 comments
Labels
feature request A request for adding a specific feature of change of behaviour
Milestone

Comments

@danielegger1
Copy link

I would like to get "Action" commands when some print issue occur, for example crash detection.
In Octoprint it is possible to react on printer "actions" but for that the printer must sent threw the terminal a message like "action:crashdetected". This can be added for several different things like filament runout, power panic, etc. This way I can send a message from octoprint to my phone (via telegram for example) with a picture, or I can pause the print make a alert or whatever I want.

image

Send: N21272 G1 X140.372 Y123.808 E0.00075*103
Recv: echo:enqueing "G1 E-1.000 F2700.000"
Recv: echo:enqueing "G1 Z 10.199 F 800.000"
Recv: echo:enqueing "CRASH_DETECTEDX"

NEW = action:crashdetected

Recv: tmc2130_home_enter(axes_mask=0x01)
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: 0 step=30 mscnt= 482
Recv: tmc2130_goto_step 0 29 2 1000
Recv: tmc2130_home_exit tmc2130_sg_homing_axes_mask=0x01
Recv: tmc2130_home_enter(axes_mask=0x02)
Recv: echo:busy: processing
Recv: 0 step=18 mscnt= 291
Recv: tmc2130_goto_step 1 17 2 1000
Recv: tmc2130_home_exit tmc2130_sg_homing_axes_mask=0x02
Recv: echo:enqueing "CRASH_RECOVER"
Recv: T:215.2 E:0 W:1
Recv: T:215.3 E:0 W:0
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: echo:busy: processing
Recv: Resend: 21242
Recv: ok
Send: N21242 G1 X143.783 Y126.239 E0.03352*101
Recv: ok

@danielegger1
Copy link
Author

I would also like to get a GCode command (M118 for example) which sends just a action:userAction command.
This way I could easily add this Gcode line on q certain layer height to let octoprint send me a message

@michalxfanta michalxfanta added the feature request A request for adding a specific feature of change of behaviour label Jan 1, 2019
@DanaViolet
Copy link

I would also like to see this feature implemented. I would like for the printer to pause when the filament runout sensor is tripped, but this does not happen when printing with octoprint.

@napter
Copy link

napter commented Mar 22, 2022

It would also be great if we could have a menu item to send action commands. Specifically a menu option for HOST_START_MENU_ITEM which would allow you to reprint the last print job directly from the printer without having to go back to octoprint.

@gudnimg gudnimg added this to the FW 3.13.1 milestone Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A request for adding a specific feature of change of behaviour
Projects
None yet
Development

No branches or pull requests

6 participants