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

[Feature] Filament cost entity #1057

Open
coltography opened this issue Feb 20, 2025 · 6 comments
Open

[Feature] Filament cost entity #1057

coltography opened this issue Feb 20, 2025 · 6 comments
Labels
feature request New feature or request for Integration specific

Comments

@coltography
Copy link

Describe the feature

I was wondering since a few entities like print weight, print length, etc are now being pulled from the 3mf file, if the filament cost could also be used in an entity?

Right now I have a very crude python script that runs on automation to pull the gcode and extract the estimated cost from each print, then updates an input number. But I'm totally lost on how to implement such a thing in this add-on.

It's a unique sort of data point to be able to pull because you can track your filament cost over time.

For example at the very end of the gcode file sliced with orca slicer we get:

; filament used [mm] = 2212.59
; filament used [cm3] = 5.32
; filament used [g] = 6.76
; filament cost = 0.11

What device is this for?

P1S

Other Information

No response

@coltography coltography added the feature request New feature or request for Integration specific label Feb 20, 2025
@AdrianGarside
Copy link
Collaborator

AdrianGarside commented Feb 20, 2025

It would be much better if Orca puts it into the cheaper files like slicer_config.json or plate_n.json. Hmm, there is something in project_settings.config although I'm looking at a local 3mf not one sent to the printer so maybe that's not in the printer's 3mf file.

@coltography
Copy link
Author

I pulled the 3mf file off the printer and in project_settings.config I do see the filament_cost but that's for that entire roll (which is set in orca slicer for each filament profile)

For example this roll I paid $16.80 for:

  ],
    "filament_cost": [
        "16.8"

This could then be calculated against the print_weight to get an exact cost of that print? If that's even possible.

@AdrianGarside
Copy link
Collaborator

Yes, that's my plan. If we can properly associate that with the correct filament if an ams remap has occurred then we can do the conversion easily enough,.

@coltography
Copy link
Author

I always forget how the AMS adds another layer of complexity I don't even think about. For my flow I just have the 1 external spool to consider.
I'll be forever grateful if this gets added some day!

@AdrianGarside
Copy link
Collaborator

There’s a separate spool card now. It may still only be in the beta releases.

@coltography
Copy link
Author

Understood, I'll be happy to test. Unfortunately even attempting to figure out how to contribute to this is way over my head, so I'm willing to help test at the very least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request for Integration specific
Projects
None yet
Development

No branches or pull requests

2 participants