* 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>
* test vue-echarts and dataset>source instead of series>data
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix disposed state of chart & delete update interval of settings page
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* init TS migation & dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: dashbaord console
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add "disabled" status to the filament runout sensor on the dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix klipper restart process
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix status panel during a print
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert g-code files to typescript
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert history files to typescript
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert machine limits to typescript
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert update manager to typescript
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert endstops & logfiles to typescript
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix temp display in tools panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert machine > config files to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert select printer dialog to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert select printer menu to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert farm page to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix debug output of farm printer getters
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix import webcam streams in farm view
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* better handling when changing printers
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert heightmap to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert heightmap to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* Console QOL (#300)
* CHORE
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* NEW: console ts refactor, linux autocomplete, gui helplist, multiline
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* FIX: console autocomplete flood fix
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* fix merged console
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fixed return of ConsoleTable.vue isCommand
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: add toast after creating file in ConfigFilesPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: file upload message
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add toolbar to files panels
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: disable scrollbars in TempChart.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: sidebar z-index and farm printer toolbar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: sidebar & topbar z-index and farm printer toolbar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* update toolbars in gcode-files and history
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: new settings dialog (#302)
* create settings dialog and integrate general, console, control, marcos, presets, webcams
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: renamed webcam gui state variable
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: temperature_fan chamber in farm printers dashboard
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: only display RPM in tools panel, when its available
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: reading empty remote printers list
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: loading additionalSensors in temp panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix: bed_mesh loading
rework heightmap settings
save heightmap settings in moonraker db
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add remote printers to settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix types
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add beforeDestroy to echarts
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add heightmap visualMap scaling and format tooltip
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: logo & primary color customizing
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* remove keep-alive in app.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* round tempchart data
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* normalize toolbar buttons
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix series attributes & update echarts-gl
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix hostname in sidebar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* rework websocket loadings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix rework websocket loadings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* Fixes for console QOL PR (#301)
* FIX: command help dialog added
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* FIX: console fixes
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* rework events store
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: check customFilters if string or array
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: edit preset dont work (existing name check)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: save webcam with index 0
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: tool combobox input dont work
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: tooltip position & z-index
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* rework console
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix output name of filament sensor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* store performance updates and StatusPanel.vue optimizing
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* console bugfixes
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix icon-rotate in temperatures panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add auto-grow to console input fields
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix dialog action button colors
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix refreshMetadata of gcocde files
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add multi fileupload to drag&drop upload
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* convert SystemPanel to TS
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add init and getters for system panels
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add init and getters for system panels
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* finish SystemPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: raspberry throttled flags in topbar
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix type in TheThrottledStates.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add new editor (#307)
* init test
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* theme test
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: switch to codemirror editor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix type in TheThrottledStates.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* reformat flags output and deactivate debug output
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* add types to throttle states
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* display "dirty" in the board firmware version string
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix mini console array cut
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* delete old comment
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* fix config files on small devices
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: display macro description in settings tab
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* change settings icons
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* rename dashboard panel & change slider text in settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* responsive optimations for settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix throttled state flags filter
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* Code highlighting for codemirror (#309)
* init test
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* theme test
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: switch to codemirror editor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* NEW: klipper_config editor theme
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
* NEW: code highlighting for codemirror
Signed-off-by: Eike Ahmels <eike.ahmels@tu-dortmund.de>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
* feature: hide/show jobs with special print status
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* redesign console help modal
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: default state of sidebar was wrong on mobile devices
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: mobile view interface settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: optimize mobile view interface settings
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: block empty console commands
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* push version number
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add current / max flow in status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* feature: add big gcode thumbnail to status panel
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: fix favicon and setting tab names
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* cleanup old editor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
* bugfix: add redirect for updates from 1.6.0 to 2.0.0
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: Eike Ahmels <hui_buh-@gmx.net>
* Changed from Balena to RPI-Imager
Enhanced Docs accordingly
Signed-off-by: Stephan Wendel <me@stephanwe.de>
* Added 'include mainsail.cfg'
Fixed Typo
Signed-off-by: Stephan Wendel <me@stephanwe.de>
* Removed SSH Login, no need for that.
Fixed Typo
Signed-off-by: Stephan Wendel <me@stephanwe.de>
* Added some formatting
Signed-off-by: Stephan Wendel <me@stephanwe.de>
* add home and temp check
* add missing lines
* update description property
* get VELOCITY parameter if specified
* remove gcode state
save and restore of the gcode state is already part of the base macros
* docs: just a few stylesheet adjustments
modified: docs/_sass/color_schemes/mainsail.scss
new file: docs/assets/img/alert.svg
new file: docs/assets/img/info.svg
new file: docs/assets/img/success.svg
new file: docs/assets/img/warning.svg
* docs: escape gcodes, so that it can be rendered.
modified: necessary-cfg.md
* language from js to json and new de language
* added translation to controlpanel, added translations
* de translation
fixed typo "rename"
* updated de translation
* fixes
* removed de.old
* updated de translation
* updated de local + deleted empty keys
* Update hu.json
Adding missing components, fixing doubled names (english+hungarian leftovers).
This is ready for release. Other changes after 0.16 release and live test will be requested.
* 2021 04 11 after todays changes up to date
also deleted previous problems, corrected the langage marks place, deleted not needed lines
* language from js to json and new de language
* added translation to controlpanel, added translations
* de translation
fixed typo "rename"
* updated de translation
* fixes
* removed de.old
* updated de translation
new file: assets/img/preview/Clippy2k.gif
new file: assets/img/preview/Mainsail2k.png
new file: assets/img/preview/Merlin2k.png
new file: assets/img/preview/Wallpaper2k.png
new file: assets/img/preview/logo2k.png
new file: assets/img/preview/menu2k.gif
new file: preview.md
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 is a lightweight & responsive web interface for the [Klipper](https://github.com/KevinOConnor/klipper)
3D printer firmware. It communicates with the [Moonraker (Klipper-API)](https://github.com/arksine/moonraker) from [Arksine](https://github.com/arksine).
Mainsail makes Klipper more accessible by adding a lightweight, responsive web user interface, centred around an intuitive and consistent design philosophy.
Mainsail is also available in remote mode on [http://my.mainsail.xyz](http://my.mainsail.xyz). Find out [more](https://docs.mainsail.xyz/setup#mymainsailxyz).
To begin using Mainsail start by [installing](https://meteyou.github.io/mainsail/setup/) it or read the [pages](https://meteyou.github.io/mainsail/) for more informations.
## Features
- Responsive web interface, optimized for desktops, tablets and mobile devices
- Supports multiple 3D printers (Printer Farm)
- Localization (i18n)
- File Manager (gcode and config files)
- File Editor (gcode and config files)
- Print History and Statistics
- Job Queue
- Temperature Presets (with custom gcode)
- Bed Mesh visualisation
- G-Code Viewer
- Multi-Webcam support
- Timelapse integration
- Control power devices such as relays, TPLink and Tasmota devices, and more
- Powerful Macro-Management
- Configurable dashboard
- Customizable user interface including logos, backgrounds, and custom CSS
- Exclude objects (not yet officially supported by Klipper)
For support join our discord server -> [https://discord.gg/skWTwTD](https://discord.gg/skWTwTD)
## Help and Support
Do you need help or just want to talk? Join our active community on [Discord](https://discord.gg/skWTwTD).
Have you found a bug? Please create an [Issue](https://github.com/mainsail-crew/mainsail/issues) in GitHub and let us know.
## 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:
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 and Ko-fi
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 continued support.**
- TOC
{:toc}
# Contributors
| contributor | link |
|:--------|:-----|
{% for contributor in site.data.contributors %}{% if contributor.login != "meteyou" and contributor.login != "dependabot[bot]" %}|{: style="width: 20px; vertical-align: bottom;"} **{{ contributor.login }}**|[{{ contributor.html_url }}]({{ contributor.html_url }}){:target="_blank"}|
NOTE: After saving, your browser may need a uncached reload to show the change (https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Bypassing_cache)
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 makes Klipper more accessible by adding a lightweight, responsive web user interface, centred around an intuitive and consistent design philosophy.
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:
Mainsail requires a minimum configuration to function properly. It should give you a warning at startup if the required parts are not found in your configuration.
## Required configuration
### virtual_sdcard
This allows gcode file uploads.
```yaml
[virtual_sdcard]
path:~/gcode_files
```
### display_status
This is required for messages in your status panel, if you don't have a `[display]` in your configuration.
```yaml
[display_status]
```
### pause / resume / cancel
This enables pause / resume in mainsail.
```yaml
[pause_resume]
```
## Macros
### for pause /resume / cancel functionality
These should be modified to your own needs.
```yaml
[gcode_macro PAUSE]
rename_existing:BASE_PAUSE
default_parameter_X:230#edit to your park position
default_parameter_Y:230#edit to your park position
default_parameter_Z:10#edit to your park position
default_parameter_E:1#edit to your retract length
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{E} F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
```
```yaml
[gcode_macro RESUME]
rename_existing:BASE_RESUME
default_parameter_E:1#edit to your retract length
gcode:
G91
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
```
```yaml
[gcode_macro CANCEL_PRINT]
rename_existing:BASE_CANCEL_PRINT
gcode:
TURN_OFF_HEATERS
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
```
## Optional
### customize klipper default commands
for example, if you want to adjust the `BED_MESH_CALIBRATE` command, which you can run from "heightmap > calibrate".
Mainsail requires a minimum configuration to function properly. It should give you a warning at startup if the required parts are not found in your configuration.
# Required configuration
## virtual_sdcard
This allows gcode file uploads.
```yaml
[virtual_sdcard]
path: ~/gcode_files
```
## display_status
This is required for messages in your status panel, if you don't have a `[display]` in your configuration.
```yaml
[display_status]
```
## pause / resume / cancel
This enables pause / resume in mainsail.
```yaml
[pause_resume]
```
# Macros
## for pause / resume / cancel functionality
These should be modified to your own 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
## customize klipper default commands
for example, if you want to adjust the `BED_MESH_CALIBRATE` command, which you can run from "heightmap > calibrate".
We would like to give you a little sneak peak on the next big thing.
---
# Sneak Peak
Some users have asked which new features are planned for Mainsail 2.0. So we would like to give you a little sneak peak.
# Ground breaking changes
We have completely rethought the system of Mainsail and MainsailOS and will further bring the OS aspect to the focus. This will include a **complete design overhaul** to integrate **the all new help assistant**.
Due to the major changes we will probably jump directly to **Mainsail 2000** instead of 2.0.
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`:
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 guide does not include every step in detail, but is a recommendation for safe remote access.
{: .info}
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 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 status messages to their respective platforms. No changes are needed to externally access your local network.
For details, please refer to each project's instructions and documentation.
## Remote Access to Mainsail
<div class="alert">
What <b>not to do</b>:
<ul>
<li>Please do not open ports of Mainsail/Moonraker in your router to the rest of the world. There are plenty of reports of Octoprint installations being freely accessible on the Internet, with just as many reasons why this is not a good idea.</li>
<li>Use an external service provider such as Tailscale to gain access to your home network.
<ul>
<li>A potential downside is not having personal control of the connection.</li>
</ul>
</li>
<li>Reverse Proxy</li>
</ul>
</div>
<div class="success">
<b>Recommendation</b> what you <b>should do</b>:
<ul>
<li>Set up your own secured VPN tunnel.
<ul>
<li>In your router</li>
<li>Or your Raspberry Pi</li>
</ul>
</li>
</ul>
</div>
## Set up VPN
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, 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 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 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_
{: .info}
Loaded 100 of 481 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.