Configuration
Mainsail requires a minimum configuration to function properly and will display a warning at startup if the required parts are not found in your configuration file(s).
Fast way (mainsail.cfg)
The following configuration elements are required and must be configured for Mainsail to function properly. In MainsailOS they are stored by default in mainsail.cfg and only need to be included in printer.cfg.
Include mainsail.cfg
This ensures that your printer config file includes the mainsail.cfg. If you are migrating from a different Klipper front end, this will not be in your existing printer.cfg.
[include mainsail.cfg]Manual way
Virtual SD Card
The Virtual SD Card allows G-Code file uploads.
[virtual_sdcard]
path: ~/printer_data/gcodesDisplay Status
Display Status is required for messages in your status panel, if you don’t have [display] in your configuration.
[display_status]Pause, Resume, Cancel
These macros enable pause and resume in Klipper.
Add pause / resume / cancel macros
You can modify the below macros to fit your needs.
Optional
The following configuration elements are optional, including making tweaks and alterations to Klipper’s default commands.
Customisation
Klipper has a number of preset commands that are also just macros.
The default configuration of these may not suit your needs or preferences, though they are usually a good place to start. It’s possible to adjust these by including them in your config, along with any additional code you would like to run.
Example
Adjusting the BED_MESH_CALIBRATE command, which is found in the menu at Sidebar > Heightmap > Calibrate.
Last updated
Was this helpful?
