prusa3d / Prusa-Firmware-Buddy

Firmware for the Original Prusa MINI, Original Prusa MK4 and the Original Prusa XL 3D printers by Prusa Research.
Other
1.16k stars 229 forks source link

[ENHANCEMENT] Filament sensor status in API / metrics #4282

Open samdurnxn opened 1 day ago

samdurnxn commented 1 day ago

Printer model

All

Describe the enhancement

There are many usefull informations in the API and in metrics to monitor in different ways the printer but there is 2 missings things. I search in the API, serial information and in the available metrics but I can't find the filament sensor status and for the MMU3 the Finda status, it will be great to have it.

If these informations are already available, sorry . Just tell me where I can find it.

Expected functionality

Add the information in the printer status information in the json return will be useful or if it's much simple to implement, add it in the metrics like this it will be activate on demand by add a M331. Thanks in advance

CZDanol commented 17 hours ago

There are fsensor_raw, fsensor, side_fsensor_raw metrics already. Not sure about the finda, maybe "side_fsensor" will work?

samdurnxn commented 17 hours ago

Hello, my bad I didn't see this file. I will test it. Thanks !

samdurnxn commented 11 hours ago

I activate all metrics regarding filemant sensors but I think it's not those I need.

In my gcode : M331 fsensor_raw M331 fsensor M331 side_fsensor_raw M331 side_fsensor

I received in syslog : "fsensor_raw,n=0 v=1873381i 57157" "fsensor_raw,n=0 v=1871784i 15851" "fsensor_raw,n=0 v=1871755i 80585" "fsensor_raw,n=0 v=1871624i 38462"

Only this metrics when the extrusion block is moving on my MK4S.

Maybe the information of filament detection is only send to the screen for information and not send elsewhere. What do you think ?