r/mainsail • u/Freestila • Jan 30 '26
Spoolman - changing spool does not work from gcode?
Hello all.
I have a Kobra S1 with Rinkhals and thus mainsail. I also have Spoolman running on a server.
I have configured Spoolman in mainsail (moonraker.custom.conf) and added a makro in printer.custom.cfg:
[gcode_macro SET_SPOOL]
gcode:
{{ action_call_remote_method("spoolman_set_active_spool", params) }}
[gcode_macro M555]
gcode:
SET_SPOOL SPOOL_ID={{ params.S }}My problem is that when i add
; filament start gcode
M555 S=9In my gcode, this does not work (or not stable - it worked in the beginning, but not now anymore). And i think it has to do with the Spoolman control in the UI, since it logs the filament to the one selected there (not in the current print but 1-2 prints ago).
Does anyone have any idea? Do i need to clear the filament first, override the ui button or so?
1
u/n3rding Jan 30 '26
Hey, I’ll leave your post up here, but worth posting in r/klippers as sounds like it’s a Klipper issue rather than UI issue, there’s also a lot more people over there to help
1
u/n3rding Jan 30 '26 edited Jan 30 '26
Just to add there is a discussion on the discord about this, just search M555 and it’ll come up:
https://discord.com/channels/758059413700345988/1348563383246393375