Used filament in print

Basic Information:

Printer Model: ArtilleryX2
MCU / Printerboard: Ruby

Describe your issue:

hello all, I’m trying to figure out how to get the amount of filament used for a print? In Mainsail I see the quantity, but I would need to have the data because I’m designing a system with NFC tags to save the data of the spool, color, filament length used, bed and print temperature. Thank you

In Klipper, you can use the filament_manager component to monitor filament usage. You need to enable and configure this component in Klipper’s configuration file. Here is a basic configuration example:
filament_manager {
step: 1.0 # Millimeters per step
filament_diameter: 1.75 # Filament diameter in millimeters(The common diameter of PLA and PETG is 1.75mm)
extruder_steps_per_mm: 100 # Extruder steps per millimeter
extruder_temp: 200 # Extruder temperature
extrusion_multiplier: 1.0 # Extrusion multiplier
}
During the printing process, Klipper records the filament usage. You can connect to the printer via SSH and use the status command to get the current filament usage.

Hope can help you
jimmy