* fix: truncate excessive decimal places
fix: add `toString` casting to labels
fix: disable spinner appropriately
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: allow smooth time with 3 decimal places
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: disable both spinners if input value triggers error
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* feat: add spinnerFactor prop
Simple multiplicator that can be used in combination with spinners to increase/decrease values with a different step size.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: smooth time step size of 0.001
fix: spinnerFactor of 10
Allows for manual input of numbers with 3 decimal places. Spinners will still increase/decrease by 0.01
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* feat: add hasSpinner prop
Allows for individually activating/disabling spinners on a number input field
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: add sane values as spinnerFactor for motion and fw retract spinners
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: nullish coalescing operator logic
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: input rules and move message text to locales
* fix: omit duplicate entries in comboxes
* fix: add key to button group
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: enable zSlider when tracking
* fix: set zSlider to max on start tracking
* fix: disable tracking when pressing CLEAR
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* chore: improve confirmation service host control visuals
* fix: add missing klipper restart condition
* i18n: improve wording of english and german translation
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* Update necessary-cfg for grammar and readability fixes
* Update homepage for typos, grammar and readability
* Update index.md in manual setup for readability
* Update for readability and make editing moonraker.conf a sub-chapter
* Update for readabiliy and grammar
* Update for readability and grammar
* Fix PR #478 with review feedback - fix Klipper pause / resume
* Fix typo (missing s in preset)
* Make call to action stronger, remove "it is" for "time to print!"
* Improve readability on front page
* Update Kiauh page for readability and gramma
* Review and update Update guides for spelling, grammar, readabilty and localization
* Review updates from yesterday and fix some errors from updating the docs
* Apply feedback to fix typos for PR#478
Signed-off-by Paul Cutler paul@paulcutler.org
* Update da.json
* locale: fix typo in translation name
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* locale: add last translations
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
It can occur, that a browser on Windows 10 reports a maxTouchPoints count of 256, even though the device is a desktop system without any touch functionality at all.
See also: https://stackoverflow.com/a/67909182
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* feat: add confirmation for klipper/service/host restart/stop when printer is printing
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* locale: modify confirmation dialog names
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: en locale syntax
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: locale for service restart dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: reset dbCheckboxes
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework moonraker db reset
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: add function to create a mainsail db backup
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: fix type of dbCheckboxes
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: first restore test
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: restore db from json file
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework gui store
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: rework gui store issues
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: rework gui store issues with extruder panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rename gui/macrogroups to gui/macros and move back to mainsail namespace
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: ignore simple hide macros settings in expert macro mode
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: init load bug
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rename gui/consolefilter to gui/console and move back to mainsail namespace and update gui/macros
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove old function in gui/macros
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework gui/presets
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework gui/gcodehistory
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: add all gui restart actions in gui restart action
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework gui/remoteprinters
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: control store gets
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework reset moonraker db in interface settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework backup moonraker DB
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: rework restore moonraker db
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: backup/restore moonraker db locale
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: backup/restore moonraker db locale, add tempchart
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: change tempchart settings wrong store path
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: add view locale to db backup/restore and delete old locale
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: use /config/.theme/default.json when reset moonraker db to fill in default values after reset
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: use /config/.theme/default.json when mainsail will be loaded the first time
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: add description to backup dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: save macrogroup update
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* image fix, grammar fix
* fixed suggestions bug, some cleanup from old editor, svg edge case
* FIX: save a file with special characters
* DOCU: new community theme, multi cam setup
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* FIX: editor highlight bug
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* New vesion based on changes in en version
ready for new release
* locale(hu): remove all unused keys
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* updated the 3 changes
Group and the 2 hidetimeleapse has been inserted.
Co-authored-by: Stefan Dej <meteyou@gmail.com>
* fix: fix input layout on small devices
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: use col-sm class instead of sm property
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* feat: add moonraker job_queue module and create store module
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: add jobqueue panel in gcode files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: remove workaround (pause queue at adding the first element)
this function was added in mooonraker
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: prevent unnecessary database traffic
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* fix: no lock on elements without a slider
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* refactor: remove debug output in timelapse mutations
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: use readable stream for Mjpegstreamer.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: use real webcam components in settings preview
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: initial upload of timelapse support
- add navipoint timelapse
- show filelist of timelapse
- display status and add important settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: hide frame count if its zero
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add timelapse option to start print dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: block "print start" dialog, if printer is printing
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: simplify getConsoleFilterRules getter
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add console filter for timelapse gcodes
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: hide timelapse gcodes in console
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: update timelapse settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: start timelapse settings in settings menu
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add rest of the timelapse settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* timelapse: rearrange and add missing settings (#364)
* timelapse: rearrange and add missing settings
* timelapse: missing locals
* timelapse: fixed typos and added get/setter of missing settings
* timelapse: added missing settings getDefaultState
* feature: added more options to start print dialog (#366)
* feature: cleanup print start dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: order timelapse settings and add headlines
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add timelapse blocked settings functions (if config exists in configfile)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: make settings dialog bigger to display timelapse (last line of settings) complete
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: remove headline "camera settings" in timelapse settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: add missing settings and add setting descriptions (#397)
Note: "cameraOptions" are harcoded but should be taken from webcam config (more detail in the dev dc)
* refactor: update timelapse from develop
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: update timelapse file manager
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: uppercase settings doesn't work with moonraker confighelper (#399)
* fix: uppercase settings doesn't work with moonraker confighelper
* fix: uppercase settings doesn't work with moonraker confighelper
* fix: uppercase settings doesn't work with moonraker confighelper
* refactor: fix camera type in timelapse store
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: fix merge from develop
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: list of available webcams in timelapse settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: check if console exist before checking customFilters for convert to new namespace
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove debug outputs
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: add re-rendering option and add snackbar for rendering progress
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: display zip files in TimelapseFilesPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: video preview in timelapse
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: change icon for zip files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix(locale): add timelapse to en.json
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: add no status message in TL status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: add en locale for print start button in files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: FrY Sennberg <fryakatkop@gmail.com>
* refactor(appbar): change buttons to new design
* refactor(appbar): change height and add pritnername
* refactor: small sidebar
* refactor(vuetify): define parts of the mainsail theme and expose colors to css
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: ui settings add missing divider
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: add farm printer selection and menu to new top and sidebar, added icons to version-tooltip
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: make topbar buttons hideable via ui settings
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move miniConsole buttons to toolbar and make'em collapsible
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: set matching colors for buttons on console page
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: use colornames from theme and set play/resume button to green
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct visibility of hide buttons on collapse
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: add virtual tab button to console-input on touch devices
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove hide e-stop button setting
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: add reactivity to hide upload and print button functionality
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move logo to topbar and clip menu under topbar
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove unused TheSidebarPrinterMenu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: create and add about component to sidebar ...no dialog on click yet
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct appearance of the close icon from interface settings dialog
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* Revert "fix: correct appearance of the close icon from interface settings dialog"
This reverts commit f66e29d4f2.
* refactor: close ui settings on ESC and change close icon to tile
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: change font style in wide sidebar and extend width of wide menu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: change menu style ui-settings-entry to dropdown
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: correct variablenames in locales
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: re-do menuStyle setting implementation
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(miniconsole): change collapse button to tile and remove empty cols and row in template
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: gui variables and button appearance in toolbars
* move some vars to configure gui appearance to variables.ts
* force buttons in bars to 100% height
* set icon button width to toolbar-heigth
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(heightmap): add autofocus and close on ESC to dialogs
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(throttledStates): bigger dropdownlist in favor of readability
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(confFiles): change imageviewer topbar to darkcolor and move close button to left
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: camera-dropdown visability condition
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(history): ad close on ESC on dialogs
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: button overhaul
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct navigation width and change variablenames
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: change more close buttons to tiles
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(appbar): change buttons to new design
* refactor(appbar): change height and add pritnername
* refactor: small sidebar
* refactor(vuetify): define parts of the mainsail theme and expose colors to css
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: ui settings add missing divider
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: add farm printer selection and menu to new top and sidebar, added icons to version-tooltip
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: make topbar buttons hideable via ui settings
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move miniConsole buttons to toolbar and make'em collapsible
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: set matching colors for buttons on console page
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: use colornames from theme and set play/resume button to green
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct visibility of hide buttons on collapse
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: add virtual tab button to console-input on touch devices
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove hide e-stop button setting
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: add reactivity to hide upload and print button functionality
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move logo to topbar and clip menu under topbar
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove unused TheSidebarPrinterMenu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: create and add about component to sidebar ...no dialog on click yet
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct appearance of the close icon from interface settings dialog
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* Revert "fix: correct appearance of the close icon from interface settings dialog"
This reverts commit f66e29d4f2.
* refactor: close ui settings on ESC and change close icon to tile
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: change font style in wide sidebar and extend width of wide menu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: change menu style ui-settings-entry to dropdown
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: correct variablenames in locales
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: re-do menuStyle setting implementation
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor(appbar): change buttons to new design
* refactor(appbar): change height and add pritnername
* refactor: small sidebar
* refactor(vuetify): define parts of the mainsail theme and expose colors to css
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: ui settings add missing divider
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: add farm printer selection and menu to new top and sidebar, added icons to version-tooltip
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: make topbar buttons hideable via ui settings
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move miniConsole buttons to toolbar and make'em collapsible
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: set matching colors for buttons on console page
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: use colornames from theme and set play/resume button to green
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct visibility of hide buttons on collapse
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: add virtual tab button to console-input on touch devices
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove hide e-stop button setting
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: add reactivity to hide upload and print button functionality
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: move logo to topbar and clip menu under topbar
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* refactor: remove unused TheSidebarPrinterMenu
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* feature: create and add about component to sidebar ...no dialog on click yet
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* fix: correct appearance of the close icon from interface settings dialog
Signed-off-by: steadyjaw <martin.keilaus@gmail.com>
* Revert "fix: correct appearance of the close icon from interface settings dialog"
This reverts commit f66e29d4f2.
* refactor: create store for seperate webcam namespace
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: update settings webcam and webcam panel to new namespace / store modules
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: types in webcam namespace
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: hide webcam panel, if no webcam is in the db
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove debug output in settings webcam tab
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: margin between DependenciesPanel.vue and next panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
these bugfixes:
> Make sure any existing search text is selected when opening the search panel. Add search config option to not match case when search panel is opened (#4)
dialog on unsaved changes. This can be disabled
if the user wishes to do so.
Also allows the user to configure if the editor can be
closed by hitting the "ESC" key.
* feature: add multiple macro management settings (simple/expert)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: create and remove Macrogroups
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: edit function for macro groups
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: create/edit/delete macrogroups
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: init data in heightmap dont exist without bed_mesh
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: extract macro params (#392)
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* feat: finish macro management settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: macro management in dashboard settings and display panels
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: align of icons and text in settings dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: move gcode macros in seperate component
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: combine "show status lines" in edit macro groups
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: display macrogroups and macros in paused state
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: macro group rights and display errors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove create macrogroup and just add new group without name
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: hide macrogroups when macromanagement is simple
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: change to Roboto-Mono font in console
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* chore: add robotoMono font
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: remove debug outputs
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: update regex for extract params from macros
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: macro params regex update
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feat: hide params with '_' as first char
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: switch simple macros panel to macro-button component
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: fix padding of macro params dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* refactor: add tooltips to macro management icon buttons
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: filter not existing macrogroups in panellist
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: delete layout position when deleting macrogroup
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: Eike Ahmels <hui_buh-@gmx.net>
* Made service commands available through frontend
* image fix, grammar fix
* fixed suggestions bug, some cleanup from old editor, svg edge case
* FIX: save a file with special characters
* DOCU: new community theme, multi cam setup
* FIX: docker systemctl workaround
* fixed systemctl problem, added delay for simulavr
* chore, removed unused stuff
* bump
* fixed olds paths and changed base image for faster builds
This fixes a bug where the webcam panel is collapsible even when navigated to the webcam page where the panel should not be collapsible.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
* feature: add 2D object map (testing)
* feature: 2D map for objects
* chore: update materialdesignicons
* feature: move exclude object map and list in a differnt dialog
* feature: add hover function to display hovered object in the map
* feature: colorize border of current object
* feature: click on object in map to cancel object
* feature: add mobile support for exclude object dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add 2D object map (testing)
* feature: 2D map for objects
* chore: update materialdesignicons
* feature: move exclude object map and list in a seperate dialog
* feature: add hover function to display hovered object in the map
* feature: colorize border of current object
* feature: click on object in map to cancel object
* feature: add mobile support for exclude object dialog
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add exclude objects on the dashboard
* chore: fix ts issues from status panel
* chore: update gcodeviewer to v2.1.12
* feature: add object selection to gcode viewer
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add klipper warnings panel on the dashboard
klipper pr for warnings: KevinOConner/klipper#4659
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: display KlipperWarningsPanel.vue only when klipper is ready
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add deprecated_value message to translations
feature: add link to mainsail docs for each entry
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix icon size in download log button
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* image fix, grammar fix
* fixed suggestions bug, some cleanup from old editor, svg edge case
* FIX: save a file with special characters
* DOCU: new community theme, multi cam setup
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* DOCU: changed some wordings and skipped terminal commands
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* feature: gcodeviewer (#322)
* Initial implementation of GCode Viewer in Mainsail
* Revert files.vue
* Reupdate files.vue
* Fix router
* Add render quality and force line mode settings
* Cache off canvas
Dynamically create and cache the canvas element so it does not have to reload and to keep current item loaded. Saves time on reload. Will need to test when vue watches are applied.
* Loading progress indicator
* Turn off loading progress after changing render quality.
* Failed render check.
* Added a live tracking button
* Work on settings
* Hide the loading required button earlier
* Added more settings.
* min and max feed coloring settings
* Set ZClipPlane for WebGL1 viewers
* Bed and Delta
* Force line rendering is saved
Addressed an issue where watchers could try to fire on a viewer that is not initialized
* Move loading progress bar
* Multiple UI Updates
Add Progress Color setting and persistence
Add z clip control - enabled when not tracking
Move loading progress bar into canvas area
* Update to package 1.0.6
* Pulled latest
* Update to @sindarius/gcodeviewer 2.0.4
Setting extruder colors directly was removed and instead has been replaced with configuring tools. This opens up the ability to set a nozzle size as well for tool changer type systems that could have multiple nozzle sizes.
* Set tracking position to 0 when starting tracking.
* A timeout is needed to reset the visual
* Created forceRedraw to deal with a timing issue when starting tracking.
* Update to 2.0.6 package
* Revert "feature: gcodeviewer (#322)" (#341)
This reverts commit 673fd9f879.
Co-authored-by: Juan Rosario <pyroclasmx@yahoo.com>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
* bugfix(printerfarm): fix store theme files in farm printer
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature(printerfarm): display dynamic mainsail-logo in printerfarm panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix(printerfarm): fix image/webcam height to 3:2 ratio
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix(printerfarm): disable webcam if printer is not connected
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix(printerfarm): change button to "reconnect" when printer is not connected
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix(controlpanel): align center for bar control buttons
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* Initial implementation of GCode Viewer in Mainsail
* Revert files.vue
* Reupdate files.vue
* Fix router
* Add render quality and force line mode settings
* Cache off canvas
Dynamically create and cache the canvas element so it does not have to reload and to keep current item loaded. Saves time on reload. Will need to test when vue watches are applied.
* Loading progress indicator
* Turn off loading progress after changing render quality.
* Failed render check.
* Added a live tracking button
* Work on settings
* Hide the loading required button earlier
* Added more settings.
* min and max feed coloring settings
* Set ZClipPlane for WebGL1 viewers
* Bed and Delta
* Force line rendering is saved
Addressed an issue where watchers could try to fire on a viewer that is not initialized
* Move loading progress bar
* Multiple UI Updates
Add Progress Color setting and persistence
Add z clip control - enabled when not tracking
Move loading progress bar into canvas area
* Update to package 1.0.6
* Pulled latest
* Update to @sindarius/gcodeviewer 2.0.4
Setting extruder colors directly was removed and instead has been replaced with configuring tools. This opens up the ability to set a nozzle size as well for tool changer type systems that could have multiple nozzle sizes.
* Set tracking position to 0 when starting tracking.
* A timeout is needed to reset the visual
* Created forceRedraw to deal with a timing issue when starting tracking.
* Update to 2.0.6 package
Setting extruder colors directly was removed and instead has been replaced with configuring tools. This opens up the ability to set a nozzle size as well for tool changer type systems that could have multiple nozzle sizes.
* feature: split control panel in components and add circle control panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: remove css namespace of SVG
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add button for QGL and Z-Tilt
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* clear debug status
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix(ControlPanel): change - to en-dash for equal width of negative and positiv buttons in DWC-style ControlPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* hu json
updated hungarian translation, please check if all parameter is short enough.
thx
* locale(hu): remove unused keys
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* Update hu.json
Just fixed the title.
* locale(hu): move translation to the right location
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* locale(hu): move translation to the right location
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
* Updated de.json to match latest locale layout
* Update de.json
reverted fixed names to englisch.
* Update de.json
removing comma from json object ends.
* Update de.json
additonal comma fix.
* Update de.json
Chart texts changed to old (v1.6) values
(GUI) Line breaking texts changed.
* Z-Offset Panel headline correction
Changed from Z-Tilt to Z-Offset
* Status Panel line break change
Change Speed text from "Geschwindigkeit" to "Tempo"
* minor text updates
Voreinstellungen --> presets
Z-Panel preset text change
* feature: add linux/bash like console style
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix not full console position
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: configable console height on dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: old variable name in MiniconsolePanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: console array cut on dashboard dont work with shell style
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* init test setup
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: ts typos
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: better tab system
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add touch support for drag&drop and split components
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add panel filter to each viewport
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: mjpegstreamerAdaptive dont start with a wront image url
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add i18n support for dashboard settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Dynamically create and cache the canvas element so it does not have to reload and to keep current item loaded. Saves time on reload. Will need to test when vue watches are applied.
* test new flow and velocity
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* test build for live speed & flow
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix ToolSlider.vue for printsettings and machine limits
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* remove debug output
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* rework MachineLimits
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: live extruder, toolhead speed and position data in StatusPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
We are committed to making participation in this project a harassment-free experience for everyone, regardless of the level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
Hi! I'm really excited that you are interested in contributing to Mainsail. Before submitting your contribution, please make sure to take a moment and read through the following guidelines:
- [Code of Conduct](https://github.com/meteyou/mainsail/.github/CODE_OF_CONDUCT.md)
- Use [https://github.com/meteyou/mainsail/issues](https://github.com/meteyou/mainsail/issues) to create new issues.
## Pull Request Guidelines
- The `master` branch is just a snapshot of the latest stable release. All development should be done in dedicated branches. **Do not submit PRs against the `master` branch.**
- Checkout a topic branch from the relevant branch, e.g. `develop`, and merge back against that branch.
- It's OK to have multiple small commits as you work on the PR - GitHub will automatically squash it before merging.
- If adding a new feature:
- Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it.
- If fixing bug:
- If you are resolving a special issue, add `(fix #xxxx[,#xxxx])` (#xxxx is the issue id) in your PR title for a better release log, e.g. `update entities encoding/decoding (fix #3899)`.
- Provide a detailed description of the bug in the PR. Live demo preferred.
- Add appropriate test coverage if applicable.
## Committing Changes
Commit messages should follow the [commit message convention](https://www.conventionalcommits.org/en/v1.0.0/) so that changelogs can be automatically generated.
## Financial Contribution
As a pure community-driven project without major corporate backing, we also welcome financial contributions via Patreon and OpenCollective.
- [Become a supporter on Patreon](https://patreon.com/meteyou)
- [One-time donation via Ko-Fi](https://ko-fi.com/mainsail)
## Credits
Thank you to all the people who have already contributed to Mainsail!
Mainsail x Voron Toolhead,Various toolhead images inside the theme folder can be renamed to 'sidebar-background.png',eriroh,Mainsail-x-Voron-Toolhead-Theme
Rat Rig (unofficial), includes various sidebar images which can be renamed to ‘sidebar-background.png’,Raabi91,ratrig-mainsail-theme
Cryd,,cryd-s,Mainsail-Theme-by-Cryd
1
name
short_note
author
repo
2
Dracula
steadyjaw
dracula-mainsail-theme
3
Cyberpunk
Dario-Ciceri
cp2077-mainsail-theme
4
Mainsail x Voron Toolhead
Various toolhead images inside the theme folder can be renamed to 'sidebar-background.png'
eriroh
Mainsail-x-Voron-Toolhead-Theme
5
Rat Rig (unofficial)
includes various sidebar images which can be renamed to ‘sidebar-background.png’
**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).**
{: .warning}
The following configuration elements are mandatory and must be configured for Mainsail to operate correctly:
The following configuration elements are optional, including making tweaks and alterations to Klipper's default commands:
* [Custom Commands](configuration#customisation)
## Virtual SD Card
The `Virtual SD Card` allows gcode file uploads.
```yaml
[virtual_sdcard]
path:~/gcode_files
```
## Display Status
`Display Status` is required for messages in your status panel, if you don't have `[display]` in your configuration.
```yaml
[display_status]
```
## Pause, Resume, Cancel
These macros enable pause and resume in Klipper.
```yaml
[pause_resume]
```
# Macros
## Add pause / resume / cancel functionality
You can modify the below macros to fit your needs.
{% raw %}
```yaml
[gcode_macro PAUSE]
description:Pause the actual running print
rename_existing:PAUSE_BASE
gcode:
##### set defaults #####
{% set x = params.X|default(230) %} #edit to your park position
{% set y = params.Y|default(230) %} #edit to your park position
{% set z = params.Z|default(10)|float %}#edit to your park position
{% set e = params.E|default(1) %} #edit to your retract length
##### calculate save lift position #####
{% set max_z = printer.toolhead.axis_maximum.z|float %}
{% set act_z = printer.toolhead.position.z|float %}
{% set lift_z = z|abs %}
{% if act_z < (max_z - lift_z) %}
{% set z_safe = lift_z %}
{% else %}
{% set z_safe = max_z - act_z %}
{% endif %}
##### end of definitions #####
PAUSE_BASE
G91
{% if printer.extruder.can_extrude|lower == 'true' %}
G1 E-{e} F2100
{% else %}
{action_respond_info("Extruder not hot enough")}
{% endif %}
{% if "xyz" in printer.toolhead.homed_axes %}
G1 Z{z_safe}
G90
G1 X{x} Y{y} F6000
{% else %}
{action_respond_info("Printer not homed")}
{% endif %}
```
```yaml
[gcode_macro RESUME]
description:Resume the actual running print
rename_existing:RESUME_BASE
gcode:
##### set defaults #####
{% set e = params.E|default(1) %}#edit to your retract length
#### get VELOCITY parameter if specified ####
{% if 'VELOCITY' in params|upper %}
{% set get_params = ('VELOCITY=' + params.VELOCITY) %}
{%else %}
{% set get_params = "" %}
{% endif %}
##### end of definitions #####
G91
{% if printer.extruder.can_extrude|lower == 'true' %}
G1 E{e} F2100
{% else %}
{action_respond_info("Extruder not hot enough")}
{% endif %}
RESUME_BASE {get_params}
```
```yaml
[gcode_macro CANCEL_PRINT]
description:Cancel the actual running print
rename_existing:CANCEL_PRINT_BASE
gcode:
TURN_OFF_HEATERS
CANCEL_PRINT_BASE
```
{% endraw %}
# Optional
## 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.
We would like acknowledge the valuable contributions that many people and projects have made to Mainsail, especially the following:
- contributors, who help make Mainsail better
- testers, who help find bugs in Mainsail, so they can be quickly fixed
- supporters via patreon/ko-fi
- supporters via Patreon and Ko-fi
and of course the projects Mainsail is built on, especially [Klipper](https://github.com/KevinOConnor/klipper){:target="_blank"}, [Moonraker](https://github.com/Arksine/moonraker){:target="_blank"} and [MainsailOS](https://github.com/raymondh2/MainsailOS/){:target="_blank"}.
We would like to thank the projects Mainsail is built on, especially [Klipper](https://github.com/KevinOConnor/klipper){:target="_blank"}, [Moonraker](https://github.com/Arksine/moonraker){:target="_blank"}, and [MainsailOS](https://github.com/mainsail-crew/MainsailOS/){:target="_blank"}.
**THANK YOU for YOUR support. ❤️**
**THANK YOU for your continued support.**
- TOC
{:toc}
@@ -38,4 +38,4 @@ and of course the projects Mainsail is built on, especially [Klipper](https://gi
Mainsail understands the need for data privacy and it has been designed to only run in your browser locally.
The following table applies to Mainsail when installed locally or accessed remotely at [my.mainsail.xyz](http://my.mainsail.xyz).
| YES | NO |
| :--------------: | :---------------: |
| Store static files in browser storage (.html, .js, .css) | ‘Telemetry’ |
| Communicate directly with your printer via the Moonraker API | Send or transfer any data externally |
## Will my data be safe if I use the hosted version?
Accessing [my.mainsail.xyz](http://my.mainsail.xyz) stores the .html, .js and .css files for Mainsail locally in your brower's storage in exactly the same way that an instance running on your local hardware would do. There is no functional difference or concerns between accessing Mainsail locally or in a remotely public hosted instance.
Running Mainsail both locally and remotely in parallel is also possible.
# Third party software
Mainsail does not modify any third party packages and does not control Data Privacy for any third party packages you choose to install.
If you are concerned, please review the privacy policies for the following third party software:
Please contact the developers of any of the above software if you have any concerns.
It is worth noting that Klipper, Moonraker and RaspberryOS are open source software. This does not bring a guarantee of privacy and security, but the source code is available and open to peer review.
{: .info}
The Raspberry Foundation is a registered charity in the United Kingdom with extensive Privacy and Safeguarding policies.
[Klipper Building and flashing the micro-controller](https://www.klipper3d.org/Installation.html#building-and-flashing-the-micro-controller){:target="_blank"}
## More detailed
Klipper consists of two parts:
The software on your host (e.g. Raspberry Pi) and the firmware on your microcontroller (MCU).
Under normal circumstances, Klipper (on your host) can simply be updated from Mainsail without any problems and everything will work as expected.
From time to time it happens that there are changes in Klipper that make it necessary to update all your MCUs. Assuming you have run a Klipper update and Klipper on your host now supports commands that your MCUs does not understand. Then you will get the above error message.
Fortunately, these kind of updates don't happen very often, but now it has happened to you. ;-)
In order to solve the problem, you need to update all your MCUs. We are talking about multiple MCUs here, as people tend to forget that they have multiple microcontrollers in use. One of these candidates is the "Linux MCU" that many people install on their Raspberry Pi to measure resonances with an adxl345.
Detailed information on how to update the firmware can be found in the Klipper Documentation linked above (under TL;DR).
As far as we know, work is in progress to let Klipper update the firmware on its own.
## Removal of `default_parameter_` for gcode macros.
In the past, default parameters for gcode macros were defined like so:
```yaml
[gcode_macro PRINT_START]
default_parameter_EXTRUDER:230
gcode:
...
```
This would define a macro called `PRINT_START` that can be called with an `EXTRUDER` parameter like so: `PRINT_START EXTRUDER=200`. If no value is passed for `EXTRUDER` the default value of 230 is used. This style of default parameters has been deprecated. Instead, define your macro like so:
{% raw %}
```yaml
[gcode_macro PRINT_START]
gcode:
{% set EXTRUDER_TEMP = params.EXTRUDER|default(230)|int %}
```
{% endraw %}
Take note of the following important aspects:
- Parameters passed to gcode macros are stored in the `params` object. So if your macro is called with `VALUE=50`, `params.VALUE` will contain the value 50. After the deprecation, only the `params` object will contain these values.
- Make sure to name your "set variable" something else as the name of the variable in the `params` object (see how I used `EXTRUDER_TEMP` for the "set variable" and `EXTRUDER` for the actual macro parameter above) to avoid confusion and possible parsing errors.
- If you want to pass a default, add `|default(<default value>)` to the end of the params variable (see above, where my default value is 10).
- To ensure that `EXTRUDER_TEMP` will have an integer value, add `|int` to the end of the command, to turn passed parameters (if they exist) and the default into an integer. Depending on what kind of parameter you're passing, there are `|int``|float``|bool` or `|string` converters available. Make sure that you convert to int if you want to compare the values in your gcode macro.
The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot!
`step_distance` describes the distance covered by a certain axis with 1 stepper (micro-)step. The downside of this parameter (and one of the reasons for its removal, is that if one were to change the microstepping of a stepper, the step_distance changes as well. Klipper therefore removed the `step_distance` parameter in favor of `rotation_distance` and `full_steps_per_rotation`. These two parameters are unaffected by microstepping, and can be easily determined by inspecting the used hardware.
Perform the following steps to convert your config:
- comment out the old `step_distance` parameter
- add three new parameters:
-`full_steps_per_rotation` this is 400 for 0.9 degree stepper motors and 200 for 1.8 degree stepper motors.
-`rotation_distance` this can be determined either according to hardware, or by converting the old `step_distance` using math.
-`gear_ratio` can additionally be used to describe an axis that uses a reduction gear (like the Voron-2 Z axis)
- The easiest way to obtain the correct values for `rotation_distance` and `gear_ratio` is to check the official Voron printer github repositories. All example configs have been updated to include the correct values for the new parameters. Keep in mind that you'll still have to calibrate your extruder steps/mm if you choose to copy the values for the extruder. Instructions on how to convert and recalibrate the extruder values can be found [here](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#extruder).
- The formulas to convert `step_distance` to `rotation distance` can be found [here](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#obtaining-rotation_distance-from-steps_per_mm-or-step_distance)
- Guidance on how to inspect your hardware to determine your conversion distance can be found [here](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#obtaining-rotation_distance-by-inspecting-the-hardware). Make sure to also consider any reduction gearing, if applicable, by checking [this section](https://github.com/Klipper3d/klipper/blob/master/docs/Rotation_Distance.md#using-a-gear_ratio) as well.
- For every stepper, except your extruder, you should end up with even numbers (e.g. 40 instead of 39.9683).
The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot!
For Voron printers, this is only relevant if you're running an arduino based controller board and use pins named similar to `ar19` etc. These pin declarations are no longer valid and need to be replaced with their hardware pin identifiers. To find the appropriate hardware pin identifier perform a google image search for your board plus `pinout`. E.g.:
There, find the pin you're trying to replace. The old pin maps use the digital number of the pin. For example, if your old pin was `ar10`, looking at the image you will find that the `D10` pin corresponds to `PB4`. Replace all pins in your config accordingly, and finally remove the `pin_map:` configuration parameter from your `mcu` section.
Alternatively, you can copy an appropriate `[board_pins]` block from [this location](https://github.com/Klipper3d/klipper/blob/master/config/sample-aliases.cfg) to your config. If you're using multiple arduinos, make sure to add the appropriate mcu to each block like so:
```yaml
[board_pins arduino-mega]
mcu:mcu
```
The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot!
Remove any instances of `pid_integral_max` from your config.
The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot!
The "NTC 100K beta 3950" temperature sensor is _deprecated_ and will be removed in the near future.
In order to solve the problem search in your config for `sensor_type: NTC 100K beta 3950` and replace it with `sensor_type: Generic 3950`.
Most users will find the "Generic 3950" temperature sensor more accurate. Anyway you can continue to use the older (typically less accurate) definition. Therefor define a custom thermistor with `temperature1: 25`, `resistance1: 100000`, and `beta: 3950`.
Replace `sensor_type: rpi_temperature` by `sensor_type: temperature_host` everywhere in your config.
The above description was provided by our community member [FHeilmann](https://github.com/FHeilmann){:target="_blank"} and we have his permission to publish it here. Thanks a lot!
Mainsail is a lightweight & responsive web interface for Klipper, the 3D printer firmware. It focuses especially on an intuitive and consistent interface.
Mainsail makes Klipper more accessible by adding a lightweight, responsive web user interface, centred around an intuitive and consistent design philosophy..
The project is primarily developed and maintained by meteyou. To keep the project going he invests his free time, almost every day. To motivate him (☕🍺😜) there are several ways to support the project.
## Support Mainsail
Mainsail is primarily developed and maintained by `meteyou`. To keep the project going he invests his free time, almost every day. To motivate him (☕🍺😜) there are several ways to support him:
Integrate additional sensors into the temperature graph. For example Raspberry Pi, MCU, BMExxx, HTU21D, LM75 and more..
You can integrate additional sensors [supported by Klipper](https://www.klipper3d.org/Config_Reference.html#temperature-sensors) into the temperature graph in Mainsail.
---
# {{ page.title }}
@@ -13,7 +13,7 @@ description: >-
## Raspberry Pi temperature sensor
Append the following section to your printer.cfg:
Append the following section to your `printer.cfg`:
```yaml
[temperature_sensor raspberry_pi]
@@ -24,7 +24,7 @@ max_temp: 100
## ATSAM, ATAMD, and STM32 temperature sensor
Append the following section to your printer.cfg:
Append the following section to your `printer.cfg`:
Since Mainsail 1.5.0 it is possible to report and visualize print statistics. These contain various information such as print status, print duration, amount of filament used, etc.
You can view your print history and statistics in the History section of Mainsail.
---
# {{ page.title }}
{{ page.description }}
It's also possible to reprint jobs.
This includes print job status, duration, amount of filament used, and more. You can also reprint a print job.
This example will use the first one: `usb-046d_0825_88C56B60-video-index0`
__Note__
Not sure which device is which? You can run `lsusb` to match a camera name to an ID.
{: .info}
Edit `/home/pi/klipper_config/webcam.txt` by clicking on it in Mainsail.
Insert two lines at the beginning of `webcam.txt`:
```
camera="usb"
camera_usb_options="-r 640x480 -f 10 -d /dev/v4l/by-id/<device long id>"
```
The `device long id` should match the camera name from running `lsusb`.
__Note__
If you are using a Raspberry Pi branded camera, set camera="raspi" at the top of the file and you do not have to reference the cameras by device ID.
{: .info}
## 3. Editing the second configuration file
When using a second camera, you must add the port `mjpg_streamer` runs under and the device.
__Note__
If you are using one Raspberry Pi branded camera and a different USB camera you don't need to reference them by ID, as camera="raspi" and camera="usb" is enough.
{: .info}
Similar to finding the first camera, run `ls` and copy the ID of the second camera:
```bash
ls /dev/v4l/by-id/
```
Edit `/home/pi/klipper_config/webcam2.txt` as described above and add:
`camera="usb"` and `set camera_usb_options` but this time using the ID for the second camera:
```bash
camera_usb_options="-r 640x480 -f 10 -d /dev/v4l/by-id/<device long id>"
```
Adjust the port by editing `camera_http_options`:
`camera_http_options="-n -p 8081"`
The port should reflect the number in `webcam*.txt`:
```
webcam.txt => -p 8080
webcam1.txt => -p 8081
webcam2.txt => -p 8082
webcam3.txt => -p 8083
```
__INFO__
MainsailOS comes setup with four nginx reverse proxies for port 8080 through 8083, so you can configure 4 webcams with this guide.
For more webcams you will need to edit the nginx configuration, which is not recommended. It can be easy to make a mistake when editing nginx, which will also cause Mainsail to stop working.
If you need more than four webcams, visit us on [Discord](https://discord.gg/skWTwTD){:target="_blank"} and we will help you.
{: .warning}
## 4. Test that it works
Restart `webcamd` by clicking the power button icon in the upper right corner of Mainsail and click `Webcamd` to restart it.
Find your second camera under `http://<your-ip>/webcam2/`.
If it doesn't work, check in the webcam log in the filemanager log section for details.
If it works, you can use the URLs in Mainsail:
Stream: `http://<your-ip>/webcam2/`
__DONE__
Congratulations, you set up multi webcam with Mainsail!
If you want to add more, follow the guide again and increment the `webcam*.txt` number, i.e. `webcam**3**.txt` and so on.
The webcams are accessible through your `http://<your-ip>/webcam`, `http://<your-ip>/webcam2`, etc.
@@ -16,16 +16,15 @@ In Mainsails interface settings you will find a section called "Preheat Presets"
### Preheat
Enter a name \(e.g. name, color and type of filament\) and the temperatures obtained. You can disable individual heaters and even specify a custom gcode for the preheat phase. The gcode will be executed after the selected temperatures are set.
Enter a name for your preset, such as filament, color or other text and the temperature you wish to set the preset at. You can disable individual heaters and even specify a custom gcode for the preheat phase. The G-Code will be executed after the selected temperatures are set.

### Further Examples
#### Z-Offset
You can add custom G-Code to make it easier to switch between different Z-Offsets. This makes it easier to work with different surfaces and flexplates.
To quickly switch between different Z-offsets \(flexplates with smooth and textured surfaces\), you can create presets and deactivate the heaters.
As G-Code you simply enter `SET_GCODE_OFFSET Z=0.2`, of course with your determined offset.
To configure the G-Code enter `SET_GCODE_OFFSET Z=0.2`, and change `0.2` to the offset you need.
This is not a complete guide with every single step in detail, but rather a recommendation of what to do and especially what not to do to get access to the printer from somewhere remote from your network.
This guide does not include every step in detail, but is a recommendation for safe remote access.
{: .info}
You have to decide if you ..
- only want to have status messages on your smartphone
- or you need full remote access to Mainsail from everywhere
Of course, you can also use a combination of both.
You will need to decide if you want to receive status messages on your smartphone, have full remote access to Mainsail, or both.
## Status messages
For simple status messages there are a couple of additional tools that can be used:
- __discord:__ Mooncord is a bot that sends you status messages over discord.
For simple status messages there are a two additional tools that can be used:
- __Discord:__ Mooncord is a bot that sends you status messages over Discord: [https://github.com/eliteSchwein/mooncord](https://github.com/eliteSchwein/mooncord)
- __Telegram:__ moonraker-telegram is a bot that sends you status messages over the messaging application Telegram: [https://github.com/Raabi91/moonraker-telegram](https://github.com/Raabi91/moonraker-telegram)
These tools are installed on the local machine and send the status messages via the respective platforms. Thus, no access to your local network from outside is necessary.
These tools are installed on the local machine and send status messages to their respective platforms. No changes are needed to externally access your local network.
For details, please refer to the projects instructions.
For details, please refer to each project's instructions and documentation.
## Remote Access to Mainsail
@@ -45,9 +39,9 @@ What <b>not to do</b>:
<div class="warning">
What you <b>could do</b>:
<ul>
<li>Use an external service provider (e.g. tailscale) to gain access to your home network.
<li>Use an external service provider such as Tailscale to gain access to your home network.
<ul>
<li>Con: you give the control out of your hand</li>
<li>A potential downside is not having personal control of the connection.</li>
</ul>
</li>
<li>Reverse Proxy</li>
@@ -59,8 +53,8 @@ What you <b>could do</b>:
<ul>
<li>Set up your own secured VPN tunnel.
<ul>
<li>either in the router</li>
<li>or your Pi</li>
<li>In your router</li>
<li>Or your Raspberry Pi</li>
</ul>
</li>
</ul>
@@ -68,18 +62,15 @@ What you <b>could do</b>:
## Set up VPN
Several routers allow you to set up a VPN tunnel without much effort.
After you have entered the login data into e.g. your smartphone, you will have secure access to your entire network, including Mainsail.
Several routers allow you to set up a VPN tunnel. After you have configured the VPN and logged in from another device, you will have secure access to your entire network, including Mainsail.
If your router does not support this, you can also set up your own VPN, e.g. on your Pi.
Therefore you could use: [OpenVPN](https://openvpn.net/), [WireGuard](https://www.wireguard.com/) or [PiVPN](https://www.pivpn.io/)
If your router does not support this, you can also set up your own VPN, for example, using your Raspberry Pi.
[OpenVPN](https://openvpn.net/), [WireGuard](https://www.wireguard.com/) or [PiVPN](https://www.pivpn.io/) are all options that could work.
To be able to reach your home network even with a non-static IP address, you should use a dynamic DNS service. This will forward a domain directly to your IP address. Often, these DynDNS services can also be set up directly in the router, so that the IP address gets automatically updated on a change.
Some free services: [DuckDNS](https://www.duckdns.org) or [FreeDNS ](https://freedns.afraid.org/)
To be able to reach your home network even with a non-static IP address, you will need to use a Dynamic DNS service. This will forward a domain directly to your IP address. Often these DynDNS services can also be set up directly in your router so when your external IP address changes, your domain will be automatically updated. Free Dynamic DNS services include [DuckDNS](https://www.duckdns.org) or [FreeDNS ](https://freedns.afraid.org/)
__Notice__
The devices that dial in via the VPN tunnel are assigned to a different address range. This address range must be configured in moonraker under _trusted_clients_ and _cors_domains_. [https://moonraker.readthedocs.io/en/latest/configuration/#authorization](https://moonraker.readthedocs.io/en/latest/configuration/#authorization) <br/><br/>
The devices that you use to access VPN tunnel are assigned to a different address range. This address range must be configured in Moonraker under _trusted_clients_ and _cors_domains_. See also [Moonraker's documentation on network authorization.](https://moonraker.readthedocs.io/en/latest/configuration/#authorization) <br/><br/>
For example:
__192.168.1__.x _// devices on your regular LAN_
__192.168.50__.x _// devices connected through your VPN tunnel_
Moonraker has compatibility with Octoprint's API. To enable octoprint api compatibility,
add the following to your `moonraker.conf` and restart Moonraker.
Moonraker is compatible with Octoprint's API. To enable Octoprint API compatibility, add the following to your `moonraker.conf` and restart Moonraker.
```
[octoprint_compat]
```
### PrusaSlicer/SuperSlicer (prior to v2.3.0)
### PrusaSlicer / SuperSlicer (PrusaSlicer v2.3.0 and up)
Enable advanced or expert mode and change the options under `Printer Settings / General` as shown in the screenshot below. A "Physical Printer" must be configured in `Printer Settings / General`.
If not already been done, switch to advanced or expert mode and set the options under `Printer Settings / General` as shown in the screenshot below.
### PrusaSlicer / SuperSlicer (prior to PrusaSlicer v2.3.0)
Enable advanced or expert mode and change the options under `Printer Settings / General` as shown in the screenshot below.
You can find further information on this topic by checking out the [Moonraker documentation](https://github.com/Arksine/moonraker/blob/master/docs/configuration.md#update_manager){:target="_blank"}.
You can find further information on this topic by visiting the [Moonraker documentation](https://github.com/Arksine/moonraker/blob/master/docs/configuration.md#update_manager){:target="_blank"}.
To get started, you first have to decide which route you want to follow for the installation. There are several ways to install Mainsail on a Raspberry Pi.
## Local installation
You will need to choose which way you want to install Mainsail on a Raspberry Pi:
A prebuilt image for your Raspberry Pi. Flash it and you are almost ready to go.
A prebuilt image for your Raspberry Pi. Preconfigured and requires the least amount of setup.
- [KIAUH](kiauh.md) - _Klipper Installation And Update Helper_
A script toolbox to install and keep Klipper, Moonraker and Mainsail up to date. It contains many additional features and is the way to go for multiprinter setups.
A script toolbox to install and update Klipper, Moonraker and Mainsail. KIAUH contains additional features and is recommended for multi-printer setups.
- [Manual Setup](manual-setup/index.md)
The rocky road. If you want to know how everything is set up by hand, you will get all the information here.
The rocky road for the daring. For those who want to know how everything is set up manually.
## my.mainsail.xyz
In addition to these guides, there is [my.mainsail.xyz](http://my.mainsail.xyz){: target="_blank"}. The latest Mainsail version is always hosted there. This obviates the need to set up a web server for Mainsail on your hardware.
## Hosted
To use [my.mainsail.xyz](http://my.mainsail.xyz){: target="_blank"}, the following requirements must be met:
- Klipper must be installed.
- Moonraker must be installed.
- my.mainsail.xyz must be configured as a CORS domain in moonraker.conf.
**MainsailOS & KIAUH already fulfill these requirements.**
_Note_, only the static .html, .js and .css files are loaded into your browser storage. No further information is transferred to the server. The communication to your printer is then done locally directly between your browser and your Moonraker installation.
If you have any concerns, you can of course still install Mainsail on your hardware locally. Parallel operation is also possible.
{: .info}
You an also setup [remote access](../quicktips/remote-access) without installing or configuring a web server.
You can test and review a hosted version of Mainsail at [my.mainsail.xyz](http://my.mainsail.xyz). Please read the [documentation](mainsail-hosted) for usage and configuration.
[KIAUH](https://github.com/th33xitus/kiauh) is a handy tool that helps you install or upgrade Klipper, Moonraker, Mainsail and various other extensions easily and comfortably.
[KIAUH](https://github.com/th33xitus/kiauh) is a tool that helps you install or upgrade Klipper, Moonraker, Mainsail, and other extensions.

For more information and get to the guide click [here](https://github.com/th33xitus/kiauh).
You can visit [KIAUH on GitHub](https://github.com/th33xitus/kiauh) to learn more and view its documentation.
Mainsail and MainsailOS respect [Data Privacy](../data-privacy).
{: .info}
The hosted version of Mainsail can be used on the same local network with your printer or on a different remote to network and requires you to setup [remote access](../quicktips/remote-access).
## Requirements
- MainsailOS and KIAUH are preconfigured to meet the requirements for the hosted service.
- If you have a manual installation, the following requirements must be met:
* Klipper
* Moonraker
*`my.mainsail.xyz` must be configured as a CORS domain in `moonraker.conf`.
### Editing moonraker.conf for remote access
You can learn more about editing Moonraker's authorization [configuration documentation here.](https://moonraker.readthedocs.io/en/latest/configuration/#authorization)
{: .info}
To configure [my.mainsail.xyz](http://my.mainsail.xyz) for access with your local installation, open `moonraker.conf` and add the following `authorization` section:
Our recommended way to install Mainsail on a Raspberry Pi is to use [MainsailOS](https://github.com/raymondh2/MainsailOS),
as pre-packaged disk image. If you are building a custom configuration, you may need to skip
these instructions and install Mainsail [manually](manual-setup/index.md).
MainsailOS builds upon Raspberry Pi OS Lite by including Klipper, Moonraker, and Mainsail into the disc image, making setup quick and Mainsail easier to use with Klipper and Moonraker.
_Note: It is a good idea to use a premium SDcard from a reputable manufacturer such as Sandisk, Kingston or Samsung. Perfomancewise you should consider using a "A1" or better, marked SDCard. Low end cards will often fail quickly when used in this application
**PLEASE OBEY THAT THIS WILL DESTROY ALL DATA ON YOUR CARD**_
{: .alert}
Advanced users may want more complex and custom configurations and Mainsail can be [manually installed](manual-setup/index.md).
1. Download the latest [mainsailOS Release](https://github.com/raymondh2/MainsailOS/releases).
2. Download the latest [Raspberry Pi Imager](https://www.raspberrypi.org/software/), henceforth rpi-imager.
3. Install and Open rpi-imager. Now you should see a Window like this.
If you are familiar with process to flash the firmware, then please use your preferred method as you normally would.

If however you are unfamiliar with the flashing process we have documented two methods to flash MainsailOS to your SD card:
_Window Appereance depends on OS, in this case Linux with XFCE was used._
{: .info}
4. Now click on "CHOOSE OS", this will open a popup as shown below.
Click on "Use Custom"

This will open a Popup Window to browse your local files. Please navigate to your recently downloaded MainsailOS Zip Archive
_**DO NOT UNPACK THE ZIP FILE!**_
{: .alert}
After you've done that, it should look like this

5. Click on "Storage" and select your desired SDCard.

_As an Example..._
6. Now its time to setup things like Hostname, Wifi, Language and more.
It depends on your needs what you setup, but it has to be WIFI and SSH at least!
7. As last Step click on "Write", rpi-imager will give you a Warning. Click "YES" to continue...

8. Watch the Progressbar and wait until you see:

Hit the "Continue" Button and remove safely your SDCard. ( eg. unmount on Linux )
9. Insert the SDcard into your Pi, and power on the Pi.
_Note: Please give the PI some time, during the first boot MainsailOS (like every PI Image) will expand your "root" filesystem accordingly to your SDCard Size! The greater your SDCard is, it will take longer time! Watch out for the little green LED if it turn off or blink from time to time it has finished the resizing._
{: .warning}
_**Make sure that your MCU(s) is connected to your pi, If you will be using wired networking, also make sure your ethernet cable is connected.**_
{: .alert}
10. Find your pi on the network, open up your preferred Browser and type either your IP or Hostname (Depends on your Network configuration)
- If your network supports bonjour, the pi should show up as `mainsailos.local` or the given Hostname in the Setup Section.
- If your network automatically assigns DNS hostnames, it may simply show up as `mainsailos` or accordingly given Hostname.
- Failing these two options, you may need to check your router's DHCP server, and find out what IP address as been assigned to the device.
_**After you're able to get to the Mainsail Webinterface you should consider to Update the System to get latest features. Mainsail, Klipper and Moonraker got an relative fast Development Cycle. We can't provide MainsailOS Image with all the latest and greatest. So we encourage you to Update on first Login**_
{: .info}
_If you decide to update, you should update in following order:_
1. System Update (Bring latest RaspberryOS Updates to the System)
2. Klipper Update ( To get latest Firmware, often flashing the MCU can wear out his memory )
3. Moonraker ( Having latest Version, could lead to more Features in Frontend )
4. Update Mainsail ( The most important! :P )
5.**Important:** Include the mainsail.cfg into your printer.cfg
This could be done by:
[include mainsail.cfg]
6. Enjoy Mainsail!
* [Raspberry Pi Imager](mainsailos/pi-imager) (cross-platform, easiest) <span class="label label-red">recommended</span>
This method requires manual setup for SSH and Wi-Fi.
{: .info}
This method is cross-platform and works with Windows, Linux and MacOS.
{: .info}
We **strongly** recommend you use a premium SD card from a reputable manufacturer such as Sandisk, Kingston or Samsung, using an "A1" (or better) grade SD card. \
\
Low end cards will often fail quickly when used in this application.
{: .warning}
**FLASHING WILL DESTROY ALL DATA ON YOUR SD CARD AND CANNOT BE REVERSED**
{: .alert}
____
# Preparation
Whilst this guide makes specific use of balenaEtcher it is entirely possible to use any flashing software of your choice and then follow the manual steps to enable SSH / network after.
* [Download](https://github.com/mainsail-crew/MainsailOS/releases) the latest MainsailOS release (don't unpack the zip; you don't need to).
* [Download](https://www.balena.io/etcher/) and install the latest balenaEtcher.
# Flashing MainsailOS
balenaEtcher appearance may vary depending on the host OS.
{: .info}
* When opening balenaEtcher you will be presented with the following:
You may need to safely remove (eject) the SD card and reinsert it for the /boot partition to show.
{: .info}
Before you move on, it is important to check SSH is enabled.
This is done by creating an empty file with no extension named 'SSH', or 'SSH.txt' in the /boot partition of the SD card. MainsailOS includes this file.
Insert the flashed SD card into your Pi and connect any other hardware such a network cable, USB cable to the 3D printer, or a webcam.
Power on the Pi and let it boot up.
**The initial boot of MainsailOS may take some time to expand your "root" filesystem. The larger the SD card, the longer the first boot will take.**
{: .warning}
Initially the green LED on the Pi will be extremely active. After some time it will only intermittently flicker, indicating it has likely completed the boot sequence.
The web interface should now be ready to access on your local network:
```
http://mainsailos.local
```
or
```
http://<IP address of your Pi>
```
## Mainsail.cfg
**Important:** Include `mainsail.cfg` in your printer.cfg file
{: .warning}
Mainsail will not work correctly until `mainsail.cfg` is included in Klipper's configuration file. Open Klipper's default `printer.cfg` file in Mainsail's file manager located in `Settings > Machine`. If you do not have a `printer.cfg` file, you can create one. Add the following line to `printer.cfg`
Once you've successfully navigated to the Mainsail's web interface it is _strongly_ recommend that you run any available updates.
{: .info}
Klipper, Moonraker and Mainsail have fast development cycles and while we do our best to ensure MainsailOS ships as close to upstream as we can, there will always be a short delay before releases make it into MainsailOS' image.
It is recommended that you enable and use the [built in update-manager](../../update/update-manager) to perform any system updates, then update Klipper, Moonraker, Mainsail as needed.
Please read and follow the [Klipper documentation](https://klipper3d.org) in order to setup your machine.
{: .info}
You do not need to follow instructions pertaining to Octopi or Octoprint found in the Klipper documentation.
{: .info}
Klipper is a highly versatile piece of software and can run with almost any machine. Due to the plethora of stock and custom hardware options available, it is impossible to ship MainsailOS / Klipper with a default configuration that would work for everyone.
## Modifying/constructing printer.cfg
**You must enter parts of this configuration manually, as it is specific to your printer and MCU hardware**
{: .warning}
To customise your printer.cfg you will need to SSH to your Pi and:
```yml
cd ~/klipper_config
nano printer.cfg
```
Then follow the [Klipper documentation](https://klipper3d.org) to construct your printer.cfg file.
---
Before progressing to the next step, ensure that you have:
* Correctly built the firmware and [flashed the MCU](https://www.klipper3d.org/Installation.html#building-and-flashing-the-micro-controller)
* Correctly written/customised your printer.cfg file using the [Klipper configuration reference](https://www.klipper3d.org/Config_Reference.html).
* Checked and then [verified your printer.cfg](https://www.klipper3d.org/Config_checks.html).
---
[< first boot](first-boot){: .btn } [next step >](../pre-flight){: .btn }
This method is cross-platform and works with Windows, Linux and MacOS
{: .info}
We **strongly** recommend you use a premium SD card from a reputable manufacturer such as Sandisk, Kingston or Samsung, using an "A1" (or better) grade SD card. \
\
Low end cards will often fail quickly when used in this application.
{: .warning}
**FLASHING WILL DESTROY ALL DATA ON YOUR SD CARD AND CANNOT BE REVERSED**
{: .alert}
____
# Preparation
* [Download](https://github.com/mainsail-crew/MainsailOS/releases) the latest MainsailOS release (don't unpack the zip; you don't need to).
* [Download](https://www.raspberrypi.org/software/) and install the latest Raspberry Pi Imager (aka. rpi-imager).
# Flashing MainsailOS
Raspberry Pi Imager appearance may vary depending on the host OS.
{: .info}
* When opening rpi-imager you will be presented with the following:
The following commands will clone Klipper to an appropriate directory in HOME.
```bash
cd ~
git clone https://github.com/KevinOConnor/klipper
cd ~/klipper
./scripts/install-octopi.sh
```
## Configuration
After Klipper is installed, you will need to change the default location of the printer.cfg and add the UDS (unix domain socket). This is defined in the file `/etc/default/klipper`
Then we can initialize the python virtual environment and install the python dependencies:
ExecStart= /home/pi/klippy-env/bin/python /home/pi/klipper/klippy/klippy.py ${KLIPPER_CONFIG} -l ${KLIPPER_LOG} -a ${KLIPPER_SOCKET}
Restart=always
RestartSec=10
```
Save the file with `CTRL+O` and close the editor with `CTRL+X`.
You have to create the directories for your klipper configuration and the virtual_sdcard directory:
**Please check and modify the username!**
If you do not use the user `pi`, you must replace it in each path and in the variable user in the service file.
{: .warning }
To enable and start the Klipper service execute these commands:
```bash
sudo systemctl enable klipper.service
```
You have to create the directories for your klipper configuration, logs and the virtual_sdcard directory:
```bash
mkdir ~/klipper_config
mkdir ~/klipper_logs
mkdir ~/gcode_files
touch ~/klipper_config/printer.cfg
```
Move your printer.cfg to ~/klipper_config and check if the following entries are present in the config.
```ini
[virtual_sdcard]
# for gcode upload
path: ~/gcode_files
[display_status]
# for display messages in status panel
[pause_resume]
# for pause/resume functionality.
# Mainsail needs gcode macros for `PAUSE`, `RESUME` and `CANCEL_PRINT` to make the buttons work.
```
**These entries are very important.**
For the full functionality of mainsail, you should also define gcode macros for `PAUSE`, `RESUME` and `CANCEL_PRINT`. You'll find further information in [this](../../necessary-cfg.md){: target="_blank"} document.
{: .info }
After your config is in place, restart klipper with `sudo service klipper restart`. Check the `/tmp/klippy.log` for errors, if Klipper starts correctly you can continue the guide.
After your config is in place, restart klipper with `sudo systemctl start klipper`.
Now you can check again the API if it works with the reverse proxy. Open the url http://\<printer-ip\>/printer/info in your browser. if you see a content like this:
@@ -31,32 +37,49 @@ For Moonraker you'll need to create a separate config file.
`nano ~/klipper_config/moonraker.conf`
Insert the following part and modify `trusted_clients` according to arksines description below.
Also consider further IP ranges, e.g. when connecting via VPN. To determine your local ip `ip a` and `ifconfig -a` are common ways to do so on Linux and `ipconfig` on Windows.
Insert the following part:
```
[server]
host: 0.0.0.0
port: 7125
enable_debug_logging: False
config_path: ~/klipper_config
log_path: ~/klipper_logs
[authorization]
cors_domains:
https://my.mainsail.xyz
http://my.mainsail.xyz
http://*.local
http://*.lan
trusted_clients:
10.0.0.0/8
127.0.0.0/8
169.254.0.0/16
172.16.0.0/12
192.168.0.0/16
FE80::/10
::1/128
# enables partial support of Octoprint API
[octoprint_compat]
# enables moonraker to track and store print history.
[history]
# this enables moonraker's update manager
[update_manager]
[update_manager mainsail]
type: web
repo: mainsail-crew/mainsail
path: ~/mainsail
```
**This is a very basic config**
For more options and detailed explanations you should follow [arksines instructions](https://github.com/Arksine/moonraker/blob/master/docs/installation.md).
{: .info }
```
[server]
host: 0.0.0.0
config_path: ~/klipper_config
[authorization]
enabled: true
trusted_clients:
192.168.1.0/24
2a02:810d:9340:33f6::/64
[update_manager]
[update_manager client mainsail]
type: web
repo: meteyou/mainsail
path: ~/mainsail
```
🔥 **trusted_clients - read carefully** 🔥
A list of newline separated ip addresses and/or ip ranges that are
trusted. Trusted clients are given full access to the API. Both IPv4
@@ -70,11 +93,47 @@ trusted.
Save the file with `CTRL+O` and close the editor with `CTRL+X`.
Restart Moonraker
## Startup service
To edit this file type:
```bash
sudo service moonraker restart
sudo nano /etc/systemd/system/moonraker.service
```
fill in these lines:
```yaml
#Systemd moonraker Service
[Unit]
Description=Moonraker provides Web API for klipper
It can cause unforeseeable events, like rips in the space-time continuum. So be aware!
No seriously. Experiences have shown that it is advisable not to use an OctoPi image (especially for beginners).
Do **not** use an OctoPi image as it can cause unforeseen (avoidable) problems.
{: .warning }
Don't forget to enable SSH and configure a network if using Wi-Fi.
{: .info}
It is recommended to use a clean Raspberry Pi OS 32-bit Lite image (previously called Raspbian). You can download it [here](https://downloads.raspberrypi.org/raspios_lite_armhf_latest){:target="_blank"}.
For more information about installing Raspberry Pi OS click [here](https://www.raspberrypi.org/documentation/installation/installing-images/){:target="_blank"}. Don't forget to enable ssh.
It is recommended to use a clean [Raspberry Pi OS 32-bit Lite](https://downloads.raspberrypi.org/raspios_lite_armhf_latest){:target="_blank"} image (previously called Raspbian).
Once you have finished the installation and are connected via ssh, you can continue.
We recommend you follow the RaspberryOS official [documentation](https://www.raspberrypi.org/documentation/installation/installing-images/){:target="_blank"} to flash and install the operating system to your SD card.
Once you have finished the installation and are connected via SSH, you can continue.
## Requirements
Install the required packages and update the system:
If you have performed all of the installation steps, your installation should be complete and you are ready to start calibrating and printing with your 3D printer.
Start with [prepare](/theming/prepare) to create a basic structure for your own theme, or take a look in [themes](/theming/themes) to see if there are already suitable themes from the Mainsail community.
Start with [prepare](/theming/prepare) to create a basic structure for your own theme, or take a look in [themes](/theming/themes) to see if there are already suitable themes from the Mainsail community.
To update Klipper directly from its repository, run the following command in a terminal:
```bash
cd ~/klipper
git pull
```
Restart Klipper (`sudo service klipper restart`) and check the `klippy.log`, if Klipper starts
correctly and then continue the guide.
Restart Klipper using the command `sudo service klipper restart` and check the `klippy.log`. if Klipper started correctly without any errors you may continue.
### Klipper config changes
If you have issues after update your Klipper instance, you can check config changes [here](https://github.com/KevinOConnor/klipper/blob/master/docs/Config_Changes.md).
### Klipper configuration changes
If you have any issues after updating your Klipper instance, you can check the configuration changes [here](https://github.com/KevinOConnor/klipper/blob/master/docs/Config_Changes.md).
---
[< table of contents](index.md){: .btn } [next step >](moonraker.md){: .btn}
This is only necessary if you update from 0.2.2 to 0.2.3 or higher. If you use MainsailOS, the virtual_sdcard directory is `gcode_files` instead of `sdcard`.
### Updating from 0.2.2 to 0.2.3 or higher
If you are updating from Mainsail version 0.2.2 to a newer version, you must move the file `gui.json` from the `gcodes` directory to the `klipper_config' directory.
This is only necessary when updating from 0.2.2 to 0.2.3 or higher. If you use MainsailOS, the virtual_sdcard directory is `gcode_files` instead of `sdcard`.
```
mv ~/sdcard/gui.json ~/klipper_config/
```
Now it should be possible to open the interface: `http://<printer-ip>/`.
You should now be able to open Mainsail in your web browser at `http://<printer-ip>/`.
Restart Klipper (`sudo service klipper restart`) and check the `klippy.log`, if Klipper starts
correctly and then continue the guide.
### Klipper config changes
If you have issues after update your Klipper instance, you can check config changes [here](https://www.klipper3d.org/Config_Changes.html){:target="_blank"}.
---
[< table of contents](index.md){: .btn } [next step >](moonraker.md){: .btn}
This is only nessasary, if you see missing modules in the moonraker log.
```bash
~/moonraker/scripts/install-moonraker.sh -r
```
### Moonraker config changes
If you have issues after update your Moonraker instance, you can check config changes [here](https://moonraker.readthedocs.io/en/latest/user_changes/){:target="_blank"}.
To use the update manager in Mainsail you have to add this in your moonraker.conf:
### Add Moonraker to the update manager
If you want to update Moonraker using the update manager, you need to add the following section to your printer's `moonraker.conf`:
```
[update_manager]
[update_manager client mainsail]
type: web
repo: meteyou/mainsail
repo: mainsail-crew/mainsail
path: ~/mainsail
```
### Change Moonraker to systemd service (December 6th 2020)
Moonraker is now installed as a systemd service. If `moonraker.conf` is not located in the home directory, the command will looks something like the following:
### Moonraker as a systemd service
As of December 2020, Moonraker is added as a systemd service during installation. If `moonraker.conf` is not located in the home directory, run this command in your terminal:
This allows logging to stdout which can be viewed with the `journalctl -u moonraker command`.
This allows logging to `stdout` which can be viewed with the command `journalctl -u moonraker` in your terminal.
### Update Moonraker dependence
This is only nessasary, if you see missing modules in the moonraker log.
### Update Moonraker's dependencies
Updating Moonraker's dependecencies manually is only needed if you see missing modules in the Moonraker log. You can run the following command to update Moonraker's dependencies:
```bash
~/moonraker/scripts/install-moonraker.sh -r
```
### Moonraker config changes
If you have issues after update your Moonraker instance, you can check config changes [here](https://github.com/Arksine/moonraker/blob/master/docs/user_changes.md).
### Moonraker configuration changes
If you have issues after updating Moonraker, please review the list of changes requiring user intervention [here](https://github.com/Arksine/moonraker/blob/master/docs/user_changes.md).
You can find further information on this topic in the [Moonraker documentation](https://github.com/Arksine/moonraker/blob/master/docs/configuration.md#update_manager){:target="_blank"}.
{: .info}
## Enabling Update Manager
To use the built in Update Manager it must first be enabled by editing the `moonraker.conf` file. From a terminal navigate to Klipper's configuration directory and edit the configuration file:
```bash
cd ~/klipper_config
sudo nano moonraker.conf
```
Add the following section to your printer's `moonraker.conf`:
```yaml
[update_manager]
[update_manager client mainsail]
type:web
repo:mainsail-crew/mainsail
path:~/mainsail
```
Restart Moonraker:
```bash
sudo systemctl restart moonraker
```
## Using Mainsail to Update
With the update manager enabled, reload your web browser and select the 'Machine' tab from the sidebar. You should now see the Update Manager panel.
Holding shift while clicking the browser's refresh button (or pressing Control + F5) will force it to reload the page fully without the cache.
d="m 30,34 v 140 l 260,255 115,-5 h 80 L 730,174 V 34 H 720 L 385,374 40,34 Z"
id="path2"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccccc" /><path
style="fill:#3c4b5a;stroke-width:1.03280997"
d="m 140,418 -58,57 1,25 v 19 l 57,57 h 27 v -1 L 91,496.5 167,419 v -1 z"
id="path8"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccccc" /><g
transform="translate(-1.08348e-4,0.048)"
id="g17">
<path
d="m 83.041215,464.92108 h 0.001 l -0.04211,27.03092 h 11 l 73.000005,-74 v 14.301 l -63,64.199 63,65.5 v 14 l -73.000002,-75 h -13 c -2,0 -4,-2 -4,-4 h -2 v -33 h 2 c 0,-1 1,-2 3.00004,-2 1.99996,0 2.99996,1 2.99996,2 z"
d="M 259,424 H 360 V 359 L 30,34 H 90 L 385,324 670,34 h 60 L 410,359 v 84.99783 C 410,449 405,454 400,454 H 259 c -12,0 -14,-10 -14,-15 0,-5 2,-15 14,-15 z"
Loaded 100 of 351 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.