Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
600186e895
8 files changed
+163
-50
No files matched your search
+7
-1
@@ -24,6 +24,7 @@ GEM
|
||||
http_parser.rb (~> 0.6.0)
|
||||
ethon (0.12.0)
|
||||
ffi (>= 1.3.0)
|
||||
eventmachine (1.2.7)
|
||||
eventmachine (1.2.7-x64-mingw32)
|
||||
execjs (2.7.0)
|
||||
faraday (1.3.0)
|
||||
@@ -31,6 +32,7 @@ GEM
|
||||
multipart-post (>= 1.2, < 3)
|
||||
ruby2_keywords
|
||||
faraday-net_http (1.0.1)
|
||||
ffi (1.14.2)
|
||||
ffi (1.14.2-x64-mingw32)
|
||||
forwardable-extended (2.6.0)
|
||||
gemoji (3.0.1)
|
||||
@@ -213,6 +215,8 @@ GEM
|
||||
multipart-post (2.1.1)
|
||||
nokogiri (1.11.1-x64-mingw32)
|
||||
racc (~> 1.4)
|
||||
nokogiri (1.11.1-x86_64-linux)
|
||||
racc (~> 1.4)
|
||||
octokit (4.20.0)
|
||||
faraday (>= 0.9)
|
||||
sawyer (~> 0.8.0, >= 0.5.3)
|
||||
@@ -223,7 +227,7 @@ GEM
|
||||
rb-fsevent (0.10.4)
|
||||
rb-inotify (0.10.1)
|
||||
ffi (~> 1.0)
|
||||
rexml (3.2.4)
|
||||
rexml (3.2.5)
|
||||
rouge (3.26.0)
|
||||
ruby-enum (0.9.0)
|
||||
i18n
|
||||
@@ -251,6 +255,7 @@ GEM
|
||||
tzinfo (>= 1.0.0)
|
||||
unf (0.1.4)
|
||||
unf_ext
|
||||
unf_ext (0.0.7.7)
|
||||
unf_ext (0.0.7.7-x64-mingw32)
|
||||
unicode-display_width (1.7.0)
|
||||
wdm (0.1.1)
|
||||
@@ -258,6 +263,7 @@ GEM
|
||||
|
||||
PLATFORMS
|
||||
x64-mingw32
|
||||
x86_64-linux
|
||||
|
||||
DEPENDENCIES
|
||||
github-pages
|
||||
|
||||
@@ -1,52 +1,52 @@
|
||||
$link-color: $red-300;
|
||||
$btn-primary-color: $red-300;
|
||||
|
||||
.success, .info, .warning, .alert {
|
||||
margin: 16px 0px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background: #f5f6fa;
|
||||
border: 1px solid hsl(0, 0%, 85%);
|
||||
border-left: 4px solid;
|
||||
padding-left: 3.5em;
|
||||
|
||||
}
|
||||
.success {
|
||||
margin: 16px 0px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background-color: #f5f6fa;
|
||||
border-left: 4px solid;
|
||||
border-color: rgb(38, 203, 124);
|
||||
border-left-color: rgb(38, 203, 124);
|
||||
}
|
||||
|
||||
.info {
|
||||
margin: 16px 0px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background-color: #f5f6fa;
|
||||
border-left: 4px solid;
|
||||
border-color: rgb(56, 132, 255);
|
||||
border-left-color: rgb(56, 132, 255);
|
||||
}
|
||||
|
||||
.warning {
|
||||
margin: 16px 0px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background-color: #f5f6fa;
|
||||
border-left: 4px solid;
|
||||
border-color: rgb(247, 125, 5);
|
||||
border-left-color: rgb(247, 125, 5);
|
||||
}
|
||||
.alert {
|
||||
border-left-color: rgb(255, 70, 66);
|
||||
}
|
||||
|
||||
.alert {
|
||||
margin: 16px 0px;
|
||||
padding: 20px;
|
||||
position: relative;
|
||||
border-radius: 3px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
background-color: #f5f6fa;
|
||||
border-left: 4px solid;
|
||||
border-color: rgb(255, 70, 66);
|
||||
.success::before, .info::before, .warning::before, .alert::before {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
left: 1.0em;
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
vertical-align: middle;
|
||||
margin: 0px 10px 0px 0px;
|
||||
}
|
||||
.success::before {
|
||||
content: url("/assets/img/success.svg");
|
||||
}
|
||||
.info::before {
|
||||
content: url("/assets/img/info.svg");
|
||||
}
|
||||
.warning::before {
|
||||
content: url("/assets/img/warning.svg");
|
||||
}
|
||||
.alert::before {
|
||||
content: url("/assets/img/alert.svg");
|
||||
}
|
||||
|
||||
.key {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<svg preserveAspectRatio="xMidYMid meet" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" style="color: rgb(255, 70, 66);" class="icon-7f6730be--text-3f89f380"><g><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12" y2="17"/></g></svg>
|
||||
|
After Width: | Height: | Size: 454 B |
@@ -0,0 +1 @@
|
||||
<svg preserveAspectRatio="xMidYMid meet" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" stroke="none" style="color: rgb(56, 132, 255);" class="icon-7f6730be--text-3f89f380"><g><path d="M12.2 8.98c.06-.01.12-.03.18-.06.06-.02.12-.05.18-.09l.15-.12c.18-.19.29-.45.29-.71 0-.06-.01-.13-.02-.19a.603.603 0 0 0-.06-.19.757.757 0 0 0-.09-.18c-.03-.05-.08-.1-.12-.15-.28-.27-.72-.37-1.09-.21-.13.05-.23.12-.33.21-.04.05-.09.1-.12.15-.04.06-.07.12-.09.18-.03.06-.05.12-.06.19-.01.06-.02.13-.02.19 0 .26.11.52.29.71.1.09.2.16.33.21.12.05.25.08.38.08.06 0 .13-.01.2-.02M13 16v-4a1 1 0 1 0-2 0v4a1 1 0 1 0 2 0M12 3c-4.962 0-9 4.038-9 9 0 4.963 4.038 9 9 9 4.963 0 9-4.037 9-9 0-4.962-4.037-9-9-9m0 20C5.935 23 1 18.065 1 12S5.935 1 12 1c6.066 0 11 4.935 11 11s-4.934 11-11 11" fill-rule="evenodd"></path></g></svg>
|
||||
|
After Width: | Height: | Size: 874 B |
@@ -0,0 +1 @@
|
||||
<svg preserveAspectRatio="xMidYMid meet" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" style="color: rgb(38, 203, 124);" class="icon-7f6730be--text-3f89f380"><g><path d="M22 11.07V12a10 10 0 1 1-5.93-9.14"></path><polyline points="23 3 12 14 9 11"></polyline></g></svg>
|
||||
|
After Width: | Height: | Size: 376 B |
@@ -0,0 +1 @@
|
||||
<svg preserveAspectRatio="xMidYMid meet" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor" style="color: rgb(247, 125, 5);" class="icon-7f6730be--text-3f89f380"><g><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line></g></svg>
|
||||
|
After Width: | Height: | Size: 406 B |
+27
-10
@@ -30,37 +30,51 @@ This enables pause / resume in mainsail.
|
||||
```
|
||||
|
||||
# Macros
|
||||
## for pause /resume / cancel functionality
|
||||
## for pause / resume / cancel functionality
|
||||
These should be modified to your own needs.
|
||||
{% raw %}
|
||||
```yaml
|
||||
[gcode_macro PAUSE]
|
||||
rename_existing: BASE_PAUSE
|
||||
default_parameter_X: 230 #edit to your park position
|
||||
default_parameter_Y: 230 #edit to your park position
|
||||
default_parameter_Z: 10 #edit to your park position
|
||||
default_parameter_E: 1 #edit to your retract length
|
||||
gcode:
|
||||
##### set defaults #####
|
||||
{% set x = params.X|default(230) %} #edit to your park position
|
||||
{% set y = params.Y|default(230) %} #edit to your park position
|
||||
{% set z = params.Z|default(10)|float %} #edit to your park position
|
||||
{% set e = params.E|default(1) %} #edit to your retract length
|
||||
##### calculate save lift position #####
|
||||
{% set max_z = printer.toolhead.axis_maximum.z|float %}
|
||||
{% set act_z = printer.toolhead.position.z|float %}
|
||||
{% set lift_z = z|abs %}
|
||||
{% if act_z < (max_z - lift_z) %}
|
||||
{% set z_safe = lift_z %}
|
||||
{% else %}
|
||||
{% set z_safe = max_z - act_z %}
|
||||
{% endif %}
|
||||
##### end of definitions #####
|
||||
SAVE_GCODE_STATE NAME=PAUSE_state
|
||||
BASE_PAUSE
|
||||
G91
|
||||
G1 E-{E} F2100
|
||||
G1 Z{Z}
|
||||
G1 E-{e} F2100
|
||||
G1 Z{z_safe}
|
||||
G90
|
||||
G1 X{X} Y{Y} F6000
|
||||
G1 X{x} Y{y} F6000
|
||||
```
|
||||
|
||||
```yaml
|
||||
[gcode_macro RESUME]
|
||||
rename_existing: BASE_RESUME
|
||||
default_parameter_E: 1 #edit to your retract length
|
||||
gcode:
|
||||
##### set defaults #####
|
||||
{% set e = params.E|default(1) %} #edit to your retract length
|
||||
G91
|
||||
G1 E{E} F2100
|
||||
G1 E{e} F2100
|
||||
G90
|
||||
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
|
||||
BASE_RESUME
|
||||
```
|
||||
|
||||
|
||||
```yaml
|
||||
[gcode_macro CANCEL_PRINT]
|
||||
rename_existing: BASE_CANCEL_PRINT
|
||||
@@ -70,11 +84,13 @@ gcode:
|
||||
SDCARD_RESET_FILE
|
||||
BASE_CANCEL_PRINT
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
# Optional
|
||||
|
||||
## customize klipper default commands
|
||||
for example, if you want to adjust the `BED_MESH_CALIBRATE` command, which you can run from "heightmap > calibrate".
|
||||
{% raw %}
|
||||
```yaml
|
||||
[gcode_macro BED_MESH_CALIBRATE]
|
||||
rename_existing: BASE_BED_MESH_CALIBRATE
|
||||
@@ -87,3 +103,4 @@ gcode:
|
||||
BASE_BED_MESH_CALIBRATE
|
||||
#after the original gcode
|
||||
```
|
||||
{% endraw %}
|
||||
@@ -0,0 +1,86 @@
|
||||
---
|
||||
layout: default
|
||||
title: Remote Access
|
||||
parent: Quicktips
|
||||
permalink: /quicktips/remote-access
|
||||
description: >-
|
||||
A guide to safe remote access.
|
||||
---
|
||||
|
||||
# {{ page.title }}
|
||||
{{ 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.
|
||||
{: .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.
|
||||
|
||||
## 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)
|
||||
|
||||
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.
|
||||
|
||||
For details, please refer to the projects instructions.
|
||||
|
||||
## Remote Access to Mainsail
|
||||
|
||||
<div class="alert">
|
||||
What <b>not to do</b>:
|
||||
<ul>
|
||||
<li>Please do not open ports of Mainsail/Moonraker in your router to the rest of the world. There are plenty of reports of Octoprint installations being freely accessible on the Internet, with just as many reasons why this is not a good idea.</li>
|
||||
</ul>
|
||||
<a href="https://isc.sans.edu/forums/diary/3D+Printers+in+The+Wild+What+Can+Go+Wrong/24044/" target="_blank">https://isc.sans.edu/forums/diary/3D+Printers+in+The+Wild+What+Can+Go+Wrong/24044/</a>
|
||||
</div>
|
||||
|
||||
<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.
|
||||
<ul>
|
||||
<li>Con: you give the control out of your hand</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Reverse Proxy</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="success">
|
||||
<b>Recommendation</b> what you <b>should do</b>:
|
||||
<ul>
|
||||
<li>Set up your own secured VPN tunnel.
|
||||
<ul>
|
||||
<li>either in the router</li>
|
||||
<li>or your Pi</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
## 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.
|
||||
|
||||
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/)
|
||||
|
||||
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/)
|
||||
|
||||
__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/>
|
||||
For example:
|
||||
__192.168.1__.x _// devices on your regular LAN_
|
||||
__192.168.50__.x _// devices connected through your VPN tunnel_
|
||||
{: .info}
|
||||
Reference in new issue
Block a user