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

Return estimated remaining_length in addtion to remaining_weight #37

Closed
akonkol opened this issue Jul 9, 2023 · 1 comment
Closed
Labels
Feature Request New feature or request

Comments

@akonkol
Copy link

akonkol commented Jul 9, 2023

I am looking to grab the filament required for a print and see if that amount is available on the active spool. If there is not enough filament on the spool to satisfy the print I want to throw an error in the UI or return something like a 409 (which may be more complex).

The amount filament required for a gcode file can be found via a call to /server/files/metadata?filename={filename}. The value provided by the slicer is provided in millimeters

Although you could leave it up to the developer to create a helper function as you done here I think it would be nice if Get Spool returned remaining_length as well as remaining_weight

@Donkie
Copy link
Owner

Donkie commented Jul 9, 2023

Good idea, this is an easy addition

@Donkie Donkie added the Feature Request New feature or request label Jul 9, 2023
@Donkie Donkie closed this as completed in 5654b5d Jul 10, 2023
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
Projects
None yet
Development

No branches or pull requests

2 participants