-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Allow gcode macros to call external scripts #3454
Comments
Hi @abduct, It did not look like there was a Klipper log file attached to this ticket. The log file has been engineered to answer common questions the Klipper developers have about the software and its environment (software version, hardware type, configuration, event timing, and hundreds of other questions). Unfortunately, too many people have opened tickets without providing the log. That consumes developer time; time that would be better spent enhancing the software. If this ticket references an event that has occurred while running the software then the Klipper log must be attached to this ticket. Otherwise, this ticket will be automatically closed in a few days. For information on obtaining the Klipper log file see: https://github.com/KevinOConnor/klipper/blob/master/docs/Contact.md The log can still be attached to this ticket - just add a comment and attach the log to that comment. Best regards, PS: I'm just an automated script, not a human being. |
Octorant and a couple of other programs already handle the specific example given. There may be other uses for the expansion though. |
This issue can be closed as it is a duplicate of #2173. I left my remarks and hopefully it can be merged eventually. |
Hello, It looks like there hasn't been any recent updates on this Best regards, ~ Your friendly GitIssueBot PS: I'm just an automated script, not a human being. |
Hello
I think a feature that should be implemented is allowing gcode macros to be able to call external scripts passing data via the command line.
This would open up a vast cove of extra features without much work on the klipper side of things. For example, say I have created a ruby script that uses the a push notification gem that when called will send my phone a notification of printer status obtained from the provided command line arguments. You could then extend various macros to include notification results. This is only one example. You can use this for print statistics, error notifications, ready state notifications, etc.
For example you may be able to extend the END_PRINT macro like so to obtain the first example where a phone would be notified of a finished print:
I am not familiar with python, but if pointed to the right section of the code base, I may be able to figure out a POC for this feature request.
Any suggestions, improvements, or opinions about this feature request would be appreciated.
Thanks/
The text was updated successfully, but these errors were encountered: