fluidd icon indicating copy to clipboard operation
fluidd copied to clipboard

add remaing Filament weight in Printer Status

Open TheTiEr opened this issue 4 years ago • 11 comments

add the remaining filament weight in the printer status widget.

This could be helpful if you have to change the spool midprint and keep sure that there is enough material on the spool. This helps with sleepless nights

TheTiEr avatar Dec 15 '21 13:12 TheTiEr

Fluidd remaining Filament

i have added and changed the code to fit your annotations. Above you can see it working. I use Cura as Slicer. To work with Cura i had to add a plugin, which i had to write on my own, so the needed weight of the filament is written in the header.

TheTiEr avatar Jan 26 '22 10:01 TheTiEr

I'm just checking this now, first comment I have is that personally I'm not very fond of that line break that screws the label alignment on the left as it shows on your screenshot!

I wonder if it wouldn't be more practical to just show the "remaining" part as a tooltip of the filament when one hovers with the mouse, or doing a new label below the existing one.

Having said that, I'm extremelly interested in this as I recently looked how to get this output in Cura and failed miserably as it is not part of the "special variables" they have available...

pedrolamas avatar Jan 26 '22 16:01 pedrolamas

Yes, I was wondering how this would look, hence the screenshot request.

@pedrolamas it may be too much to ask in this PR, maybe we can track in a other issue, but what about a config setting to display either or. And whichever is not displayed, becomes the tooltip on mouse hover?

eduncan911 avatar Jan 26 '22 16:01 eduncan911

I'm ok we add a setting to further configure this, but I still think we should do something on how it currently looks. I would prefer that we either break this into 2 labeled entries or just set the 2nd line as a tooltip.

pedrolamas avatar Jan 26 '22 16:01 pedrolamas

@TheTiEr what do you think to our suggestions?

One label, with tooltip/mouse hover? Or, two labels?

The config option can be tracked in another issue.

I would lean towards two labels, if it was me (and hide the label we don't have, like originally coded)

eduncan911 avatar Jan 26 '22 16:01 eduncan911

I'm with @eduncan911, 2 labels and hide if it is not available!

pedrolamas avatar Jan 26 '22 16:01 pedrolamas

Following up on this topic, I just opened this feature request: https://github.com/Ultimaker/Cura/issues/11343

pedrolamas avatar Jan 26 '22 16:01 pedrolamas

IMHO these kinds of features must be implemented to be compatible with all the main slicers and with native values or not implemented.

Plus adding an option in the settings to choose which kind of value you want. eg grams/meter/percent (and if you want it)

Same thing about the time like that was before. I find very annoying to have a list of value which you don't care about.

It's a very niche case, need cura + need a plugin in cura.

Biorn1950 avatar Jan 26 '22 20:01 Biorn1950

@TheTiEr what do you think to our suggestions?

One label, with tooltip/mouse hover? Or, two labels?

The config option can be tracked in another issue.

I would lean towards two labels, if it was me (and hide the label we don't have, like originally coded)

I think this option is the best too. Show the remaining weight if it is available else the needed length in meters.

The cherry on the top would be to show the remaining weight and while hovering over it, it will show all other informations, like meters and percent.

TheTiEr avatar Jan 27 '22 12:01 TheTiEr

It's a very niche case, need cura + need a plugin in cura.

I just confirmed, and Cura works out of the box (no extra plugin required!)

https://github.com/Ultimaker/Cura/issues/11343#issuecomment-1023133340

pedrolamas avatar Jan 27 '22 12:01 pedrolamas

It's a very niche case, need cura + need a plugin in cura.

I just confirmed, and Cura works out of the box (no extra plugin required!)

Ultimaker/Cura#11343 (comment)

After a quick check filament_weight_total is already managed by Moonraker for the main slicers.So effectively it's ok on this point. ( @TheTiEr maybe your slicer is outdated and don't have the lasts placeholders or placeholder have been changed and moonraker need to be updated)

IMO a select list in the settings for the filament unit stay the best solution. That not exclude to have a passover like @eduncan911 suggested.

Biorn1950 avatar Jan 27 '22 13:01 Biorn1950