Compare commits

...
30 Commits
Author SHA1 Message Date
Stefan Dej 25a4c3e476 Merge branch 'develop' into release/v2.1.0 2022-01-19 20:22:55 +01:00
Emperor 19496a1f0a locale(ru): Update RU v2.1 (#552)
* Update RU v2.1
2022-01-19 20:20:38 +01:00
Stefan Dej 1a8a9558d3 feat: send gcode macro with keyup enter (#544)
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-19 19:47:25 +01:00
steadyjaw d94543207f bugfix: fix capitalization of bed_mesh names and renaming functions (fix #545,#546) (#547)
* fix: remove text-transformation on rename-button
* fix: remove toUpperCase on renameProfile
* fix: add remove command to renameProfile
2022-01-19 19:39:17 +01:00
Stefan Dej 9c70a0cafa docs: update screenshot to v2.1.0
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-18 22:41:20 +01:00
Stefan Dej c5aaa2f79f Merge branch 'develop' into release/v2.1.0 2022-01-18 22:08:02 +01:00
th33xitus 595c937d50 fix: improve machine settings number inputs (#537)
* 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>
2022-01-18 22:07:27 +01:00
Stefan Dej 28a6f5a813 chore: update package-lock.json
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-18 20:56:51 +01:00
Stefan Dej 4901d4992c chore: push version number to v2.1.0
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-18 20:54:58 +01:00
Stefan Dej 56d61ce6ae fix: ipv6 issues with encodeURI
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-18 20:47:46 +01:00
Paul Cutler be2efac9fd docs: Update Quicktips (#518)
Reiview and update the whole Quicktip section with better readability, grammar and spelling.

Signed-off-by Paul Cutler paul@paulcutler.org
2022-01-18 14:14:53 +01:00
Kevin Nguyen 7b19c902de fix: encodeURI for thumbnails and timelapse files (#539)
GET requests including file names with special characters such as '%' will properly encode the request to the server.
2022-01-18 01:04:16 +01:00
Morten Lindhardt bf60aef344 fix: set default for min_extrude_temp (#540)
* fix: set default for min_extrude_temp

Signed-off-by: Morten Lindhardt <r3fuze@gmail.com>

* fix: use settings instead of config
2022-01-18 01:02:34 +01:00
Stefan Dej 674ad36ddb fix: klippy connected/disconnected change
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-18 00:25:36 +01:00
lixxbox f535ccf493 docs: add redirect dor configuration 2022-01-16 21:13:09 +01:00
Stefan Dej 06bf0acdc3 fix: workaround to display download status in gcode-viewer
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-16 20:37:33 +01:00
Stefan Dej 5307412484 fix: workaround to display download status in editor
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-15 01:29:44 +01:00
Stefan Dej bd7cf76076 fix: hide snackbar details if total not available
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-14 22:47:22 +01:00
Stefan Dej aa4c269eab fix: sort mcus in SystemPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-14 20:49:11 +01:00
Stefan Dej d7c2dc5033 fix: sort endstops in EndstopPanel.vue
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-14 20:47:42 +01:00
CodingJustForRun 9da5c356f7 locale(hu): 2022 01 12 update (#531)
one key updated
2022-01-12 21:46:36 +01:00
CodingJustForRun bd5723dda6 locale(hu): hun update 20220110 as requested :) (#530) 2022-01-12 21:46:15 +01:00
Stefan Dej 3ab0a5952a locale: fix keys in top corner menu
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-12 20:53:48 +01:00
Stefan Dej d76343b7bb fix: fix locale output in confirm dialog for service control
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-10 21:04:44 +01:00
Bart Lammers d94e9f18f3 locale(nl): Update NL locale (#529) 2022-01-10 19:09:09 +01:00
cgrossi70 4610eb70bc locale(es): Traslation Spanish RC1 (#528) 2022-01-10 19:08:28 +01:00
srbjessen 649bbaa7dc locale(da): Updated Danish translations (#527) 2022-01-10 19:07:07 +01:00
lixxbox 887da6745a docs: themes / changed name to cryd-s
user changed the name of his github account
2022-01-10 14:22:05 +01:00
Stefan Dej b7e94ba25e locale(fr): update FR locale
thx to Roland Forster

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-09 23:23:26 +01:00
Stefan Dej 629e0f2f7c fix: request metadata for gcode files, when using search function
Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-01-09 11:27:38 +01:00
54 changed files with 597 additions and 282 deletions

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ source "https://rubygems.org"
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
gem "jekyll-remote-theme"
gem "jekyll-redirect-from"
end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
+3
View File
@@ -17,3 +17,6 @@ defaults:
path: "" # an empty string here means all files in the project
values:
image: assets/img/rtfm.png
plugins:
- jekyll-redirect-from
+1 -1
View File
@@ -3,4 +3,4 @@ Dracula,,steadyjaw,dracula-mainsail-theme
Cyberpunk,,Dario-Ciceri,cp2077-mainsail-theme
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,,Crykor90,Mainsail-Theme-by-Cryd
Cryd,,cryd-s,Mainsail-Theme-by-Cryd
1 name short_note author repo
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’ Raabi91 ratrig-mainsail-theme
6 Cryd Crykor90 cryd-s Mainsail-Theme-by-Cryd
Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 KiB

After

Width:  |  Height:  |  Size: 692 KiB

+2
View File
@@ -4,6 +4,8 @@ title: Configuration
nav_order: 5
has_children: false
permalink: /configuration
redirect_from:
- /necessary-configuration
---
# Required configuration
+3 -3
View File
@@ -13,13 +13,13 @@ description: >-
<!-- {{ page.description }} -->
We would like acknowledge the valuable contributions that many people and projects have made to Mainsail, particularly the:
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/mainsail-crew/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 continued support.**
+11 -10
View File
@@ -9,33 +9,34 @@ has_toc: false
# Data Privacy
We understand the need for data privacy and have designed Mainsail to operate in your browser’s cache locally.
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 locallaly, or accessed via [my.mainsail.xyz](http://my.mainsail.xyz).
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) | ‘Phone home’ |
| Communicate directly with your printer via the Moonraker API | Send/transfer any data externally |
| 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 the brower's storage in exactly the same way that an instance running on your local hardware would do. In reality, there is no functional difference (or concern) between accessing Mainsail from a privately or publicly hosted instance.
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.
Parallel operation is also possible.
Running Mainsail both locally and remotely in parallel is also possible.
# Third party software
We do not modify third party packages or software, nor control their attitude to Data Privacy.
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 consider the privacy policies (or contacting the developer) of:
If you are concerned, please review the privacy policies for the following third party software:
* [RaspberryOS](https://www.raspberrypi.org/privacy/)
* Klipper
* Moonraker
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 and ( whilst this brings no guarantee of privacy and security) the source is available and open to peer review.
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.
The Raspberry Foundation is a registered charity in the United Kingdom with extensive Privacy and Safeguarding policies.
{: .info}
+3 -3
View File
@@ -20,10 +20,10 @@ Mainsail makes Klipper more accessible by adding a lightweight, responsive web u
- 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)
- File Manager (G-Code and config files)
- File Editor (G-Code and config files)
- Print History and Statistics
- Temperature Presets (with custom gcode)
- Temperature Presets (with custom G-Code)
- Bed Mesh Leveling
- Multi-Webcam support
- Control power devices such as relays, TPLink and Tasmota devices, and more
+3 -3
View File
@@ -5,7 +5,7 @@ parent: Quicktips
has_children: false
permalink: /quicktips/additional-sensors
description: >-
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`:
```yaml
[temperature_sensor mcu_temp]
+5 -5
View File
@@ -5,22 +5,22 @@ parent: Quicktips
has_children: false
permalink: /quicktips/console-shortcuts
description: >-
Similar to a terminal of your OS, there are some keyboard shortcuts in Mainsail that make your everyday life easier.
Keyboard shortcuts are available for those who prefer shortcuts.
---
# {{ page.title }}
{{ page.description }}
## Help command
## List of Commands
Issue a `HELP` command to get a list of possible commands.
Issue a `HELP` command in the console to get a list of all available commands.
## Autocomplete
You can start typing a command and then complete it with the tab-key. If there are several possibilities, you will get a list of choices.
You can start typing a command and then complete it with the Tab key. If there are several possibilities, a list of choices will be displayed.
![](../assets/img/quicktips/console-shortcuts/tab_complete.gif)
## Scroll through commands
Using the &uarr; up / &darr; down arrow keys you can scroll through previous commands.
Use the &uarr; up and &darr; down arrow keys to scroll through previously used commands in the console.
+2 -2
View File
@@ -5,14 +5,14 @@ parent: Quicktips
has_children: false
permalink: /quicktips/disable-octoprint-lcd-menu
description: >-
Klipper is shipped with an Octoprint entry in the LCD menu. These menu points don't work with Mainsail.
Klipper ships with an Octoprint entry in the LCD menu which does not work with Mainsail.
---
# {{ page.title }}
{{ page.description }}
## Modify printer.cfg
Just add the following entry to your printer.cfg:
Add the following entry to your printer.cfg to disable Octoprint:
```yaml
[menu __main __octoprint]
@@ -5,7 +5,7 @@ parent: Quicktips
has_children: false
permalink: /quicktips/hide-gcode_macros
description: >-
As you probably already noticed, you can show and hide the gcode macros in the interface settings, but there is more...
You can show and hide G-Code macros in the interface settings
---
# {{ page.title }}
@@ -25,10 +25,10 @@ gcode:
M300
```
`MY_AWESOME_GCODE` appears in your interface settings, `_MY_HELPER_CODE` not.
`MY_AWESOME_GCODE` appears in your interface settings, `_MY_HELPER_CODE` does not.
![](../assets/img/quicktips/hide-gcode_macros/my_awesome_macro.png)
By the way, this also works for other configuration sections like, **fans and outputs.**
This also works for other configuration sections including **fans and outputs.**
{: .info}
+7 -6
View File
@@ -1,24 +1,25 @@
---
layout: default
title: Print History/Stats
title: Print History and Statistics
parent: Quicktips
has_children: false
permalink: /quicktips/history
description: >-
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.
![](../assets/img/quicktips/history/history.png){: style="width: 50%;"}
## Enable print history tracking
For this, it is necessary to enable print history tracking in moonraker.
To enable print history tracking, you must first enable this feature in Moonraker.
Just add `[history]` to your moonraker.conf and restart moonraker.
Add `[history]` to your `moonraker.conf ` configuration file and restart Moonraker.
The new history entry will appear in Mainsails sidebar.
The new history entry will appear in Mainsail's sidebar.
+1 -1
View File
@@ -5,7 +5,7 @@ nav_order: 10
has_children: true
permalink: /quicktips
description: >-
quick tips, without much explanation
Quick tips for Mainsail users.
---
# {{ page.title }}
+52 -37
View File
@@ -12,75 +12,91 @@ description: >-
{{ page.description }}
__Disclaimer__
Thank you [Charlie_Powell](https://community.octoprint.org/u/Charlie_Powell) for letting us adapt your guide for mainsailOS!
Thank you to [Charlie_Powell](https://community.octoprint.org/u/Charlie_Powell) for letting us adapt his guide for MainsailOS!
The original guide can be found [here](https://community.octoprint.org/t/setting-up-multiple-webcams-in-octopi-the-right-way/32669).
{: .info}
## Prerequisites
You need:
For multicam to work, you will need:
- mainsailOS v0.5.0 or higher
- ssh access
- at least two cameras
- MainsailOS v0.5.0 or higher
- SSH access
- Two or more cameras
__WARNING__
**If you are working on a existing installation, make a backup!**
**If you are working with an existing installation, make a backup!**
{: .warning}
## Creating the configuration files
mainsailOS supports an infinite number of webcam*.txt-style configuration files. They can be placed in
MainsailOS supports an infinite number of `webcam*.txt` style configuration files. They should be placed in
`/home/pi/klipper_config`.
In the UI, got to 'Settings > Interface' click on (1) and save as `webcam2.txt`.
In Mainsail's user interface, go to 'Settings > Interface' and click on (1) and save as `webcam2.txt`.
:image:
Now you should have two identical files:
You should now have two identical files with different names:
1. `/home/pi/klipper_config/webcam.txt`
2. `/home/pi/klipper_config/webcam2.txt`
## Editing the original configuration file for a specific camera
Find out the path to the camera by ID. This makes it much easier to stop /dev/video0 and /dev/video1 from switching on you.
## Edit the original configuration file for a specific camera
Find the path to the camera by its ID. This makes it easier to stop `dev/video0` and `/dev/video1` from being switchedin the future.
Run `ls /dev/v4l/by-id`, copy your camera id and paste it into the editor in mainsail. For example:
In a terminal, run the command `ls /dev/v4l/by-id`, copy your camera id and paste it into the editor in Mainsail. For example:
```bash
$ ls /dev/v4l/by-id/
```
returns
```
usb-046d_0825_88C56B60-video-index0 usb-046d_0825_88C56B60-video-index1
```
I'll use the first one `usb-046d_0825_88C56B60-video-index0`
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 name to an ID.
Not sure which device is which? You can run `lsusb` to match a camera name to an ID.
{: .info}
Then edit `/home/pi/klipper_config/webcam.txt` in by clicking on it in mainsail.
Edit `/home/pi/klipper_config/webcam.txt` by clicking on it in Mainsail.
Set `camera="usb"` at the top, and the `camera_usb_options` line to indicate the device:
Insert two lines at the beginning of `webcam.txt`:
`camera_usb_options="-r 640x480 -f 10 -d /dev/v4l/by-id/<device long id>"`
```
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__
Using a Raspberry Pi camera? Set camera="raspi" at the top of the file, and you can ignore referencing the cameras by device ID.
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
There's two things that need adjusting here: the port mjpg_streamer will be running under, and the device again.
When using a second camera, you must add the port `mjpg_streamer` runs under and the device.
__Note__
Using 1 RPi camera and 1 USB camera? You don't need to reference them by ID, since camera="raspi" vs. camera="usb" is enough.
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}
Find the long ID of the second camera, as you did for the first one.
Similar to finding the first camera, run `ls` and copy the ID of the second camera:
Editing `/home/pi/klipper_config/webcam2.txt` like described above.
```bash
ls /dev/v4l/by-id/
```
As above again, set camera="usb" and set camera_usb_options but this time using the ID for the second camera:
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:
`camera_usb_options="-r 640x480 -f 10 -d /dev/v4l/by-id/<device long id>"`
```bash
camera_usb_options="-r 640x480 -f 10 -d /dev/v4l/by-id/<device long id>"
```
Adjust the port, by editing camera_http_options:
Adjust the port by editing `camera_http_options`:
`camera_http_options="-n -p 8081"`
@@ -93,23 +109,22 @@ webcam3.txt => -p 8083
```
__INFO__
mainsailOS comes already setup with four nginx reverse proxies for port 8080 to 8083, so you can configure 4 webcams easy with this guide,
for more webcams you need to configure the nginx config, which we dont recommend!
It includes editing nginx configuration, which is easy to mess up and having mainsail stop working as well.
If you need more than four webcams, hop onto our [Discord](https://discord.gg/skWTwTD){:target="_blank"} and we will help you.
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 it works
Restart webcamd click the button,
and try and find your second camera under `http://<your-ip>/webcam2/`.
If it doesn't work, check in the webcam log under the filemanager log section for details.
## 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:
If it works, you can use the URLs in Mainsail:
Stream: `http://<your-ip>/webcam2/`
__DONE__
Congratulations, you set up multi webcam with mainsailOS!
If you want to add more, just follow the guide again and increment the webcam*.txt number i.e. webcam**3**.txt and so on.
The webcams are easy accessible through your `http://<your-ip>/webcam`, `http://<your-ip>/webcam2` and so on.
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.
{: .success}
+3 -4
View File
@@ -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.
![](../assets/img/quicktips/presets/preheat.png)
### 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.
![](../assets/img/quicktips/presets/gcodeoffset.png)
+16 -25
View File
@@ -11,26 +11,20 @@ description: >-
{{ page.description }}
__Notice__
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.
[https://github.com/eliteSchwein/mooncord](https://github.com/eliteSchwein/mooncord)
- __telegram:__ moonraker-telegram is a bot that sends you status messages over telegram.
[https://github.com/Raabi91/moonraker-telegram](https://github.com/Raabi91/moonraker-telegram)
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&emsp;_// devices on your regular LAN_
__192.168.50__.x&emsp;_// devices connected through your VPN tunnel_
+8 -9
View File
@@ -9,27 +9,26 @@ description: >-
# {{ page.title }}
{{ page.description }}
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.
For "API Key" you can type anything.
![screenshot](../assets/img/additional/FileUpload-PrusaSlicer-2.2.0.png)
### PrusaSlicer/SuperSlicer (since v2.3.0)
A "Physical Printer" must be defined to configure the settings from above.
More detailed instructions will follow.
### Cura with OctoPrint-Connect
Install the OctoPrint-Connection plugin via Marketplace. In `Settings > Printer > Manage Printers...`
you can find the Button `Connect OctoPrint`. Add your printer and type anything in the `API Key` field.
Install the OctoPrint-Connection plugin in Cura's Marketplace. In Cura go to `Settings > Printer > Manage Printers`
and find the Button `Connect OctoPrint`. Add your printer and type anything in the `API Key` field.
![screenshot](../assets/img/additional/FileUpload-Cura-4.8.png)
+3 -3
View File
@@ -13,7 +13,7 @@ description: >-
## Moonraker.conf
Add the following section to your printers moonraker.conf:
To enable updates in Mainsail's web interface, add the following section to your printer's `moonraker.conf`:
```yaml
[update_manager]
@@ -24,10 +24,10 @@ repo: mainsail-crew/mainsail
path: ~/mainsail
```
Once you have restarted the moonraker service, the Update Manager will appear in Mainsails machine settings.
Restart the Moonraker service and the Update Manager will appear in Mainsail's machine settings.
![](../assets/img/quicktips/update-manager/update-manager.png)
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"}.
{: .info}
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "mainsail",
"version": "2.1.0-beta4",
"version": "2.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "mainsail",
"version": "2.1.0-beta4",
"version": "2.1.0",
"dependencies": {
"@codemirror/basic-setup": "^0.19.0",
"@codemirror/highlight": "^0.19.6",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mainsail",
"version": "2.1.0-rc1",
"version": "2.1.0",
"private": true,
"decription": "a klipper web interface",
"author": {
+8 -3
View File
@@ -30,9 +30,14 @@
{{ snackbarHeadline }}<br />
<strong>{{ filename }}</strong>
</div>
<span v-if="loaderProgress.total > 1" class="mr-1">({{ formatFilesize(loaderProgress.loaded) }}/{{ formatFilesize(loaderProgress.total) }})</span>
{{ Math.round(100 * loaderProgress.loaded / loaderProgress.total) }} % @ {{ loaderProgress.speed }}/s<br />
<v-progress-linear class="mt-2" :value="100 * loaderProgress.loaded / loaderProgress.total"></v-progress-linear>
<template v-if="loaderProgress.total > 0">
<span class="mr-1">({{ formatFilesize(loaderProgress.loaded) }}/{{ formatFilesize(loaderProgress.total) }})</span>
{{ Math.round(100 * loaderProgress.loaded / loaderProgress.total) }} % @ {{ loaderProgress.speed }}/s<br />
<v-progress-linear class="mt-2" :value="100 * loaderProgress.loaded / loaderProgress.total"></v-progress-linear>
</template>
<template v-else>
<v-progress-linear class="mt-2" indeterminate></v-progress-linear>
</template>
<template v-slot:action="{ attrs }">
<v-btn
color="red"
+22 -22
View File
@@ -15,13 +15,13 @@
<v-list dense>
<template v-if="klipperState !== 'disconnected'">
<v-subheader class="" style="height: auto;">{{ $t("App.TopCornerMenu.KlipperControl") }}</v-subheader>
<v-list-item class="minheight30 pr-2" link @click="checkDialog(klipperRestart)">
<v-list-item class="minheight30 pr-2" link @click="checkDialog(klipperRestart, 'klipper', 'restart')">
<v-list-item-title>{{ $t("App.TopCornerMenu.KlipperRestart") }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto;">
<v-icon class="mr-2" small>mdi-restart</v-icon>
</v-list-item-action>
</v-list-item>
<v-list-item class="minheight30 pr-2" link @click="checkDialog(klipperFirmwareRestart)">
<v-list-item class="minheight30 pr-2" link @click="checkDialog(klipperFirmwareRestart, 'klipper', 'firmwareRestart')">
<v-list-item-title>{{ $t("App.TopCornerMenu.KlipperFirmwareRestart") }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto;">
<v-icon class="mr-2" small>mdi-restart</v-icon>
@@ -41,9 +41,9 @@
</v-tooltip>
</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto;">
<v-btn icon small v-if="getServiceState(service) === 'inactive'" @click="checkDialog(serviceStart, service)"><v-icon small>mdi-play</v-icon></v-btn>
<v-btn icon small v-else @click="checkDialog(serviceRestart, service)"><v-icon small>mdi-restart</v-icon></v-btn>
<v-btn icon small :disabled="getServiceState(service) === 'inactive' || service === 'moonraker'" @click="checkDialog(serviceStop, service)" :style="service === 'moonraker' ? 'visibility: hidden;' : ''"><v-icon small>mdi-stop</v-icon></v-btn>
<v-btn icon small v-if="getServiceState(service) === 'inactive'" @click="checkDialog(serviceStart, service, 'start')"><v-icon small>mdi-play</v-icon></v-btn>
<v-btn icon small v-else @click="checkDialog(serviceRestart, service, 'restart')"><v-icon small>mdi-restart</v-icon></v-btn>
<v-btn icon small :disabled="getServiceState(service) === 'inactive' || service === 'moonraker'" @click="checkDialog(serviceStop, service, 'stop')" :style="service === 'moonraker' ? 'visibility: hidden;' : ''"><v-icon small>mdi-stop</v-icon></v-btn>
</v-list-item-action>
</v-list-item>
</template>
@@ -59,13 +59,13 @@
</template>
<v-divider class="mt-0"></v-divider>
<v-subheader class="pt-2" style="height: auto;">{{ $t("App.TopCornerMenu.HostControl") }}</v-subheader>
<v-list-item class="minheight30 pr-2" link @click="checkDialog(hostReboot)">
<v-list-item class="minheight30 pr-2" link @click="checkDialog(hostReboot, 'host', 'reboot')">
<v-list-item-title>{{ $t("App.TopCornerMenu.Reboot") }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto;">
<v-icon class="mr-2" small>mdi-power</v-icon>
</v-list-item-action>
</v-list-item>
<v-list-item class="minheight30 pr-2" link @click="checkDialog(hostShutdown)">
<v-list-item class="minheight30 pr-2" link @click="checkDialog(hostShutdown, 'host', 'shutdown')">
<v-list-item-title>{{ $t("App.TopCornerMenu.Shutdown") }}</v-list-item-title>
<v-list-item-action class="my-0 d-flex flex-row" style="min-width: auto;">
<v-icon class="mr-2" small>mdi-power</v-icon>
@@ -180,27 +180,27 @@ export default class TheTopCornerMenu extends Mixins(BaseMixin) {
return null
}
checkDialog(executableFunction: any, serviceName: string | null = null) {
checkDialog(executableFunction: any, serviceName: string, action: string) {
if (this.printerIsPrinting) {
const functionName = (executableFunction.name ?? 'unknown').replace('bound ', '')
let action: string = 'Restart'
const actionTypes = ['Start', 'Restart', 'Stop', 'Reboot', 'Shutdown']
actionTypes.forEach((actionType: string) => {
if (functionName.endsWith(actionType)) action = actionType
})
this.dialogConfirmation.executableFunction = executableFunction
this.dialogConfirmation.serviceName = serviceName
const functionNameUppercase = functionName.trim().charAt(0).toUpperCase() + functionName.trim().slice(1)
this.dialogConfirmation.title = this.$t('App.TopCornerMenu.ConfirmationDialog.Title.' + functionNameUppercase)+''
const actionUppercase = action.trim().charAt(0).toUpperCase() + action.trim().slice(1)
let titleKey = 'App.TopCornerMenu.ConfirmationDialog.Title.Service' + actionUppercase
let descriptionKey = 'App.TopCornerMenu.ConfirmationDialog.Description.Service' + actionUppercase
const buttonKey = 'App.TopCornerMenu.' + actionUppercase
if (serviceName === 'klipper' && action === 'Stop') this.dialogConfirmation.description = this.$t('App.TopCornerMenu.ConfirmationDialog.Description.KlipperStop')+''
else if (serviceName === 'klipper' && action === 'Restart') this.dialogConfirmation.description = this.$t('App.TopCornerMenu.ConfirmationDialog.Description.KlipperRestart')+''
else this.dialogConfirmation.description = this.$t('App.TopCornerMenu.ConfirmationDialog.Description.' + functionNameUppercase)+''
if (serviceName === 'klipper' && ['stop', 'restart', 'firmwareRestart'].includes(action)){
titleKey = 'App.TopCornerMenu.ConfirmationDialog.Title.' + (action !== 'stop' ? 'Klipper' : 'Service') + actionUppercase
descriptionKey = 'App.TopCornerMenu.ConfirmationDialog.Description.Klipper' + actionUppercase
} else if (serviceName === 'host') {
titleKey = 'App.TopCornerMenu.ConfirmationDialog.Title.Host' + actionUppercase
descriptionKey = 'App.TopCornerMenu.ConfirmationDialog.Description.Host' + actionUppercase
}
this.dialogConfirmation.actionButtonText = this.$t('App.TopCornerMenu.' + action.charAt(0).toUpperCase() + action.slice(1))+''
this.dialogConfirmation.title = this.$t(titleKey).toString()
this.dialogConfirmation.description = this.$t(descriptionKey).toString()
this.dialogConfirmation.actionButtonText = this.$t(buttonKey).toString()
this.dialogConfirmation.show = true
} else executableFunction(serviceName)
}
+14 -5
View File
@@ -161,11 +161,20 @@
</template>
</v-snackbar>
<v-snackbar v-model="downloadSnackbar.status" :timeout="-1" :value="true" fixed right bottom dark>
<div>
{{ $t('GCodeViewer.Downloading') }} - {{ Math.round(downloadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(downloadSnackbar.speed)) }}/s<br />
<strong>{{ downloadSnackbar.filename }}</strong>
</div>
<v-progress-linear class="mt-2" :value="downloadSnackbar.percent"></v-progress-linear>
<template v-if="downloadSnackbar.total > 0">
<div>
{{ $t('GCodeViewer.Downloading') }} - {{ Math.round(downloadSnackbar.percent) }} % @ {{ formatFilesize(Math.round(downloadSnackbar.speed)) }}/s<br />
<strong>{{ downloadSnackbar.filename }}</strong>
</div>
<v-progress-linear class="mt-2" :value="downloadSnackbar.percent"></v-progress-linear>
</template>
<template v-else>
<div>
{{ $t('GCodeViewer.Downloading') }}<br />
<strong>{{ downloadSnackbar.filename }}</strong>
</div>
<v-progress-linear class="mt-2" indeterminate></v-progress-linear>
</template>
<template v-slot:action="{ attrs }">
<v-btn color="red" text v-bind="attrs" @click="cancelDownload" style="min-width: auto;" >
<v-icon class="0">mdi-close</v-icon>
@@ -13,8 +13,8 @@
@click:append="resetLimit"
:label="label"
:suffix="unit"
:append-icon="this.value !== this.defaultValue ? 'mdi-restart' : ''"
:error="(this.value < this.min) || ((this.value > this.max) && this.max !== null)"
:append-icon="value !== defaultValue ? 'mdi-restart' : ''"
:error="error = ((value < min) || ((value > max) && max !== null))"
:step="step"
:min="min"
:max="max"
@@ -25,10 +25,24 @@
outlined
dense
>
<template v-slot:append-outer>
<template v-if="hasSpinner" v-slot:append-outer>
<div class="_spin_button_group">
<v-btn @click="increment" class="mt-n3" icon plain small><v-icon>mdi-chevron-up</v-icon></v-btn>
<v-btn @click="decrement" class="mb-n3" icon plain small><v-icon>mdi-chevron-down</v-icon></v-btn>
<v-btn
@click="increment"
:disabled="((value >= max) && max !== null) || error"
class="mt-n3"
icon plain small
>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
<v-btn
@click="decrement"
:disabled="(value <= min) || error"
class="mb-n3"
icon plain small
>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</div>
</template>
</v-text-field>
@@ -44,9 +58,12 @@ import BaseMixin from '@/components/mixins/base'
@Component
export default class FirmwareRetractionSettingsInput extends Mixins(BaseMixin) {
private value: number = 0
private error: boolean | undefined
@Prop({ type: String, required: true }) readonly label!: string
@Prop({ type: Number, required: false , default: 1 }) readonly step!: number
@Prop({ type: Boolean, required: false , default: false }) readonly hasSpinner!: number
@Prop({ type: Number, required: false , default: 1 }) readonly spinnerFactor!: number
@Prop({ type: Number, required: true , default: 0 }) readonly min!: number
@Prop({ type: Number, default: null }) readonly max!: number | null
@Prop({ type: Number, required: true , default: 0 }) readonly dec!: number
@@ -71,12 +88,12 @@ export default class FirmwareRetractionSettingsInput extends Mixins(BaseMixin) {
}
decrement(): void {
this.value = (this.value > this.min) ? Math.round((this.value - this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.min
this.value = (this.value > this.min) ? Math.round((this.value - this.step * this.spinnerFactor) * (10 ** this.dec)) / (10 ** this.dec) : this.min
this.sendCmd()
}
increment(): void {
this.value = (this.value < this.max! || this.max === null) ? Math.round((this.value + this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.max
this.value = (this.value < this.max! || this.max === null) ? Math.round((this.value + this.step * this.spinnerFactor) * (10 ** this.dec)) / (10 ** this.dec) : this.max
this.sendCmd()
}
+1
View File
@@ -47,6 +47,7 @@
dense
clearable
clear-icon="mdi-refresh"
@keyup.enter="sendWithParams"
></v-text-field>
</v-col>
</v-row>
+24 -7
View File
@@ -13,8 +13,8 @@
@click:append="resetLimit"
:label="label"
:suffix="unit"
:append-icon="this.value !== this.defaultValue ? 'mdi-restart' : ''"
:error="(this.value < this.min) || ((this.value > this.max) && this.max !== null)"
:append-icon="value !== defaultValue ? 'mdi-restart' : ''"
:error="error = ((value < min) || ((value > max) && max !== null))"
:step="step"
:min="min"
:max="max"
@@ -25,10 +25,24 @@
outlined
dense
>
<template v-slot:append-outer>
<template v-if="hasSpinner" v-slot:append-outer>
<div class="_spin_button_group">
<v-btn @click="increment" class="mt-n3" icon plain small><v-icon>mdi-chevron-up</v-icon></v-btn>
<v-btn @click="decrement" class="mb-n3" icon plain small><v-icon>mdi-chevron-down</v-icon></v-btn>
<v-btn
@click="increment"
:disabled="((value >= max) && max !== null) || error"
class="mt-n3"
icon plain small
>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
<v-btn
@click="decrement"
:disabled="(value <= min) || error"
class="mb-n3"
icon plain small
>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</div>
</template>
</v-text-field>
@@ -44,9 +58,12 @@ import BaseMixin from '@/components/mixins/base'
@Component
export default class MotionSettingsInput extends Mixins(BaseMixin) {
private value: number = 0
private error: boolean | undefined
@Prop({ type: String, required: true }) readonly label!: string
@Prop({ type: Number, required: false , default: 1 }) readonly step!: number
@Prop({ type: Boolean, required: false , default: false }) readonly hasSpinner!: number
@Prop({ type: Number, required: false , default: 1 }) readonly spinnerFactor!: number
@Prop({ type: Number, required: true , default: 0 }) readonly min!: number
@Prop({ type: Number, default: null }) readonly max!: number | null
@Prop({ type: Number, required: true , default: 0 }) readonly dec!: number
@@ -71,12 +88,12 @@ export default class MotionSettingsInput extends Mixins(BaseMixin) {
}
decrement(): void {
this.value = (this.value > this.min) ? Math.round((this.value - this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.min
this.value = (this.value > this.min) ? Math.round((this.value - this.step * this.spinnerFactor) * (10 ** this.dec)) / (10 ** this.dec) : this.min
this.sendCmd()
}
increment(): void {
this.value = (this.value < this.max! || this.max === null) ? Math.round((this.value + this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.max
this.value = (this.value < this.max! || this.max === null) ? Math.round((this.value + this.step * this.spinnerFactor) * (10 ** this.dec)) / (10 ** this.dec) : this.max
this.sendCmd()
}
@@ -13,8 +13,8 @@
@click:append="resetLimit"
:label="label"
:suffix="unit"
:append-icon="this.value !== this.defaultValue ? 'mdi-restart' : ''"
:error="(this.value < this.min) || ((this.value > this.max) && this.max !== null)"
:append-icon="value !== defaultValue ? 'mdi-restart' : ''"
:error="error = ((value < min) || ((value > max) && max !== null))"
:step="step"
:min="min"
:max="max"
@@ -25,10 +25,24 @@
outlined
dense
>
<template v-slot:append-outer>
<template v-if="hasSpinner" v-slot:append-outer>
<div class="_spin_button_group">
<v-btn @click="increment" class="mt-n3" icon plain small><v-icon>mdi-chevron-up</v-icon></v-btn>
<v-btn @click="decrement" class="mb-n3" icon plain small><v-icon>mdi-chevron-down</v-icon></v-btn>
<v-btn
@click="increment"
:disabled="((value >= max) && max !== null) || error"
class="mt-n3"
icon plain small
>
<v-icon>mdi-chevron-up</v-icon>
</v-btn>
<v-btn
@click="decrement"
:disabled="(value <= min) || error"
class="mb-n3"
icon plain small
>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</div>
</template>
</v-text-field>
@@ -44,9 +58,12 @@ import BaseMixin from '@/components/mixins/base'
@Component
export default class PressureAdvanceSettingsInput extends Mixins(BaseMixin) {
private value: number = 0
private error: boolean | undefined
@Prop({ type: String, required: true }) readonly label!: string
@Prop({ type: Number, required: false , default: 1 }) readonly step!: number
@Prop({ type: Boolean, required: false , default: false }) readonly hasSpinner!: number
@Prop({ type: Number, required: false , default: 1 }) readonly spinnerFactor!: number
@Prop({ type: Number, required: true , default: 0 }) readonly min!: number
@Prop({ type: Number, default: null }) readonly max!: number | null
@Prop({ type: Number, required: true , default: 0 }) readonly dec!: number
@@ -72,12 +89,12 @@ export default class PressureAdvanceSettingsInput extends Mixins(BaseMixin) {
}
decrement(): void {
this.value = (this.value > this.min) ? Math.round((this.value - this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.min
this.value = (this.value > this.min) ? Math.round((this.value - this.step * this.spinnerFactor) * (10 ** this.dec)) / (10 ** this.dec) : this.min
this.sendCmd()
}
increment(): void {
this.value = (this.value < this.max! || this.max === null) ? Math.round((this.value + this.step) * (10 ** this.dec)) / (10 ** this.dec) : this.max
this.value = (this.value < this.max! || this.max === null) ? Math.round((this.value + this.step * this.spinnerFactor) * (10 ** this.dec)) / (10 ** this.dec) : this.max
this.sendCmd()
}
@@ -121,7 +121,7 @@ export default class ControlPanelExtruder extends Mixins(BaseMixin) {
}
get minExtrudeTemp() {
return this.$store.state.printer.configfile.config.extruder.min_extrude_temp
return this.$store.state.printer.configfile.settings.extruder.min_extrude_temp
}
doSend(gcode: string) {
+15 -11
View File
@@ -133,7 +133,7 @@
:search="search"
:custom-filter="advancedSearch"
mobile-breakpoint="0"
@pagination="refreshMetadata"
@current-items="refreshMetadata"
>
<template slot="items">
@@ -904,14 +904,13 @@ export default class GcodefilesPanel extends Mixins(BaseMixin) {
value.toString().toLowerCase().indexOf(search.toLowerCase()) !== -1
}
refreshMetadata(data: any) {
const items = sortFiles(this.files, [this.sortBy], [this.sortDesc])
for (let i = data.pageStart; i < data.pageStop; i++) {
if (items[i] && !items[i].isDirectory && !items[i].metadataPulled) {
let filename = (this.currentPath+'/'+items[i].filename).substring(7)
this.$socket.emit('server.files.metadata', { filename: filename }, { action: 'files/getMetadata' })
}
}
refreshMetadata(data: FileStateFile[]) {
const items = data.filter((file) => !file.isDirectory && !file.metadataRequested && !file.metadataPulled)
items.forEach((file: FileStateFile) => {
this.$store.dispatch('files/requestMetadata', {
filename: (this.currentPath+'/'+file.filename)
})
})
}
created() {
@@ -925,7 +924,9 @@ export default class GcodefilesPanel extends Mixins(BaseMixin) {
thumb.height >= thumbnailSmallMin && thumb.height <= thumbnailSmallMax
)
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+'/server/files/'+this.currentPath+'/'+encodeURI(thumbnail.relative_path)+'?timestamp='+item.modified.getTime()
if (thumbnail && 'relative_path' in thumbnail) {
return `${this.apiUrl}/server/files/${encodeURI(this.currentPath)}/${encodeURI(thumbnail.relative_path)}?timestamp=${item.modified.getTime()}`
}
}
return ''
@@ -935,7 +936,9 @@ export default class GcodefilesPanel extends Mixins(BaseMixin) {
if (item.thumbnails?.length) {
const thumbnail = item.thumbnails.find(thumb => thumb.width >= thumbnailBigMin)
if (thumbnail && 'relative_path' in thumbnail) return this.apiUrl+'/server/files/'+this.currentPath+'/'+encodeURI(thumbnail.relative_path)+'?timestamp='+item.modified.getTime()
if (thumbnail && 'relative_path' in thumbnail) {
return `${this.apiUrl}/server/files/${encodeURI(this.currentPath)}/${encodeURI(thumbnail.relative_path)}?timestamp=${item.modified.getTime()}`
}
}
return ''
@@ -1033,6 +1036,7 @@ export default class GcodefilesPanel extends Mixins(BaseMixin) {
root: 'gcodes',
path: path !== '' ? '/'+path : '',
filename: item.filename,
size: item.size,
permissions: item.permissions
})
}
+4 -3
View File
@@ -595,8 +595,9 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
relative_url = item.filename.substr(0, item.filename.lastIndexOf('/')+1)
}
if (thumbnail && 'relative_path' in thumbnail)
return this.apiUrl+'/server/files/gcodes/'+relative_url+thumbnail.relative_path+'?timestamp='+item.metadata.modified
if (thumbnail && 'relative_path' in thumbnail) {
return `${this.apiUrl}/server/files/gcodes/${encodeURI(relative_url+thumbnail.relative_path)}?timestamp=${item.metadata.modified}`
}
}
return false
@@ -616,7 +617,7 @@ export default class HistoryListPanel extends Mixins(BaseMixin) {
}
if (thumbnail && 'relative_path' in thumbnail)
return this.apiUrl+'/server/files/gcodes/'+relative_url+thumbnail.relative_path+'?timestamp='+item.metadata.modified
return `${this.apiUrl}/server/files/gcodes/${encodeURI(relative_url+thumbnail.relative_path)}?timestamp=${item.metadata.modified}`
}
return false
@@ -626,6 +626,7 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
root: this.root,
path: this.currentPath,
filename: item.filename,
size: item.size,
permissions: item.permissions
})
}
@@ -656,7 +657,7 @@ export default class ConfigFilesPanel extends Mixins(BaseMixin) {
downloadFile() {
const filename = (this.absolutePath+'/'+this.contextMenu.item.filename)
const href = this.apiUrl + '/server/files' + filename
const href = `${this.apiUrl}/server/files${encodeURI(filename)}`
window.open(href)
}
@@ -60,7 +60,14 @@ export default class EndstopPanel extends Mixins(BaseMixin) {
public sortEndstops: any = {}
get endstops() {
return this.$store.state.printer.endstops ?? {}
const endstops = this.$store.state.printer.endstops ?? {}
return Object.keys(endstops).sort().reduce(
(obj: any, key: string) => {
obj[key] = endstops[key]
return obj
}, {}
)
}
get existProbe () {
@@ -173,6 +173,7 @@
import {Component, Mixins} from 'vue-property-decorator'
import BaseMixin from '../../mixins/base'
import Panel from '@/components/ui/Panel.vue'
import {caseInsensitiveSort} from '@/plugins/helpers'
@Component({
components: {Panel}
})
@@ -192,7 +193,9 @@ export default class SystemPanel extends Mixins(BaseMixin) {
}
get mcus() {
return this.$store.getters['printer/getMcus'] ?? []
const mcus = this.$store.getters['printer/getMcus'] ?? []
return caseInsensitiveSort(mcus, 'name')
}
get hostStats() {
@@ -3,9 +3,11 @@
<v-row>
<v-col class="col-12 col-md-6">
<firmware-retraction-settings-input
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.RetractLength')"
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.RetractLength').toString()"
:target="current_retract_length"
:default-value="config_retract_length"
:hasSpinner="true"
:spinnerFactor="10"
:step="0.01"
:min="0"
:max="null"
@@ -16,9 +18,11 @@
</v-col>
<v-col class="col-12 col-md-6">
<firmware-retraction-settings-input
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.RetractSpeed')"
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.RetractSpeed').toString()"
:target="current_retract_speed"
:default-value="config_retract_speed"
:hasSpinner="true"
:spinnerFactor="5"
:step="1"
:min="1"
:max="null"
@@ -31,9 +35,11 @@
<v-row>
<v-col class="col-12 col-md-6">
<firmware-retraction-settings-input
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.UnretractExtraLength')"
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.UnretractExtraLength').toString()"
:target="current_unretract_extra_length"
:default-value="config_unretract_extra_length"
:hasSpinner="true"
:spinnerFactor="10"
:step="0.01"
:min="0"
:max="null"
@@ -44,9 +50,11 @@
</v-col>
<v-col class="col-12 col-md-6">
<firmware-retraction-settings-input
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.UnretractSpeed')"
:label="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.UnretractSpeed').toString()"
:target="current_unretract_speed"
:default-value="config_unretract_speed"
:hasSpinner="true"
:spinnerFactor="5"
:step="1"
:min="1"
:max="null"
@@ -71,35 +79,35 @@ import FirmwareRetractionSettingsInput from '@/components/inputs/FirmwareRetract
export default class FirmwareRetractionSettings extends Mixins(BaseMixin) {
get current_retract_length(): number {
return this.$store.state.printer?.firmware_retraction?.retract_length ?? 0
return Math.floor((this.$store.state.printer?.firmware_retraction?.retract_length ?? 0) * 100) / 100
}
get current_retract_speed(): number {
return this.$store.state.printer?.firmware_retraction?.retract_speed ?? 20
return Math.trunc(this.$store.state.printer?.firmware_retraction?.retract_speed ?? 20)
}
get current_unretract_extra_length(): number {
return this.$store.state.printer?.firmware_retraction?.unretract_extra_length ?? 0
return Math.floor((this.$store.state.printer?.firmware_retraction?.unretract_extra_length ?? 0) * 100) / 100
}
get current_unretract_speed(): number {
return this.$store.state.printer?.firmware_retraction?.unretract_speed ?? 10
return Math.trunc(this.$store.state.printer?.firmware_retraction?.unretract_speed ?? 10)
}
get config_retract_length(): number {
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.retract_length ?? 0
return Math.floor((this.$store.state.printer?.configfile?.settings?.firmware_retraction?.retract_length ?? 0) * 100) / 100
}
get config_retract_speed(): number {
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.retract_speed ?? 20
return Math.trunc(this.$store.state.printer?.configfile?.settings?.firmware_retraction?.retract_speed ?? 20)
}
get config_unretract_extra_length(): number {
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.unretract_extra_length ?? 0
return Math.floor((this.$store.state.printer?.configfile?.settings?.firmware_retraction?.unretract_extra_length ?? 0) * 100) / 100
}
get config_unretract_speed(): number {
return this.$store.state.printer?.configfile?.settings?.firmware_retraction?.unretract_speed ?? 10
return Math.trunc(this.$store.state.printer?.configfile?.settings?.firmware_retraction?.unretract_speed ?? 0)
}
}
</script>
@@ -2,26 +2,26 @@
<panel
v-if="klipperReadyForGui"
icon="mdi-engine"
:title="$t('Panels.MachineSettingsPanel.Headline')"
:title="$t('Panels.MachineSettingsPanel.Headline').toString()"
:collapsible="true"
card-class="machine-settings-panel"
>
<div>
<sub-panel
:title="$t('Panels.MachineSettingsPanel.MotionSettings.Motion')"
:title="$t('Panels.MachineSettingsPanel.MotionSettings.Motion').toString()"
sub-panel-class="motion-settings-subpanel"
>
<motion-settings></motion-settings>
</sub-panel>
<sub-panel
:title="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.PressureAdvance')"
:title="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.PressureAdvance').toString()"
sub-panel-class="pressure-advance-settings-subpanel"
>
<pressure-advance-settings></pressure-advance-settings>
</sub-panel>
<sub-panel
v-if="existsFirmwareRetraction"
:title="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.FirmwareRetraction')"
:title="$t('Panels.MachineSettingsPanel.FirmwareRetractionSettings.FirmwareRetraction').toString()"
sub-panel-class="firmware-retraction-settings-subpanel"
>
<firmware-retraction-settings></firmware-retraction-settings>
@@ -3,9 +3,11 @@
<v-row>
<v-col class="col-12 col-md-6">
<motion-settings-input
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Velocity')"
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Velocity').toString()"
:target="current_velocity"
:default-value="max_velocity"
:hasSpinner="true"
:spinnerFactor="5"
:step="1"
:min="1"
:max="null"
@@ -16,13 +18,14 @@
</v-col>
<v-col class="col-12 col-md-6">
<motion-settings-input
:label="$t('Panels.MachineSettingsPanel.MotionSettings.SquareCornerVelocity')"
:label="$t('Panels.MachineSettingsPanel.MotionSettings.SquareCornerVelocity').toString()"
:target="current_square_corner_velocity"
:default-value="max_square_corner_velocity"
:step="1"
:min="1"
:hasSpinner="true"
:step="0.1"
:min="0.1"
:max="null"
:dec="0"
:dec="1"
unit="mm/s"
attribute-name="SQUARE_CORNER_VELOCITY"
></motion-settings-input>
@@ -31,9 +34,11 @@
<v-row>
<v-col class="col-12 col-md-6">
<motion-settings-input
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Acceleration')"
:label="$t('Panels.MachineSettingsPanel.MotionSettings.Acceleration').toString()"
:target="current_accel"
:default-value="max_accel"
:hasSpinner="true"
:spinnerFactor="100"
:step="1"
:min="1"
:max="null"
@@ -44,9 +49,11 @@
</v-col>
<v-col class="col-12 col-md-6">
<motion-settings-input
:label="$t('Panels.MachineSettingsPanel.MotionSettings.MaxAccelToDecel')"
:label="$t('Panels.MachineSettingsPanel.MotionSettings.MaxAccelToDecel').toString()"
:target="current_accel_to_decel"
:default-value="max_accel_to_decel"
:hasSpinner="true"
:spinnerFactor="100"
:step="1"
:min="1"
:max="null"
@@ -71,35 +78,35 @@ import MotionSettingsInput from '@/components/inputs/MotionSettingsInput.vue'
export default class MotionSettings extends Mixins(BaseMixin) {
get current_velocity(): number {
return this.$store.state.printer?.toolhead?.max_velocity ?? 300
return Math.trunc(this.$store.state.printer?.toolhead?.max_velocity ?? 300)
}
get current_accel(): number {
return this.$store.state.printer?.toolhead?.max_accel ?? 3000
return Math.trunc(this.$store.state.printer?.toolhead?.max_accel ?? 3000)
}
get current_accel_to_decel(): number {
return this.$store.state.printer?.toolhead?.max_accel_to_decel ?? 1500
return Math.trunc(this.$store.state.printer?.toolhead?.max_accel_to_decel ?? 1500)
}
get current_square_corner_velocity(): number {
return this.$store.state.printer?.toolhead?.square_corner_velocity ?? 8
return Math.floor((this.$store.state.printer?.toolhead?.square_corner_velocity ?? 8) * 10) / 10
}
get max_velocity(): number {
return this.$store.state.printer?.configfile?.settings?.printer?.max_velocity ?? 300
return Math.trunc(this.$store.state.printer?.configfile?.settings?.printer?.max_velocity ?? 300)
}
get max_accel(): number {
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel ?? 3000
return Math.trunc(this.$store.state.printer?.configfile?.settings?.printer?.max_accel ?? 3000)
}
get max_accel_to_decel(): number {
return this.$store.state.printer?.configfile?.settings?.printer?.max_accel_to_decel ?? 1500
return Math.trunc(this.$store.state.printer?.configfile?.settings?.printer?.max_accel_to_decel ?? 1500)
}
get max_square_corner_velocity(): number {
return this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8
return Math.floor((this.$store.state.printer?.configfile?.settings?.printer?.square_corner_velocity ?? 8) * 10) / 10
}
}
</script>
@@ -13,7 +13,7 @@
</v-btn>
<v-select
v-model="selectedExtruder"
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.Extruder')"
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.Extruder').toString()"
:items="all_extruders"
:value="active_extruder"
hide-details
@@ -24,10 +24,11 @@
</v-col>
<v-col :class="(this.all_extruders.length > 1) ? 'col-12 col-md-6 col-xl-4' : 'col-12 col-md-6'">
<pressure-advance-settings-input
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.Advance')"
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.Advance').toString()"
:target="current_pressure_advance"
:default-value="default_pressure_advance"
:extruder="selectedExtruder"
:hasSpinner="true"
:min="0"
:max="1"
:step="0.001"
@@ -38,14 +39,16 @@
</v-col>
<v-col :class="(this.all_extruders.length > 1) ? 'col-12 col-md-6 col-xl-4' : 'col-12 col-md-6'">
<pressure-advance-settings-input
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.SmoothTime')"
:label="$t('Panels.MachineSettingsPanel.PressureAdvanceSettings.SmoothTime').toString()"
:target="current_smooth_time"
:default-value="default_smooth_time"
:extruder="selectedExtruder"
:hasSpinner="true"
:min="0"
:max="0.2"
:step="0.01"
:dec="2"
:step="0.001"
:spinnerFactor="10"
:dec="3"
unit="s"
attribute-name="SMOOTH_TIME"
></pressure-advance-settings-input>
@@ -86,19 +89,19 @@ export default class PressureAdvanceSettings extends Mixins(BaseMixin) {
}
get current_pressure_advance(): number {
return this.$store.state.printer?.[this.selectedExtruder]?.pressure_advance ?? 0
return Math.floor((this.$store.state.printer?.[this.selectedExtruder]?.pressure_advance ?? 0) * 1000) / 1000
}
get current_smooth_time(): number {
return this.$store.state.printer?.[this.selectedExtruder]?.smooth_time ?? 0.04
return Math.floor((this.$store.state.printer?.[this.selectedExtruder]?.smooth_time ?? 0.04) * 1000) / 1000
}
get default_pressure_advance(): number {
return this.$store.state.printer.configfile?.settings?.[this.selectedExtruder]?.pressure_advance ?? 0
return Math.floor((this.$store.state.printer.configfile?.settings?.[this.selectedExtruder]?.pressure_advance ?? 0) * 1000) / 1000
}
get default_smooth_time(): number {
return this.$store.state.printer.configfile?.settings?.[this.selectedExtruder]?.pressure_advance_smooth_time ?? 0.04
return Math.floor((this.$store.state.printer.configfile?.settings?.[this.selectedExtruder]?.pressure_advance_smooth_time ?? 0.04) * 1000) / 1000
}
}
+6 -4
View File
@@ -513,8 +513,9 @@ export default class StatusPanel extends Mixins(BaseMixin) {
relative_url = this.current_file.filename.substr(0, this.current_file.filename.lastIndexOf('/')+1)
}
if (thumbnail && 'relative_path' in thumbnail)
return this.apiUrl+'/server/files/gcodes/'+relative_url+thumbnail.relative_path+'?timestamp='+this.current_file.modified
if (thumbnail && 'relative_path' in thumbnail) {
return `${this.apiUrl}/server/files/gcodes/${encodeURI(relative_url+thumbnail.relative_path)}?timestamp=${this.current_file.modified}`
}
}
}
@@ -534,8 +535,9 @@ export default class StatusPanel extends Mixins(BaseMixin) {
relative_url = this.current_file.filename.substr(0, this.current_file.filename.lastIndexOf('/')+1)
}
if (thumbnail && 'relative_path' in thumbnail)
return this.apiUrl+'/server/files/gcodes/'+relative_url+thumbnail.relative_path+'?timestamp='+this.current_file.modified
if (thumbnail && 'relative_path' in thumbnail) {
return `${this.apiUrl}/server/files/gcodes/${encodeURI(relative_url+thumbnail.relative_path)}?timestamp=${this.current_file.modified}`
}
}
}
@@ -443,7 +443,7 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
const filename = item.filename.slice(0, item.filename.lastIndexOf('.'))
const preview = this.files?.find((file) => file.filename === filename+'.jpg')
if (preview) {
return this.apiUrl+'/server/files/'+this.currentPath+'/'+preview.filename+'?timestamp='+preview.modified.getTime()
return `${this.apiUrl}/server/files/${encodeURI(this.currentPath)}/${encodeURI(preview.filename)}?timestamp=${preview.modified.getTime()}`
}
return ''
@@ -457,7 +457,7 @@ export default class TimelapseFilesPanel extends Mixins(BaseMixin) {
else if (item.filename.endsWith('zip')) {
this.downloadFile(item.filename)
} else if (item.filename.endsWith('mp4')) {
this.videoDialogFilename = this.currentPath + '/' + item.filename
this.videoDialogFilename = encodeURI(`${this.currentPath}/${item.filename}`)
this.boolVideoDialog = true
}
}
+24 -8
View File
@@ -10,6 +10,13 @@
"UploadOfFileSuccessful": "Upload af {file} udført",
"CannotUploadTheFile": "Kan ikke uploade filen!"
},
"Titles": {
"Error": "Fejl",
"Pause": "Pause",
"PrintingETA": "Print ETA",
"Printing": "Printer",
"Complete": "Færdig"
},
"TopCornerMenu": {
"KlipperControl": "Klipper styring",
"KlipperRestart": "Genstart",
@@ -192,7 +199,10 @@
"SuccessfullyMoved": "{filename} flyttet.",
"SuccessfullyCreated": "{filename} oprettet.",
"SuccessfullyDeleted": "{filename} slettet.",
"View3D": "Vis i 3D"
"View3D": "Vis i 3D",
"NozzleDiameter": "Nozzle diameter",
"FilamentName": "Filament navn",
"FilamentType": "Filament type"
},
"JobQueue": {
"JobQueue": "Jobkø",
@@ -221,7 +231,7 @@
"Calibrate": "Kalibrer",
"TitleCalibrate": "Kalibrer nyt Bed Mesh",
"NoBedMeshHasBeenLoadedYet": "Intet Bed Mesh indlæst.",
"Probed": "Reel",
"Probed": "Målt",
"Mesh": "Mesh",
"Flat": "Fladt",
"Wireframe": "Wireframe",
@@ -299,7 +309,7 @@
"CreateNewDirectory": "Ny mappe",
"RefreshCurrentDirectory": "Opdater mappe",
"Empty": "Ingen færdige Timelapse filer fundet.",
"CurrentPath": "Du er her:",
"CurrentPath": "Du er her",
"FreeDisk": "Ledig plads",
"Used": "Brugt",
"Free": "Ledig",
@@ -512,7 +522,9 @@
"Target": "Indstillet temperatur",
"Power": "PWM-power",
"Speed": "PWM-hastighed"
}
},
"TempTooLow": "Temperaturen er for lav for {name}! (min: {min})",
"TempTooHigh": "Temperaturen er for høj for {name}! (max: {max})"
},
"WebcamPanel": {
"Headline": "Webcam",
@@ -541,7 +553,7 @@
"SetupCurrentList": "Indstil visning",
"HiddenFiles": "Skjulte filer",
"HideBackupFiles": "Skjul backupfiler",
"CurrentPath": "Du er her:",
"CurrentPath": "Du er her",
"Files": "Filer",
"FreeDisk": "Ledig plads",
"Used": "Brugt",
@@ -577,10 +589,10 @@
"EndstopInfo": "Klik på \"Sync\"-knappen nederst til højre for at opdatere Endstop status."
},
"LogfilesPanel": {
"Logfiles": "Logfiles"
"Logfiles": "Logfiler"
},
"UpdatePanel": {
"UpdateManager": "Opdaterings Manager",
"UpdateManager": "Opdateringsmanager",
"CheckForUpdates": "Tjek for opdateringer",
"System": "System",
"PackagesCanBeUpgraded": "Pakker kan opgraderes",
@@ -800,7 +812,11 @@
"MoveDistancesXYInMm": "Distance XY i mm",
"MoveDistancesZInMm": "Distance Z i mm",
"MoveDistancesEInMm": "Distance E i mm",
"SpeedEInMms": "Hastighed E i mm/s"
"SpeedEInMms": "Hastighed E i mm/s",
"ValueGreaterThan": "Værdi større end",
"MinimumValues": "Minimumsværdier",
"MaximumValues": "Maksimumværdier",
"MaximumValuesVisibility": "Vis maksimumværdier"
},
"ConsoleTab": {
"Console": "Terminal",
+22 -4
View File
@@ -71,6 +71,13 @@
"DescriptionPreviouslyFrequencyCapped": "rPi ARM la fecuencia maxima fue al menos una vez limitada a 1.2 GHz desde el ultimo encendido.",
"DescriptionPreviouslyThrottled": "rPI ARM el nucleo se redujo al menos una vez desde el último encendido",
"DescriptionPreviouslyTemperatureLimited": "rPi uC (3A+/3B+ only) la temperatura estuvo por lo menos una vez del limite (default 60C) desde el ultimo encendido."
},
"Titles": {
"Complete": "Completado - {filename}",
"Error": "Error",
"Pause": "Pausar impresion",
"Printing": "{percent}% imprimiendo - {filename}",
"PrintingETA": "{percent}% imprimiendo - ETA: {eta} - {filename}"
}
},
"ConnectionDialog": {
@@ -178,7 +185,10 @@
"Filament": "Filamento",
"StartPrint": "Iniciar impresion",
"View3D": "Vista 3D",
"WrongFileUploaded": "Subida denegada para {filename}. Formato de archivo erroneo"
"WrongFileUploaded": "Subida denegada para {filename}. Formato de archivo erroneo",
"FilamentName": "Nombre del filamento",
"FilamentType": "Tipo del filamento",
"NozzleDiameter": "Diametro del pico"
},
"Console": {
"SetupConsole": "Confiurar Consola",
@@ -405,7 +415,9 @@
"Target": "temperatura objetivo",
"Power": "Poder PWM",
"Speed": "Velocidad PWN"
}
},
"TempTooHigh": "Temperatura muy alta para {name}! (max: {max})",
"TempTooLow": "Temperatura muy baja para {name}! (min: {min})"
},
"WebcamPanel": {
"Headline": "Camara Web",
@@ -629,7 +641,11 @@
"Bars": "Barras",
"Circle": "Circulo",
"Cross": "Cruz",
"Style": "Estylo"
"Style": "Estylo",
"MaximumValues": "Valores Maximos: {maximum}",
"MaximumValuesVisibility": "Maximo valor de {maximum} se recomiendo para mejor visibilidad",
"MinimumValues": "Valores Minimos: {minimum}",
"ValueGreaterThan": "El valor tiene que se mas gande de {value}"
},
"ConsoleTab": {
"Console": "Consola",
@@ -752,7 +768,9 @@
"StreamDelayCompensation": "Compensación de retraso de stream",
"StreamDelayCompensationDescription": "Retraso de captura de cuadro",
"ParkTimeDescription": "Agregue tiempo de inactividad adicional al apartar.",
"ParkTime": "Park Time"
"ParkTime": "Park Time",
"VariableFpsMinDescription": "",
"VariableFpsMaxDescription": ""
},
"UiSettingsTab": {
"BoolBigThumbnail": "Miniatura grande",
+31 -12
View File
@@ -1,4 +1,5 @@
{
"_last_update:": "09.01.2022",
"title": "Français",
"App": {
"Printers": "Imprimantes",
@@ -72,6 +73,13 @@
"Updating": "Mise à jour {software}...",
"UpdatingDone": "Mise à jour {software} effectuée !",
"RecoveringDone": "Restauration {software} effectuée !"
},
"Titles": {
"Error": "ERREUR",
"Pause": "Pause impression",
"Printing": "{percent}% imprimé - {filename}",
"PrintingETA": "{percent}% imprimé - TEA: {eta} - {filename}",
"Complete": "Terminé - {filename}"
}
},
"Router": {
@@ -155,7 +163,10 @@
"StartPrint": "Imprimer",
"Filament": "Filament",
"AddToQueue": "Ajouter à la queue",
"WrongFileUploaded": "Téléchargem,ent refusé pour {filename}. Mauvais format de fichier !"
"WrongFileUploaded": "Téléchargem,ent refusé pour {filename}. Mauvais format de fichier !",
"FilamentName": "Nom du filament",
"FilamentType": "Type de filament",
"NozzleDiameter": "Diamètre de la buze"
},
"Console": {
"SetupConsole": "Configuration console",
@@ -376,7 +387,9 @@
"Speed": "Vitesse-PWM",
"Target": "température cible",
"Temperature": "température actuelle"
}
},
"TempTooHigh": "La température de {name} est trop haute, (max: {max})",
"TempTooLow": "La température de {name} est trop basse, (min: {min})"
},
"WebcamPanel": {
"Headline": "Caméra",
@@ -474,7 +487,11 @@
"Bars": "Barres",
"Circle": "Cercle",
"Cross": "Croix",
"Style": "Style"
"Style": "Style",
"MaximumValues": "Valeurs maximum: {maximum}",
"MinimumValues": "Valeurs minimum: {minimum}",
"MaximumValuesVisibility": "Le maximum de {maximum} valeurs est recommandé pour la meilleure visibilité",
"ValueGreaterThan": "La valeur doit être supérieure à {value}"
},
"Edit": "Edition",
"GeneralTab": {
@@ -660,7 +677,7 @@
"GcodeVerboseDescription": "Si activé, les macros G-Code envoient des informations détaillées à la console.",
"General": "Général",
"Mode": "Mode",
"ModeDescription": "Choix entre les modes macro de couche (layermacro) et Hyperlapse (basé sur le temps).",
"ModeDescription": "Choix entre les modes Layermacro (macro de couche) et Hyperlapse (basé sur le temps).",
"HyperlapseCycle": "Temps de cycle Hyperlapse",
"HyperlapseCycleDescription": "Une image sera capturée chaque X secondes.",
"OutputFramerate": "Images par seconde",
@@ -690,7 +707,7 @@
"TimeFormatCodeDescription": "Définit comment le code horaire du fichier de sortie doit être encodé.",
"Timelapse": "Accéléré",
"TravelSpeed": "Vitesse de déplacement",
"TravelSpeedDescription": "Vitesse de déplacement pour se rendre à la position de parking et pour reprendre l'impresion.",
"TravelSpeedDescription": "Vitesse de déplacement pour se rendre à la position de parking et pour reprendre l'impression.",
"VariableFps": "IPS variable",
"VariableFpsDescription": "Si activé, le nombre d'images par seconde (IPS) sera calculé tenant compte de la taille du fichier de sortie.",
"VariableFpsMax": "IPS variable max",
@@ -703,10 +720,12 @@
"UnretractSpeedDescription": "Vitesse d'extrusion du filament après parking et avant reprise d'impression.",
"ParkTime": "Temps de parking",
"ParkTimeDescription": "Ajoute un temps aditionnel en position de parking",
"StreamDelayCompensation": "Dlai de compensation du flux",
"StreamDelayCompensation": "Délai de compensation du flux",
"StreamDelayCompensationDescription": "Délai avant capture d'une image du flux.",
"FwRetract": "Rétractation firmware",
"FwRetractDescription": "Utilisation de la rétractation firmware dans la macro \"accéléré\" (timelapse)"
"FwRetractDescription": "Utilisation de la rétractation firmware dans la macro \"accéléré\" (timelapse)",
"VariableFpsMaxDescription": "En cas d'IPS variable, nombre maximum d'images par seconde (IPS)",
"VariableFpsMinDescription": "En cas d'IPS variable, nombre minimum d'images par seconde (IPS)"
}
},
"ConnectionDialog": {
@@ -854,7 +873,7 @@
},
"Timelapse": {
"AllFiles": "Tous",
"Autorender": "Affichage automatique",
"Autorender": "Calcul automatique",
"Cancel": "Annuler",
"Create": "Créer",
"CreateNewDirectory": "nouveau dossier",
@@ -885,8 +904,8 @@
"Rename": "Renommer",
"RenameDirectory": "Renommer le dossier",
"RenameFile": "Renommer le fichier",
"Render": "afficher",
"RenderSettings": "Paramètres d'affichage",
"Render": "calculer",
"RenderSettings": "Paramètres de calcul de la vidéo",
"SaveFrames": "Sauvegarde des images",
"Search": "recherche",
"StartRender": "affiche",
@@ -894,8 +913,8 @@
"TargetFps": "IPS fichier",
"Targetlength": "Taille fichier",
"TimelapseFiles": "Fichiers vidéo",
"TimelapseRendering": "Affiche vidéos",
"TimelapseRenderingSuccessful": "Affichage réussi",
"TimelapseRendering": "Calcul de la vidéo",
"TimelapseRenderingSuccessful": "Calcul de la vidéo réussi",
"Total": "Total",
"Type": "Type",
"Used": "Utilisé",
+18 -4
View File
@@ -2,6 +2,13 @@
"title": "Magyar",
"App": {
"Printers": "Nyomtatók",
"Titles": {
"Error": "HIBA",
"Pause": "Nyomtatás Állj",
"Printing": "{percent}% Nyomtatás - {filename}",
"PrintingETA": "{percent}% Nyomtatás - IDŐ: {eta} - {filename}",
"Complete": "Elkészült - {filename}"
},
"TopBar": {
"SAVE_CONFIG": "BÁLLÍTÁS MENTÉSE",
"UploadPrint": "Feltöltés és nyomtatás",
@@ -180,9 +187,12 @@
"LastModified": "Legutóbb módosítva",
"ObjectHeight": "Tárgymagasság",
"LayerHeight": "Rétegmagasság",
"NozzleDiameter": "Fúvóka Átmérője",
"Filament": "Filament",
"FilamentUsage": "Filament felhasználás",
"FilamentWeight": "Filament súlya",
"FilamentName": "Filament Neve",
"FilamentType": "Filament Típus",
"FilamentUsage": "Filament Felhasználás",
"FilamentWeight": "Filament Súlya",
"PrintTime": "Nyomtatási idő",
"Slicer": "Slicer",
"Downloading": "Letöltés...",
@@ -397,7 +407,7 @@
"Motion": "Mozgás",
"Velocity": "Gyorsaság",
"Acceleration": "Gyorsulás",
"Deceleration": "Lassulás",
"MaxAccelToDecel": "Lassulás Max Gyorsulása",
"SquareCornerVelocity": "Sebesség a sarkokban"
},
"PressureAdvanceSettings": {
@@ -801,7 +811,11 @@
"MoveDistancesXYInMm": "XY mozgás táv. mm-ben",
"MoveDistancesZInMm": "Z mozdítás mm-ben",
"MoveDistancesEInMm": "E-mozgás táv. mm-ben",
"SpeedEInMms": "E sebessége mm/s-ban"
"SpeedEInMms": "E sebessége mm/s-ban",
"MinimumValues": "Minimum értékek: {minimum}",
"MaximumValues": "Maximum értékek: {maximum}",
"MaximumValuesVisibility": "A legjobb láthatósághoz ajánlott Maximum érték: {maximum}",
"ValueGreaterThan": "Az értéknek nagyobbnak kell lennie mint: {value}"
},
"ConsoleTab": {
"Console": "Konzol",
+17 -1
View File
@@ -21,6 +21,13 @@
"TitleTemperatureLimitActive": "Temperatuurlimiet actief",
"TitleUnderVoltageDetected": "Ondervoltage gedetecteerd"
},
"Titles": {
"Complete": "Kompleet - {filename}",
"Error": "FOUT",
"Pause": "Pauzeer print",
"Printing": "{percent}% Printen - {filename}",
"PrintingETA": "{percent}% Printen - ETA: {eta} - {filename}"
},
"TopBar": {
"CannotUploadTheFile": "Kan het bestand niet uploaden!",
"EmergencyStop": "Noodstop",
@@ -127,6 +134,8 @@
"EditFile": "Bewerk bestand",
"Empty": "Leeg",
"Filament": "Filament",
"FilamentName": "Filamentnaam",
"FilamentType": "Filament Type",
"FilamentUsage": "Filamentgebruik",
"FilamentWeight": "Filament Gewicht",
"Files": "Bestanden",
@@ -139,6 +148,7 @@
"LayerHeight": "Laaghoogte",
"Name": "Naam",
"NewDirectory": "Nieuwe map",
"NozzleDiameter": "Nozzle Diameter",
"ObjectHeight": "Objecthoogte",
"Preheat": "Voorverwarmen",
"PrintStart": "Start print",
@@ -554,6 +564,8 @@
"ShowTargetTemperatureInChart": "Toon doeltemperatuur in de grafiek",
"State": "Status",
"Target": "Doel",
"TempTooHigh": "Temperatuur te hoog voor {name}! (max: {max})",
"TempTooLow": "Temperatuur te laag voor {name}! (min: {min})",
"Temperatures": "Temperaturen",
"TemperaturesInChart": "Temperatuur [°C]",
"UNKNOWN": "ONBEKEND"
@@ -651,6 +663,9 @@
"InvertXMovement": "Inverteer X beweging",
"InvertYMovement": "Inverteer Y beweging",
"InvertZMovement": "Inverteer Z beweging",
"MaximumValues": "Maximale waarden: {maximum}",
"MaximumValuesVisibility": "Maximum van {maximum} waarden is geadviseerd voor beste overzicht",
"MinimumValues": "Minimale waarden: {minimum}",
"MoveDistancesEInMm": "Afstanden E in mm",
"MoveDistancesInMm": "Afstanden in mm",
"MoveDistancesXYInMm": "Afstanden XY in mm",
@@ -658,7 +673,8 @@
"SpeedEInMms": "Snelheid E in mm/s",
"SpeedXY": "Snelheid XY",
"SpeedZ": "Snelheid Z",
"Style": "Stijl"
"Style": "Stijl",
"ValueGreaterThan": "Waarde moet groter zijn dan {value}"
},
"DashboardTab": {
"Dashboard": "Dashboard",
+82 -13
View File
@@ -37,7 +37,32 @@
"PowerDevices": "Силовые устройства",
"Reboot": "Перезагрузка",
"Shutdown": "Выключение",
"ServiceControl": "Контроль обслуживания"
"ServiceControl": "Контроль обслуживания",
"Start": "Начало",
"Stop": "Стоп",
"ConfirmationDialog": {
"Title": {
"HostReboot": "Перезагрузка хоста",
"HostShutdown": "Выключение хоста",
"KlipperFirmwareRestart": "Перезапуск прошивки клиппера",
"KlipperRestart": "Перезапуск клиппера",
"ServiceRestart": "Перезапуск службы",
"ServiceStart": "Начало обслуживания",
"ServiceStop": "Остановка обслуживания"
},
"Description": {
"HostReboot": "Перезагрузка хоста приведет к сбою текущей печати!",
"HostShutdown": "Выключение хоста приведет к сбою текущей печати!",
"KlipperFirmwareRestart": "Перезапуск прошивки клиппера приведет к сбою текущей печати!",
"KlipperRestart": "Перезапуск Klipper приведет к сбою текущей печати!",
"KlipperStop": "Остановка Klipper приведет к сбою текущей печати!",
"ServiceRestart": "Перезапуск этой службы может привести к сбою текущей печати!",
"ServiceStart": "Запуск этой службы может привести к сбою текущей печати!",
"ServiceStop": "Остановка этой службы может привести к сбою текущей печати!"
}
},
"Cancel": "Отмена",
"Restart": "Перезапустить"
},
"UpdateDialog": {
"Recovering": "Восстановление",
@@ -46,6 +71,13 @@
"UpdatingDone": "Обновление выполнено",
"Empty": "пустой",
"Close": "закрыть"
},
"Titles": {
"Complete": "Завершено - {filename}",
"Error": "ОШИБКА",
"Pause": "Приостановить печать",
"Printing": "{percent}% Печать - {filename}",
"PrintingETA": "{percent}% Печать - ETA: {eta} - {filename}"
}
},
"Console": {
@@ -69,7 +101,8 @@
"DontSave": "Не сохранять",
"UnsavedChanges": "Несохраненные изменения",
"UnsavedChangesMessage": "Хотите ли вы сохранить изменения в {filename}?",
"UnsavedChangesSubMessage": "Ваши изменения будут потеряны, если вы их не сохраните. Вы можете отключить это сообщение в настройках редактора."
"UnsavedChangesSubMessage": "Ваши изменения будут потеряны, если вы их не сохраните. Вы можете отключить это сообщение в настройках редактора.",
"FileReadOnly": "только для чтения"
},
"Files": {
"AllFiles": "Все",
@@ -123,7 +156,11 @@
"AddToQueue": "Добавить в очередь заданий",
"Filament": "Филамент",
"StartPrint": "Druck starten",
"View3D": "3D просмотр"
"View3D": "3D просмотр",
"FilamentName": "Название нити",
"FilamentType": "Тип нити накаливания",
"NozzleDiameter": "Диаметр сопла",
"WrongFileUploaded": "В загрузке файла {filename} было отказано. Неправильный формат файла!"
},
"Heightmap": {
"Abort": "Отменить",
@@ -229,7 +266,8 @@
"Y": "Y",
"Z": "Z",
"ZTilt": "Z Tilt",
"Headline": "Управление"
"Headline": "Управление",
"HotendTooCold": "Температура нагревателя ниже, чем"
},
"FarmPrinterPanel": {
"WebcamOff": "Офф",
@@ -351,7 +389,9 @@
},
"Headline": "Температуры",
"ShowNameInChart": "Показать {name} на графике",
"ShowNameInList": "Показать {name} в списке"
"ShowNameInList": "Показать {name} в списке",
"TempTooHigh": "Температура слишком высока для {name}! (max: {max})",
"TempTooLow": "Температура слишком низкая для {name}! (min: {min})"
},
"WebcamPanel": {
"All": "Все",
@@ -417,7 +457,14 @@
"Deceleration": "Замедление",
"Motion": "Движение",
"SquareCornerVelocity": "Угловая скорость",
"Velocity": "Скорость"
"Velocity": "Скорость",
"MaxAccelToDecel": "Макс. ускорение - замедление."
},
"PressureAdvanceSettings": {
"Advance": "Аванс",
"Extruder": "Экструдер",
"PressureAdvance": "Опережение давления",
"SmoothTime": "Плавное время"
}
}
},
@@ -451,7 +498,8 @@
"UpdateButton": "Обновление фильтра",
"EntryStyleCompact": "компактный",
"EntryStyleDefault": "стандарт",
"EntryStyle": "Стиль записей"
"EntryStyle": "Стиль записей",
"HideTimelapse": "Скрыть таймлапс"
},
"ControlTab": {
"Control": "Контроль",
@@ -468,7 +516,11 @@
"Bars": "Бар",
"Circle": "Круг",
"Cross": "Крест",
"Style": "Стиль"
"Style": "Стиль",
"MaximumValues": "Максимальные значения: {maximum}",
"MaximumValuesVisibility": "Для лучшей видимости рекомендуется максимальное из {maximum} значений",
"MinimumValues": "Минимальные значения: {minimum}",
"ValueGreaterThan": "Значение должно быть больше, чем {value}"
},
"Edit": "Редактировать",
"GeneralTab": {
@@ -485,7 +537,15 @@
"DbWebcams": "Веб-камеры",
"FactoryDialog": "Пожалуйста, выберите все разделы, которые вы хотите сбросить:",
"Reset": "сброс",
"DbHistoryJobs": "История печати"
"DbHistoryJobs": "История печати",
"Backup": "Резервная копия",
"BackupDialog": "Пожалуйста, выберите все разделы, для которых вы хотите создать резервную копию:",
"CannotReadJson": "Невозможно прочитать/разобрать файл резервной копии.",
"DbConsoleHistory": "История консоли",
"DbView": "Просмотр настроек",
"MoonrakerDb": "Moonraker DB",
"Restore": "Восстановить",
"RestoreDialog": "Пожалуйста, выберите все разделы, которые вы хотите восстановить:"
},
"InterfaceSettings": "Настройки интерфейса",
"MacrosTab": {
@@ -630,7 +690,13 @@
"UnretractDistance": "Расстояние расцепления",
"UnretractDistanceDescription": "Длина нити, которую экструдер продвигает после обратного рывка.",
"VariableFpsMinDescription": "Минимальное количество IPS в переменном режиме.",
"VariableFpsMaxDescription": "Максимальное количество IPS в переменном режиме."
"VariableFpsMaxDescription": "Максимальное количество IPS в переменном режиме.",
"FwRetract": "Отступление от прошивки",
"FwRetractDescription": "Использование ресайза прошивки в макросъемке таймлапса",
"ParkTime": "Продолжительность парка",
"ParkTimeDescription": "Увеличение продолжительности парка",
"StreamDelayCompensation": "Компенсация задержки потока",
"StreamDelayCompensationDescription": "Задержка захвата изображения"
},
"UiSettingsTab": {
"BoolBigThumbnail": "Большие эскизы",
@@ -753,7 +819,8 @@
"Memory": "Память",
"Os": "OS",
"SystemLoad": "Нагрузки на систему",
"Version": "Версия"
"Version": "Версия",
"Distro": "Распространение"
},
"UpdatePanel": {
"CheckForUpdates": "Проверьте наличие обновлений",
@@ -775,7 +842,8 @@
"CommittedDaysAgo": "Отправлено {days} назад",
"CommittedHoursAgo": "Отправлено {hours} назад",
"CommittedOnDate": "подана {date}",
"CommittedYesterday": "представленный вчера"
"CommittedYesterday": "представленный вчера",
"UpdateAll": "Обновление всех компонентов"
}
},
"SelectPrinterDialog": {
@@ -858,7 +926,8 @@
"Empty": "Пустой",
"JobQueue": "Очередь на работу",
"Jobs": "Заказы",
"Pause": "Pause"
"Pause": "Pause",
"Start": "Начало"
},
"EmergencyStopDialog": {
"AreYouSure": "Вы уверены?",
+15 -4
View File
@@ -1,5 +1,7 @@
<style scoped>
.rename-profile {
text-transform: none;
}
</style>
<template>
@@ -8,7 +10,7 @@
<v-col class="col-12 col-md-8 pb-0">
<panel card-class="heightmap-map-panel" :title="$t('Heightmap.Heightmap')" icon="mdi-grid">
<template v-slot:buttons-title>
<v-btn text tile color="primary" class="ml-1 d-none d-sm-inline-flex" v-if="meshLoaded" @click="openRenameProfile()">{{ bed_mesh.profile_name }}</v-btn>
<v-btn text tile color="primary" class="ml-1 d-none d-sm-inline-flex rename-profile" v-if="meshLoaded" @click="openRenameProfile()">{{ bed_mesh.profile_name }}</v-btn>
</template>
<template v-slot:buttons>
<v-btn text tile color="primary" class="d-sm-none" v-if="meshLoaded" @click="openRenameProfile()">{{ bed_mesh ? bed_mesh.profile_name : "" }}</v-btn>
@@ -225,6 +227,7 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
private removeDialog = false
private calibrateDialog = false
private newName = ''
private oldName = ''
private heightmapScale = 0.5
private probedOpacity = 1
@@ -753,6 +756,7 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
openRenameProfile(): void {
this.newName = this.bed_mesh?.profile_name ?? ''
this.oldName = this.bed_mesh.profile_name
this.renameDialog = true
setTimeout(() => {
@@ -762,8 +766,15 @@ export default class PageHeightmap extends Mixins(BaseMixin, ControlMixin) {
renameProfile(): void {
this.renameDialog = false
this.$store.dispatch('server/addEvent', { message: 'BED_MESH_PROFILE SAVE='+this.newName.toUpperCase(), type: 'command' })
this.$socket.emit('printer.gcode.script', { script: 'BED_MESH_PROFILE SAVE='+this.newName.toUpperCase() }, { loading: 'bedMeshRename' })
this.$store.dispatch('server/addEvent', { message: 'BED_MESH_PROFILE SAVE='+this.newName, type: 'command' })
this.$store.dispatch('server/addEvent', { message: 'BED_MESH_PROFILE REMOVE='+this.oldName, type: 'command' })
this.$socket.emit('printer.gcode.script', { script: 'BED_MESH_PROFILE SAVE='+this.newName }, { loading: 'bedMeshRename' })
this.$socket.emit('printer.gcode.script', { script: 'BED_MESH_PROFILE REMOVE='+this.oldName }, { loading: 'bedMeshRename' })
this.newName = ''
this.oldName = ''
}
openRemoveProfile(name: string): void {
+5 -3
View File
@@ -28,6 +28,8 @@ export const actions: ActionTree<EditorState, RootState> = {
axios.get(url, {
cancelToken: source.token,
onDownloadProgress: (progressEvent) => {
const total = progressEvent.total > 0 ? progressEvent.total : (payload.size ?? 0)
let speedOutput: string = state.loaderProgress.speed
let lastTimestamp = state.loaderProgress.lastTimestamp
let lastLoaded = state.loaderProgress.lastLoaded
@@ -50,9 +52,9 @@ export const actions: ActionTree<EditorState, RootState> = {
direction: 'downloading',
speed: speedOutput,
loaded: progressEvent.loaded,
total: progressEvent.total,
lastLoaded: lastLoaded,
lastTimestamp: lastTimestamp
total,
lastLoaded,
lastTimestamp
})
},
responseType: 'blob'
+1
View File
@@ -19,6 +19,7 @@ export const mutations: MutationTree<EditorState> = {
},
updateLoader(state, payload) {
window.console.log(payload)
Vue.set(state, 'loaderProgress', payload)
},
+9
View File
@@ -112,6 +112,15 @@ export const actions: ActionTree<FileState, RootState> = {
}
},
requestMetadata({ commit }, payload: { filename: string }) {
const rootPath = payload.filename.substr(0, payload.filename.indexOf('/'))
if (rootPath === 'gcodes') {
const requestFilename = payload.filename.substr(7)
commit('setMetadataRequested', { filename: requestFilename })
Vue.$socket.emit('server.files.metadata', { filename: requestFilename }, { action: 'files/getMetadata' })
}
},
getMetadata({ commit, rootState }, payload) {
if (payload !== undefined && payload.filename !== '') {
if (payload.filename === rootState?.printer?.print_stats?.filename) {
+19
View File
@@ -28,6 +28,22 @@ export const mutations: MutationTree<FileState> = {
})
},
setMetadataRequested(state, payload) {
let filename = 'gcodes/'+payload.filename
const dirArray = filename.split('/')
filename = dirArray[dirArray.length-1]
const path = findDirectory(state.filetree, dirArray)
const fileIndex = path?.findIndex((element: FileStateFile) => element.filename === filename)
if (path && fileIndex !== undefined && fileIndex !== -1) {
// eslint-disable-next-line
const currentFile = {...path[fileIndex]} as any
currentFile.metadataRequested = true
Vue.set(path, fileIndex, currentFile)
} else window.console.error('file not found in filetree: '+payload.filename)
},
setMetadata(state, payload) {
let filename = 'gcodes/'+payload.filename
const dirArray = filename.split('/')
@@ -41,6 +57,7 @@ export const mutations: MutationTree<FileState> = {
allowedMetadata.forEach((key: string) => {
if (key in payload) currentFile[key] = payload[key]
})
currentFile.metadataRequested = true
currentFile.metadataPulled = true
Vue.set(path, fileIndex, currentFile)
@@ -65,11 +82,13 @@ export const mutations: MutationTree<FileState> = {
modified: modified,
permissions: payload.item.permissions,
size: payload.item.size,
metadataRequested: false,
metadataPulled: false,
})
} else {
parent[indexFile].modified = new Date(payload.item.modified * 1000)
parent[indexFile].size = payload.item.size
parent[indexFile].metadataRequested = false
parent[indexFile].metadataPulled = false
const extension = filename.substr(filename.lastIndexOf('.') + 1)
+1
View File
@@ -25,6 +25,7 @@ export interface FileStateFile {
slicer_version?: string
thumbnails?: FileStateFileThumbnail[]
metadataPulled?: boolean,
metadataRequested?: boolean,
size?: number
}
+5
View File
@@ -10,7 +10,12 @@ export const mutations: MutationTree<ServerState> = {
Object.assign(state, getDefaultState())
},
setKlippyConnected(state) {
Vue.set(state, 'klippy_connected', true)
},
setKlippyDisconnected(state) {
Vue.set(state, 'klippy_connected', false)
Vue.set(state, 'klippy_state', 'disconnected')
Vue.set(state, 'klippy_message', 'Disconnected...')
},
+1
View File
@@ -52,6 +52,7 @@ export const actions: ActionTree<SocketState, RootState> = {
break
case 'notify_klippy_ready':
commit('server/setKlippyConnected', null, { root: true })
dispatch('printer/reset', null, { root: true })
dispatch('printer/init', null, { root: true })
break