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

Rewrite pause and resume commands #1807

Closed
seacred opened this issue May 15, 2021 · 5 comments
Closed

Rewrite pause and resume commands #1807

seacred opened this issue May 15, 2021 · 5 comments
Labels
support Something isn't working with the users setup

Comments

@seacred
Copy link

seacred commented May 15, 2021

Hi,
as im using klipper pause and resume are called by a gcode macro.
Is there any possibility to rewrite the pause und resume command send via the touchscreen to send my gcode macros instead the regular resume call to octoprint?
I would appreciate any kind of help.
Thank you!

@seacred seacred added the support Something isn't working with the users setup label May 15, 2021
@jneilliii
Copy link
Contributor

couldn't you add whatever klipper command you want to OctoPrint's pause/resume GCODE Scripts?

@seacred
Copy link
Author

seacred commented May 15, 2021

Sadly i can't because i need to store my current position in the macro.
Klipper needs to use this variables to resume at the correct position. Octoprint isn't able to do this.
i surely can provide the macro if needed.

@jneilliii
Copy link
Contributor

It might be possible with these examples...you would just have to adjust for the macro.

https://docs.octoprint.org/en/master/features/gcode_scripts.html#more-nifty-pause-and-resume

@seacred
Copy link
Author

seacred commented May 15, 2021

No need to implement that, if it's easier to modify octodash to send "macro_resume" instead of octoprints "resume".

@UnchartedBull
Copy link
Owner

OctoDash uses the OctoPrint API for pausing / resuming:

. I guess you can adjust those lines to your liking (i.e. with macro_resume) and then build everything and install. I would also vote for the custom pause / resume scripts though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Something isn't working with the users setup
Projects
None yet
Development

No branches or pull requests

3 participants