How to find the current position of the printhead using an API

Hi All,

While printing an object, I am interested to collect data about the current position (x,y,z) of the printhead via a python script.

Is it possible to do so? If so what are the commands I need to run via Python/API?
Thank you in advance.


There are a couple of technical reason you wouldn't be able to do this. The primary one is that the actual head position is unknown due to buffers in the internal OctoPrint gcode queue, and the printer's command buffer.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.