mainsail-crew / mainsail

Mainsail is the popular web interface for managing and controlling 3D printers with Klipper.
https://docs.mainsail.xyz
GNU General Public License v3.0
1.72k stars 372 forks source link

Add filament weight to history / statistics #1658

Open EmJay276 opened 12 months ago

EmJay276 commented 12 months ago

Requested feature:

The filament weight is already displayed at the Dashboard and the G-Code Files, it would be realy nice to also have this value for the statistics in stead of the filament length. grafik grafik

grafik

Solves the following problem:

No response

Additional information:

No response

meteyou commented 12 months ago

this is not possible, because it only exists in the metadata from the filament, but not in the history data of moonraker. this data comes from klipper, and not from the metadata. Klipper dont know the specific filament weight. it can only track the extruder (used filament length). you would need some hardware to weight the filament, that klipper would know the "used filament weight". so this is not possible.

Here are the current available data: image

PS: the metadata object is from the gcode file. so this could be VERY VERY WRONG, if you change the flow for example

EmJay276 commented 12 months ago

Using the metadata, it would be easily possible to calculate a "length-density" from the Gcode. density_length = metadata.filament_weight_total / metadata.filament_total This density can be used to calculate the total weight of the print weight_used = density_length * filament_used In your example the length density would be ~2.934464205524863719639451695975 g / m and the total filament used ~29.646g for the 10.10277m

Of course, there is an error if faulty settings are made in the slicer, but that's also the case for the length, if the extruder steps are not calibrated. I would find it really handy to have a rough estimate of the filament (weight) used in a print.

meteyou commented 12 months ago

thank you very much! i hadn't thought of that. of course it would be possible. i'll try to implement it.

EmJay276 commented 12 months ago

That would be great! If you need any help, let me know.

Tom-Neverwinter commented 11 months ago

https://github.com/mainsail-crew/MainsailOS/issues/257

same, I opened a feature request in the wrong place. please see reference

meteyou commented 11 months ago

mainsail-crew/MainsailOS#257

same, I opened a feature request in the wrong place. please see reference

Pls describe where do you need the filament weight. I cannot find it in your request.

meteyou commented 11 months ago

@Tom-Neverwinter ohh... I found it. Your slicer is just wrong. This feature request is for history and not gcode files!

m-klecka commented 9 months ago

Any updates on this? Filament used in grams in the print history would be useful, instead of meters which tell basically nothing..

meteyou commented 9 months ago

I'm refactoring the complete history page/list. after that i can/will implement this feature.

TMTYD commented 6 months ago

Why is the filament weight not displayed?

grafik

grafik

Ok, I found the error, I forgot to specify the density in the slicer, now it is displayed

grafik

meteyou commented 6 months ago

@TMTYD your question has nothing Todo with this FR. Pls use our discord or discussions forum for help. (I think it will be a slicer setting issue, but your screenshots are useless for debugging)

LancerGM commented 4 months ago

This would be an extremely good feature to have! Currently I am running a filament manager which I will not need anymore once this feature is implemented.