Merge branch 'maintenance' into devel

This commit is contained in:
Gina Häußge committed 2020-07-15 14:22:53 +02:00
commit 2bb0e0edfc
43 files changed
+6263 -2331

No files matched your search

+5 -5
View File
@@ -24,13 +24,13 @@ maintenance 1.4.2 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
fix/.* 1.4.2 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
improve/.* 1.4.2 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
# staging/maintenance is currently the branch for preparation of 1.4.1rc3
# staging/maintenance is currently the branch for preparation of 1.4.1rc4
# so is regressionfix/...
staging/maintenance 1.4.1rc3 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
regressionfix/.* 1.4.1rc3 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
staging/maintenance 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
regressionfix/.* 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
# staging/devel is currently inactive (but has the 1.4.1rc3 namespace)
staging/devel 1.4.1rc3 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
# staging/devel is currently inactive (but has the 1.4.1rc4 namespace)
staging/devel 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
# every other branch is a development branch and thus gets resolved to 2.0.0-dev for now
.* 2.0.0 2da7aa358d950b4567aaab8f18d6b5779193e077 pep440-dev
+1 -1
View File
@@ -66,4 +66,4 @@ thanks to everyone who contributed!
* Sven Mueller
* Ulrich Kempken
and 1892 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)!
and 1886 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)!
+5 -1
View File
@@ -283,10 +283,14 @@ The following settings are only relevant to you if you want to do OctoPrint deve
# false, no minification will take place regardless of the minify setting below.
bundle: true
# If set to true, OctoPrint will minify its viewmodels (that includes those of plugins). Note: if bundle is
# If set to true, OctoPrint will the core and library javascript assets. Note: if bundle is
# set to false, no minification will take place either.
minify: true
# If set to true, OctoPrint will also minify the third party plugin javascript assets. Note: if bundle or
# minify are set to false, no minification of the plugin assets will take place either.
minify_plugins: false
# Whether to delete generated web assets on server startup (forcing a regeneration)
clean_on_startup: true
+13 -5
View File
@@ -110,11 +110,19 @@ There many configuration options via ``config.yaml`` for the virtual printer tha
# < ok T0:34.3/0.0 T1:23.5/0.0 B:43.2/0.0
smoothieTemperatureReporting: false
# Whether M20 responses will include filesize or not
#
# True: <filename> <filesize in bytes>
# False: <filename>
extendedSdFileList: false
# Settings related to the SD file list output
sdFiles:
# Whether M20 responses will include filesize or not
#
# True: <filename> <filesize in bytes>
# False: <filename>
size: true
# Whether M20 responses will include longname or not (only if size = true as well)
#
# True: <filename> <filesize in bytes> <longname>
# False: <filename> <filesize in bytes>
longname: false
# Forced pause for retrieving from the outgoing buffer
throttle: 0.01
+1
View File
@@ -40,6 +40,7 @@ INSTALL_REQUIRES = [
"Flask-Babel>=1.0,<2",
"Flask-Assets>=2.0,<3",
"werkzeug>=1.0.1,<2",
"itsdangerous>=1.1.0,<2",
"cachelib>=0.1,<1",
"PyYAML>=5.3.1,<6",
"pyserial>=3.4,<4",
+1 -1
View File
@@ -331,7 +331,7 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
##~~ WizardPlugin
def is_wizard_required(self):
return self._settings.global_get(["server", "firstRun"])
return self._settings.global_get(["server", "firstRun"]) and is_os_compatible(["!windows"])
def get_wizard_details(self):
return dict(required=self.is_wizard_required())
@@ -13,8 +13,8 @@ from octoprint.util.version import get_octoprint_version_string, is_released_oct
from flask import jsonify
from flask_babel import gettext
SENTRY_URL_SERVER = "https://183f89aa959044fa8ff4e2a55383ed36@o118517.ingest.sentry.io/1373987"
SENTRY_URL_COREUI = "https://fcd757c96a204000828449be1ba53d3b@o118517.ingest.sentry.io/1374096"
SENTRY_URL_SERVER = "https://829e2245ec4d4693a0b708523004c4eb@o118517.ingest.sentry.io/1373987"
SENTRY_URL_COREUI = "https://fcbbcf95f5514b59866c5e7360fba1fe@o118517.ingest.sentry.io/1374096"
SETTINGS_DEFAULTS = dict(enabled=False,
enabled_unreleased=False,
@@ -4,6 +4,12 @@
*/
$(function() {
var OctoPrint = window.OctoPrint;
OctoPrint.loginui = {
startedUp: false
}
var overlayElement = $("#login-overlay");
var errorElement = $("#login-error");
var offlineElement = $("#login-offline");
@@ -37,8 +43,6 @@ $(function() {
return false;
});
var OctoPrint = window.OctoPrint;
OctoPrint.options.baseurl = BASE_URL;
OctoPrint.socket.onConnected = function() {
@@ -56,4 +60,5 @@ $(function() {
});
OctoPrint.socket.connect();
OctoPrint.loginui.startedUp = true;
});
@@ -16,18 +16,18 @@
<body>
<div class="container">
<form class="form-signin">
<h2 class="form-signin-heading">{{ _('Please log in') }}</h2>
<h2 class="form-signin-heading" data-test-id="login-title">{{ _('Please log in') }}</h2>
<div id="login-error" class="alert alert-error">{{ _('Incorrect username or password.') }}</div>
<div id="login-error" class="alert alert-error" data-test-id="login-error">{{ _('Incorrect username or password.') }}</div>
<div id="login-offline" class="alert alert-error">{{ _('Server is currently offline.') }} <a id="login-reconnect" href="javascript:void(0)">{{ _('Reconnect...') }}</a></div>
<input type="text" id="login-user" class="input-block-level" placeholder="{{ _('Username')|edq }}" autofocus>
<input type="password" id="login-password" class="input-block-level" placeholder="{{ _('Password')|edq }}">
<input type="text" id="login-user" data-test-id="login-username" class="input-block-level" placeholder="{{ _('Username')|edq }}" autofocus>
<input type="password" id="login-password" data-test-id="login-password" class="input-block-level" placeholder="{{ _('Password')|edq }}">
<span class="pull-right"><small><a href="https://faq.octoprint.org/forgotten-password" id="login-forgotpassword" target="_blank" tabindex="-1">{{ _('Forgot password?') }}</a></small></span>
<label class="checkbox">
<input type="checkbox" id="login-remember"> {{ _('Remember me') }}
<input type="checkbox" id="login-remember" data-test-id="login-remember-me"> {{ _('Remember me') }}
</label>
<button class="btn btn-block btn-large btn-primary" id="login-button" type="submit">{{ _('Log in') }}</button>
<button class="btn btn-block btn-large btn-primary" id="login-button" data-test-id="login-submit" type="submit">{{ _('Log in') }}</button>
</form>
</div>
@@ -30,7 +30,10 @@ class VirtualPrinterPlugin(octoprint.plugin.SettingsPlugin, octoprint.plugin.Tem
"smoothieTemperatureReporting": False,
"klipperTemperatureReporting": False,
"reprapfwM114": False,
"extendedSdFileList": False,
"sdFiles": {
"size": True,
"longname": False
},
"throttle": 0.01,
"sendWait": True,
"waitInterval": 1.0,
@@ -11,18 +11,24 @@ import os
import re
import threading
import math
import collections
try:
import queue
except ImportError:
import Queue as queue
try:
from os import scandir
except ImportError:
from scandir import scandir
# noinspection PyCompatibility
from past.builtins import basestring
from serial import SerialTimeoutException
from octoprint.plugin import plugin_manager
from octoprint.util import RepeatedTimer, monotonic_time, to_bytes, to_unicode
from octoprint.util import RepeatedTimer, monotonic_time, to_bytes, to_unicode, get_dos_filename
from typing import Any
@@ -592,6 +598,17 @@ class VirtualPrinter(object):
filename = data.split(None, 1)[1].strip()
self._deleteSdFile(filename)
def _gcode_M33(self, data):
# type: (str) -> None
if self._sdCardReady:
filename = data.split(None, 1)[1].strip()
if filename.startswith("/"):
filename = filename[1:]
files = self._mappedSdList()
file = files.get(filename.lower())
if file is not None:
self._send(file["name"])
def _gcode_M113(self, data):
# type: (str) -> None
matchS = re.search(r"S([0-9]+)", data)
@@ -968,40 +985,56 @@ class VirtualPrinter(object):
self._logger.exception("While handling %r", data)
def _listSd(self):
self._send("Begin file list")
if self._settings.get_boolean(["extendedSdFileList"]):
items = map(
lambda x: "%s %d" % (x.upper(), os.stat(os.path.join(self._virtualSd, x)).st_size),
os.listdir(self._virtualSd)
)
if self._settings.get_boolean(["sdFiles", "size"]):
if self._settings.get_boolean(["sdFiles", "longname"]):
line = "{dosname} {size} {name}"
else:
line = "{dosname} {size}"
else:
items = map(
lambda x: x.upper(),
os.listdir(self._virtualSd)
)
line = "{dosname}"
files = self._mappedSdList()
items = map(lambda x: line.format(**x), files.values())
self._send("Begin file list")
for item in items:
self._send(item)
self._send("End file list")
def _mappedSdList(self):
# type: () -> collections.OrderedDict
result = collections.OrderedDict()
for entry in scandir(self._virtualSd):
if not entry.is_file():
continue
dosname = get_dos_filename(entry.name, existing_filenames=list(result.keys())).lower()
result[dosname] = dict(name=entry.name,
path=entry.path,
dosname=dosname,
size=entry.stat().st_size)
return result
def _selectSdFile(self, filename, check_already_open=False):
# type: (str, bool) -> None
if filename.startswith("/"):
filename = filename[1:]
file = os.path.join(self._virtualSd, filename.lower())
if self._selectedSdFile == file and check_already_open:
files = self._mappedSdList()
file = files.get(filename)
if file is None or not os.path.exists(file["path"]) or not os.path.isfile(file["path"]):
self._send("open failed, File: %s." % filename)
return
if not os.path.exists(file) or not os.path.isfile(file):
self._send("open failed, File: %s." % filename)
if self._selectedSdFile == file["path"] and check_already_open:
return
self._selectedSdFile = file["path"]
self._selectedSdFileSize = file["size"]
if self._settings.get_boolean(["includeFilenameInOpened"]):
self._send("File opened: %s Size: %d" % (filename, self._selectedSdFileSize))
else:
self._selectedSdFile = file
self._selectedSdFileSize = os.stat(file).st_size
if self._settings.get_boolean(["includeFilenameInOpened"]):
self._send("File opened: %s Size: %d" % (filename, self._selectedSdFileSize))
else:
self._send("File opened")
self._send("File selected")
self._send("File opened")
self._send("File selected")
def _startSdPrint(self):
if self._selectedSdFile is not None:
@@ -1427,9 +1460,10 @@ class VirtualPrinter(object):
# type: (str) -> None
if filename.startswith("/"):
filename = filename[1:]
f = os.path.join(self._virtualSd, filename)
if os.path.exists(f) and os.path.isfile(f):
os.remove(f)
files = self._mappedSdList()
file = files.get(filename)
if file is not None and os.path.exists(file["path"]) and os.path.isfile(file["path"]):
os.remove(file["path"])
def _simulateTemps(self, delta=0.5):
timeDiff = self.lastTempAt - monotonic_time()
+7 -3
View File
@@ -700,8 +700,10 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
def get_sd_files(self, *args, **kwargs):
if self._comm is None or not self._comm.isSdReady():
return []
return list(map(lambda x: (x[0][1:], x[1]), self._comm.getSdFiles()))
result = []
else:
result = list(map(lambda x: dict(name=x[0][1:], size=x[1], display=x[2]), self._comm.getSdFiles()))
return result
def add_sd_file(self, filename, path, on_success=None, on_failure=None, *args, **kwargs):
if not self._comm or self._comm.isBusy() or not self._comm.isSdReady():
@@ -1505,7 +1507,9 @@ class StateMonitor(object):
self._last_update = monotonic_time()
self._change_event.clear()
except Exception:
logging.getLogger(__name__).exception("Looks like something crashed inside the state update worker. Please report this on the OctoPrint issue tracker (make sure to include logs!)")
logging.getLogger(__name__).exception("Looks like something crashed inside the state update worker. "
"Please report this on the OctoPrint issue tracker (make sure "
"to include logs!)")
def get_current_data(self):
with self._progress_lock:
+7 -3
View File
@@ -1605,7 +1605,11 @@ class Server(object):
filters.append("rjsmin")
filters.append("gzip")
js_filters = js_plugin_filters = filters
js_filters = filters
if self._settings.getBoolean(["devel", "webassets", "minify_plugins"]):
js_plugin_filters = js_filters
else:
js_plugin_filters = [x for x in js_filters if x not in ("rjsmin",)]
def js_bundles_for_plugins(collection, filters=None):
"""Produces JsPluginBundle instances that output IIFE wrapped assets"""
@@ -1645,7 +1649,7 @@ class Server(object):
js_app_bundle = Bundle(js_plugins_bundle, js_core_bundle,
output="webassets/packed_app.js",
filters=",".join(js_filters))
filters=",".join(js_plugin_filters))
js_client_core_bundle = Bundle(*clientjs_core,
output="webassets/packed_client_core.js",
@@ -1660,7 +1664,7 @@ class Server(object):
js_client_bundle = Bundle(js_client_core_bundle, js_client_plugins_bundle,
output="webassets/packed_client.js",
filters=",".join(js_filters))
filters=",".join(js_plugin_filters))
# -- CSS -------------------------------------------------------------------------------------------------------
+13 -10
View File
@@ -97,7 +97,7 @@ def _create_etag(path, filter, recursive, lm=None):
if path == "" or storage == FileDestinations.SDCARD:
# include sd data in etag
hash_update(repr(sorted(printer.get_sd_files(), key=lambda x: sv(x[0]))))
hash_update(repr(sorted(printer.get_sd_files(), key=lambda x: sv(x["name"]))))
hash_update(_DATA_FORMAT_VERSION) # increment version if we change the API format
@@ -192,8 +192,8 @@ def _getFileList(origin, path=None, filter=None, recursive=False, allow_from_cac
files = []
if sdFileList is not None:
for sdFile, sdSize in sdFileList:
type_path = octoprint.filemanager.get_file_type(sdFile)
for f in sdFileList:
type_path = octoprint.filemanager.get_file_type(f["name"])
if not type_path:
# only supported extensions
continue
@@ -203,16 +203,19 @@ def _getFileList(origin, path=None, filter=None, recursive=False, allow_from_cac
file = {
"type": file_type,
"typePath": type_path,
"name": sdFile,
"display": sdFile,
"path": sdFile,
"name": f["name"],
"display": f["display"] if f["display"] else f["name"],
"path": f["name"],
"origin": FileDestinations.SDCARD,
"refs": {
"resource": url_for(".readGcodeFile", target=FileDestinations.SDCARD, filename=sdFile, _external=True)
"resource": url_for(".readGcodeFile",
target=FileDestinations.SDCARD,
filename=f["name"],
_external=True)
}
}
if sdSize is not None:
file.update({"size": sdSize})
if f["size"] is not None:
file.update({"size": f["size"]})
files.append(file)
else:
filter_func = None
@@ -288,7 +291,7 @@ def _getFileList(origin, path=None, filter=None, recursive=False, allow_from_cac
def _verifyFileExists(origin, filename):
if origin == FileDestinations.SDCARD:
return filename in (x[0] for x in printer.get_sd_files())
return filename in (x["name"] for x in printer.get_sd_files())
else:
return fileManager.file_exists(origin, filename)
+5 -3
View File
@@ -145,7 +145,8 @@ def getSettings():
"baudrateOptions": connectionOptions["baudrates"],
"autoconnect": s.getBoolean(["serial", "autoconnect"]),
"timeoutConnection": s.getFloat(["serial", "timeout", "connection"]),
"timeoutDetection": s.getFloat(["serial", "timeout", "detection"]),
"timeoutDetectionFirst": s.getFloat(["serial", "timeout", "detectionFirst"]),
"timeoutDetectionConsecutive": s.getFloat(["serial", "timeout", "detectionConsecutive"]),
"timeoutCommunication": s.getFloat(["serial", "timeout", "communication"]),
"timeoutCommunicationBusy": s.getFloat(["serial", "timeout", "communicationBusy"]),
"timeoutTemperature": s.getFloat(["serial", "timeout", "temperature"]),
@@ -442,8 +443,9 @@ def _saveSettings(data):
if "baudrate" in data["serial"]: s.setInt(["serial", "baudrate"], data["serial"]["baudrate"])
if "exclusive" in data["serial"]: s.setBoolean(["serial", "exclusive"], data["serial"]["exclusive"])
if "timeoutConnection" in data["serial"]: s.setFloat(["serial", "timeout", "connection"], data["serial"]["timeoutConnection"], min=1.0)
if "timeoutDetection" in data["serial"]: s.setFloat(["serial", "timeout", "detection"], data["serial"]["timeoutDetection"], min=1.0)
if "timeoutCommunication" in data["serial"]: s.setFloat(["serial", "timeout", "communication"], data["serial"]["timeoutCommunication"], min=1.0)
if "timeoutDetectionFirst" in data["serial"]: s.setFloat(["serial", "timeout", "detectionFirst"], data["serial"]["timeoutDetectionFirst"], min=1.0)
if "timeoutDetectionConsecutive" in data["serial"]: s.setFloat(["serial", "timeout", "detectionConsecutive"], data["serial"]["timeoutDetectionConsecutive"], min=1.0)
if "timeoutCommunication" in data["serial"]: s.setFloat(["serial", "timeout", "communication"], data["serial"]["timeoutCommunicationFirst"], min=1.0)
if "timeoutCommunicationBusy" in data["serial"]: s.setFloat(["serial", "timeout", "communicationBusy"], data["serial"]["timeoutCommunicationBusy"], min=1.0)
if "timeoutTemperature" in data["serial"]: s.setFloat(["serial", "timeout", "temperature"], data["serial"]["timeoutTemperature"], min=1.0)
if "timeoutTemperatureTargetSet" in data["serial"]: s.setFloat(["serial", "timeout", "temperatureTargetSet"], data["serial"]["timeoutTemperatureTargetSet"], min=1.0)
+4
View File
@@ -10,6 +10,7 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms
import tornado.web
import flask
import flask.json
import flask.sessions
import flask_login
import octoprint.vendor.flask_principal as flask_principal
import flask_assets
@@ -531,6 +532,9 @@ class OctoPrintFlaskResponse(flask.Response):
class OctoPrintSessionInterface(flask.sessions.SecureCookieSessionInterface):
def should_set_cookie(self, app, session):
return flask.request.endpoint != "static"
def save_session(self, app, session, response):
if flask.g.get("login_via_apikey", False):
return
+20 -9
View File
@@ -117,9 +117,12 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection,
self._remoteAddress = None
self._user = self._userManager.anonymous_user_factory()
self._throttleFactor = 1
self._lastCurrent = 0
self._baseRateLimit = 0.5
self._throttle_factor = 1
self._last_current = 0
self._base_rate_limit = 0.5
self._held_back_current = None
self._held_back_mutex = threading.RLock()
self._register_hooks = self._pluginManager.get_hooks("octoprint.server.sockjs.register")
self._authed_hooks = self._pluginManager.get_hooks("octoprint.server.sockjs.authed")
@@ -222,18 +225,26 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection,
except ValueError:
self._logger.warning("Got invalid throttle factor from client {}, ignoring: {!r}".format(self._remoteAddress, message["throttle"]))
else:
self._throttleFactor = throttle
self._logger.debug("Set throttle factor for client {} to {}".format(self._remoteAddress, self._throttleFactor))
self._throttle_factor = throttle
self._logger.debug("Set throttle factor for client {} to {}".format(self._remoteAddress, self._throttle_factor))
def on_printer_send_current_data(self, data):
if not self._user.has_permission(Permissions.STATUS):
return
# make sure we rate limit the updates according to our throttle factor
now = time.time()
if now < self._lastCurrent + self._baseRateLimit * self._throttleFactor:
return
self._lastCurrent = now
with self._held_back_mutex:
if self._held_back_current is not None:
self._held_back_current.cancel()
self._held_back_current = None
now = time.time()
delta = self._last_current + self._base_rate_limit * self._throttle_factor - now
if delta > 0:
self._held_back_current = threading.Timer(delta, lambda: self.on_printer_send_current_data(data))
return
self._last_current = now
# add current temperature, log and message backlogs to sent data
with self._temperatureBacklogMutex:
+4 -2
View File
@@ -98,7 +98,8 @@ default_settings = {
"autoconnect": False,
"log": False,
"timeout": {
"detection": 1,
"detectionFirst": 10,
"detectionConsecutive": 2,
"connection": 10,
"communication": 30,
"communicationBusy": 3,
@@ -414,7 +415,8 @@ default_settings = {
"webassets": {
"bundle": True,
"clean_on_startup": True,
"minify": True
"minify": True,
"minify_plugins": False
},
"useFrozenDictForPrinterState": True,
"showLoadingAnimation": True,
+1 -1
View File
@@ -1 +1 @@
.btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn.active,.btn.disabled,.btn:active,.btn:focus,.btn:hover,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn.active,.btn:active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:focus,.btn:hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class*=" icon-"],.btn-large [class^=icon-]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class*=" icon-"],.btn-small [class^=icon-]{margin-top:0}.btn-mini [class*=" icon-"],.btn-mini [class^=icon-]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-primary.active,.btn-primary.disabled,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary.active,.btn-primary:active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-warning.active,.btn-warning.disabled,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning.active,.btn-warning:active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeaLine truncated
.btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn.active,.btn.disabled,.btn:active,.btn:focus,.btn:hover,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn.active,.btn:active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:focus,.btn:hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class*=" icon-"],.btn-large [class^=icon-]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class*=" icon-"],.btn-small [class^=icon-]{margin-top:0}.btn-mini [class*=" icon-"],.btn-mini [class^=icon-]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-primary.active,.btn-primary.disabled,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary.active,.btn-primary:active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-warning.active,.btn-warning.disabled,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning.active,.btn-warning:active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeaLine truncated
+4 -1
View File
@@ -39,7 +39,8 @@ $(function() {
mobile: false,
desktop: false
},
viewmodels: {}
viewmodels: {},
startedUp: false
};
var browserVisibilityCallbacks = [];
@@ -734,6 +735,8 @@ $(function() {
// Use bootstrap tabdrop for tabs and pills
$('.nav-pills, .nav-tabs').tabdrop();
OctoPrint.coreui.startedUp = true;
};
var fetchSettings = function() {
@@ -158,7 +158,8 @@ $(function() {
self.serial_baudrateOptions = ko.observableArray([]);
self.serial_autoconnect = ko.observable(undefined);
self.serial_timeoutConnection = ko.observable(undefined);
self.serial_timeoutDetection = ko.observable(undefined);
self.serial_timeoutDetectionFirst = ko.observable(undefined);
self.serial_timeoutDetectionConsecutive = ko.observable(undefined);
self.serial_timeoutCommunication = ko.observable(undefined);
self.serial_timeoutCommunicationBusy = ko.observable(undefined);
self.serial_timeoutTemperature = ko.observable(undefined);
+1 -1
View File
@@ -728,10 +728,10 @@ ul.dropdown-menu li a {
.title {
text-overflow: ellipsis;
word-break: break-all;
margin-right: 30px;
}
.toggleAdditionalData {
margin-left: 5px;
}
.internal, .uploaded, .size, .additionalInfo {
@@ -173,13 +173,21 @@
</div>
</div>
</div>
<div class="control-group" title="{{ _('Time after which to consider an auto detection attempt to have failed if no successful connection is detected')|edq }}">
<label class="control-label" for="settings-serialTimeoutDetection">{{ _('Autodetection timeout') }}</label>
<div class="control-group" title="{{ _('Time after which to consider the auto detection handshake attempt to have failed if no successful connection is detected')|edq }}">
<label class="control-label" for="settings-serialTimeoutDetectionFirst">{{ _('Autodetection timeout') }}</label>
<div class="controls">
<div class="input-append">
<input type="number" step="any" min="1" class="input-mini text-right" data-bind="value: serial_timeoutDetection" id="settings-serialTimeoutDetection">
<input type="number" step="any" min="1" class="input-mini text-right" data-bind="value: serial_timeoutDetectionFirst" id="settings-serialTimeoutDetectionFirst">
<span class="add-on">s</span>
</div>
<span class="help-inline">{{ _('First handshake attempt')}}</span>
</div>
<div class="controls">
<div class="input-append">
<input type="number" step="any" min="1" class="input-mini text-right" data-bind="value: serial_timeoutDetectionConsecutive" id="settings-serialTimeoutDetectionConsecutive">
<span class="add-on">s</span>
</div>
<span class="help-inline">{{ _('Consecutive handshake attempts')}}</span>
</div>
</div>
<div class="control-group" title="{{ _('Time after which to consider a position query on pause or cancel to have failed')|edq }}">
+2 -2
View File
@@ -96,7 +96,7 @@
{% if "styles_wrapper" in data %} style="{{ data.styles_wrapper|join(', ') }}" {% elif "styles" in data %} style="{{ data.styles|join(', ') }}" {% endif %}
>
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-target="#{{ data._div }}">
<a class="accordion-toggle" data-toggle="collapse" data-test-id="sidebar-{{ data._div }}-toggle" data-target="#{{ data._div }}">
{% if "icon" in data %}<i class="fa icon-black fa-{{ data.icon }}"></i> {% endif %}{{ entry|e }}
</a>
{% if "template_header" in data %}
@@ -107,7 +107,7 @@
class="accordion-body collapse in {% if "classes_content" in data %}{{ data.classes_content|join(' ') }}{% elif "classes" in data %}{{ data.classes|join(' ') }}{% endif %}"
{% if "styles_content" in data %} style="{{ data.styles_content|join(', ') }}" {% elif "styles" in data %} style="{{ data.styles|join(', ') }}"{% endif %}
>
<div class="accordion-inner">
<div class="accordion-inner" data-test-id="sidebar-{{ data._div }}-content">
{% try "There was an error with the template {filename} at line number {lineno}: {exception}" %}{% include data.template ignore missing %}{% endtry %}
</div>
</div>
+7 -7
View File
@@ -1,21 +1,21 @@
<a href="javascript:void(0)" class="dropdown-toggle">
<i class="fa fa-user"></i> <span data-bind="text: loginState.userMenuText, attr: {title: loginState.userMenuTitle}">{{ _('Login') }}</span>
<a href="javascript:void(0)" data-test-id="login-menu" class="dropdown-toggle">
<i class="fa fa-user"></i> <span data-test-id="login-menu-title" data-bind="text: loginState.userMenuText, attr: {title: loginState.userMenuTitle}">{{ _('Login') }}</span>
<b class="caret"></b>
</a>
<div id="login_dropdown_loggedout" style="padding: 15px" class="dropdown-menu" data-bind="css: {hide: loginState.loggedIn(), 'dropdown-menu': !loginState.loggedIn()}">
<form id="loginForm" data-bind="event: {'submit': loginState.prepareLogin }" onsubmit="return false; // this gets overwritten on view model bind">
<label for="login_user">{{ _('Username') }}</label>
<input type="text" id="login_user" name="username" data-bind="valueWithInit: loginState.loginUser" placeholder="{{ _('Username')|edq }}" autocapitalize="none" autocorrect="off">
<input type="text" id="login_user" data-test-id="login-username" name="username" data-bind="valueWithInit: loginState.loginUser" placeholder="{{ _('Username')|edq }}" autocapitalize="none" autocorrect="off">
<span class="pull-right"><small><a href="https://faq.octoprint.org/forgotten-password" target="_blank" rel="noreferrer noopener" tabindex="-1">{{ _('Forgot password?') }}</a></small></span>
<label for="login_pass">{{ _('Password') }}</label>
<input type="password" id="login_pass" name="password" data-bind="valueWithInit: loginState.loginPass" placeholder="{{ _('Password')|edq }}">
<input type="password" id="login_pass" data-test-id="login-password" name="password" data-bind="valueWithInit: loginState.loginPass" placeholder="{{ _('Password')|edq }}">
<label class="checkbox">
<input type="checkbox" id="login_remember" data-bind="checked: loginState.loginRemember"> {{ _('Remember me') }}
<input type="checkbox" id="login_remember" data-test-id="login-remember-me" data-bind="checked: loginState.loginRemember"> {{ _('Remember me') }}
</label>
<button type="submit" class="btn btn-block btn-primary" id="login_button">{{ _('Login') }}</button>
<button type="submit" class="btn btn-block btn-primary" id="login_button" data-test-id="login-submit">{{ _('Login') }}</button>
</form>
</div>
<ul id="login_dropdown_loggedin" class="hide" data-bind="css: {hide: !loginState.loggedIn(), 'dropdown-menu': loginState.loggedIn()}">
<li><a href="#" id="usersettings_button" data-bind="click: function() { usersettings.show(); }">{{ _('User Settings') }}</a></li>
<li><a href="#" id="logout_button" data-bind="click: loginState.logout">{{ _('Logout') }}</a></li>
<li><a href="#" id="logout_button" data-bind="click: loginState.logout" data-test-id="logout-submit">{{ _('Logout') }}</a></li>
</ul>
@@ -1,13 +1,13 @@
<label for="connection_ports" data-bind="css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()">{{ _('Serial Port') }}</label>
<select id="connection_ports" data-bind="options: portOptions, optionsCaption: 'AUTO', value: selectedPort, css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()"></select>
<select id="connection_ports" data-test-id="connection-ports" data-bind="options: portOptions, optionsCaption: 'AUTO', value: selectedPort, css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()"></select>
<label for="connection_baudrates" data-bind="css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()">{{ _('Baudrate') }}</label>
<select id="connection_baudrates" data-bind="options: baudrateOptions, optionsCaption: 'AUTO', value: selectedBaudrate, css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()"></select>
<select id="connection_baudrates" data-test-id="connection-baudrates" data-bind="options: baudrateOptions, optionsCaption: 'AUTO', value: selectedBaudrate, css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()"></select>
<label for="connection_printers" data-bind="css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()">{{ _('Printer Profile') }}</label>
<select id="connection_printers" data-bind="options: printerOptions, optionsText: 'name', optionsValue: 'id', value: selectedPrinter, css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()"></select>
<select id="connection_printers" data-test-id="connection-printer-profiles" data-bind="options: printerOptions, optionsText: 'name', optionsValue: 'id', value: selectedPrinter, css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()"></select>
<label class="checkbox">
<input type="checkbox" id="connection_save" data-bind="checked: saveSettings, css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()"> {{ _('Save connection settings') }}
</label>
<label class="checkbox">
<input type="checkbox" id="connection_autoconnect" data-bind="checked: settings.serial_autoconnect, css: {disabled: !isErrorOrClosed()}, enable: isErrorOrClosed()"> {{ _('Auto-connect on server startup') }}
</label>
<button class="btn btn-block" id="printer_connect" data-bind="click: connect, text: buttonText">{{ _('Connect') }}</button>
<button class="btn btn-block" id="printer_connect" data-test-id="connection-connect" data-bind="click: connect, text: buttonText">{{ _('Connect') }}</button>
+1 -1
View File
@@ -1,4 +1,4 @@
<span title="{{ _('Current printer state')|edq }}">{{ _('State') }}</span>: <strong data-bind="text: stateString"></strong><br>
<span title="{{ _('Current printer state')|edq }}">{{ _('State') }}</span>: <strong data-test-id="state-string" data-bind="text: stateString"></strong><br>
<hr>
<span title="{{ _('Name of file currently selected for printing')|edq }}">{{ _('File') }}</span>: <strong data-bind="text: filedisplay, attr: {title: filepath}"></strong>&nbsp;<strong data-bind="visible: sd">(SD)</strong><br>
<span title="{{ _('Upload date of the file currently selected or printing')|edq }}">{{ _('Uploaded') }}</span>: <strong data-bind="text: dateString"></strong><br>
File diff suppressed because it is too large. Load diff
+8
View File
@@ -645,6 +645,14 @@ def filter_non_ascii(line):
return True
def filter_non_utf8(line):
try:
to_bytes(to_unicode(line, encoding="utf-8"), encoding="utf-8")
return False
except ValueError:
return True
def chunks(l, n):
"""
Yield successive n-sized chunks from l.
+81 -31
View File
@@ -41,7 +41,7 @@ from octoprint.filemanager import valid_file_type
from octoprint.filemanager.destinations import FileDestinations
from octoprint.util import get_exception_string, sanitize_ascii, filter_non_ascii, CountedEvent, RepeatedTimer, \
to_unicode, bom_aware_open, TypedQueue, PrependableQueue, TypeAlreadyInQueue, chunks, ResettableTimer, \
monotonic_time
monotonic_time, filter_non_utf8
from octoprint.util.platform import get_os, set_close_exec
try:
@@ -604,7 +604,9 @@ class MachineCom(object):
self._sdEnabled = settings().getBoolean(["feature", "sdSupport"])
self._sdAvailable = False
self._sdFileList = False
self._sdFileLongName = False
self._sdFiles = []
self._sdFilesMap = dict()
self._sdFileToSelect = None
self._sdFileToSelectUser = None
self._ignore_select = False
@@ -676,6 +678,7 @@ class MachineCom(object):
if settings().getBoolean(["feature", "sdSupport"]):
self._sdFileList = False
self._sdFiles = []
self._sdFilesMap = dict()
self._callback.on_comm_sd_files([])
if self._currentFile is not None:
@@ -959,7 +962,7 @@ class MachineCom(object):
self._send_queue_active = False
if self._serial is not None:
if not is_error:
if not is_error and self._state in self.OPERATIONAL_STATES:
self.sendGcodeScript("beforePrinterDisconnected")
if wait:
if timeout is not None:
@@ -1497,7 +1500,8 @@ class MachineCom(object):
user=user)
def getSdFiles(self):
return self._sdFiles
return list(map(lambda x: (x[0], x[1], self._sdFilesMap.get(x[0])),
self._sdFiles))
def deleteSdFile(self, filename, tags=None):
if not self._sdEnabled:
@@ -1557,9 +1561,10 @@ class MachineCom(object):
self.sendCommand("M22", tags=tags | {"trigger:comm.release_sd_card",})
self._sdAvailable = False
self._sdFiles = []
self._sdFilesMap = dict()
self._callback.on_comm_sd_state_change(self._sdAvailable)
self._callback.on_comm_sd_files(self._sdFiles)
self._callback.on_comm_sd_files(self.getSdFiles())
def sayHello(self, tags=None):
if tags is None:
@@ -1672,15 +1677,14 @@ class MachineCom(object):
return
try_hello = not settings().getBoolean(["serial", "waitForStartOnConnect"])
self._changeState(self.STATE_CONNECTING)
self._timeout = self._ok_timeout = self._get_new_communication_timeout()
else:
self._changeState(self.STATE_DETECT_SERIAL)
self._perform_detection_step(init=True)
# Start monitoring the serial port
self._log("Connected to: %s, starting monitor" % self._serial)
#Start monitoring the serial port.
self._timeout = self._ok_timeout = self._get_new_communication_timeout()
startSeen = False
supportRepetierTargetTemp = settings().getBoolean(["serial", "repetierTargetTemp"])
supportWait = settings().getBoolean(["serial", "supportWait"])
@@ -1791,32 +1795,61 @@ class MachineCom(object):
##~~ SD file list
# if we are currently receiving an sd file list, each line is just a filename, so just read it and abort processing
if self._sdFileList and not "End file list" in line:
preprocessed_line = lower_line
fileinfo = preprocessed_line.rsplit(None, 1)
if len(fileinfo) > 1:
# we might have extended file information here, so let's split filename and size and try to make them a bit nicer
preprocessed_line = line
fileinfo = preprocessed_line.split(None, 2)
if len(fileinfo) == 3:
# name, size, long name
filename, size, longname = fileinfo
elif len(fileinfo) == 2:
# name, size
filename, size = fileinfo
longname = None
else:
# name
filename = preprocessed_line
size = None
longname = None
if size is not None:
try:
size = int(size)
except ValueError:
# whatever that was, it was not an integer, so we'll just use the whole line as filename and set size to None
filename = preprocessed_line
size = None
else:
# no extended file information, so only the filename is there and we set size to None
filename = preprocessed_line
size = None
if valid_file_type(filename, "machinecode"):
if filter_non_ascii(filename):
self._logger.warning("Got a file from printer's SD that has a non-ascii filename (%s), that shouldn't happen according to the protocol" % filename)
self._logger.warning("Got a file from printer's SD that has a non-ascii filename ({!r}), "
"that shouldn't happen according to the protocol".format(filename))
elif longname and filter_non_utf8(longname):
self._logger.warning("Got a file from printer's SD that has a non-utf8 longname ({!r}), "
"that shouldn't happen according to the protocol".format(longname))
else:
if not filename.startswith("/"):
# file from the root of the sd -- we'll prepend a /
filename = "/" + filename
self._sdFiles.append((filename, size))
self._sdFiles.append((filename.lower(), size))
if longname is not None:
self._sdFilesMap[filename] = longname
continue
elif self._sdFileLongName:
# Response to M33: just one line with the long name. Yay.
#
# As we have NO way to parse the request short name from that, and also no indicator
# on the line that this is in fact a reply to M33 and not just some arbitrary line injected
# by the firmware belonging to some other command and/or an out of band message/autoreport, we have
# to hope for the best here, set our requested filename as a flag and only use the potential mapping
# if it has a valid file extension.
#
# It would have been so much easier if M33's output was something sensible like
# "<short name>: <long name>" or such, but why make things easy...
_, ext = os.path.splitext(lower_line)
if ext and valid_file_type(lower_line, "machinecode"):
self._sdFilesMap[self._sdFileLongName] = line
self._sdFileLongName = False
handled = False
# process oks
@@ -1824,6 +1857,7 @@ class MachineCom(object):
# ok only considered handled if it's alone on the line, might be
# a response to an M105 or an M114
self._handle_ok()
self._sdFileLongName = False # reset looking for M33 response
needs_further_handling = "T:" in line or "T0:" in line or "B:" in line or "C:" in line or \
"X:" in line or "NAME:" in line
handled = (line == "wait" or line == "ok" or not needs_further_handling)
@@ -1839,7 +1873,8 @@ class MachineCom(object):
and (not self.job_on_hold or self._resendActive)
and not self._long_running_command
and not self._heating and now >= self._ok_timeout)) \
and (not self._blockWhileDwelling or not self._dwelling_until or now > self._dwelling_until):
and (not self._blockWhileDwelling or not self._dwelling_until or now > self._dwelling_until)\
and not self._state in (self.STATE_DETECT_SERIAL,):
# We have two timeout variants:
#
# Variant 1: No line at all received within the communication timeout. This can always happen.
@@ -2096,7 +2131,7 @@ class MachineCom(object):
self._sdFileList = True
elif 'End file list' in line:
self._sdFileList = False
self._callback.on_comm_sd_files(self._sdFiles)
self._callback.on_comm_sd_files(self.getSdFiles())
elif 'SD printing byte' in line:
# answer to M27, at least on Marlin, Repetier and Sprinter: "SD printing byte %d/%d"
match = regex_sdPrintingByte.search(line)
@@ -2218,7 +2253,7 @@ class MachineCom(object):
### Serial detection
if self._state == self.STATE_DETECT_SERIAL:
if line == '' or monotonic_time() > self._timeout:
if line == '' or monotonic_time() > self._ok_timeout:
self._perform_detection_step()
elif 'start' in line or line.startswith('ok'):
self._onConnected()
@@ -2377,7 +2412,6 @@ class MachineCom(object):
self._logger.info("Serial detection: {}".format(message))
if init:
timeout = settings().getFloat(["serial", "timeout", "connection"])
port = self._port
baudrate = self._baudrate
@@ -2396,27 +2430,26 @@ class MachineCom(object):
baudrate_candidates = baudrateList([115200, 250000])
self._detection_candidates = [(p, b) for p in port_candidates for b in baudrate_candidates]
self._detection_retry = self.DETECTION_RETRIES
log("Performing autodetection with {} " \
"port/baudrate candidates: {}".format(len(self._detection_candidates),
", ".join(map(lambda x: "{}@{}".format(x[0], x[1]),
self._detection_candidates))))
else:
timeout = settings().getFloat(["serial", "timeout", "detection"])
def attempt_handshake():
timeout = self._get_communication_timeout_interval()
if self._serial.timeout != timeout:
self._serial.timeout = timeout
self._timeout = monotonic_time() + timeout
self._timeout = self._ok_timeout = monotonic_time() + timeout
log("Handshake attempt #{}".format(self._detection_retry + 1))
log("Handshake attempt #{} with timeout {}s".format(self._detection_retry + 1, timeout))
self._detection_retry += 1
self._do_send_without_checksum(b"", log=False) # new line to reset things
self.sayHello(tags={"trigger:detection", })
while len(self._detection_candidates) > 0:
while len(self._detection_candidates) > 0 or self._detection_retry < self.DETECTION_RETRIES:
if self._detection_retry < self.DETECTION_RETRIES:
attempt_handshake()
return
@@ -2425,6 +2458,7 @@ class MachineCom(object):
(p, b) = self._detection_candidates.pop(0)
try:
log("Trying port {}, baudrate {}".format(p, b))
if self._serial is None or self._serial.port != p:
if not self._open_serial(p, b, trigger_errors=False):
log("Could not open port {}, baudrate {}, skipping".format(p, b))
@@ -2432,7 +2466,6 @@ class MachineCom(object):
else:
self._serial.baudrate = b
log("Trying port {}, baudrate {}".format(p, b))
self._detection_retry = 0
attempt_handshake()
@@ -2654,6 +2687,15 @@ class MachineCom(object):
return interval
def _get_communication_timeout_interval(self):
# special rules during serial detection
if self._state in (self.STATE_DETECT_SERIAL,):
if self._detection_retry == 0:
# first try
return self._timeout_intervals.get("detectionFirst", 10.0)
else:
# consecutive tries
return self._timeout_intervals.get("detectionConsecutive", 2.0)
# communication timeout
if self._busy_protocol_support:
comm_timeout = self._timeout_intervals.get("communicationBusy", 2.0)
@@ -2875,8 +2917,7 @@ class MachineCom(object):
eventManager().fire(Events.ERROR, {"error": self.getErrorString(), "reason": reason})
if close:
if self._send_m112_on_error and not self.isSdPrinting() and reason not in ("connection",
"autodetect_baudrate",
"autodetect_port"):
"autodetect"):
self._trigger_emergency_stop(close=False)
self.close(is_error=True)
@@ -3696,7 +3737,8 @@ class MachineCom(object):
def _gcode_M28_sent(self, cmd, cmd_type=None, gcode=None, subcode=None, *args, **kwargs):
if not self.isStreaming():
self._log("Detected manual streaming. Disabling temperature polling. Finish writing with M29. Do NOT attempt to print while manually streaming!")
self._log("Detected manual streaming. Disabling temperature polling. Finish writing with M29. "
"Do NOT attempt to print while manually streaming!")
self._manualStreaming = True
def _gcode_M29_sent(self, cmd, cmd_type=None, gcode=None, subcode=None, *args, **kwargs):
@@ -3802,6 +3844,14 @@ class MachineCom(object):
self._sdstatus_autoreporting = self._firmware_capabilities.get(self.CAPABILITY_AUTOREPORT_SD_STATUS, False) \
and (interval > 0)
def _gcode_M33_sending(self, cmd, cmd_type=None, gcode=None, subcode=None, *args, **kwargs):
parts = cmd.split(None, 1)
if len(parts) > 1:
filename = parts[1].strip().lower()
if not filename.startswith("/"):
filename = "/" + filename
self._sdFileLongName = filename
def _gcode_M110_sending(self, cmd, cmd_type=None, gcode=None, subcode=None, *args, **kwargs):
newLineNumber = 0
match = regexes_parameters["intN"].search(cmd)
+18 -29
View File
@@ -1,60 +1,49 @@
describe('Connection test against virtual printer', () => {
import { prepare_server, login, disconnect, await_coreui } from "../util/util"
context('Connection test against virtual printer', () => {
const username = 'admin';
const password = 'test';
beforeEach(() => {
prepare_server();
// login
cy.request({
method: 'POST',
url: '/api/login',
body: {
"user": username,
"pass": password
}
});
login(username, password);
// ensure we are disconnected
cy.request({
method: 'POST',
url: '/api/connection',
body: {
"command": "disconnect"
}
});
disconnect();
cy.visit('/');
cy.get('#navbar', {timeout: 10000})
.should('be.visible');
await_coreui();
});
it('connect & disconnect', () => {
cy.get('#state .accordion-inner strong:first')
cy.get('[data-test-id=state-string]', {timeout: 10000})
.should('contain', 'Offline');
cy.get('#connection_printers')
cy.get('[data-test-id=connection-printer-profiles]')
.should('have.length.greaterThan', 0);
cy.get('#connection_ports')
cy.get('[data-test-id=connection-ports]')
.select('VIRTUAL');
cy.get('#connection_baudrates')
cy.get('[data-test-id=connection-baudrates]')
.select('AUTO');
cy.get('#printer_connect')
cy.get('[data-test-id=connection-connect]')
.should('contain', 'Connect')
.click();
cy.get('#connection .accordion-inner', {timeout: 10000})
cy.get('[data-test-id=sidebar-connection-content]', {timeout: 10000})
.should('not.be.visible');
cy.get('#state .accordion-inner strong:first')
cy.get('[data-test-id=state-string]')
.should('contain', 'Operational');
cy.get('#connection_wrapper a.accordion-toggle')
cy.get('[data-test-id=sidebar-connection-toggle]')
.click();
cy.get('#printer_connect')
cy.get('[data-test-id=connection-connect]')
.should('be.visible')
.should('contain', 'Disconnect')
.click();
cy.get('#state .accordion-inner strong:first')
cy.get('[data-test-id=state-string]')
.should('contain', 'Offline');
});
});
+66 -53
View File
@@ -1,46 +1,58 @@
describe('Login tests', () => {
import { prepare_server, await_coreui, await_loginui, login } from "../util/util"
context('Login tests', () => {
const username = 'admin';
const password = 'test';
describe.skip('Successful login', () => {
beforeEach(() => {
prepare_server();
});
context('Successful login', () => {
beforeEach(() => {
cy.visit('/?l10n=en');
await_loginui();
});
it('logs in', () => {
cy.visit('/');
cy.get('#login-user')
cy.get('[data-test-id=login-username]')
.type(username);
cy.get('#login-password')
cy.get('[data-test-id=login-password]')
.type(password);
cy.get('#login-button')
.click();
cy.get('[data-test-id=login-submit]')
.click({ force: true });
cy.wait("@login");
cy.get('#navbar', {timeout: 10000})
.should('be.visible');
cy.get('#navbar_login a.dropdown-toggle span')
await_coreui();
cy.get('[data-test-id=login-menu-title]')
.should('contain', username);
cy.getCookie('session_P5000')
.should('exist');
cy.getCookie('remember_token_P5000')
.should('not.exist');
cy.url()
.should('contain', '#temp');
cy.location()
.should((loc) => {
expect(loc.hash).to.eq("#temp");
});
});
it('logs in with remember me', () => {
cy.visit('/');
cy.get('#login-user')
cy.get('[data-test-id=login-username]')
.type(username);
cy.get('#login-password')
cy.get('[data-test-id=login-password]')
.type(password);
cy.get('#login-remember')
.click();
cy.get('#login-button')
cy.get('[data-test-id=login-remember-me]')
.click();
cy.get('#navbar', {timeout: 10000})
.should('be.visible');
cy.get('#navbar_login a.dropdown-toggle span')
cy.get('[data-test-id=login-submit]')
.click({ force: true });
cy.wait("@login");
await_coreui();
cy.get('[data-test-id=login-menu-title]')
.should('contain', username);
cy.getCookie('session_P5000')
.should('exist');
@@ -49,62 +61,63 @@ describe('Login tests', () => {
expect($cookie).to.have.property('value');
expect($cookie.value).to.match(new RegExp('^' + username + '\|'));
});
cy.url()
.should('contain', '#temp');
cy.location()
.should((loc) => {
expect(loc.hash).to.eq("#temp");
});
});
});
it('logs in and logs out again', () => {
cy.visit('/');
cy.get('#login-user')
.type(username);
cy.get('#login-password')
.type(password);
context('Successful logout', () => {
it('logs out', () => {
Cypress.currentTest.retries(3);
cy.get('#login-button')
// login
login(username, password);
cy.visit('/?l10n=en');
await_coreui();
cy.get('[data-test-id=login-menu]')
.click();
cy.get('#navbar', {timeout: 10000})
.should('be.visible');
cy.get('#navbar_login a.dropdown-toggle')
.click();
cy.get('#logout_button')
cy.get('[data-test-id=logout-submit]')
.click();
cy.wait("@logout");
cy.get('h2.form-signin-heading')
.should('be.visible')
.should('contain', 'Please log in');
await_loginui();
})
});
context('Unauthorized login attempts', () => {
it('uses wrong user name', () => {
cy.visit('/');
beforeEach(() => {
cy.visit('/?l10n=en');
await_loginui();
})
cy.get('#login-user')
it('uses wrong user name', () => {
cy.get('[data-test-id=login-username]')
.type('idonotexist');
cy.get('#login-password')
cy.get('[data-test-id=login-password]')
.type('test');
cy.get('#login-button')
cy.get('[data-test-id=login-submit]')
.click();
});
it('uses wrong password', () => {
cy.visit('/');
cy.get('#login-user')
cy.get('[data-test-id=login-username]')
.type('admin');
cy.get('#login-password')
cy.get('[data-test-id=login-password]')
.type('wrongpassword');
cy.get('#login-button')
cy.get('[data-test-id=login-submit]')
.click();
});
afterEach(() => {
cy.get('h2.form-signin-heading')
cy.get('[data-test-id=login-title]')
.should('be.visible')
.should('contain', 'Please log in');
cy.get('#login-error')
cy.get('[data-test-id=login-error]')
.should('be.visible')
.should('contain', 'Incorrect username or password');
});
+29
View File
@@ -0,0 +1,29 @@
import { prepare_server, login, await_coreui } from "../util/util"
context("Error free page load", () => {
let spy;
Cypress.on('uncaught:exception', (err, runnable) => {
console.error(err);
return false;
});
Cypress.on("window:before:load", (win) => {
spy = cy.spy(win.console, "error");
});
const username = 'admin';
const password = 'test';
beforeEach(() => {
prepare_server();
login(username, password);
cy.visit('/');
await_coreui();
});
it("loads without error", () => {
expect(spy).not.to.be.called;
});
})
+103
View File
@@ -88,6 +88,11 @@
"any-observable": "0.3.0"
}
},
"@types/color-name": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz",
"integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ=="
},
"@types/sinonjs__fake-timers": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/@types/sinonjs__fake-timers/-/sinonjs__fake-timers-6.0.1.tgz",
@@ -418,6 +423,99 @@
"yauzl": "2.10.0"
}
},
"cypress-commands": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/cypress-commands/-/cypress-commands-1.1.0.tgz",
"integrity": "sha512-Q8Jr25pHJQFXwln6Hp8O+Hgs8Z506Y2wA9F1Te2cTajjc5L9gtt9WPOcw1Ogh+OgyqaMHF+uq31vdfImRTio5Q=="
},
"cypress-plugin-retries": {
"version": "1.5.2",
"resolved": "https://registry.npmjs.org/cypress-plugin-retries/-/cypress-plugin-retries-1.5.2.tgz",
"integrity": "sha512-o1xVIGtv4WvNVxoVJ2X08eAuvditPHrePRzHqhwwHbMKu3C2rtxCdanRCZdO5fjh8ww+q4v4V0e9GmysbOvu3A==",
"requires": {
"chalk": "3.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
"requires": {
"@types/color-name": "1.1.1",
"color-convert": "2.0.1"
}
},
"chalk": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"requires": {
"ansi-styles": "4.2.1",
"supports-color": "7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"requires": {
"color-name": "1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
}
}
},
"cypress-terminal-report": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/cypress-terminal-report/-/cypress-terminal-report-1.4.1.tgz",
"integrity": "sha512-Oyx7VQCSh4Nh1q0ROo9Wq6KrxxbP8adhUQRxVpNlXeyyfLj2X8AXxqbIh6Ct3V8oENKh5iHHhuOfRfQ1tmE4Tw==",
"requires": {
"chalk": "3.0.0",
"methods": "1.1.2"
},
"dependencies": {
"ansi-styles": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
"requires": {
"@types/color-name": "1.1.1",
"color-convert": "2.0.1"
}
},
"chalk": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
"requires": {
"ansi-styles": "4.2.1",
"supports-color": "7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"requires": {
"color-name": "1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
}
}
},
"cypress-wait-until": {
"version": "1.7.1",
"resolved": "https://registry.npmjs.org/cypress-wait-until/-/cypress-wait-until-1.7.1.tgz",
"integrity": "sha512-8DL5IsBTbAxBjfYgCzdbohPq/bY+IKc63fxtso1C8RWhLnQkZbVESyaclNr76jyxfId6uyzX8+Xnt0ZwaXNtkA=="
},
"dashdash": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
@@ -980,6 +1078,11 @@
}
}
},
"methods": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
"integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4="
},
"mime-db": {
"version": "1.44.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",
+5 -1
View File
@@ -17,6 +17,10 @@
},
"homepage": "https://octoprint.org",
"dependencies": {
"cypress": "^4.9.0"
"cypress": "^4.9.0",
"cypress-commands": "^1.1.0",
"cypress-plugin-retries": "^1.5.2",
"cypress-terminal-report": "^1.4.1",
"cypress-wait-until": "^1.7.1"
}
}
+2
View File
@@ -18,4 +18,6 @@
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
require("cypress-terminal-report/src/installLogsPrinter")(on);
require("cypress-plugin-retries/lib/plugin")(on);
}
+2
View File
@@ -23,3 +23,5 @@
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
import 'cypress-wait-until';
+4
View File
@@ -18,3 +18,7 @@ import './commands'
// Alternatively you can use CommonJS syntax:
// require('./commands')
require('cypress-terminal-report/src/installLogsCollector')();
require('cypress-commands');
require('cypress-plugin-retries');
+67
View File
@@ -0,0 +1,67 @@
export const prepare_server = () => {
cy.server();
cy.route("POST", "/api/login").as("login");
cy.route("POST", "/api/logout").as("logout");
cy.route("GET", "/api/settings").as("settings");
cy.route("GET", "/api/files?recursive=true").as("files")
cy.route("GET", "/plugin/softwareupdate/check").as("softwareupdate");
cy.route("GET", "/api/plugin/pluginmanager").as("pluginmanager");
}
export const await_loginui = () => {
cy.get('[data-test-id=login-title]')
.should('be.visible')
.should('contain', 'Please log in');
cy.window()
.its('OctoPrint.loginui.startedUp', { timeout: 30000 })
.should('be.true');
}
export const await_coreui = () => {
cy.wait(["@login", "@settings", "@files", "@softwareupdate", "@pluginmanager"]);
cy.window()
.its('OctoPrint.coreui.startedUp', { timeout: 30000 })
.should('be.true');
}
export const login = (username, password) => {
cy.request({
method: 'POST',
url: '/api/login',
body: {
"user": username,
"pass": password
}
});
}
export const logout = () => {
cy.request({
method: 'POST',
url: '/api/logout'
});
}
export const connect = (port, baudrate) => {
port = port || "AUTO";
baudrate = baudrate || 0;
cy.request({
method: 'POST',
url: '/api/connection',
body: {
"command": "connect",
"port": port,
"baudrate": baudrate
}
});
}
export const disconnect = () => {
cy.request({
method: 'POST',
url: '/api/connection',
body: {
"command": "disconnect"
}
});
}
Binary file not shown.
File diff suppressed because it is too large. Load diff
+147 -139
View File
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.4.1.dev393+g32b655451.dirty\n"
"Project-Id-Version: OctoPrint 1.4.1rc3.dev14+gc5baa05b5.dirty\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2020-07-06 09:41+0200\n"
"POT-Creation-Date: 2020-07-14 21:42+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -210,16 +210,16 @@ msgstr ""
#: src/octoprint/plugins/action_command_prompt/templates/action_command_prompt_settings.jinja2:11
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:72
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:303
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:357
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:311
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:365
msgid "Always"
msgstr ""
#: src/octoprint/plugins/action_command_prompt/templates/action_command_prompt_settings.jinja2:14
#: src/octoprint/templates/dialogs/settings/features.jinja2:70
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:79
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:306
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:360
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:314
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:368
msgid "Never"
msgstr ""
@@ -228,9 +228,9 @@ msgstr ""
#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:16
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:327
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:105
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:195
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:312
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:399
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:203
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:320
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:407
#: src/octoprint/templates/dialogs/settings/webcam.jinja2:10
#: src/octoprint/templates/dialogs/settings/webcam.jinja2:25
#: src/octoprint/templates/snippets/settings/server/serverPluginBlacklist.jinja2:5
@@ -1270,7 +1270,7 @@ msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:310
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:336
#: src/octoprint/static/js/app/viewmodels/loginstate.js:110
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:447
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:455
msgid "Ignore"
msgstr ""
@@ -1539,10 +1539,10 @@ msgstr ""
#: src/octoprint/plugins/gcodeviewer/templates/gcodeviewer_tab.jinja2:117
#: src/octoprint/templates/dialogs/settings/folders.jinja2:67
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:90
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:447
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:463
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:472
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:487
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:455
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:471
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:480
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:495
#: src/octoprint/templates/snippets/settings/accesscontrol/groups.jinja2:87
#: src/octoprint/templates/snippets/settings/accesscontrol/permission_list.jinja2:6
msgid "Warning"
@@ -3153,8 +3153,8 @@ msgstr ""
msgid "OctoPrint version tracking"
msgstr ""
#: src/octoprint/plugins/tracking/__init__.py:151
#: src/octoprint/plugins/tracking/__init__.py:152
#: src/octoprint/plugins/tracking/__init__.py:153
#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:1
msgid "Anonymous Usage Tracking"
msgstr ""
@@ -3694,77 +3694,77 @@ msgstr ""
msgid "Progress"
msgstr ""
#: src/octoprint/static/js/app/main.js:205
#: src/octoprint/static/js/app/main.js:206
msgid "Offline"
msgstr ""
#: src/octoprint/static/js/app/main.js:206
#: src/octoprint/static/js/app/main.js:207
msgid "Opening serial connection"
msgstr ""
#: src/octoprint/static/js/app/main.js:207
#: src/octoprint/static/js/app/main.js:208
msgid "Detecting serial connection"
msgstr ""
#: src/octoprint/static/js/app/main.js:208
#: src/octoprint/static/js/app/main.js:209
msgid "Connecting"
msgstr ""
#: src/octoprint/static/js/app/main.js:209
#: src/octoprint/static/js/app/main.js:210
msgid "Operational"
msgstr ""
#: src/octoprint/static/js/app/main.js:210
#: src/octoprint/static/js/app/main.js:211
msgid "Starting"
msgstr ""
#: src/octoprint/static/js/app/main.js:211
#: src/octoprint/static/js/app/main.js:212
msgid "Starting print from SD"
msgstr ""
#: src/octoprint/static/js/app/main.js:212
#: src/octoprint/static/js/app/main.js:213
msgid "Printing from SD"
msgstr ""
#: src/octoprint/static/js/app/main.js:213
#: src/octoprint/static/js/app/main.js:214
msgid "Sending file to SD"
msgstr ""
#: src/octoprint/static/js/app/main.js:214
#: src/octoprint/static/js/app/main.js:215
msgid "Printing"
msgstr ""
#: src/octoprint/static/js/app/main.js:215
#: src/octoprint/static/js/app/main.js:216
msgid "Paused"
msgstr ""
#: src/octoprint/static/js/app/main.js:216
#: src/octoprint/static/js/app/main.js:217
msgid "Closed"
msgstr ""
#: src/octoprint/static/js/app/main.js:217
#: src/octoprint/static/js/app/main.js:218
msgid "Transferring file to SD"
msgstr ""
#: src/octoprint/static/js/app/main.js:218
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:460
#: src/octoprint/static/js/app/main.js:219
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:468
msgid "Pausing"
msgstr ""
#: src/octoprint/static/js/app/main.js:219
#: src/octoprint/static/js/app/main.js:220
msgid "Resuming"
msgstr ""
#: src/octoprint/static/js/app/main.js:220
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:469
#: src/octoprint/static/js/app/main.js:221
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:477
msgid "Cancelling"
msgstr ""
#: src/octoprint/static/js/app/main.js:221
#: src/octoprint/static/js/app/main.js:222
msgid "Finishing"
msgstr ""
#: src/octoprint/static/js/app/main.js:833
#: src/octoprint/static/js/app/main.js:836
msgid "Loading OctoPrint's UI, please wait..."
msgstr ""
@@ -4273,23 +4273,23 @@ msgstr ""
msgid "Autodetect from browser"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:348
#: src/octoprint/static/js/app/viewmodels/settings.js:349
msgid "If you see your webcam stream below, the entered stream URL is ok."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:356
#: src/octoprint/static/js/app/viewmodels/settings.js:357
msgid "Stream test"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:374
#: src/octoprint/static/js/app/viewmodels/settings.js:375
msgid "Could not retrieve snapshot URL, please double check the URL"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:375
#: src/octoprint/static/js/app/viewmodels/settings.js:376
msgid "Snapshot test failed"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:390
#: src/octoprint/static/js/app/viewmodels/settings.js:391
#, python-format
msgid ""
"Could retrieve the snapshot URL, but it didn't look like an image. Got "
@@ -4298,66 +4298,66 @@ msgid ""
"or videos."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:415
#: src/octoprint/static/js/app/viewmodels/settings.js:416
msgid ""
"If you see your webcam snapshot picture below, the entered snapshot URL "
"is ok."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:417
#: src/octoprint/static/js/app/viewmodels/settings.js:418
msgid "Snapshot test"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:450
#: src/octoprint/static/js/app/viewmodels/settings.js:451
msgid "The path doesn't exist"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:452
#: src/octoprint/static/js/app/viewmodels/settings.js:453
msgid "The path is not a file"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:454
#: src/octoprint/static/js/app/viewmodels/settings.js:455
msgid "The path is not an executable"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:457
#: src/octoprint/static/js/app/viewmodels/settings.js:538
#: src/octoprint/static/js/app/viewmodels/settings.js:458
#: src/octoprint/static/js/app/viewmodels/settings.js:539
msgid "The path is valid"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:477
#: src/octoprint/static/js/app/viewmodels/settings.js:478
msgid "The server is not reachable"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:479
#: src/octoprint/static/js/app/viewmodels/settings.js:480
msgid "The server is reachable"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:498
#: src/octoprint/static/js/app/viewmodels/settings.js:499
msgid "Name cannot be resolved"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:500
#: src/octoprint/static/js/app/viewmodels/settings.js:501
msgid "Name can be resolved"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:529
#: src/octoprint/static/js/app/viewmodels/settings.js:530
msgid "The path is a broken symlink."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:531
#: src/octoprint/static/js/app/viewmodels/settings.js:532
msgid "The path does not exist and cannot be created."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:533
#: src/octoprint/static/js/app/viewmodels/settings.js:534
msgid "The path is not a folder."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:535
#: src/octoprint/static/js/app/viewmodels/settings.js:536
msgid "The path is not writable."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:660
#: src/octoprint/static/js/app/viewmodels/settings.js:661
#: src/octoprint/static/js/app/viewmodels/usersettings.js:101
msgid ""
"This will generate a new API Key. The old API Key will cease to function "
@@ -5505,87 +5505,95 @@ msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:176
msgid ""
"Time after which to consider an auto detection attempt to have failed if "
"no successful connection is detected"
"Time after which to consider the auto detection handshake attempt to have"
" failed if no successful connection is detected"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:177
msgid "Autodetection timeout"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:185
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:183
msgid "First handshake attempt"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:190
msgid "Consecutive handshake attempts"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:193
msgid ""
"Time after which to consider a position query on pause or cancel to have "
"failed"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:186
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:194
msgid "Position query timeout"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:197
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:205
msgid ""
"Time to wait after opening the serial connection before starting baudrate"
" detection"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:198
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:206
msgid "Initial baudrate detection pause"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:204
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:212
msgid ""
"Some controllers need a bit of a breather before baudrate detection after"
" initial connect. If baudrate detection fails due to a hanging "
"controller, try increasing this value."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:207
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:215
msgid ""
"Maximum consecutive communication timeouts while idle. More than this and"
" the printer will be considered to be gone. Set to 0 to disable."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:208
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:216
msgid "Max. consecutive timeouts while idle"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:211
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:218
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:225
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:219
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:226
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:233
msgid "Set to 0 to disable consecutive timeout detection and handling."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:214
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:222
msgid ""
"Maximum consecutive communication timeouts while printing. More than this"
" and the printer will be considered to be gone. Set to 0 to disable."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:215
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:223
msgid "Max. consecutive timeouts while printing"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:221
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:229
msgid ""
"Maximum consecutive communication timeouts while a long running command "
"is active. More than this and the printer will be considered to be gone. "
"Set to 0 to disable."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:222
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:230
msgid "Max. consecutive timeouts during long running commands"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:234
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:242
msgid "Firmware specific settings"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:238
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:246
msgid "Enable automatic firmware detection"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:239
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:247
msgid ""
"\n"
" If enabled, OctoPrint will try to figure "
@@ -5597,85 +5605,85 @@ msgid ""
" "
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:250
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:258
msgid "Select SD files by relative path"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:250
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:258
msgid "RepRap Firmware"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:257
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:265
msgid "Always assume SD card is present"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:257
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:271
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:278
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:285
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:292
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:303
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:265
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:279
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:286
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:293
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:300
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:311
msgid "Repetier"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:264
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:272
msgid "Disable SD printing detection"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:264
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:272
msgid "Ultimaker 2/2+"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:271
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:279
msgid "Ignore consecutive resend requests for the same line"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:278
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:286
#, python-format
msgid ""
"Support <code>TargetExtr%%n</code>/<code>TargetBed</code> target "
"temperature format"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:285
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:293
msgid "Disable detection of external heatups"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:292
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:300
msgid "Actively pause communication during <code>G4</code> dwell command"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:297
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:305
msgid "Send a checksum with the command"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:300
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:308
msgid "When printing"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:317
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:325
msgid "Support temperature autoreporting by firmware, if detected"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:324
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:332
msgid "Support sd status autoreporting by firmware, if detected"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:331
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:339
msgid ""
"Send emergency GCODES <code>M108</code> and <code>M410</code> without "
"waiting for acknowledgement, if detected as supported by the firmware"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:338
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:346
msgid "Support <code>busy</code> protocol, if detected"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:345
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:353
msgid "Simulate <code>ok</code> for <code>M29</code>"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:346
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:354
msgid ""
"Most Marlin forks that were derived from Marlin versions &lt; v1.1.0 do "
"not send an acknowledging <code>ok</code> for a <code>M29</code>. Check "
@@ -5683,40 +5691,40 @@ msgid ""
"to your printer's SD."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:351
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:359
msgid "Simulate <code>ok</code> for resend requests"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:354
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:362
msgid "If detected as necessary"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:362
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:370
msgid ""
"Some Marlin forks lack an acknowledging <code>ok</code> with their resend"
" requests. Set this to \"always\" or \"if detected as necessary\" if you "
"run into communication stalls on resend requests."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:369
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:377
msgid "Protocol fine tuning"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:373
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:381
msgid "Wait for <code>start</code> on connect"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:374
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:382
msgid ""
"Try checking this if you run into connection timeouts due to your printer"
" taking too long to respond to OctoPrint's handshake attempts on connect."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:379
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:387
msgid "Blocked commands"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:382
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390
msgid ""
"Use this to specify commands that should never be sent to the printer. "
"Just the G or M code, comma separated. Defaults to <code>M0</code> and "
@@ -5724,22 +5732,22 @@ msgid ""
"controller has been pressed if it receives either of those two commands."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:386
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:394
msgid "Pausing commands"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:389
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:397
msgid ""
"Use this to specify commands on which OctoPrint should pause the print "
"job. Just the G or M code, comma separated. Defaults to <code>M0</code>, "
"<code>M1</code> and <code>M25</code>."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:393
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:401
msgid "Emergency commands"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:396
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:404
msgid ""
"Use this to specify emergency commands which should jump any queues and -"
" if supported by the firmware - be force sent. Just the G or M code, "
@@ -5747,123 +5755,123 @@ msgid ""
"<code>M410</code>."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:401
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:409
msgid "Command to send to the firmware on first handshake attempt."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:402
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:410
msgid "\"Hello\" command"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:405
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:413
msgid ""
"Use this to specify a different command than the default "
"<code>M110</code> to send to the printer on initial connection to trigger"
" a communication handshake."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:408
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:416
msgid ""
"Commands that are know to run long and hence should suppress "
"communication timeouts from being triggered."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:409
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:417
msgid "Long running commands"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:412
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:420
msgid ""
"Use this to specify the commands known to take a long time to complete "
"without output from your printer and hence might cause timeout issues. "
"Just the G or M code, comma separated."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:415
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:423
msgid ""
"Commands that always require a line number and checksum to be sent with "
"them."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:416
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:424
msgid "Commands that always require a checksum"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:419
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:427
msgid ""
"Use this to specify which commands <strong>always</strong> need to be "
"sent with a checksum. Comma separated list."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:422
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:430
msgid "ok buffer size"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:423
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:431
msgid "<code>ok</code> buffer size"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:426
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:434
msgid "Only modify if told to do so"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:435
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:443
msgid "Error handling"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:437
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:445
msgid "What to do on a firmware error (<code>Error:</code> or <code>!!</code>)"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:440
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:448
msgid "Disconnect from the printer"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:443
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:451
msgid "Cancel any ongoing prints but stay connected to the printer"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:444
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:452
msgid ""
"Please note that if you choose this, OctoPrint will still disconnect from"
" the printer in case of <em>fatal</em> errors reported by your firmware "
"(e.g. <code>kill() called</code>, <code>fatal:</code>)."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:448
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:456
msgid ""
"Only choose this if your firmware sends error messages that are not "
"actual errors. Might mask printer issues (even fatal errors!), be "
"careful!"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:454
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:462
msgid "Send <code>M112</code> on disconnect due to error"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:455
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:463
msgid ""
"If this is checked, OctoPrint will try to send an <code>M112</code> prior"
" to a disconnect due to a (fatal) error in order to disable heaters and "
"motors."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:463
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:471
msgid "Log position on pause"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:464
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:472
msgid ""
"If you disable this, the <code>pause_position</code> placeholders in your"
" pause/resume GCODE scripts will stay unpopulated! However, pausing speed"
" might improve slightly."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:472
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:480
msgid "Log position on cancel"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:473
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:481
msgid ""
"If you disable this, the <code>cancel_position</code> placeholders in "
"your cancel GCODE script and the corresponding data in the print recovery"
@@ -5871,25 +5879,25 @@ msgid ""
"slightly."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:478
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:486
msgid "Attempt to abort any blocking heatups on cancel via <code>M108</code>."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:479
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:487
msgid ""
"Uncheck this if your firmware doesn't support <code>M108</code> for "
"aborting blocking heatups!"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:484
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:492
msgid "Sanity Checking"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:487
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:495
msgid "Sanity check tool commands"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:488
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:496
msgid ""
"If enabled, OctoPrint will not send tool commands to your printer that "
"exceed the number of extruders configured in the active printer profile, "