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

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

Open
samdurnxn opened this issue Nov 6, 2024 · 4 comments
Open

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

samdurnxn opened this issue Nov 6, 2024 · 4 comments
Labels
enhancement Improvement proposal based on existing features.

Comments

@samdurnxn
Copy link

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

@samdurnxn samdurnxn added the enhancement Improvement proposal based on existing features. label Nov 6, 2024
@CZDanol
Copy link
Contributor

CZDanol commented Nov 7, 2024

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

@samdurnxn
Copy link
Author

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

@samdurnxn
Copy link
Author

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 ?

@samdurnxn
Copy link
Author

samdurnxn commented Nov 10, 2024

I search in the code and I found that the values are available in the marlin_vars() object with the functions mmu2_finda() and active_extruder() but not call in the API or the metrics.
I don't know if it easy to add it in the metrics ? if yes, is it possible to add it in the next version of the firmware ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement proposal based on existing features.
Projects
None yet
Development

No branches or pull requests

2 participants