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

Send a notification when <X> layer starts. #234

Open
McStebb opened this issue Jan 11, 2023 · 1 comment
Open

Send a notification when <X> layer starts. #234

McStebb opened this issue Jan 11, 2023 · 1 comment

Comments

@McStebb
Copy link

McStebb commented Jan 11, 2023

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
Sometimes I print multi-color models by manually pausing and changing filament at a specific layer, but it usually involves me babysitting the print until I can visually tell it's at the right layer.

It would be nice if Octoprint had a setting that sent a notification (with optional webcam snapshot) when the print reached a specified layer. That way I can go pause and change filament when I get notified.

Most slicers append a layer number comment line at the start of each layer, so triggering the bot to send a notification could simply look for ";LAYER (x)" for when to send the notification.

Or just have the user add custom comment gcode at layer via the slicer. Something like this.
(Add custom GCode at layer 173...)
" ;NOTIFY "

And then the bot notifies me at that layer because of the " ;NOTIFY " comment.

Describe alternatives you've considered
I could just install a multi-filament mod, but that's a considerable undertaking.

Additional context
N/A

@cameroncros
Copy link
Owner

Im more than happy for someone to investigate further, but from memory there is no obvious/easy way for the plugin to get notified of layer changes. As in, Octoprint does not tell plugins when a layer changes. This means we have to start parsing the GCode as it is printing, which will consume precious CPU resources, potentially leading to print defects.

My goal was to make octoprint as light weight as possible, so I didnt go down that road.

For your specific use case, can you not insert GCode to pause the print at a given layer? If the print pauses, you will get a notification for that event, which can prompt you to do the filament switch?

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

No branches or pull requests

2 participants