API to get filament used or extruder moved distance during print

I would like to implement filament jam detection function by an external python script. I am looking for getting the filament used or extruder moved distance during print. But search all API document did not found any way to get the filament usage real-time.

Request to add filamentUsage or extruderUsage output in API listPrinter or stateList.
Sign In or Register to comment.