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

Adds a service to send arbitrary gcode commands to the printer #778

Merged
merged 10 commits into from
Dec 8, 2024

Conversation

gpambrozio
Copy link
Contributor

@gpambrozio gpambrozio commented Nov 25, 2024

I want to add an automation to home all axis when I turn on my printer.

This adds an Action to the integration where we can send arbitrary commands to it.

Not sure how this will behave if people have many printers. As I only have one it's not an issue for me.

Might also be good to add safeguards to not send the command when printing maybe???

@gpambrozio gpambrozio changed the title Adds a button to home all axis Adds a service to send arbitrary gcode commands to the printer Nov 26, 2024
@AdrianGarside AdrianGarside merged commit 26771cb into greghesp:main Dec 8, 2024
2 checks passed
@Skydev0h
Copy link
Contributor

Wow, adding a service turned out to be so simple! Nice code to learn of.

Might also be good to add safeguards to not send the command when printing maybe???

Actually, it is good this was not implemented, since sending some gcode while the printer is printing can be beneficial in some cases (change fan speed or nozzle / heatbed temperature, for example, I know that is implemented natively, but who knows, what gcode can be useful in the future).

@northcoastam
Copy link

This sounds neat!

sending some gcode while the printer is printing can be beneficial in some cases

Does this mean I could send the Marlin M220 gcode to change the printing speed to rates other than the built-in "Silent/Sport/Ludicrous"? I remember watching one tall, slender print (in TPU, I think it was) where near the top it was really starting to flex around, even after switching to silent mode. I wished it was like my old Ender 3 Klipper printer where I could slow it down to any arbitrary speed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants