i print a lot while i am out of town and i remotely send prints to multiple printers all the time. i recently had the thought that i would be super nice to know how much filament is left on a spool so i dont accidentally send a print and not have enough filament. while i do have filament run out sensors it would be cool to know before i actually sent the print. my wife usually clears beds for me so i can send more prints, but thats about the extent of her comfort level with my machines.
hypothetically would there be a way to code a macro in klipper that would gather data from an encoder style filament sensor and be able to tell you how many mm of filament have been used.
the macro would need to be able to reset the mm counter to 0, would need to count and record number of mm of filament have been extruded, would need to be able to subtract for retraction.
the thought would be to have a brand new spool loaded, reset the counter to 0, and count length thats been extruded and keep track. that way i would be able to accurately tell how much length is left on the spool before replacement.
thoughts?