| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This is the new location of the macros and settings provided by the Mainsail team. The intent is to enable all users to setup important macros and settings needed by the mainsail UI.
There are 2 main reasons for that decision
We currently do not provide an installer and we might never do. But doing it is simple copy and paste a few commands in an ssh terminal. The instructions assume that you have a up to data and working moonraker installation. If not start with updating your moonraker first.
cd ~ git clone https://github.com/mainsail-crew/mainsail-config.git ln -sf ~/mainsail-config/mainsail.cfg ~/printer_data/config/mainsail.cfg
You need to update your moonraker.conf to get alway the latest version.
Either open your moonraker.conf and add
[update_manager mainsail-config] type: git_repo primary_branch: master path: ~/mainsail-config origin: https://github.com/mainsail-crew/mainsail-config.git managed_services: klipper
below the mainsail updater section.
You can also link and include the prepared file to your moonraker.conf. ssh in your PI and
ln -sf ~/mainsail-config/mainsail-moonraker-update.conf ~/printer_data/config/mainsail-moonraker-update.conf
than open your moonraker.conf and add
[include mainsail-moonraker-update.conf]
below the mainsail updater section.
The setup process is still the same, simply add
[include mainsail.cfg]
to your printer.cfg file. Be aware the file will show up as read only. This was intended by use.
for that simple copy the [virtual_sdcard] block from the mainsail.cfg and simple place it below your include. The result should look similar to:
[include mainsail.cfg] [virtual_sdcard] path: "my new location" on_error_gcode: CANCEL_PRINT
We provided a variable setup that let you customize the provided PAUSE, RESUME and CANCEL_PRINT macros. If you need e.g., your own park position simple copy the complete _CLIENT_VARIABLE macro from the mainsail.cfg and place it below your mainsail include. After that uncomment the needed variable and fill them with your values.
The result for a custom park position would look like:
[include mainsail.cfg] [gcode_macro _CLIENT_VARIABLE] variable_use_custom_pos : True ; use custom park coordinates for x,y [True/False] variable_custom_park_x : 150.0 ; custom x position; value must be within your defined min and max of X variable_custom_park_y : 10.0 ; custom y position; value must be within your defined min and max of Y #variable_custom_park_dz : 2.0 ; custom dz value; the value in mm to lift the nozzle when move to park position #variable_retract : 1.0 ; the value to retract while PAUSE #variable_cancel_retract : 5.0 ; the value to retract while CANCEL_PRINT #variable_speed_retract : 35.0 ; retract speed in mm/s #variable_unretract : 1.0 ; the value to unretract while RESUME #variable_speed_unretract : 35.0 ; unretract speed in mm/s #variable_speed_hop : 15.0 ; z move speed in mm/s #variable_speed_move : 100.0 ; move speed in mm/s #variable_park_at_cancel : False ; allow to move the toolhead to park while execute CANCEL_PRINT [True,False] ## !!! Caution [firmware_retraction] must be defined in the printer.cfg if you set use_fw_retract: True !!! #variable_use_fw_retract : False ; use fw_retraction instead of the manual version [True/False] gcode:
You can also uncomment all variables if you like. The values are the same as the used default.
| Back | FazBrowse Home | New Git URL |