TheSpaghettiDetective / obico-server

Obico is a community-built, open-source smart 3D printing platform used by makers, enthusiasts, and tinkerers around the world.
https://obico.io
GNU Affero General Public License v3.0
1.5k stars 299 forks source link

[Feature] Notifications when printer sends action commands #392

Open Doormat1 opened 3 years ago

Doormat1 commented 3 years ago

I have recently installed the smart filament sensor on my ender 3 pro runnin an skr mini e3 v2. I have host commands enabled in my firmware so when the printer sends the m600 command when the sensor detects an issue octoprint pauses. Is there anyway TSD could notify me when these happen as well?

kennethjiang commented 3 years ago

This is a really good feature request.

Does OctoPrint pick up these m600 command, and hopefully even make it available with its APIs? If so, it'll be a lot easier to implement. Will appreciate it if you can post a few more pointers about how widely accepted m600 command is, and the status of OctoPrint support of that.

Doormat1 commented 3 years ago

Yes Octoprint picks them up and pauses the print with a notification on the screen until the user deals with it.

On Sat, 27 Feb 2021 at 18:11, Kenneth Jiang notifications@github.com wrote:

This is a really good feature request.

Does OctoPrint pick up these m600 command, and hopefully even make it available with its APIs? If so, it'll be a lot easier to implement. Will appreciate it if you can post a few more pointers about how widely accepted m600 command is, and the status of OctoPrint support of that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TheSpaghettiDetective/TheSpaghettiDetective/issues/392#issuecomment-787113058, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKX7C3Y375JVIFGJOD2323TBEYWPANCNFSM4YJH2AAQ .

kennethjiang commented 3 years ago

That's a good news!

Can you dig up a bit more info, such as if OctoPrint will send an event to all plugins on m600? I don't have a printer that I can test with right now.

Doormat1 commented 3 years ago

This is the octoprint documentation https://docs.octoprint.org/en/master/features/action_commands.html https://docs.octoprint.org/en/master/bundledplugins/action_command_prompt.html

hope they help

On Sat, 27 Feb 2021 at 18:16, Kenneth Jiang notifications@github.com wrote:

That's a good news!

Can you dig up a bit more info, such as if OctoPrint will send an event to all plugins on m600? I don't have a printer that I can test with right now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/TheSpaghettiDetective/TheSpaghettiDetective/issues/392#issuecomment-787113769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKX7C5JP2LPVY5KSGVLUFTTBEZIPANCNFSM4YJH2AAQ .

kennethjiang commented 3 years ago

This is awesome! Should make things a lot easier! Thank you @Doormat1

Doormat1 commented 3 years ago

Glad to help! People need to enable it in config adv, I got the instructions from the teaching tech video on the smart filament sensor

On Sat, 27 Feb 2021, 18:26 Kenneth Jiang, notifications@github.com wrote:

This is awesome! Should make things a lot easier! Thank you @Doormat1 https://github.com/Doormat1

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TheSpaghettiDetective/TheSpaghettiDetective/issues/392#issuecomment-787115323, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQKX7C5JZJTYUA65XZFWZ6DTBE2OZANCNFSM4YJH2AAQ .

kennethjiang commented 3 years ago

Gotcha. Thanks again for the tips so that I don't have to waste time searching for info. :)

dfredell commented 3 years ago

My use of m600 is slightly different. I sometimes do a two colored print on my Ender 3 and switch the filliment part way through the print. The M600 is added to the gcode via Cura at layer X. Currently I have Octoslack installed to notify me of M600s.

kennethjiang commented 3 years ago

This is a really good info @dfredell . Will definitely give us a jump start!