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

Having a filament sensor in printer.cfg causes the miscellaneous card to disappear from the UI #449

Closed
RK392 opened this issue Dec 21, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@RK392
Copy link

RK392 commented Dec 21, 2024

Bug Report

Description

As of a recent update, the miscellaneous card disappeared from the UI. After investigating, it turns out that removing the filament sensor from printer.cfg restores the miscellaneous card giving me access to my output pins.

Steps to Reproduce

  1. Add a filament sensor to your printer.cfg
  2. Refresh the printer on Mobileraker
  3. Observe the missing miscellaneous card
  4. Remove the filament sensor from your printer.cfg
  5. Refresh the printer on Mobileraker
  6. Observe the miscellaneous card returning if you have output pins

Expected Behavior

The miscellaneous card should be visible on the UI.

Version Information

  • Device-OS (Android/iOS): Android 13
  • Mobileraker: 2.8.3-583
  • Klipper: v0.12.0-404-g80d185c9
  • Moonraker: v0.9.3-3-gccfe32f2

Debug Logs

Logs are available upon request.

Additional Context

The miscellaneous card was visible earlier, including the filament sensor box showing whether filament is being detected. Also, Mobileraker still shows a "Filament Sensor Triggered" dialog box even with the missing miscellaneous card which tells me that Mobileraker still recognizes the sensor.

@RK392 RK392 added the bug Something isn't working label Dec 21, 2024
@Clon1998
Copy link
Owner

Hey,
I am unable to reproduce the issue. I have multiple printers with running filament sensors.

Can you please provide me the apps log file (App settings -> Scroll down -> logs) and the klipper config of the sensor

@RK392
Copy link
Author

RK392 commented Dec 21, 2024

Sure, here's the most recent log.

mobileraker_2024-12-22T01-12-17.log

Thanks for your time and help!

@Clon1998
Copy link
Owner

Hey @RK392
Thanks for the log files.
The problem was on my end due to a faulty code section related to sorting the available misc objects in the Misc. Card.

I will include the fix in the next release. For now, the only workarounds I can think of are not to include the filament sensor in the printer config (Not ideal...) or to include a _ as a prefix to hide the object from the app

@RK392
Copy link
Author

RK392 commented Dec 22, 2024

Hey @Clon1998

Awesome! Thanks for the prompt response as usual!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants