You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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
The text was updated successfully, but these errors were encountered:
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 inmillimeters
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
returnedremaining_length
as well asremaining_weight
The text was updated successfully, but these errors were encountered: