prusa3d / Prusa-Link-Web

Prusa Web interface resources
GNU General Public License v3.0
114 stars 50 forks source link

Exact progress of print within GCode file #444

Open Horstling opened 8 months ago

Horstling commented 8 months ago

I would like to exactly track the progress of my Prusa Mini within a GCode file (e.g. in order to externally trigger timelapse shots at pre-defined spots), and I can't find anything in the Web API that could support that.

The "legacy" specification lists a "filepos" (position in the file being printed, in bytes from the beginning) in the job progress data, but this doesn't seem to be send by my Mini.

Am I missing something or is exact progress tracking not possible right now?

Ideally, there would be some special GCode that we could insert into the print file which would trigger some sort of HTTP event, but being able to poll the exact file position would be great already.

Or would it possible to set some artificial progress with M73, which can be polled by the API?

AndreaDev3D commented 6 months ago

I would love to second this feature request, I have a MK4 and I'm trying to grab timelapse with my proprietary software with a multi-camera setup(webcam and DSLR), even the current nozzle position in the status API should be enough.