(Pushover) & (Octolapse) Moment of image recording

Hello everybody,

i use Octoprint on a Raspberry 4 B with the plugins Octolapse and Pushover to control my Ender 3 Pro. All software elements are up to date, I installed everything last week. The system runs perfectly. Many thanks to the whole community and the developers!

Octolapse works perfectly, as expected. As camera I use a Raspberry Pi Camera V2.1.

If I let the Pushover Plugin send me a notification when "print done", the time varies.
If Octolapse is enabled, the image is taken for the notification when the print head is at the position or at the moment when Octolapse takes the last image. The print head is then at the right position and the print bed in the middle. So I set it in Octolapse because the camera is attached to the left side of the y-axis. If the print head is on the left, the camera view is blocked, so Octolapse is configured that way.
So I get a push message with a photo of the finished part. So everything is fine as long as Octolapse is activated.

But since Octolapse needs additional time for printing and sometimes there is a slight stringing, I don't always want to activate it.

If I deactivate Octolapse, Pushover creates the photo for the "print done" notification but only when the print head is back in home position. As described above, the view of the component is then blocked.

Solution attempts:
I have now added custom G-Code "G1 X230 Y110 F3000 ; picture position" and "G4 P5" in the end code of Prusa Slicer, hoping that the photo will be taken then. In fact, the photo will only be triggered when the printer status changes from "printing" to "operational". However, during several tests I had the impression that when the Octalapse is activated, the status changes from "printing" to "finishing" and then back to "operational".

1st (bad) solution:
I added the command M0 in the end code after I placed the component at the right place for the photo, so that the printing pauses completely. The Pushover plugin has a trigger to send a notification. That's great, but I have to print a resume via the UI to let the G-code run to the end. The end of the G-code contains the command "G1 X0 Y200 F3000 ; present print to unload", which makes the print bed move to the front.

2nd (bad) solution:
Of course I could also let the G-code end so that the component is at the desired photo position. But then I would have to pull the bed itself forward each time to remove the component.

I have already searched the forums to find the problem and find a solution. I'm just wondering about the different behaviour when Octolapse is on or off. The trigger "print done" seems to occur at a different moment. I would like to understand this to create the desired situation that I always get a notification with a picture of the finished part, no matter if Octolapse is on or off.

Could you help me?

Best regards

I would add gcode to move your bed to the desired photo location to your end gcode in your slicer, then use the OctoPrint After print job completes gcode script to move the bed back into the desired location (after waiting a few seconds to allow the snapshot to be taken). However, I'm not sure exactly when the after print done event is triggered. It could be before or after that script is called unfortunately. Wouldn't hurt to give it a try to find out!

I was not aware of this plugin, I will give it a try and let you know! Thanks a lot for your suggestion :slight_smile:

It is not a plugin, it comes standard. Here is a screen cap:

1 Like

It works like a charm!

The picture seems to be taken after the "print" gcode was processed. Therefore I added the following gcodes to the octoprint "after print job completes" section:

G4 S10; delay fuer final foto pushover
G1 X0 Y220 F3000 ; present print
M84 X Y E ; disable motors

The picture is taken during the G4 statement (which probably could be shorter) and then the print head / table is moved into the desired position.

Thnaks again and kind regards

1 Like

Great. But could you please do PSA: Please mark the solutions to your topics as such instead of changing the topic. Thank you!

:slight_smile: You marked the wrong post as the solution. Will give you a pass.. this time, lol!

Thanks :wink: However, I wanted to understand what triggers the picture to be taken.. sometimes it is difficult to tell what exactly the right answer is :see_no_evil: