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

Trigger spoolman prompts from load/unload filament macros #2008

Open
bo0tzz opened this issue Sep 12, 2024 · 8 comments
Open

Trigger spoolman prompts from load/unload filament macros #2008

bo0tzz opened this issue Sep 12, 2024 · 8 comments
Labels
💡 Type: FR Requests a new feature

Comments

@bo0tzz
Copy link
Sponsor

bo0tzz commented Sep 12, 2024

Requested feature:

Add the option to automatically eject the currently selected spool from an UNLOAD_FILAMENT macro, and to trigger a prompt to select a spool from the LOAD_FILAMENT macro.

Solves the following problem:

I sometimes forget to change the selected spool when changing it out.

Additional information:

An alternative approach would be to integrate filament load/unload more deeply with the spoolman feature. That could also allow for smartly (un)loading at the appropriate temperature for the selected spool.

If someone has some pointers for what code I would need to look at, I'd be happy to try my hand at a PR for this.

@bo0tzz bo0tzz added the 💡 Type: FR Requests a new feature label Sep 12, 2024
@meteyou
Copy link
Member

meteyou commented Sep 12, 2024

hey! thx for you request.

you can just use the macro prompts to implement that with your config: https://docs.mainsail.xyz/overview/features/macro-prompts

maybe this repo could also help you: https://github.com/spooknik/FLAP

@bo0tzz
Copy link
Sponsor Author

bo0tzz commented Sep 12, 2024

The macro prompts look really cool and pretty close, but I'm not sure how I would get those to show the spool pick modal?

FLAP looks nice, thanks for linking that!

@meteyou
Copy link
Member

meteyou commented Sep 12, 2024

The macro prompts look really cool and pretty close, but I'm not sure how I would get those to show the spool pick modal?

This is not possible with it...

@bo0tzz
Copy link
Sponsor Author

bo0tzz commented Sep 13, 2024

I guess the ability to show that is one of the options I'm asking for then.

If triggering the spoolman prompt from a macro isn't an option, but ejecting the spool is, then another approach could be a setting to refuse starting a print if a spool isn't selected.

@meteyou
Copy link
Member

meteyou commented Sep 13, 2024

ejecting the spool is just a "gcode". but opening the dialog can create other issues. for example: when we add an option to open this dialog, how do you want to create a "clean solution" to close it? for example you have to write an output on your console (like we did with the macro prompts), but then every open gui (or guis you will open after that) will automaticaly open this dialog. it doesnt matter if you have chosen one spool in any open interface. so how do you want to fix this issue?

@bo0tzz
Copy link
Sponsor Author

bo0tzz commented Sep 13, 2024

Yeah I guess that makes sense. How do you feel about the alternative approach of extending the spoolman panel on the dashboard to do filament load/unload in tandem with selecting/ejecting a spool?

@meteyou
Copy link
Member

meteyou commented Sep 13, 2024

ohh... I haven't thought about this idea until now, but I think this is the much better solution to fix this issue!

@bo0tzz
Copy link
Sponsor Author

bo0tzz commented Sep 13, 2024

I imagine that as having spool eject or select call a configurable macro, which the user could then set up to do a filament load/unload. The extruder temperature from spoolman could get passed to the macro as a parameter. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Type: FR Requests a new feature
Projects
None yet
Development

No branches or pull requests

2 participants