#Dual color printer interface in Mainsail integration with spoolman

1 messages · Page 1 of 1 (latest)

vagrant bridge
#

Have just finished building a Tridex - Two printheads T0 and T1 nominated [extruder] and [extruder1] in printer.cfg. The macros are in place for T0 and T1. Have the latest mainsail os installed and mainsuil web UI is up to date. Spoolman shows in the mainsail interface but unfortunately the option to nominate a spool to each toolhead does not exist. Is this a mainsail webUI issue or do I need to look elsewhere for the solution. Any help will be greatly appreciated.

clever flicker
#

to be honest, the same identical questions come every 2 days... moonraker + spoolman has no 2 tool support yet!

you can only use the macros to change the spool when you have a tool change. not while you are printing with 2 heads at the same time.

#

and here are the infos about multi tool support via macros in mainsail: https://github.com/mainsail-crew/mainsail/pull/1946

[gcode_macro T0]
variable_spool_id: None
gcode:
  ...
  SET_ACTIVE_SPOOL ID={ printer['gcode_macro T0'].spool_id }
  ...

[delayed_gcode RESTORE_SELECTED_SPOOLS]
initial_duration: 0.1
gcode:
  {% set svv = printer.save_variables.variables %}
  {% for object in printer %}
    {% if object.startswith('gcode_macro ') and printer[object].spool_id is defined %}
      {% set macro = object.replace('gcode_macro ', '') %}
      {% set var = (macro + '__SPOOL_ID')|lower %}
      {% if svv[var] is defined %}
        SET_GCODE_VARIABLE MACRO={macro} VARIABLE=spool_id VALUE={svv[var]}
      {% endif %}
    {% endif %}
  {% endfor %}
GitHub

Description
This PR adds support for multi tool support for the spoolman integration.
Related Tickets & Documents
fixes #1927
Mobile & Desktop Screenshots/Recordings

[optional] Are...

vagrant bridge
#

Was just confused. I have to Boxturtles on 2 x V2.4 with the AFC mainsail code. When I went to download this for the Tridex, I was told it was integrated in the UI.
So apologies for the post.