Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filament weight to history / statistics #1658

Open
EmJay276 opened this issue Nov 18, 2023 · 11 comments
Open

Add filament weight to history / statistics #1658

EmJay276 opened this issue Nov 18, 2023 · 11 comments
Labels
💡 Type: FR Requests a new feature
Milestone

Comments

@EmJay276
Copy link
Contributor

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

@EmJay276 EmJay276 added the 💡 Type: FR Requests a new feature label Nov 18, 2023
@meteyou
Copy link
Member

meteyou commented Nov 18, 2023

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

@meteyou meteyou closed this as not planned Won't fix, can't repro, duplicate, stale Nov 18, 2023
@EmJay276
Copy link
Contributor Author

EmJay276 commented Nov 18, 2023

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
Copy link
Member

meteyou commented Nov 18, 2023

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

@meteyou meteyou reopened this Nov 18, 2023
@meteyou meteyou added this to the vNext milestone Nov 18, 2023
@EmJay276
Copy link
Contributor Author

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

@Tom-Neverwinter
Copy link

mainsail-crew/MainsailOS#257

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

@meteyou
Copy link
Member

meteyou commented Nov 23, 2023

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
Copy link
Member

meteyou commented Nov 23, 2023

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

@m-klecka
Copy link

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

@meteyou
Copy link
Member

meteyou commented Feb 12, 2024

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

@TMTYD

This comment was marked as off-topic.

@meteyou
Copy link
Member

meteyou commented Apr 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Type: FR Requests a new feature
Projects
None yet
Development

No branches or pull requests

5 participants