Merge branch 'devel' of github.com:foosel/OctoPrint into dev/permission
This commit is contained in:
commit
667473f90e
42 files changed
+723
-437
No files matched your search
@@ -74,6 +74,7 @@ date of first contribution):
|
||||
* [Mathias Rangel Wulff](https://github.com/mathiasrw)
|
||||
* [Clemens Niemeyer](https://github.com/clemniem)
|
||||
* ["I-am-me"](https://github.com/I-am-me)
|
||||
* [J-J Heinonen](https://github.com/jammi)
|
||||
|
||||
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
|
||||
[Daid Braam](https://github.com/daid). Parts of its communication layer and
|
||||
|
||||
@@ -12,6 +12,7 @@ or **[creating pull requests](#pull-requests)**.
|
||||
* [Where can I find which version and branch I'm on?](#where-can-i-find-which-version-and-branch-im-on)
|
||||
* [Where can I find those log files you keep talking about?](#where-can-i-find-those-log-files-you-keep-talking-about)
|
||||
* [Where can I find my browser's error console?](#where-can-i-find-my-browsers-error-console)
|
||||
* [Setting up a development environment](#setting-up-a-development-environment)
|
||||
* [Pull requests](#pull-requests)
|
||||
* [What do the branches mean?](#what-do-the-branches-mean)
|
||||
* [How OctoPrint is versioned](#how-octoprint-is-versioned)
|
||||
@@ -235,6 +236,10 @@ find information on how to do just that in the
|
||||
|
||||
See [How to open the Javascript Console in different browsers](https://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)
|
||||
|
||||
## Setting up a development environment
|
||||
|
||||
See [the corresponding chapter in the documentation](http://docs.octoprint.org/en/master/development/index.html#setting-up-a-development-environment).
|
||||
|
||||
## Pull requests
|
||||
|
||||
1. If you want to add a new feature to OctoPrint, **please always first
|
||||
|
||||
@@ -86,27 +86,27 @@ following usage examples assume that said `octoprint` script is on your `PATH`.
|
||||
|
||||
You can start the server via
|
||||
|
||||
octoprint
|
||||
octoprint serve
|
||||
|
||||
By default it binds to all interfaces on port 5000 (so pointing your browser to `http://127.0.0.1:5000`
|
||||
will do the trick). If you want to change that, use the additional command line parameters `host` and `port`,
|
||||
which accept the host ip to bind to and the numeric port number respectively. If for example you want the server
|
||||
to only listen on the local interface on port 8080, the command line would be
|
||||
|
||||
octoprint --host=127.0.0.1 --port=8080
|
||||
octoprint serve --host=127.0.0.1 --port=8080
|
||||
|
||||
Alternatively, the host and port on which to bind can be defined via the configuration.
|
||||
|
||||
If you want to run OctoPrint as a daemon (only supported on Linux), use
|
||||
|
||||
octoprint --daemon {start|stop|restart} [--pid PIDFILE]
|
||||
octoprint daemon {start|stop|restart} [--pid PIDFILE]
|
||||
|
||||
If you do not supply a custom pidfile location via `--pid PIDFILE`, it will be created at `/tmp/octoprint.pid`.
|
||||
|
||||
You can also specify the configfile or the base directory (for basing off the `uploads`, `timelapse` and `logs` folders),
|
||||
e.g.:
|
||||
|
||||
octoprint --config /path/to/another/config.yaml --basedir /path/to/my/basedir
|
||||
octoprint serve --config /path/to/another/config.yaml --basedir /path/to/my/basedir
|
||||
|
||||
See `octoprint --help` for further information.
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ IDE Setup
|
||||
PyCharm
|
||||
.......
|
||||
|
||||
- "File" > "Open ...", select OctoPrint checkout folder (e.g. ``~/devel/OctoPrint/venv`` or ``C:\Devel\OctoPrint``)
|
||||
- "File" > "Open ...", select OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``)
|
||||
- "File" > "Settings ..." > "Project: OctoPrint" > "Project Interpreter" > "Add local ...", select OctoPrint venv
|
||||
folder (e.g. ``~/devel/OctoPrint/venv`` or ``C:\Devel\OctoPrint\venv``)
|
||||
- Right click "src" in project tree, mark as source folder
|
||||
|
||||
+10
-9
@@ -13,7 +13,7 @@
|
||||
# /etc/default/octoprint.
|
||||
### END INIT INFO
|
||||
|
||||
# Author: Sami Olmari
|
||||
# Author: Sami Olmari & Gina Häußge
|
||||
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
DESC="OctoPrint Daemon"
|
||||
@@ -21,9 +21,14 @@ NAME="OctoPrint"
|
||||
PKGNAME=octoprint
|
||||
PIDFILE=/var/run/$PKGNAME.pid
|
||||
SCRIPTNAME=/etc/init.d/$PKGNAME
|
||||
DEFAULTS=/etc/default/$PKGNAME
|
||||
|
||||
# Read configuration variable file if it is present
|
||||
[ -r /etc/default/$PKGNAME ] && . /etc/default/$PKGNAME
|
||||
[ -r $DEFAULTS ] && . $DEFAULTS
|
||||
|
||||
# Define LSB log_* functions.
|
||||
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
# Exit if the DAEMON is not set
|
||||
if [ -z "$DAEMON" ]
|
||||
@@ -38,10 +43,6 @@ fi
|
||||
# Load the VERBOSE setting and other rcS variables
|
||||
[ -f /etc/default/rcS ] && . /etc/default/rcS
|
||||
|
||||
# Define LSB log_* functions.
|
||||
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
if [ -z "$START" -o "$START" != "yes" ]
|
||||
then
|
||||
log_warning_msg "Not starting $PKGNAME, edit /etc/default/$PKGNAME to start it."
|
||||
@@ -55,12 +56,12 @@ then
|
||||
fi
|
||||
|
||||
COMMAND_ARGS=
|
||||
if [ -z "$BASEDIR" ]
|
||||
if [ -n "$BASEDIR" ]
|
||||
then
|
||||
COMMAND_ARGS="--basedir $BASEDIR $COMMAND_ARGS"
|
||||
fi
|
||||
|
||||
if [ -z "$CONFIGFILE" ]
|
||||
if [ -n "$CONFIGFILE" ]
|
||||
then
|
||||
COMMAND_ARGS="--config $CONFIGFILE $COMMAND_ARGS"
|
||||
fi
|
||||
@@ -91,7 +92,7 @@ do_start()
|
||||
if [ $RETVAL != 0 ]; then
|
||||
start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile \
|
||||
--exec $DAEMON --chuid $OCTOPRINT_USER --user $OCTOPRINT_USER --umask $UMASK --nicelevel=$NICELEVEL \
|
||||
-- $COMMAND_ARGS serve $DAEMON_ARGS
|
||||
-- serve $COMMAND_ARGS $DAEMON_ARGS
|
||||
RETVAL="$?"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -15,6 +15,9 @@ import octoprint_setuptools
|
||||
# Requirements for our application
|
||||
INSTALL_REQUIRES = [
|
||||
"flask>=0.9,<0.11",
|
||||
"Jinja2>=2.8,<2.9", # Jinja 2.9 has breaking changes WRT template scope - we can't
|
||||
# guarantee backwards compatibility for plugins and such with that
|
||||
# version, hence we need to pin to a lower version for now. See #1697
|
||||
"werkzeug>=0.8.3,<0.9",
|
||||
"tornado==4.0.2", # pinned for now, we need to migrate to a newer tornado, but due
|
||||
# to some voodoo needed to get large streamed uploads and downloads
|
||||
@@ -43,7 +46,8 @@ INSTALL_REQUIRES = [
|
||||
"feedparser>=5.2.1,<5.3",
|
||||
"chainmap>=1.0.2,<1.1",
|
||||
"future>=0.15,<0.16",
|
||||
"scandir>=1.3,<1.4"
|
||||
"scandir>=1.3,<1.4",
|
||||
"websocket-client>=0.40,<0.41"
|
||||
]
|
||||
|
||||
# Additional requirements for optional install options
|
||||
|
||||
@@ -47,16 +47,24 @@ def hidden_option(*param_decls, **attrs):
|
||||
return f
|
||||
return decorator
|
||||
|
||||
#~~ helper for settings context options
|
||||
#~~ helper for setting context options
|
||||
|
||||
def set_ctx_obj_option(ctx, param, value):
|
||||
"""Helper for setting eager options on the context."""
|
||||
if ctx.obj is None:
|
||||
ctx.obj = OctoPrintContext()
|
||||
|
||||
if hasattr(ctx.obj, param.name):
|
||||
if value != param.default:
|
||||
setattr(ctx.obj, param.name, value)
|
||||
|
||||
#~~ helper for retrieving context options
|
||||
|
||||
def get_ctx_obj_option(ctx, key, default, include_parents=True):
|
||||
if include_parents and hasattr(ctx, "parent") and ctx.parent:
|
||||
fallback = get_ctx_obj_option(ctx.parent, key, default)
|
||||
else:
|
||||
fallback = default
|
||||
return getattr(ctx.obj, key, fallback)
|
||||
|
||||
#~~ helper for setting a lot of bulk options
|
||||
|
||||
def bulk_options(options):
|
||||
@@ -105,13 +113,13 @@ def standard_options(hidden=False):
|
||||
#~~ helper for settings legacy options we still have to support on "octoprint"
|
||||
|
||||
legacy_options = bulk_options([
|
||||
hidden_option("--host", type=click.STRING),
|
||||
hidden_option("--port", type=click.INT),
|
||||
hidden_option("--logging", type=click.Path()),
|
||||
hidden_option("--debug", "-d", is_flag=True),
|
||||
hidden_option("--daemon", type=click.Choice(["start", "stop", "restart"])),
|
||||
hidden_option("--pid", type=click.Path(), default="/tmp/octoprint.pid"),
|
||||
hidden_option("--iknowwhatimdoing", "allow_root", is_flag=True),
|
||||
hidden_option("--host", type=click.STRING, callback=set_ctx_obj_option),
|
||||
hidden_option("--port", type=click.INT, callback=set_ctx_obj_option),
|
||||
hidden_option("--logging", type=click.Path(), callback=set_ctx_obj_option),
|
||||
hidden_option("--debug", "-d", is_flag=True, callback=set_ctx_obj_option),
|
||||
hidden_option("--daemon", type=click.Choice(["start", "stop", "restart"]), callback=set_ctx_obj_option),
|
||||
hidden_option("--pid", type=click.Path(), default="/tmp/octoprint.pid", callback=set_ctx_obj_option),
|
||||
hidden_option("--iknowwhatimdoing", "allow_root", is_flag=True, callback=set_ctx_obj_option),
|
||||
])
|
||||
"""Legacy options available directly on the "octoprint" command in earlier versions.
|
||||
Kept available for reasons of backwards compatibility, but hidden from the
|
||||
@@ -129,7 +137,7 @@ from .config import config_commands
|
||||
sources=[server_commands, plugin_commands, dev_commands, client_commands, config_commands])
|
||||
@standard_options()
|
||||
@legacy_options
|
||||
@click.version_option(version=octoprint.__version__)
|
||||
@click.version_option(version=octoprint.__version__, allow_from_autoenv=False)
|
||||
@click.pass_context
|
||||
def octo(ctx, debug, host, port, logging, daemon, pid, allow_root):
|
||||
|
||||
@@ -146,7 +154,7 @@ def octo(ctx, debug, host, port, logging, daemon, pid, allow_root):
|
||||
"\"octoprint daemon start|stop|restart\" from now on")
|
||||
|
||||
from octoprint.cli.server import daemon_command
|
||||
ctx.invoke(daemon_command, debug=debug, pid=pid, daemon=daemon, allow_root=allow_root)
|
||||
ctx.invoke(daemon_command, debug=debug, host=host, port=port, logging=logging, allow_root=allow_root, command=daemon, pid=pid)
|
||||
else:
|
||||
click.echo("Starting the server via \"octoprint\" is deprecated, "
|
||||
"please use \"octoprint serve\" from now on.")
|
||||
|
||||
@@ -9,7 +9,7 @@ import json
|
||||
|
||||
import octoprint_client
|
||||
|
||||
from octoprint.cli import pass_octoprint_ctx, bulk_options, standard_options
|
||||
from octoprint.cli import get_ctx_obj_option
|
||||
from octoprint import init_settings, FatalStartupError
|
||||
|
||||
|
||||
@@ -35,13 +35,12 @@ def client_commands():
|
||||
@click.option("--httppass", type=click.STRING)
|
||||
@click.option("--https", is_flag=True)
|
||||
@click.option("--prefix", type=click.STRING)
|
||||
@pass_octoprint_ctx
|
||||
@click.pass_context
|
||||
def client(ctx, obj, host, port, httpuser, httppass, https, prefix):
|
||||
def client(ctx, host, port, httpuser, httppass, https, prefix):
|
||||
"""Basic API client."""
|
||||
try:
|
||||
obj.settings = init_settings(obj.basedir, obj.configfile)
|
||||
octoprint_client.init_client(obj.settings, https=https, httpuser=httpuser, httppass=httppass, host=host, port=port, prefix=prefix)
|
||||
ctx.obj.settings = init_settings(get_ctx_obj_option(ctx, "basedir", None), get_ctx_obj_option(ctx, "configfile", None))
|
||||
octoprint_client.init_client(ctx.obj.settings, https=https, httpuser=httpuser, httppass=httppass, host=host, port=port, prefix=prefix)
|
||||
except FatalStartupError as e:
|
||||
click.echo(e.message, err=True)
|
||||
click.echo("There was a fatal error initializing the client.", err=True)
|
||||
|
||||
+21
-24
@@ -9,7 +9,7 @@ import click
|
||||
import logging
|
||||
|
||||
from octoprint import init_settings, FatalStartupError
|
||||
from octoprint.cli import pass_octoprint_ctx, standard_options, bulk_options
|
||||
from octoprint.cli import pass_octoprint_ctx, standard_options, bulk_options, get_ctx_obj_option
|
||||
|
||||
import yaml
|
||||
import json
|
||||
@@ -46,13 +46,12 @@ def config_commands():
|
||||
pass
|
||||
|
||||
@config_commands.group(name="config")
|
||||
@pass_octoprint_ctx
|
||||
@click.pass_context
|
||||
def config(ctx, obj):
|
||||
def config(ctx):
|
||||
"""Basic config manipulation."""
|
||||
logging.basicConfig(level=logging.DEBUG if obj.verbosity > 0 else logging.WARN)
|
||||
logging.basicConfig(level=logging.DEBUG if get_ctx_obj_option(ctx, "verbosity", 0) > 0 else logging.WARN)
|
||||
try:
|
||||
obj.settings = init_settings(obj.basedir, obj.configfile)
|
||||
ctx.obj.settings = init_settings(get_ctx_obj_option(ctx, "basedir", None), get_ctx_obj_option(ctx, "configfile", None))
|
||||
except FatalStartupError as e:
|
||||
click.echo(e.message, err=True)
|
||||
click.echo("There was a fatal error initializing the client.", err=True)
|
||||
@@ -73,7 +72,7 @@ def config(ctx, obj):
|
||||
help="Parse value from json")
|
||||
@pass_octoprint_ctx
|
||||
@click.pass_context
|
||||
def set_command(ctx, obj, path, value, as_bool, as_float, as_int, as_json):
|
||||
def set_command(ctx, path, value, as_bool, as_float, as_int, as_json):
|
||||
"""Sets a config path to the provided value."""
|
||||
if as_json:
|
||||
try:
|
||||
@@ -90,16 +89,16 @@ def set_command(ctx, obj, path, value, as_bool, as_float, as_int, as_json):
|
||||
elif as_int:
|
||||
data_type = int
|
||||
|
||||
_set_helper(obj.settings, path, value, data_type=data_type)
|
||||
_set_helper(ctx.obj.settings, path, value, data_type=data_type)
|
||||
|
||||
|
||||
@config.command(name="remove")
|
||||
@standard_options(hidden=True)
|
||||
@click.argument("path", type=click.STRING)
|
||||
@pass_octoprint_ctx
|
||||
def remove_command(obj, path):
|
||||
@click.pass_context
|
||||
def remove_command(ctx, path):
|
||||
"""Removes a config path."""
|
||||
_set_helper(obj.settings, path, None)
|
||||
_set_helper(ctx.obj.settings, path, None)
|
||||
|
||||
|
||||
@config.command(name="append_value")
|
||||
@@ -107,9 +106,8 @@ def remove_command(obj, path):
|
||||
@click.argument("path", type=click.STRING)
|
||||
@click.argument("value", type=click.STRING)
|
||||
@click.option("--json", "as_json", is_flag=True)
|
||||
@pass_octoprint_ctx
|
||||
@click.pass_context
|
||||
def append_value_command(ctx, obj, path, value, as_json=False):
|
||||
def append_value_command(ctx, path, value, as_json=False):
|
||||
"""Appends value to list behind config path."""
|
||||
path = _to_settings_path(path)
|
||||
|
||||
@@ -120,7 +118,7 @@ def append_value_command(ctx, obj, path, value, as_json=False):
|
||||
click.echo(e.message, err=True)
|
||||
ctx.exit(-1)
|
||||
|
||||
current = obj.settings.get(path)
|
||||
current = ctx.obj.settings.get(path)
|
||||
if current is None:
|
||||
current = []
|
||||
if not isinstance(current, list):
|
||||
@@ -128,7 +126,7 @@ def append_value_command(ctx, obj, path, value, as_json=False):
|
||||
ctx.exit(-1)
|
||||
|
||||
current.append(value)
|
||||
_set_helper(obj.settings, path, current)
|
||||
_set_helper(ctx.obj.settings, path, current)
|
||||
|
||||
|
||||
@config.command(name="insert_value")
|
||||
@@ -137,9 +135,8 @@ def append_value_command(ctx, obj, path, value, as_json=False):
|
||||
@click.argument("index", type=click.INT)
|
||||
@click.argument("value", type=click.STRING)
|
||||
@click.option("--json", "as_json", is_flag=True)
|
||||
@pass_octoprint_ctx
|
||||
@click.pass_context
|
||||
def insert_value_command(ctx, obj, path, index, value, as_json=False):
|
||||
def insert_value_command(ctx, path, index, value, as_json=False):
|
||||
"""Inserts value at index of list behind config key."""
|
||||
path = _to_settings_path(path)
|
||||
|
||||
@@ -150,7 +147,7 @@ def insert_value_command(ctx, obj, path, index, value, as_json=False):
|
||||
click.echo(e.message, err=True)
|
||||
ctx.exit(-1)
|
||||
|
||||
current = obj.settings.get(path)
|
||||
current = ctx.obj.settings.get(path)
|
||||
if current is None:
|
||||
current = []
|
||||
if not isinstance(current, list):
|
||||
@@ -158,7 +155,7 @@ def insert_value_command(ctx, obj, path, index, value, as_json=False):
|
||||
ctx.exit(-1)
|
||||
|
||||
current.insert(index, value)
|
||||
_set_helper(obj.settings, path, current)
|
||||
_set_helper(ctx.obj.settings, path, current)
|
||||
|
||||
|
||||
@config.command(name="remove_value")
|
||||
@@ -168,7 +165,7 @@ def insert_value_command(ctx, obj, path, index, value, as_json=False):
|
||||
@click.option("--json", "as_json", is_flag=True)
|
||||
@pass_octoprint_ctx
|
||||
@click.pass_context
|
||||
def remove_value_command(ctx, obj, path, value, as_json=False):
|
||||
def remove_value_command(ctx, path, value, as_json=False):
|
||||
"""Removes value from list at config path."""
|
||||
path = _to_settings_path(path)
|
||||
|
||||
@@ -179,7 +176,7 @@ def remove_value_command(ctx, obj, path, value, as_json=False):
|
||||
click.echo(e.message, err=True)
|
||||
ctx.exit(-1)
|
||||
|
||||
current = obj.settings.get(path)
|
||||
current = ctx.obj.settings.get(path)
|
||||
if current is None:
|
||||
current = []
|
||||
if not isinstance(current, list):
|
||||
@@ -191,7 +188,7 @@ def remove_value_command(ctx, obj, path, value, as_json=False):
|
||||
ctx.exit()
|
||||
|
||||
current.remove(value)
|
||||
_set_helper(obj.settings, path, current)
|
||||
_set_helper(ctx.obj.settings, path, current)
|
||||
|
||||
|
||||
@config.command(name="get")
|
||||
@@ -203,11 +200,11 @@ def remove_value_command(ctx, obj, path, value, as_json=False):
|
||||
@click.option("--raw", "as_raw", is_flag=True,
|
||||
help="Output value as raw string representation")
|
||||
@standard_options(hidden=True)
|
||||
@pass_octoprint_ctx
|
||||
def get_command(obj, path, as_json=False, as_yaml=False, as_raw=False):
|
||||
@click.pass_context
|
||||
def get_command(ctx, path, as_json=False, as_yaml=False, as_raw=False):
|
||||
"""Retrieves value from config path."""
|
||||
path = _to_settings_path(path)
|
||||
value = obj.settings.get(path, merged=True)
|
||||
value = ctx.obj.settings.get(path, merged=True)
|
||||
|
||||
if as_json:
|
||||
output = json.dumps(value)
|
||||
|
||||
@@ -8,7 +8,7 @@ __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms
|
||||
import click
|
||||
import logging
|
||||
|
||||
from octoprint.cli import pass_octoprint_ctx, OctoPrintContext
|
||||
from octoprint.cli import pass_octoprint_ctx, OctoPrintContext, get_ctx_obj_option
|
||||
|
||||
#~~ "octoprint plugin:command" commands
|
||||
|
||||
@@ -50,8 +50,8 @@ class OctoPrintPluginCommands(click.MultiCommand):
|
||||
# context (basedir and configfile)
|
||||
from octoprint import init_settings, init_pluginsystem, FatalStartupError
|
||||
try:
|
||||
self.settings = init_settings(ctx.obj.basedir, ctx.obj.configfile)
|
||||
self.plugin_manager = init_pluginsystem(self.settings, safe_mode=ctx.obj.safe_mode)
|
||||
self.settings = init_settings(get_ctx_obj_option(ctx, "basedir", None), get_ctx_obj_option(ctx, "configfile", None))
|
||||
self.plugin_manager = init_pluginsystem(self.settings, safe_mode=get_ctx_obj_option(ctx, "safe_mode", False))
|
||||
except FatalStartupError as e:
|
||||
click.echo(e.message, err=True)
|
||||
click.echo("There was a fatal error initializing the settings or the plugin system.", err=True)
|
||||
|
||||
+54
-19
@@ -9,7 +9,7 @@ import click
|
||||
import logging
|
||||
import sys
|
||||
|
||||
from octoprint.cli import pass_octoprint_ctx, bulk_options, standard_options
|
||||
from octoprint.cli import bulk_options, standard_options, set_ctx_obj_option, get_ctx_obj_option
|
||||
|
||||
def run_server(basedir, configfile, host, port, debug, allow_root, logging_config, verbosity, safe_mode, octoprint_daemon=None):
|
||||
"""Initializes the environment and starts up the server."""
|
||||
@@ -69,51 +69,87 @@ def run_server(basedir, configfile, host, port, debug, allow_root, logging_confi
|
||||
#~~ server options
|
||||
|
||||
server_options = bulk_options([
|
||||
click.option("--host", type=click.STRING,
|
||||
click.option("--host", type=click.STRING, callback=set_ctx_obj_option,
|
||||
help="Specify the host on which to bind the server."),
|
||||
click.option("--port", type=click.INT,
|
||||
click.option("--port", type=click.INT, callback=set_ctx_obj_option,
|
||||
help="Specify the port on which to bind the server."),
|
||||
click.option("--logging", type=click.Path(),
|
||||
click.option("--logging", type=click.Path(), callback=set_ctx_obj_option,
|
||||
help="Specify the config file to use for configuring logging."),
|
||||
click.option("--iknowwhatimdoing", "allow_root", is_flag=True,
|
||||
click.option("--iknowwhatimdoing", "allow_root", is_flag=True, callback=set_ctx_obj_option,
|
||||
help="Allow OctoPrint to run as user root."),
|
||||
click.option("--debug", is_flag=True, help="Enable debug mode.")
|
||||
click.option("--debug", is_flag=True, callback=set_ctx_obj_option,
|
||||
help="Enable debug mode.")
|
||||
])
|
||||
"""Decorator to add the options shared among the server commands: ``--host``, ``--port``,
|
||||
``--logging``, ``--iknowwhatimdoing`` and ``--debug``."""
|
||||
|
||||
daemon_options = bulk_options([
|
||||
click.option("--pid", type=click.Path(), default="/tmp/octoprint.pid", callback=set_ctx_obj_option,
|
||||
help="Pidfile to use for daemonizing.")
|
||||
])
|
||||
"""Decorator to add the options for the daemon subcommand: ``--pid``."""
|
||||
|
||||
#~~ "octoprint serve" and "octoprint daemon" commands
|
||||
|
||||
@click.group()
|
||||
@pass_octoprint_ctx
|
||||
def server_commands(obj):
|
||||
def server_commands():
|
||||
pass
|
||||
|
||||
|
||||
@server_commands.command(name="serve")
|
||||
@server_options
|
||||
@standard_options(hidden=True)
|
||||
@pass_octoprint_ctx
|
||||
def serve_command(obj, host, port, logging, allow_root, debug):
|
||||
@click.pass_context
|
||||
def serve_command(ctx, **kwargs):
|
||||
"""Starts the OctoPrint server."""
|
||||
run_server(obj.basedir, obj.configfile, host, port, debug,
|
||||
allow_root, logging, obj.verbosity, obj.safe_mode)
|
||||
|
||||
def get_value(key):
|
||||
return get_ctx_obj_option(ctx, key, kwargs.get(key))
|
||||
|
||||
host = get_value("host")
|
||||
port = get_value("port")
|
||||
logging = get_value("logging")
|
||||
allow_root = get_value("allow_root")
|
||||
debug = get_value("debug")
|
||||
|
||||
basedir = get_value("basedir")
|
||||
configfile = get_value("configfile")
|
||||
verbosity = get_value("verbosity")
|
||||
safe_mode = get_value("safe_mode")
|
||||
|
||||
run_server(basedir, configfile, host, port, debug,
|
||||
allow_root, logging, verbosity, safe_mode)
|
||||
|
||||
|
||||
@server_commands.command(name="daemon")
|
||||
@click.option("--pid", type=click.Path(), default="/tmp/octoprint.pid",
|
||||
help="Pidfile to use for daemonizing.")
|
||||
@server_options
|
||||
@daemon_options
|
||||
@standard_options(hidden=True)
|
||||
@click.argument("command", type=click.Choice(["start", "stop", "restart", "status"]),
|
||||
metavar="start|stop|restart|status")
|
||||
@pass_octoprint_ctx
|
||||
def daemon_command(octoprint_ctx, pid, host, port, logging, allow_root, debug, command):
|
||||
@click.pass_context
|
||||
def daemon_command(ctx, command, **kwargs):
|
||||
"""
|
||||
Starts, stops or restarts in daemon mode.
|
||||
|
||||
Please note that daemon mode is only supported under Linux right now.
|
||||
"""
|
||||
|
||||
def get_value(key):
|
||||
return get_ctx_obj_option(ctx, key, kwargs.get(key))
|
||||
|
||||
host = get_value("host")
|
||||
port = get_value("port")
|
||||
logging = get_value("logging")
|
||||
allow_root = get_value("allow_root")
|
||||
debug = get_value("debug")
|
||||
pid = get_value("pid")
|
||||
|
||||
basedir = get_value("basedir")
|
||||
configfile = get_value("configfile")
|
||||
verbosity = get_value("verbosity")
|
||||
safe_mode = get_value("safe_mode")
|
||||
|
||||
if sys.platform == "darwin" or sys.platform == "win32":
|
||||
click.echo("Sorry, daemon mode is only supported under Linux right now",
|
||||
file=sys.stderr)
|
||||
@@ -144,9 +180,8 @@ def daemon_command(octoprint_ctx, pid, host, port, logging, allow_root, debug, c
|
||||
self._allow_root, self._logging_config, self._verbosity, self._safe_mode,
|
||||
octoprint_daemon=self)
|
||||
|
||||
octoprint_daemon = OctoPrintDaemon(pid, octoprint_ctx.basedir, octoprint_ctx.configfile,
|
||||
host, port, debug, allow_root, logging, octoprint_ctx.verbosity,
|
||||
octoprint_ctx.safe_mode)
|
||||
octoprint_daemon = OctoPrintDaemon(pid, basedir, configfile, host, port, debug, allow_root, logging, verbosity,
|
||||
safe_mode)
|
||||
|
||||
if command == "start":
|
||||
octoprint_daemon.start()
|
||||
|
||||
@@ -397,13 +397,10 @@ class FileManager(object):
|
||||
if hook_file_object is not None:
|
||||
file_object = hook_file_object
|
||||
file_path = self._storage(destination).add_file(path, file_object, links=links, printer_profile=printer_profile, allow_overwrite=allow_overwrite)
|
||||
absolute_path = self._storage(destination).path_on_disk(file_path)
|
||||
_, file_name = self._storage(destination).split_path(file_path)
|
||||
|
||||
if analysis is None:
|
||||
file_type = get_file_type(absolute_path)
|
||||
if file_type:
|
||||
queue_entry = QueueEntry(file_name, file_path, file_type[-1], destination, absolute_path, printer_profile)
|
||||
queue_entry = self._analysis_queue_entry(destination, file_path, printer_profile=printer_profile)
|
||||
if queue_entry:
|
||||
self._analysis_queue.enqueue(queue_entry, high_priority=True)
|
||||
else:
|
||||
self._add_analysis_result(destination, path, analysis)
|
||||
@@ -412,6 +409,8 @@ class FileManager(object):
|
||||
return file_path
|
||||
|
||||
def remove_file(self, destination, path):
|
||||
queue_entry = self._analysis_queue_entry(destination, path)
|
||||
self._analysis_queue.dequeue(queue_entry)
|
||||
self._storage(destination).remove_file(path)
|
||||
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
|
||||
|
||||
@@ -420,6 +419,8 @@ class FileManager(object):
|
||||
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
|
||||
|
||||
def move_file(self, destination, source, dst):
|
||||
queue_entry = self._analysis_queue_entry(destination, source)
|
||||
self._analysis_queue.dequeue(queue_entry)
|
||||
self._storage(destination).move_file(source, dst)
|
||||
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
|
||||
|
||||
@@ -429,7 +430,10 @@ class FileManager(object):
|
||||
return folder_path
|
||||
|
||||
def remove_folder(self, destination, path, recursive=True):
|
||||
self._analysis_queue.dequeue_folder(destination, path)
|
||||
self._analysis_queue.pause()
|
||||
self._storage(destination).remove_folder(path, recursive=recursive)
|
||||
self._analysis_queue.resume()
|
||||
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
|
||||
|
||||
def copy_folder(self, destination, source, dst):
|
||||
@@ -437,7 +441,10 @@ class FileManager(object):
|
||||
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
|
||||
|
||||
def move_folder(self, destination, source, dst):
|
||||
self._analysis_queue.dequeue_folder(destination, source)
|
||||
self._analysis_queue.pause()
|
||||
self._storage(destination).move_folder(source, dst)
|
||||
self._analysis_queue.resume()
|
||||
eventManager().fire(Events.UPDATED_FILES, dict(type="printables"))
|
||||
|
||||
def get_metadata(self, destination, path):
|
||||
@@ -542,3 +549,15 @@ class FileManager(object):
|
||||
def _on_analysis_finished(self, entry, result):
|
||||
self._add_analysis_result(entry.location, entry.path, result)
|
||||
|
||||
def _analysis_queue_entry(self, destination, path, printer_profile=None):
|
||||
if printer_profile is None:
|
||||
printer_profile = self._printer_profile_manager.get_current_or_default()
|
||||
|
||||
absolute_path = self._storage(destination).path_on_disk(path)
|
||||
_, file_name = self._storage(destination).split_path(path)
|
||||
file_type = get_file_type(absolute_path)
|
||||
|
||||
if file_type:
|
||||
return QueueEntry(file_name, path, file_type[-1], destination, absolute_path, printer_profile)
|
||||
else:
|
||||
return None
|
||||
@@ -17,6 +17,7 @@ import collections
|
||||
import time
|
||||
|
||||
from octoprint.events import Events, eventManager
|
||||
from octoprint.settings import settings
|
||||
|
||||
import octoprint.util.gcodeInterpreter as gcodeInterpreter
|
||||
|
||||
@@ -40,6 +41,12 @@ class QueueEntry(collections.namedtuple("QueueEntry", "name, path, type, locatio
|
||||
return "{location}:{path}".format(location=self.location, path=self.path)
|
||||
|
||||
|
||||
class AnalysisAborted(Exception):
|
||||
def __init__(self, reenqueue=True, *args, **kwargs):
|
||||
Exception.__init__(self, *args, **kwargs)
|
||||
self.reenqueue = reenqueue
|
||||
|
||||
|
||||
class AnalysisQueue(object):
|
||||
"""
|
||||
OctoPrint's :class:`AnalysisQueue` can manage various :class:`AbstractAnalysisQueue` implementations, mapped
|
||||
@@ -77,6 +84,16 @@ class AnalysisQueue(object):
|
||||
self._queues[entry.type].enqueue(entry, high_priority=high_priority)
|
||||
return True
|
||||
|
||||
def dequeue(self, entry):
|
||||
if not entry.type in self._queues:
|
||||
return False
|
||||
|
||||
self._queues[entry.type].dequeue(entry.location, entry.path)
|
||||
|
||||
def dequeue_folder(self, destination, path):
|
||||
for queue in self._queues.values():
|
||||
queue.dequeue_folder(destination, path)
|
||||
|
||||
def pause(self):
|
||||
for queue in self._queues.values():
|
||||
queue.pause()
|
||||
@@ -112,8 +129,10 @@ class AbstractAnalysisQueue(object):
|
||||
.. automethod:: _do_abort
|
||||
"""
|
||||
|
||||
LOW_PRIO = 0
|
||||
HIGH_PRIO = 100
|
||||
LOW_PRIO = 100
|
||||
LOW_PRIO_ABORTED = 75
|
||||
HIGH_PRIO = 50
|
||||
HIGH_PRIO_ABORTED = 0
|
||||
|
||||
def __init__(self, finished_callback):
|
||||
self._logger = logging.getLogger(__name__)
|
||||
@@ -123,11 +142,15 @@ class AbstractAnalysisQueue(object):
|
||||
self._active = threading.Event()
|
||||
self._active.set()
|
||||
|
||||
self._done = threading.Event()
|
||||
self._done.clear()
|
||||
|
||||
self._currentFile = None
|
||||
self._currentProgress = None
|
||||
|
||||
self._queue = queue.PriorityQueue()
|
||||
self._current = None
|
||||
self._current_highprio = False
|
||||
|
||||
self._worker = threading.Thread(target=self._work)
|
||||
self._worker.daemon = True
|
||||
@@ -153,7 +176,24 @@ class AbstractAnalysisQueue(object):
|
||||
self._logger.debug("Adding entry {entry} to analysis queue with low priority".format(entry=entry))
|
||||
prio = self.__class__.LOW_PRIO
|
||||
|
||||
self._queue.put((prio, entry))
|
||||
self._queue.put((prio, entry, high_priority))
|
||||
if high_priority and self._current is not None and not self._current_highprio:
|
||||
self._logger.debug("Aborting current analysis in favor of high priority one")
|
||||
self._do_abort()
|
||||
|
||||
def dequeue(self, location, path):
|
||||
if self._current is not None and self._current.location == location \
|
||||
and self._current.path == path:
|
||||
self._do_abort(reenqueue=False)
|
||||
self._done.wait()
|
||||
self._done.clear()
|
||||
|
||||
def dequeue_folder(self, location, path):
|
||||
if self._current is not None and self._current.location == location \
|
||||
and self._current.path.startswith(path + "/"):
|
||||
self._do_abort(reenqueue=False)
|
||||
self._done.wait()
|
||||
self._done.clear()
|
||||
|
||||
def pause(self):
|
||||
"""
|
||||
@@ -175,24 +215,23 @@ class AbstractAnalysisQueue(object):
|
||||
self._active.set()
|
||||
|
||||
def _work(self):
|
||||
aborted = None
|
||||
while True:
|
||||
if aborted is not None:
|
||||
entry = aborted
|
||||
aborted = None
|
||||
self._logger.debug("Got an aborted analysis job for entry {entry}, processing this instead of first item in queue".format(**locals()))
|
||||
else:
|
||||
(priority, entry) = self._queue.get()
|
||||
self._logger.debug("Processing entry {entry} from queue (priority {priority})".format(**locals()))
|
||||
|
||||
(priority, entry, high_priority) = self._queue.get()
|
||||
self._logger.debug("Processing entry {} from queue (priority {})".format(entry, priority))
|
||||
self._active.wait()
|
||||
|
||||
try:
|
||||
self._analyze(entry, high_priority=(priority == self.__class__.HIGH_PRIO))
|
||||
self._analyze(entry, high_priority=high_priority)
|
||||
self._queue.task_done()
|
||||
except gcodeInterpreter.AnalysisAborted:
|
||||
aborted = entry
|
||||
self._logger.debug("Running analysis of entry {entry} aborted".format(**locals()))
|
||||
self._done.set()
|
||||
except AnalysisAborted as ex:
|
||||
if ex.reenqueue:
|
||||
self._queue.put((self.__class__.HIGH_PRIO_ABORTED if high_priority else self.__class__.LOW_PRIO_ABORTED,
|
||||
entry,
|
||||
high_priority))
|
||||
self._logger.debug("Running analysis of entry {} aborted".format(entry))
|
||||
self._queue.task_done()
|
||||
self._done.set()
|
||||
else:
|
||||
time.sleep(1.0)
|
||||
|
||||
@@ -202,10 +241,12 @@ class AbstractAnalysisQueue(object):
|
||||
return
|
||||
|
||||
self._current = entry
|
||||
self._current_highprio = high_priority
|
||||
self._current_progress = 0
|
||||
|
||||
try:
|
||||
self._logger.info("Starting analysis of {entry}".format(**locals()))
|
||||
start_time = time.time()
|
||||
self._logger.info("Starting analysis of {}".format(entry))
|
||||
eventManager().fire(Events.METADATA_ANALYSIS_STARTED, {"name": entry.name,
|
||||
"path": entry.path,
|
||||
"origin": entry.location,
|
||||
@@ -217,7 +258,7 @@ class AbstractAnalysisQueue(object):
|
||||
result = self._do_analysis(high_priority=high_priority)
|
||||
except TypeError:
|
||||
result = self._do_analysis()
|
||||
self._logger.debug("Analysis of entry {entry} finished, notifying callback".format(**locals()))
|
||||
self._logger.info("Analysis of entry {} finished, needed {:.2f}s".format(entry, time.time() - start_time))
|
||||
self._finished_callback(self._current, result)
|
||||
finally:
|
||||
self._current = None
|
||||
@@ -237,7 +278,7 @@ class AbstractAnalysisQueue(object):
|
||||
"""
|
||||
return None
|
||||
|
||||
def _do_abort(self):
|
||||
def _do_abort(self, reenqueue=True):
|
||||
"""
|
||||
Aborts analysis of the current entry. Needs to be overridden by sub classes.
|
||||
"""
|
||||
@@ -266,11 +307,11 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue):
|
||||
|
||||
def _do_analysis(self, high_priority=False):
|
||||
try:
|
||||
def throttle():
|
||||
time.sleep(0.01)
|
||||
|
||||
throttle_callback = throttle
|
||||
if high_priority:
|
||||
throttle = settings().getFloat(["gcodeAnalysis", "throttle_highprio"]) if high_priority else settings().getFloat(["gcodeAnalysis", "throttle_normalprio"])
|
||||
if throttle > 0:
|
||||
def throttle_callback():
|
||||
time.sleep(throttle)
|
||||
else:
|
||||
throttle_callback = None
|
||||
|
||||
self._gcode = gcodeInterpreter.gcode()
|
||||
@@ -289,9 +330,11 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue):
|
||||
"volume": self._gcode.extrusionVolume[i]
|
||||
}
|
||||
return result
|
||||
except gcodeInterpreter.AnalysisAborted as ex:
|
||||
raise AnalysisAborted(reenqueue=ex.reenqueue)
|
||||
finally:
|
||||
self._gcode = None
|
||||
|
||||
def _do_abort(self):
|
||||
def _do_abort(self, reenqueue=True):
|
||||
if self._gcode:
|
||||
self._gcode.abort()
|
||||
self._gcode.abort(reenqueue=reenqueue)
|
||||
@@ -473,10 +473,10 @@ class LocalFileStorage(StorageInterface):
|
||||
if not metadata:
|
||||
metadata = dict()
|
||||
for entry in scandir(path):
|
||||
if is_hidden_path(entry.name) or not octoprint.filemanager.valid_file_type(entry.name):
|
||||
if is_hidden_path(entry.name):
|
||||
continue
|
||||
|
||||
if entry.is_file():
|
||||
if entry.is_file() and octoprint.filemanager.valid_file_type(entry.name):
|
||||
if not entry.name in metadata or not isinstance(metadata[entry.name], dict) or not "analysis" in metadata[entry.name]:
|
||||
printer_profile_rels = self.get_link(entry.path, "printerprofile")
|
||||
if printer_profile_rels:
|
||||
@@ -511,7 +511,7 @@ class LocalFileStorage(StorageInterface):
|
||||
filepath = self.sanitize_path(filepath)
|
||||
path = self.sanitize_path(path)
|
||||
|
||||
return filepath == path or filepath.startswith(path + "/")
|
||||
return filepath == path or filepath.startswith(path + os.sep)
|
||||
|
||||
def file_exists(self, path):
|
||||
path, name = self.sanitize(path)
|
||||
|
||||
@@ -266,6 +266,7 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
|
||||
|
||||
working_dir = os.path.dirname(executable)
|
||||
|
||||
slicing_profile = Profile(self._load_profile(profile_path), printer_profile, posX, posY)
|
||||
engine_settings = self._convert_to_engine(profile_path, printer_profile, posX, posY)
|
||||
|
||||
# Start building the argument list for the CuraEngine command execution
|
||||
@@ -375,11 +376,11 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
|
||||
if not tool_key in analysis["filament"]:
|
||||
analysis["filament"][tool_key] = dict()
|
||||
|
||||
if profile.get_float("filament_diameter") != None:
|
||||
if profile.get("gcode_flavor") == GcodeFlavors.ULTIGCODE or profile.get("gcode_flavor") == GcodeFlavors.REPRAP_VOLUME:
|
||||
analysis["filament"][tool_key] = _get_usage_from_volume(filament, profile.get_float("filament_diameter"))
|
||||
if slicing_profile.get_float("filament_diameter") is not None:
|
||||
if slicing_profile.get("gcode_flavor") == GcodeFlavors.ULTIGCODE or slicing_profile.get("gcode_flavor") == GcodeFlavors.REPRAP_VOLUME:
|
||||
analysis["filament"][tool_key] = _get_usage_from_volume(filament, slicing_profile.get_float("filament_diameter"))
|
||||
else:
|
||||
analysis["filament"][tool_key] = _get_usage_from_length(filament, profile.get_float("filament_diameter"))
|
||||
analysis["filament"][tool_key] = _get_usage_from_length(filament, slicing_profile.get_float("filament_diameter"))
|
||||
|
||||
except:
|
||||
pass
|
||||
|
||||
@@ -63,12 +63,14 @@ defaults = dict(
|
||||
solid_top=True,
|
||||
solid_bottom=True,
|
||||
fill_overlap=15,
|
||||
perimeter_before_infill=False,
|
||||
|
||||
# speeds
|
||||
print_speed=50.0,
|
||||
travel_speed=150.0,
|
||||
bottom_layer_speed=20.0,
|
||||
infill_speed=0.0,
|
||||
solidarea_speed=0.0,
|
||||
outer_shell_speed=0.0,
|
||||
inner_shell_speed=0.0,
|
||||
|
||||
@@ -117,8 +119,11 @@ defaults = dict(
|
||||
raft_base_linewidth=1.0,
|
||||
raft_interface_thickness=0.27,
|
||||
raft_interface_linewidth=0.4,
|
||||
raft_airgap_all=0.0,
|
||||
raft_airgap=0.22,
|
||||
raft_surface_layers=2,
|
||||
raft_surface_thickness=0.27,
|
||||
raft_surface_linewidth=0.4,
|
||||
|
||||
# repairing
|
||||
fix_horrible_union_all_type_a=True,
|
||||
@@ -754,9 +759,13 @@ class Profile(object):
|
||||
|
||||
prefix = ""
|
||||
|
||||
gcode_parameter_key = "S"
|
||||
if self.get("gcode_flavor") == GcodeFlavors.MACH3:
|
||||
gcode_parameter_key = "P"
|
||||
|
||||
e_steps = self.get_float("steps_per_e")
|
||||
if e_steps > 0:
|
||||
prefix += "M92 E{e_steps}\n" % (e_steps)
|
||||
prefix += "M92 E{e_steps}\n".format(e_steps=e_steps)
|
||||
temp = self.get_float("print_temperature")
|
||||
|
||||
bed_temp = 0
|
||||
@@ -765,30 +774,30 @@ class Profile(object):
|
||||
include_bed_temp = bed_temp > 0 and not "{print_bed_temperature}" in Profile.regex_strip_comments.sub("", contents)
|
||||
|
||||
if include_bed_temp:
|
||||
prefix += "M140 S{bed_temp}\n".format(bed_temp=bed_temp)
|
||||
prefix += "M140 {param}{bed_temp}\n".format(param=gcode_parameter_key, bed_temp=bed_temp)
|
||||
|
||||
if temp > 0 and not "{print_temperature}" in Profile.regex_strip_comments.sub("", contents):
|
||||
if extruder_count > 0:
|
||||
def temp_line(temp, extruder, template):
|
||||
def temp_line(temp, extruder, param, template):
|
||||
t = temp
|
||||
if extruder > 0:
|
||||
print_temp = self.get_float("print_temperature%d" % (extruder + 1))
|
||||
if print_temp > 0:
|
||||
t = print_temp
|
||||
return template.format(extruder=extruder, temp=t)
|
||||
return template.format(extruder=extruder, temp=t, param=param)
|
||||
|
||||
prefix_preheat = ""
|
||||
prefix_waitheat = ""
|
||||
for n in range(0, extruder_count):
|
||||
if n > 0:
|
||||
prefix_preheat += temp_line(temp, n, "M104 T{extruder} S{temp}\n")
|
||||
prefix_waitheat += temp_line(temp, n, "M109 T{extruder} S{temp}\n")
|
||||
prefix_preheat += temp_line(temp, n, gcode_parameter_key, "M104 T{extruder} {param}{temp}\n")
|
||||
prefix_waitheat += temp_line(temp, n, gcode_parameter_key, "M109 T{extruder} {param}{temp}\n")
|
||||
prefix += prefix_preheat + prefix_waitheat + "T0\n"
|
||||
else:
|
||||
prefix += "M109 S{temp}\n".format(temp=temp)
|
||||
prefix += "M109 {param}{temp}\n".format(param=gcode_parameter_key, temp=temp)
|
||||
|
||||
if include_bed_temp:
|
||||
prefix += "M190 S{bed_temp}\n".format(bed_temp=bed_temp)
|
||||
prefix += "M190 {param}{bed_temp}\n".format(param=gcode_parameter_key, bed_temp=bed_temp)
|
||||
|
||||
return prefix
|
||||
|
||||
@@ -822,7 +831,7 @@ class Profile(object):
|
||||
if layer_height == 0.0:
|
||||
return 1
|
||||
import math
|
||||
return int(math.ceil(solid_thickness / (layer_height - 0.0001)))
|
||||
return int(math.ceil((solid_thickness - 0.0001) / layer_height))
|
||||
|
||||
def calculate_minimal_extruder_count(self):
|
||||
extruder_count = self.get("extruder_amount")
|
||||
@@ -871,12 +880,14 @@ class Profile(object):
|
||||
"downSkinCount": solid_layer_count if self.get_boolean("solid_bottom") else 0,
|
||||
"upSkinCount": solid_layer_count if self.get_boolean("solid_top") else 0,
|
||||
"infillOverlap": self.get_int("fill_overlap"),
|
||||
"perimeterBeforeInfill": 1 if self.get_boolean("perimeter_before_infill") else 0,
|
||||
"initialSpeedupLayers": int(4),
|
||||
"initialLayerSpeed": self.get_int("bottom_layer_speed"),
|
||||
"printSpeed": self.get_int("print_speed"),
|
||||
"infillSpeed": self.get_int("infill_speed") if self.get_int("infill_speed") > 0 else self.get_int("print_speed"),
|
||||
"inset0Speed": self.get_int("outer_shell_speed") if self.get_int("outer_shell_speed") > 0 else self.get_int("print_speed"),
|
||||
"insetXSpeed": self.get_int("inner_shell_speed") if self.get_int("inner_shell_speed") > 0 else self.get_int("print_speed"),
|
||||
"skinSpeed": self.get_int("solidarea_speed") if self.get_int("solidarea_speed") > 0 > 0 else self.get_int("print_speed"),
|
||||
"moveSpeed": self.get_int("travel_speed"),
|
||||
"fanSpeedMin": self.get_int("fan_speed") if self.get_boolean("fan_enabled") else 0,
|
||||
"fanSpeedMax": self.get_int("fan_speed_max") if self.get_boolean("fan_enabled") else 0,
|
||||
@@ -892,13 +903,14 @@ class Profile(object):
|
||||
"retractionAmountExtruderSwitch": self.get_microns("retraction_dual_amount"),
|
||||
"retractionZHop": self.get_microns("retraction_hop"),
|
||||
"minimalExtrusionBeforeRetraction": self.get_microns("retraction_minimal_extrusion"),
|
||||
"enableCombing": 1 if self.get("retraction_combing") == RetractionCombingTypes.ALL else (2 if self.get("retraction_combing") == RetractionCombingTypes.NO_SKIN else 0),
|
||||
"multiVolumeOverlap": self.get_microns("overlap_dual"),
|
||||
"objectSink": max(0, self.get_microns("object_sink")),
|
||||
"minimalLayerTime": self.get_int("cool_min_layer_time"),
|
||||
"minimalFeedrate": self.get_int("cool_min_feedrate"),
|
||||
"coolHeadLift": 1 if self.get_boolean("cool_head_lift") else 0,
|
||||
|
||||
"enableCombing": 1 if self.get("retraction_combing") == RetractionCombingTypes.ALL else (2 if self.get("retraction_combing") == RetractionCombingTypes.NO_SKIN else 0),
|
||||
|
||||
# model positioning
|
||||
"posx": self.get_pos_x() * 1000, # in microns
|
||||
"posy": self.get_pos_y() * 1000, # in microns
|
||||
@@ -952,12 +964,13 @@ class Profile(object):
|
||||
settings["raftInterfaceThickness"] = self.get_microns("raft_interface_thickness")
|
||||
settings["raftInterfaceLinewidth"] = self.get_microns("raft_interface_linewidth")
|
||||
settings["raftInterfaceLineSpacing"] = self.get_microns("raft_interface_linewidth") * 2
|
||||
settings["raftAirGapLayer0"] = self.get_microns("raft_airgap")
|
||||
settings["raftAirGapLayer0"] = self.get_microns("raft_airgap") + self.get_microns("raft_airgap_all")
|
||||
settings["raftAirGap"] = self.get_microns("raft_airgap_all")
|
||||
settings["raftBaseSpeed"] = self.get_int("bottom_layer_speed")
|
||||
settings["raftFanSpeed"] = 100
|
||||
settings["raftSurfaceThickness"] = settings["raftInterfaceThickness"]
|
||||
settings["raftSurfaceLinewidth"] = int(edge_width * 1000)
|
||||
settings["raftSurfaceLineSpacing"] = int(edge_width * 1000 * 0.9)
|
||||
settings["raftFanSpeed"] = 0
|
||||
settings["raftSurfaceThickness"] = self.get_microns("raft_surface_thickness")
|
||||
settings["raftSurfaceLinewidth"] = self.get_microns("raft_surface_linewidth")
|
||||
settings["raftSurfaceLineSpacing"] = self.get_microns("raft_surface_linewidth")
|
||||
settings["raftSurfaceLayers"] = self.get_int("raft_surface_layers")
|
||||
settings["raftSurfaceSpeed"] = self.get_int("bottom_layer_speed")
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
|
||||
#~~ progress plugin reporting
|
||||
|
||||
def _reportPrintProgressToPlugins(self, progress):
|
||||
if not progress or not self._selectedFile or not "sd" in self._selectedFile or not "filename" in self._selectedFile:
|
||||
if progress is None or not self._selectedFile or not "sd" in self._selectedFile or not "filename" in self._selectedFile:
|
||||
return
|
||||
|
||||
storage = "sdcard" if self._selectedFile["sd"] else "local"
|
||||
|
||||
@@ -252,8 +252,8 @@ def _verifyFolderExists(origin, foldername):
|
||||
|
||||
|
||||
def _isBusy(target, path):
|
||||
currentOrigin, currentFilename = _getCurrentFile()
|
||||
if currentFilename is not None and currentOrigin == target and fileManager.file_in_path(FileDestinations.LOCAL, path, currentFilename) and (printer.is_printing() or printer.is_paused()):
|
||||
currentOrigin, currentPath = _getCurrentFile()
|
||||
if currentPath is not None and currentOrigin == target and fileManager.file_in_path(FileDestinations.LOCAL, path, currentPath) and (printer.is_printing() or printer.is_paused()):
|
||||
return True
|
||||
|
||||
return any(target == x[0] and fileManager.file_in_path(FileDestinations.LOCAL, path, x[1]) for x in fileManager.get_busy_files())
|
||||
@@ -717,8 +717,8 @@ def deleteGcodeFile(filename, target):
|
||||
return make_response("Trying to delete a file that is currently in use: %s" % filename, 409)
|
||||
|
||||
# deselect the file if it's currently selected
|
||||
currentOrigin, currentFilename = _getCurrentFile()
|
||||
if currentFilename is not None and currentOrigin == target and filename == currentFilename:
|
||||
currentOrigin, currentPath = _getCurrentFile()
|
||||
if currentPath is not None and currentOrigin == target and filename == currentPath:
|
||||
printer.unselect_file()
|
||||
|
||||
# delete it
|
||||
@@ -735,8 +735,8 @@ def deleteGcodeFile(filename, target):
|
||||
return make_response("Trying to delete a folder that contains a file that is currently in use: %s" % filename, 409)
|
||||
|
||||
# deselect the file if it's currently selected
|
||||
currentOrigin, currentFilename = _getCurrentFile()
|
||||
if currentFilename is not None and currentOrigin == target and fileManager.file_in_path(target, filename, currentFilename):
|
||||
currentOrigin, currentPath = _getCurrentFile()
|
||||
if currentPath is not None and currentOrigin == target and fileManager.file_in_path(target, filename, currentPath):
|
||||
printer.unselect_file()
|
||||
|
||||
# delete it
|
||||
@@ -746,8 +746,8 @@ def deleteGcodeFile(filename, target):
|
||||
|
||||
def _getCurrentFile():
|
||||
currentJob = printer.get_current_job()
|
||||
if currentJob is not None and "file" in currentJob.keys() and "name" in currentJob["file"] and "origin" in currentJob["file"]:
|
||||
return currentJob["file"]["origin"], currentJob["file"]["name"]
|
||||
if currentJob is not None and "file" in currentJob.keys() and "path" in currentJob["file"] and "origin" in currentJob["file"]:
|
||||
return currentJob["file"]["origin"], currentJob["file"]["path"]
|
||||
else:
|
||||
return None, None
|
||||
|
||||
|
||||
@@ -126,7 +126,8 @@ def getSettings():
|
||||
"pollWatched": s.getBoolean(["feature", "pollWatched"]),
|
||||
"ignoreIdenticalResends": s.getBoolean(["feature", "ignoreIdenticalResends"]),
|
||||
"modelSizeDetection": s.getBoolean(["feature", "modelSizeDetection"]),
|
||||
"firmwareDetection": s.getBoolean(["feature", "firmwareDetection"])
|
||||
"firmwareDetection": s.getBoolean(["feature", "firmwareDetection"]),
|
||||
"printCancelConfirmation": s.getBoolean(["feature", "printCancelConfirmation"])
|
||||
},
|
||||
"serial": {
|
||||
"port": connectionOptions["portPreference"],
|
||||
@@ -310,6 +311,7 @@ def _saveSettings(data):
|
||||
if "ignoreIdenticalResends" in data["feature"]: s.setBoolean(["feature", "ignoreIdenticalResends"], data["feature"]["ignoreIdenticalResends"])
|
||||
if "modelSizeDetection" in data["feature"]: s.setBoolean(["feature", "modelSizeDetection"], data["feature"]["modelSizeDetection"])
|
||||
if "firmwareDetection" in data["feature"]: s.setBoolean(["feature", "firmwareDetection"], data["feature"]["firmwareDetection"])
|
||||
if "printCancelConfirmation" in data["feature"]: s.setBoolean(["feature", "printCancelConfirmation"], data["feature"]["printCancelConfirmation"])
|
||||
|
||||
if "serial" in data.keys():
|
||||
if "autoconnect" in data["serial"].keys(): s.setBoolean(["serial", "autoconnect"], data["serial"]["autoconnect"])
|
||||
|
||||
@@ -237,7 +237,7 @@ def setTimelapseConfig():
|
||||
except ValueError:
|
||||
return make_response("Invalid value for retraction Z-Hop: %r" % data["retractionZHop"])
|
||||
else:
|
||||
if retractionZHop > 0:
|
||||
if retractionZHop >= 0:
|
||||
config["options"]["retractionZHop"] = retractionZHop
|
||||
else:
|
||||
return make_response("Invalid value for retraction Z-Hop: %d" % retractionZHop)
|
||||
|
||||
@@ -1290,6 +1290,7 @@ def collect_core_assets(enable_gcodeviewer=True, preferred_stylesheet="css"):
|
||||
'js/app/bindings/slimscrolledforeach.js',
|
||||
'js/app/bindings/toggle.js',
|
||||
'js/app/bindings/togglecontent.js',
|
||||
'js/app/bindings/valuewithinit.js',
|
||||
'js/app/viewmodels/appearance.js',
|
||||
'js/app/viewmodels/connection.js',
|
||||
'js/app/viewmodels/control.js',
|
||||
|
||||
@@ -154,12 +154,12 @@ class PrinterStateConnection(sockjs.tornado.SockJSConnection, octoprint.printer.
|
||||
messages = self._messageBacklog
|
||||
self._messageBacklog = []
|
||||
|
||||
busy_files = [dict(origin=v[0], name=v[1]) for v in self._fileManager.get_busy_files()]
|
||||
busy_files = [dict(origin=v[0], path=v[1]) for v in self._fileManager.get_busy_files()]
|
||||
if "job" in data and data["job"] is not None \
|
||||
and "file" in data["job"] and "name" in data["job"]["file"] and "origin" in data["job"]["file"] \
|
||||
and data["job"]["file"]["name"] is not None and data["job"]["file"]["origin"] is not None \
|
||||
and "file" in data["job"] and "path" in data["job"]["file"] and "origin" in data["job"]["file"] \
|
||||
and data["job"]["file"]["path"] is not None and data["job"]["file"]["origin"] is not None \
|
||||
and (self._printer.is_printing() or self._printer.is_paused()):
|
||||
busy_files.append(dict(origin=data["job"]["file"]["origin"], name=data["job"]["file"]["name"]))
|
||||
busy_files.append(dict(origin=data["job"]["file"]["origin"], path=data["job"]["file"]["path"]))
|
||||
|
||||
data.update({
|
||||
"serverTime": time.time(),
|
||||
|
||||
@@ -178,7 +178,9 @@ default_settings = {
|
||||
"sizeThreshold": 20 * 1024 * 1024, # 20MB
|
||||
},
|
||||
"gcodeAnalysis": {
|
||||
"maxExtruders": 10
|
||||
"maxExtruders": 10,
|
||||
"throttle_normalprio": 0.01,
|
||||
"throttle_highprio": 0.0
|
||||
},
|
||||
"feature": {
|
||||
"temperatureGraph": True,
|
||||
@@ -200,7 +202,8 @@ default_settings = {
|
||||
"identicalResendsCountdown": 7,
|
||||
"supportFAsCommand": False,
|
||||
"modelSizeDetection": True,
|
||||
"firmwareDetection": True
|
||||
"firmwareDetection": True,
|
||||
"printCancelConfirmation": True
|
||||
},
|
||||
"folder": {
|
||||
"uploads": None,
|
||||
@@ -295,8 +298,9 @@ default_settings = {
|
||||
"apps": {}
|
||||
},
|
||||
"terminalFilters": [
|
||||
{ "name": "Suppress M105 requests/responses", "regex": "(Send: M105)|(Recv: ok (B|T\d*):)" },
|
||||
{ "name": "Suppress M27 requests/responses", "regex": "(Send: M27)|(Recv: SD printing byte)" }
|
||||
{ "name": "Suppress temperature messages", "regex": "(Send: (N\d+\s+)?M105)|(Recv: ok (B|T\d*):)" },
|
||||
{ "name": "Suppress SD status messages", "regex": "(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)" },
|
||||
{ "name": "Suppress wait responses", "regex": "Recv: wait"}
|
||||
],
|
||||
"plugins": {
|
||||
"_disabled": []
|
||||
|
||||
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
ko.bindingHandlers.valueWithInit = {
|
||||
init: function(element, valueAccessor, allBindingsAccessor, context) {
|
||||
var observable = valueAccessor();
|
||||
var value = element.value;
|
||||
|
||||
observable(value);
|
||||
|
||||
ko.bindingHandlers.value.init(element, valueAccessor, allBindingsAccessor, context);
|
||||
},
|
||||
update: ko.bindingHandlers.value.update
|
||||
};
|
||||
@@ -478,6 +478,17 @@ $(function() {
|
||||
// reload overlay
|
||||
$("#reloadui_overlay_reload").click(function() { location.reload(); });
|
||||
|
||||
var changeTab = function()
|
||||
{
|
||||
var hashtag = window.location.hash;
|
||||
var tab = $('#tabs a[href="' + hashtag + '"]');
|
||||
if (tab.length)
|
||||
{
|
||||
tab.tab("show");
|
||||
onTabChange(hashtag);
|
||||
}
|
||||
}
|
||||
|
||||
//~~ view model binding
|
||||
|
||||
var bindViewModels = function() {
|
||||
@@ -566,6 +577,15 @@ $(function() {
|
||||
callViewModels(allViewModels, "onBrowserTabVisibilityChange", [status]);
|
||||
});
|
||||
|
||||
$(window).on("hashchange", function() {
|
||||
changeTab();
|
||||
});
|
||||
|
||||
if (window.location.hash != "")
|
||||
{
|
||||
changeTab();
|
||||
}
|
||||
|
||||
log.info("Application startup complete");
|
||||
};
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ $(function() {
|
||||
self.keycontrolActive = ko.observable(false);
|
||||
self.keycontrolHelpActive = ko.observable(false);
|
||||
self.keycontrolPossible = ko.pureComputed(function () {
|
||||
return self.isOperational() && !self.isPrinting() && self.loginState.isUser() && !$.browser.mobile;
|
||||
return self.settings.feature_keyboardControl() && self.isOperational() && !self.isPrinting() && self.loginState.isUser() && !$.browser.mobile;
|
||||
});
|
||||
self.showKeycontrols = ko.pureComputed(function () {
|
||||
return self.keycontrolActive() && self.keycontrolPossible();
|
||||
|
||||
@@ -718,11 +718,12 @@ $(function() {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (entry["type"] == "folder" && entry["children"]) {
|
||||
var success = entry["name"].toLocaleLowerCase().indexOf(query) > -1;
|
||||
if (!success && entry["type"] == "folder" && entry["children"]) {
|
||||
return _.any(entry["children"], recursiveSearch);
|
||||
} else {
|
||||
return entry["name"].toLocaleLowerCase().indexOf(query) > -1;
|
||||
}
|
||||
|
||||
return success;
|
||||
};
|
||||
|
||||
self.listHelper.changeSearchFunction(recursiveSearch);
|
||||
|
||||
@@ -87,6 +87,10 @@ $(function() {
|
||||
self.loginUser("");
|
||||
self.loginPass("");
|
||||
self.loginRemember(false);
|
||||
|
||||
if (history && history.replaceState) {
|
||||
history.replaceState({success: true}, document.title, window.location.pathname);
|
||||
}
|
||||
})
|
||||
.fail(function() {
|
||||
new PNotify({title: gettext("Login failed"), text: gettext("User unknown or wrong password"), type: "error"});
|
||||
@@ -106,16 +110,11 @@ $(function() {
|
||||
});
|
||||
};
|
||||
|
||||
self.onLoginUserKeyup = function(data, event) {
|
||||
if (event.keyCode == 13) {
|
||||
self.elementPasswordInput.focus();
|
||||
}
|
||||
};
|
||||
|
||||
self.onLoginPassKeyup = function(data, event) {
|
||||
if (event.keyCode == 13) {
|
||||
self.login();
|
||||
self.prepareLogin = function(data, event) {
|
||||
if(event && event.preventDefault) {
|
||||
event.preventDefault();
|
||||
}
|
||||
self.login();
|
||||
};
|
||||
|
||||
self.onAllBound = function(allViewModels) {
|
||||
@@ -131,6 +130,28 @@ $(function() {
|
||||
self.elementUsernameInput = $("#login_user");
|
||||
self.elementPasswordInput = $("#login_pass");
|
||||
self.elementLoginButton = $("#login_button");
|
||||
|
||||
var toggle = $("li.dropdown#navbar_login");
|
||||
var button = $("a", toggle);
|
||||
|
||||
button.on("click", function(e) {
|
||||
$(this).parent().toggleClass("open");
|
||||
});
|
||||
|
||||
$("body").on("click", function(e) {
|
||||
var anyFormLinkOrButton = $("#login_dropdown_loggedout a, #login_dropdown_loggedin a, #login_dropdown_loggedout button, #login_dropdown_loggedin button");
|
||||
var dropdown = $("li.dropdown#navbar_login");
|
||||
var anyLastpassButton = $("#__lpform_login_user, #__lpform_login_pass");
|
||||
|
||||
var isLinkOrButton = anyFormLinkOrButton.is(e.target) || anyFormLinkOrButton.has(e.target).length !== 0;
|
||||
var isDropdown = dropdown.is(e.target) || dropdown.has(e.target).length === 0;
|
||||
var isLastpass = anyLastpassButton.is(e.target) || anyLastpassButton.has(e.target).length === 0;
|
||||
|
||||
if (isLinkOrButton || !(isDropdown || isLastpass)) {
|
||||
toggle.removeClass("open");
|
||||
}
|
||||
});
|
||||
|
||||
if (self.elementUsernameInput && self.elementUsernameInput.length
|
||||
&& self.elementLoginButton && self.elementLoginButton.length) {
|
||||
self.elementLoginButton.blur(function() {
|
||||
|
||||
@@ -3,7 +3,8 @@ $(function() {
|
||||
var self = this;
|
||||
|
||||
self.loginState = parameters[0];
|
||||
self.permissions = parameters[1];
|
||||
self.settings = parameters[1];
|
||||
self.permissions = parameters[2];
|
||||
|
||||
self.stateString = ko.observable(undefined);
|
||||
self.isErrorOrClosed = ko.observable(undefined);
|
||||
@@ -256,8 +257,8 @@ $(function() {
|
||||
self._processBusyFiles = function(data) {
|
||||
var busyFiles = [];
|
||||
_.each(data, function(entry) {
|
||||
if (entry.hasOwnProperty("name") && entry.hasOwnProperty("origin")) {
|
||||
busyFiles.push(entry.origin + ":" + entry.name);
|
||||
if (entry.hasOwnProperty("path") && entry.hasOwnProperty("origin")) {
|
||||
busyFiles.push(entry.origin + ":" + entry.path);
|
||||
}
|
||||
});
|
||||
self.busyFiles(busyFiles);
|
||||
@@ -289,18 +290,24 @@ $(function() {
|
||||
};
|
||||
|
||||
self.cancel = function() {
|
||||
showConfirmationDialog({
|
||||
message: gettext("This will cancel your print."),
|
||||
onproceed: function() {
|
||||
OctoPrint.job.cancel();
|
||||
}
|
||||
});
|
||||
if (!self.settings.feature_printCancelConfirmation()) {
|
||||
OctoPrint.job.cancel();
|
||||
} else {
|
||||
showConfirmationDialog({
|
||||
message: gettext("This will cancel your print."),
|
||||
cancel: gettext("No"),
|
||||
proceed: gettext("Yes"),
|
||||
onproceed: function() {
|
||||
OctoPrint.job.cancel();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
OCTOPRINT_VIEWMODELS.push([
|
||||
PrinterStateViewModel,
|
||||
["loginStateViewModel", "permissionsViewModel"],
|
||||
["loginStateViewModel", "settingsViewModel", "permissionsViewModel"],
|
||||
["#state_wrapper", "#drop_overlay"]
|
||||
]);
|
||||
});
|
||||
@@ -140,6 +140,7 @@ $(function() {
|
||||
self.feature_ignoreIdenticalResends = ko.observable(undefined);
|
||||
self.feature_modelSizeDetection = ko.observable(undefined);
|
||||
self.feature_firmwareDetection = ko.observable(undefined);
|
||||
self.feature_printCancelConfirmation = ko.observable(undefined);
|
||||
|
||||
self.serial_port = ko.observable();
|
||||
self.serial_baudrate = ko.observable();
|
||||
|
||||
@@ -1139,3 +1139,29 @@ input[type=number] {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
// Navbar loginForm
|
||||
// Make the overlay always visible so that extensions are able to auto-submit (i.e. password-managers)
|
||||
#navbar_login:not(.open) #login_dropdown_loggedout {
|
||||
display: block;
|
||||
z-index: -1;
|
||||
height: 0;
|
||||
width: 0;
|
||||
padding: 0 !important;
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
left: -9999px;
|
||||
|
||||
&.hide {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#loginForm {
|
||||
margin: 0;
|
||||
|
||||
button {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,13 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" data-bind="checked: feature_printCancelConfirmation" id="settings-printCancelConfirmation"> {{ _('Confirm before cancelling a print') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
@@ -34,7 +41,6 @@
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<a href="#" class="dropdown-toggle">
|
||||
<i class="icon-user"></i> <span data-bind="text: loginState.userMenuText">{{ _('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()}">
|
||||
<label for="login_user">{{ _('Username') }}</label>
|
||||
<input type="text" id="login_user" data-bind="value: loginState.loginUser, event: {'keyup': loginState.onLoginUserKeyup}" placeholder="{{ _('Username') }}" autocapitalize="none">
|
||||
<label for="login_pass">{{ _('Password') }}</label>
|
||||
<input type="password" id="login_pass" data-bind="value: loginState.loginPass, event: {'keyup': loginState.onLoginPassKeyup}" placeholder="{{ _('Password') }}">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" id="login_remember" data-bind="checked: loginState.loginRemember"> {{ _('Remember me') }}
|
||||
</label>
|
||||
<button class="btn btn-block btn-primary" id="login_button" data-bind="click: function() { loginState.login(); }">{{ _('Login') }}</button>
|
||||
<form id="loginForm" data-bind="event: {'submit': loginState.prepareLogin }">
|
||||
<label for="login_user">{{ _('Username') }}</label>
|
||||
<input type="text" id="login_user" name="username" data-bind="valueWithInit: loginState.loginUser" placeholder="{{ _('Username') }}" autocapitalize="none">
|
||||
<label for="login_pass">{{ _('Password') }}</label>
|
||||
<input type="password" id="login_pass" name="password" data-bind="valueWithInit: loginState.loginPass" placeholder="{{ _('Password') }}">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" id="login_remember" data-bind="checked: loginState.loginRemember"> {{ _('Remember me') }}
|
||||
</label>
|
||||
<button type="submit" class="btn btn-block btn-primary" id="login_button">{{ _('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>
|
||||
|
||||
Binary file not shown.
@@ -1,14 +1,14 @@
|
||||
# German translations for OctoPrint.
|
||||
# Copyright (C) 2016 The OctoPrint Project
|
||||
# Copyright (C) 2017 The OctoPrint Project
|
||||
# This file is distributed under the same license as the OctoPrint project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OctoPrint\n"
|
||||
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
|
||||
"POT-Creation-Date: 2016-12-02 12:37+0100\n"
|
||||
"PO-Revision-Date: 2016-12-02 12:38+0100\n"
|
||||
"POT-Creation-Date: 2017-01-12 14:29+0100\n"
|
||||
"PO-Revision-Date: 2017-01-12 14:30+0100\n"
|
||||
"Last-Translator: Gina Häußge <osd@foosel.net>\n"
|
||||
"Language: de\n"
|
||||
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n"
|
||||
@@ -159,16 +159,16 @@ msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:19
|
||||
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:45
|
||||
#: src/octoprint/templates/navbar/login.jinja2:6
|
||||
#: src/octoprint/templates/navbar/login.jinja2:7
|
||||
#: src/octoprint/templates/navbar/login.jinja2:8
|
||||
msgid "Username"
|
||||
msgstr "Username"
|
||||
|
||||
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25
|
||||
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51
|
||||
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:3
|
||||
#: src/octoprint/templates/navbar/login.jinja2:8
|
||||
#: src/octoprint/templates/navbar/login.jinja2:9
|
||||
#: src/octoprint/templates/navbar/login.jinja2:10
|
||||
msgid "Password"
|
||||
msgstr "Passwort"
|
||||
|
||||
@@ -326,22 +326,22 @@ msgid ""
|
||||
msgstr "<p>Um Snapshots zu Zeitrafferaufnahmen zu rendern muss OctoPrint auch den korrekten <strong>Pfad zu FFMPEG</strong> wissen.</p>"
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:176
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:296
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:297
|
||||
msgid "The path doesn't exist"
|
||||
msgstr "Der Pfad existiert nicht"
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:178
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:298
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:299
|
||||
msgid "The path is not a file"
|
||||
msgstr "Der Pfad ist keine Datei"
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:180
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:300
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:301
|
||||
msgid "The path is not an executable"
|
||||
msgstr "Der Pfad ist nicht ausführbar"
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:183
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:303
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:304
|
||||
msgid "The path is valid"
|
||||
msgstr "Der Pfad ist valide"
|
||||
|
||||
@@ -1400,8 +1400,8 @@ msgid "The server is currently running in safe mode. Third party plugins are dis
|
||||
msgstr "Der Server ist aktuell im Sicherheitsmodus. Third-Party-Plugins sind deaktiviert und können nicht aktiviert werden."
|
||||
|
||||
#: src/octoprint/static/js/app/dataupdater.js:170
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:848
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:855
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:849
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:856
|
||||
#, python-format
|
||||
msgid "Slicing ... (%(percentage)d%%)"
|
||||
msgstr "Slice ... (%(percentage)d%%)"
|
||||
@@ -1569,7 +1569,7 @@ msgstr "Trennen"
|
||||
#: src/octoprint/static/js/app/viewmodels/control.js:62
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:589
|
||||
#: src/octoprint/static/js/app/viewmodels/gcode.js:482
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:231
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:232
|
||||
#: src/octoprint/static/js/app/viewmodels/temperature.js:62
|
||||
msgid "Tool"
|
||||
msgstr "Werkzeug"
|
||||
@@ -1650,51 +1650,51 @@ msgstr "Druckvolumen: (%(profile.minX).2f, %(profile.minY).2f, %(profile.minZ).2
|
||||
msgid "Object doesn't fit print volume"
|
||||
msgstr "Objekt passt nicht in Druckvolumen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:850
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:851
|
||||
msgid "Slicing ..."
|
||||
msgstr "Slice ..."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:876
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:877
|
||||
msgid "Slicing done"
|
||||
msgstr "Slicing abgeschlossen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:877
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:878
|
||||
#, python-format
|
||||
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
|
||||
msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:892
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:893
|
||||
#, python-format
|
||||
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
|
||||
msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:893
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:894
|
||||
msgid "Slicing failed"
|
||||
msgstr "Slicing fehlgeschlagen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:910
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:911
|
||||
msgid "Streaming ..."
|
||||
msgstr "Streaming ..."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:922
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:923
|
||||
msgid "Streaming done"
|
||||
msgstr "Streaming abgeschlossen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:923
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:924
|
||||
#, python-format
|
||||
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
|
||||
msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1019
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1020
|
||||
#, python-format
|
||||
msgid "Could not upload the file. Make sure that it is a valid file with one of these extensions: %(extensions)s"
|
||||
msgstr "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine valide Datei mit einer dieser Erweiterungen ist: %(extensions)s"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1040
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1041
|
||||
msgid "Saving ..."
|
||||
msgstr "Speichere ..."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1040
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1041
|
||||
msgid "Uploading ..."
|
||||
msgstr "Uploade ..."
|
||||
|
||||
@@ -1749,7 +1749,7 @@ msgstr "GCODE Befehle"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:26
|
||||
#: src/octoprint/templates/navbar/login.jinja2:2
|
||||
#: src/octoprint/templates/navbar/login.jinja2:13
|
||||
#: src/octoprint/templates/navbar/login.jinja2:14
|
||||
msgid "Login"
|
||||
msgstr "Login"
|
||||
|
||||
@@ -1762,19 +1762,19 @@ msgstr "Login erfolgreich"
|
||||
msgid "You are now logged in as \"%(username)s\""
|
||||
msgstr "Du bist jetzt eingeloggt als \"%(username)s\""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
|
||||
msgid "Login failed"
|
||||
msgstr "Login fehlgeschlagen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
|
||||
msgid "User unknown or wrong password"
|
||||
msgstr "Nutzer unbekannt oder falsches Passwort"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
|
||||
msgid "Logout successful"
|
||||
msgstr "Logout erfolgreich"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
|
||||
msgid "You are now logged out"
|
||||
msgstr "Du bist jetzt ausgeloggt"
|
||||
|
||||
@@ -1867,83 +1867,91 @@ msgstr "Druckerprofil hinzufügen"
|
||||
msgid "Edit Printer Profile \"%(name)s\""
|
||||
msgstr "Druckerprofile \"%(name)s\" bearbeiten"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:46
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
|
||||
msgid "Restarts the print job from the beginning"
|
||||
msgstr "Started den Druckjob von vorne"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
|
||||
msgid "Starts the print job"
|
||||
msgstr "Startet den Druckjob"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
|
||||
msgid "Resumes the print job"
|
||||
msgstr "Setzt den Druckjob fort"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:50
|
||||
msgid "Pauses the print job"
|
||||
msgstr "Pausiert den Druckjob"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:82
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:83
|
||||
msgid "Still stabilizing..."
|
||||
msgstr "Noch zu ungenau..."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:92
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:93
|
||||
msgid "Based on a linear approximation (very low accuracy, especially at the beginning of the print)"
|
||||
msgstr "Basiert auf einer linearen Approximation (sehr geringe Genauigkeit, insbesondere zu Beginn eines Drucks)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:95
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:96
|
||||
msgid "Based on the estimate from analysis of file (medium accuracy)"
|
||||
msgstr "Basiert auf der Schätzung der Analyse der Datei (mittlere Genauigkeit)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:98
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:99
|
||||
msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)"
|
||||
msgstr "Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung (mittlere Genauigkeit)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:101
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:102
|
||||
msgid "Based on the average total of past prints of this model with the same printer profile (usually good accuracy)"
|
||||
msgstr "Basiert auf der durchschnittlichen Dauer vergangener Druckjobs dieses Modells mit dem selben Druckerprofil (normalerweise gute Genauigkeit)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:104
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:105
|
||||
msgid "Based on a mix of average total from past prints and calculation (usually good accuracy)"
|
||||
msgstr "Basiert auf einem Mix der durschnittlichen Dauer vergangener Druckjobs und der Berechnung (normalerweise gute Genauigkeit)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:107
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:108
|
||||
msgid "Based on the calculated estimate (best accuracy)"
|
||||
msgstr "Basiert auf der berechneten Schätzung (beste Genauigkeit)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:145
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:146
|
||||
msgid "Continue"
|
||||
msgstr "Fortsetzen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:147
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:148
|
||||
#: src/octoprint/templates/sidebar/state.jinja2:24
|
||||
msgid "Pause"
|
||||
msgstr "Pause"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:158
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:159
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:11
|
||||
msgid "On Z Change"
|
||||
msgstr "Bei Ebenenwechsel"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:10
|
||||
msgid "Timed"
|
||||
msgstr "Nach Zeit"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:25
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:39
|
||||
msgid "sec"
|
||||
msgstr "Sek"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:268
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:269
|
||||
msgid "This will restart the print job from the beginning."
|
||||
msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:292
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:296
|
||||
msgid "This will cancel your print."
|
||||
msgstr "Das wird deinen Druck abbrechen."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:297
|
||||
msgid "No"
|
||||
msgstr "Nein"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:298
|
||||
msgid "Yes"
|
||||
msgstr "Ja"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:64
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:82
|
||||
msgid "violet"
|
||||
@@ -1958,27 +1966,27 @@ msgstr "weiß"
|
||||
msgid "Autodetect from browser"
|
||||
msgstr "Automatisch vom Browser erkennen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:230
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:231
|
||||
msgid "If you see your webcam stream below, the entered stream URL is ok."
|
||||
msgstr "Falls du unten den Webcamstream sehen kannst, ist die Stream-URL ok."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:236
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:237
|
||||
msgid "Stream test"
|
||||
msgstr "Stream Test"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:249
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:250
|
||||
msgid "Could not retrieve snapshot URL, please double check the URL"
|
||||
msgstr "Konnte die Snapshot-URL nicht abgreifen, bitte prüfen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:250
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:251
|
||||
msgid "Snapshot test failed"
|
||||
msgstr "Snapshot Test fehlgeschlagen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:272
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:273
|
||||
msgid "If you see your webcam snapshot picture below, the entered snapshot URL is ok."
|
||||
msgstr "Falls du unten dein Snapshotbild sehen kannst, ist die Snapshot-URL ok."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:274
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:275
|
||||
msgid "Snapshot test"
|
||||
msgstr "Snapshot Test"
|
||||
|
||||
@@ -2421,22 +2429,26 @@ msgid "Beta"
|
||||
msgstr "Beta"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:19
|
||||
msgid "Confirm before cancelling a print"
|
||||
msgstr "Vor Abbruch eines Druckjobs bestätigen"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:26
|
||||
msgid "Enable SD support"
|
||||
msgstr "SD-Unterstützung aktivieren"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:26
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:33
|
||||
msgid "Enable Keyboard Control"
|
||||
msgstr "Tastatursteuerung aktivieren"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:33
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:40
|
||||
msgid "Wait for <code>start</code> on connect"
|
||||
msgstr "Bei der Verbindung auf <code>start</code> warten"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:41
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:47
|
||||
msgid "Enable automatic firmware detection"
|
||||
msgstr "Automatische Firmwareerkennung einschalten"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:42
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:48
|
||||
msgid ""
|
||||
"\n"
|
||||
" If enabled, OctoPrint will try to figure out your printer's firmware automatically and adjust a couple of communication parameters based on that.\n"
|
||||
@@ -2444,52 +2456,52 @@ msgid ""
|
||||
" "
|
||||
msgstr "Falls diese Option eingeschaltet ist, versucht OctoPrint die Firmware des Druckers automatisch zu erkennen und darauf basierend diverse Kommunikationsparameter zu konfigurieren.Falls das für dich nicht korrekt funktioniert oder du mehr Kontrolle haben möchtest, schalte diese Option aus und die entsprechenden Parameter werden zur manuellen Konfigurationeingeblendet."
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
|
||||
msgid "Select SD files by relative path"
|
||||
msgstr "SD Dateien per relativem Pfad addressieren"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
|
||||
msgid "RepRap Firmware"
|
||||
msgstr "RepRap Firmware"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
|
||||
msgid "Always assume SD card is present"
|
||||
msgstr "Immer davon ausgehen, dass eine SD-Karte vorhanden ist"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
|
||||
msgid "Repetier"
|
||||
msgstr "Repetier"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
|
||||
msgid "Ignore consecutive resend requests for the same line"
|
||||
msgstr "Aufeinanderfolgende Resend Requests für die selbe Zeilennummer ignorieren"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
|
||||
#, python-format
|
||||
msgid "Support <code>TargetExtr%%n</code>/<code>TargetBed</code> target temperature format"
|
||||
msgstr "<code>TargetExtr%%n</code>/<code>TargetBed</code> Zieltemperaturformat unterstützen"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
|
||||
msgid "Disable detection of external heatups"
|
||||
msgstr "Detektierung externer Aufheizvorgänge deaktivieren"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:86
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
|
||||
msgid "Send a checksum with the command"
|
||||
msgstr "Eine Prüfsumme mit dem Befehl senden"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:89
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
|
||||
msgid "When printing"
|
||||
msgstr "Beim Drucken"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
|
||||
msgid "Always"
|
||||
msgstr "Immer"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:101
|
||||
msgid "Never"
|
||||
msgstr "Nie"
|
||||
|
||||
@@ -2863,15 +2875,15 @@ msgid ""
|
||||
" get you printing in no time!\n"
|
||||
msgstr "Danke, dass du OctoPrint installiert hast! Dieser Wizard wird dich nun durch die letzten Schritte begleiten, um deine OctoPrint Instanz fertig einzurichten."
|
||||
|
||||
#: src/octoprint/templates/navbar/login.jinja2:11
|
||||
#: src/octoprint/templates/navbar/login.jinja2:12
|
||||
msgid "Remember me"
|
||||
msgstr "Login merken"
|
||||
|
||||
#: src/octoprint/templates/navbar/login.jinja2:16
|
||||
#: src/octoprint/templates/navbar/login.jinja2:18
|
||||
msgid "User Settings"
|
||||
msgstr "Nutzereinstellungen"
|
||||
|
||||
#: src/octoprint/templates/navbar/login.jinja2:17
|
||||
#: src/octoprint/templates/navbar/login.jinja2:19
|
||||
msgid "Logout"
|
||||
msgstr "Logout"
|
||||
|
||||
@@ -3479,7 +3491,7 @@ msgstr ""
|
||||
"<p>\n"
|
||||
" Du hast <strong data-bind=\"text: selectedFile.name\"></strong> zum Drucken ausgewählt das\n"
|
||||
" <strong data-bind=\"text: formatSize(selectedFile.size())\"></strong> groß ist. Abhängig von Deinem\n"
|
||||
" System könnte das zu groß zum Rendern sein und Deinen Browser zum Absturz bringen. might be too large for rendering and cause your browser to become unresponsive or crash.\n"
|
||||
" System könnte das zu groß zum Rendern sein und Deinen Browser zum Absturz bringen.\n"
|
||||
" </p>\n"
|
||||
"\n"
|
||||
" <p>\n"
|
||||
@@ -3655,7 +3667,7 @@ msgstr "Zeitrafferaufnahme rendern"
|
||||
#~ msgstr "Vorhandene Datei überschreiben"
|
||||
|
||||
#~ msgid ""
|
||||
#~ msgstr ""
|
||||
#~ msgstr "Falls dir OctoPrint gefällt, bitte ziehe es in Betracht <a href=\"%(url)s\" target=\"_blank\">seine fortlaufende Entwicklung zu unterstützen</a>. Diese Entwicklung wird vollständig durch User wie Dich finanziert! Du kannst diesen Link auch im \"Über\" Dialog finden. <strong>Danke!</strong>"
|
||||
|
||||
#~ msgid "Bundled"
|
||||
#~ msgstr "Gebundled"
|
||||
@@ -3695,9 +3707,3 @@ msgstr "Zeitrafferaufnahme rendern"
|
||||
|
||||
#~ msgid "Reboot"
|
||||
#~ msgstr "Neustart"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
#~ " If you enjoy OctoPrint, please consider <a href=\"%(url)s\" target=\"_blank\">supporting its ongoing\n"
|
||||
#~ " development</a>. It's fully funded by users like you! You can also find this link in the \"About\" dialog. <strong>Thank you!</strong>\n"
|
||||
#~ msgstr "Falls dir OctoPrint gefällt, bitte ziehe es in Betracht <a href=\"%(url)s\" target=\"_blank\">seine fortlaufende Entwicklung zu unterstützen</a>. Diese Entwicklung wird vollständig durch User wie Dich finanziert! Du kannst diesen Link auch im \"Über\" Dialog finden. <strong>Danke!</strong>"
|
||||
@@ -144,6 +144,7 @@ def serialList():
|
||||
+ glob.glob("/dev/tty.usb*") \
|
||||
+ glob.glob("/dev/cu.*") \
|
||||
+ glob.glob("/dev/cuaU*") \
|
||||
+ glob.glob("/dev/ttyS*") \
|
||||
+ glob.glob("/dev/rfcomm*")
|
||||
|
||||
additionalPorts = settings().get(["serial", "additionalPorts"])
|
||||
@@ -1544,7 +1545,7 @@ class MachineCom(object):
|
||||
|
||||
def _poll_temperature(self):
|
||||
"""
|
||||
Polls the temperature after the temperature timeout, re-enqueues itself.
|
||||
Polls the temperature.
|
||||
|
||||
If the printer is not operational, closing the connection, not printing from sd, busy with a long running
|
||||
command or heating, no poll will be done.
|
||||
@@ -1555,7 +1556,7 @@ class MachineCom(object):
|
||||
|
||||
def _poll_sd_status(self):
|
||||
"""
|
||||
Polls the sd printing status after the sd status timeout, re-enqueues itself.
|
||||
Polls the sd printing status.
|
||||
|
||||
If the printer is not operational, closing the connection, not printing from sd, busy with a long running
|
||||
command or heating, no poll will be done.
|
||||
|
||||
@@ -172,7 +172,9 @@ class MinMax3D(object):
|
||||
|
||||
|
||||
class AnalysisAborted(Exception):
|
||||
pass
|
||||
def __init__(self, reenqueue=True, *args, **kwargs):
|
||||
self.reenqueue = reenqueue
|
||||
Exception.__init__(self, *args, **kwargs)
|
||||
|
||||
|
||||
class gcode(object):
|
||||
@@ -185,6 +187,7 @@ class gcode(object):
|
||||
self.filename = None
|
||||
self.progressCallback = None
|
||||
self._abort = False
|
||||
self._reenqueue = True
|
||||
self._filamentDiameter = 0
|
||||
self._minMax = MinMax3D()
|
||||
|
||||
@@ -213,8 +216,9 @@ class gcode(object):
|
||||
with codecs.open(filename, encoding="utf-8", errors="replace") as f:
|
||||
self._load(f, printer_profile, throttle=throttle)
|
||||
|
||||
def abort(self):
|
||||
def abort(self, reenqueue=True):
|
||||
self._abort = True
|
||||
self._reenqueue = reenqueue
|
||||
|
||||
def _load(self, gcodeFile, printer_profile, throttle=None):
|
||||
filePos = 0
|
||||
@@ -240,7 +244,7 @@ class gcode(object):
|
||||
|
||||
for line in gcodeFile:
|
||||
if self._abort:
|
||||
raise AnalysisAborted()
|
||||
raise AnalysisAborted(reenqueue=self._reenqueue)
|
||||
filePos += 1
|
||||
readBytes += len(line)
|
||||
|
||||
@@ -260,6 +264,7 @@ class gcode(object):
|
||||
if ';' in line:
|
||||
comment = line[line.find(';')+1:].strip()
|
||||
if comment.startswith("filament_diameter"):
|
||||
# Slic3r
|
||||
filamentValue = comment.split("=", 1)[1].strip()
|
||||
try:
|
||||
self._filamentDiameter = float(filamentValue)
|
||||
@@ -269,6 +274,7 @@ class gcode(object):
|
||||
except ValueError:
|
||||
self._filamentDiameter = 0.0
|
||||
elif comment.startswith("CURA_PROFILE_STRING") or comment.startswith("CURA_OCTO_PROFILE_STRING"):
|
||||
# Cura 15.04.* & OctoPrint Cura plugin
|
||||
if comment.startswith("CURA_PROFILE_STRING"):
|
||||
prefix = "CURA_PROFILE_STRING:"
|
||||
else:
|
||||
@@ -280,6 +286,13 @@ class gcode(object):
|
||||
self._filamentDiameter = float(curaOptions["filament_diameter"])
|
||||
except:
|
||||
self._filamentDiameter = 0.0
|
||||
elif comment.startswith("filamentDiameter,"):
|
||||
# Simplify3D
|
||||
filamentValue = comment.split(",", 1)[1].strip()
|
||||
try:
|
||||
self._filamentDiameter = float(filamentValue)
|
||||
except ValueError:
|
||||
self._filamentDiameter = 0.0
|
||||
line = line[0:line.find(';')]
|
||||
|
||||
G = getCodeInt(line, 'G')
|
||||
@@ -294,15 +307,28 @@ class gcode(object):
|
||||
e = getCodeFloat(line, 'E')
|
||||
f = getCodeFloat(line, 'F')
|
||||
|
||||
if x is not None or y is not None or z is not None:
|
||||
# this is a move
|
||||
move = True
|
||||
else:
|
||||
# print head stays on position
|
||||
move = False
|
||||
|
||||
oldPos = pos
|
||||
newPos = Vector3D(x if x is not None else pos.x,
|
||||
y if y is not None else pos.y,
|
||||
z if z is not None else pos.z)
|
||||
|
||||
# Use new coordinates if provided. If not provided, use prior coordinates in absolute
|
||||
# and 0.0 in relative mode.
|
||||
newPos = Vector3D(x if x is not None else (pos.x if posAbs else 0.0),
|
||||
y if y is not None else (pos.y if posAbs else 0.0),
|
||||
z if z is not None else (pos.z if posAbs else 0.0))
|
||||
|
||||
if posAbs:
|
||||
# Absolute mode: scale coordinates and apply offsets
|
||||
pos = newPos * scale + posOffset
|
||||
else:
|
||||
# Relative mode: scale and add to current position
|
||||
pos += newPos * scale
|
||||
|
||||
if f is not None and f != 0:
|
||||
feedrate = f
|
||||
|
||||
@@ -310,10 +336,12 @@ class gcode(object):
|
||||
if absoluteE:
|
||||
# make sure e is relative
|
||||
e -= currentE[currentExtruder]
|
||||
# If move includes extrusion, calculate new min/max coordinates of model
|
||||
if e > 0.0:
|
||||
# extrusion -> relevant for print area & dimensions
|
||||
|
||||
# If move with extrusion, calculate new min/max coordinates of model
|
||||
if e > 0.0 and move:
|
||||
# extrusion and move -> relevant for print area & dimensions
|
||||
self._minMax.record(pos)
|
||||
|
||||
totalExtrusion[currentExtruder] += e
|
||||
currentE[currentExtruder] += e
|
||||
maxExtrusion[currentExtruder] = max(maxExtrusion[currentExtruder],
|
||||
@@ -417,7 +445,6 @@ class gcode(object):
|
||||
|
||||
if throttle is not None:
|
||||
throttle()
|
||||
|
||||
if self.progressCallback is not None:
|
||||
self.progressCallback(100.0)
|
||||
|
||||
|
||||
@@ -171,9 +171,13 @@ class FileManagerTest(unittest.TestCase):
|
||||
self.fire_event.assert_called_once_with(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables"))
|
||||
|
||||
def test_remove_file(self):
|
||||
self.local_storage.path_on_disk.return_value = "prefix/test.file"
|
||||
self.local_storage.split_path.return_value = ("", "test.file")
|
||||
|
||||
self.file_manager.remove_file(octoprint.filemanager.FileDestinations.LOCAL, "test.file")
|
||||
|
||||
self.local_storage.remove_file.assert_called_once_with("test.file")
|
||||
self.analysis_queue.dequeue.assert_called_once()
|
||||
self.fire_event.assert_called_once_with(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables"))
|
||||
|
||||
def test_add_folder(self):
|
||||
@@ -199,11 +203,13 @@ class FileManagerTest(unittest.TestCase):
|
||||
self.file_manager.remove_folder(octoprint.filemanager.FileDestinations.LOCAL, "test_folder")
|
||||
|
||||
self.local_storage.remove_folder.assert_called_once_with("test_folder", recursive=True)
|
||||
self.analysis_queue.dequeue_folder.assert_called_once_with(octoprint.filemanager.FileDestinations.LOCAL, "test_folder")
|
||||
self.fire_event.assert_called_once_with(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables"))
|
||||
|
||||
def test_remove_folder_nonrecursive(self):
|
||||
self.file_manager.remove_folder(octoprint.filemanager.FileDestinations.LOCAL, "test_folder", recursive=False)
|
||||
self.local_storage.remove_folder.assert_called_once_with("test_folder", recursive=False)
|
||||
self.analysis_queue.dequeue_folder.assert_called_once_with(octoprint.filemanager.FileDestinations.LOCAL, "test_folder")
|
||||
|
||||
@mock.patch("octoprint.util.atomic_write", create=True)
|
||||
@mock.patch("yaml.safe_dump", create=True)
|
||||
|
||||
Binary file not shown.
@@ -1,14 +1,14 @@
|
||||
# German translations for OctoPrint.
|
||||
# Copyright (C) 2016 The OctoPrint Project
|
||||
# Copyright (C) 2017 The OctoPrint Project
|
||||
# This file is distributed under the same license as the OctoPrint project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OctoPrint\n"
|
||||
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
|
||||
"POT-Creation-Date: 2016-12-02 12:37+0100\n"
|
||||
"PO-Revision-Date: 2016-12-02 12:38+0100\n"
|
||||
"POT-Creation-Date: 2017-01-12 14:29+0100\n"
|
||||
"PO-Revision-Date: 2017-01-12 14:30+0100\n"
|
||||
"Last-Translator: Gina Häußge <osd@foosel.net>\n"
|
||||
"Language: de\n"
|
||||
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n"
|
||||
@@ -159,16 +159,16 @@ msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:19
|
||||
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:45
|
||||
#: src/octoprint/templates/navbar/login.jinja2:6
|
||||
#: src/octoprint/templates/navbar/login.jinja2:7
|
||||
#: src/octoprint/templates/navbar/login.jinja2:8
|
||||
msgid "Username"
|
||||
msgstr "Username"
|
||||
|
||||
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25
|
||||
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51
|
||||
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:3
|
||||
#: src/octoprint/templates/navbar/login.jinja2:8
|
||||
#: src/octoprint/templates/navbar/login.jinja2:9
|
||||
#: src/octoprint/templates/navbar/login.jinja2:10
|
||||
msgid "Password"
|
||||
msgstr "Passwort"
|
||||
|
||||
@@ -326,22 +326,22 @@ msgid ""
|
||||
msgstr "<p>Um Snapshots zu Zeitrafferaufnahmen zu rendern muss OctoPrint auch den korrekten <strong>Pfad zu FFMPEG</strong> wissen.</p>"
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:176
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:296
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:297
|
||||
msgid "The path doesn't exist"
|
||||
msgstr "Der Pfad existiert nicht"
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:178
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:298
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:299
|
||||
msgid "The path is not a file"
|
||||
msgstr "Der Pfad ist keine Datei"
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:180
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:300
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:301
|
||||
msgid "The path is not an executable"
|
||||
msgstr "Der Pfad ist nicht ausführbar"
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:183
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:303
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:304
|
||||
msgid "The path is valid"
|
||||
msgstr "Der Pfad ist valide"
|
||||
|
||||
@@ -1400,8 +1400,8 @@ msgid "The server is currently running in safe mode. Third party plugins are dis
|
||||
msgstr "Der Server ist aktuell im Sicherheitsmodus. Third-Party-Plugins sind deaktiviert und können nicht aktiviert werden."
|
||||
|
||||
#: src/octoprint/static/js/app/dataupdater.js:170
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:848
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:855
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:849
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:856
|
||||
#, python-format
|
||||
msgid "Slicing ... (%(percentage)d%%)"
|
||||
msgstr "Slice ... (%(percentage)d%%)"
|
||||
@@ -1569,7 +1569,7 @@ msgstr "Trennen"
|
||||
#: src/octoprint/static/js/app/viewmodels/control.js:62
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:589
|
||||
#: src/octoprint/static/js/app/viewmodels/gcode.js:482
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:231
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:232
|
||||
#: src/octoprint/static/js/app/viewmodels/temperature.js:62
|
||||
msgid "Tool"
|
||||
msgstr "Werkzeug"
|
||||
@@ -1650,51 +1650,51 @@ msgstr "Druckvolumen: (%(profile.minX).2f, %(profile.minY).2f, %(profile.minZ).2
|
||||
msgid "Object doesn't fit print volume"
|
||||
msgstr "Objekt passt nicht in Druckvolumen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:850
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:851
|
||||
msgid "Slicing ..."
|
||||
msgstr "Slice ..."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:876
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:877
|
||||
msgid "Slicing done"
|
||||
msgstr "Slicing abgeschlossen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:877
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:878
|
||||
#, python-format
|
||||
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
|
||||
msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:892
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:893
|
||||
#, python-format
|
||||
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
|
||||
msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:893
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:894
|
||||
msgid "Slicing failed"
|
||||
msgstr "Slicing fehlgeschlagen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:910
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:911
|
||||
msgid "Streaming ..."
|
||||
msgstr "Streaming ..."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:922
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:923
|
||||
msgid "Streaming done"
|
||||
msgstr "Streaming abgeschlossen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:923
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:924
|
||||
#, python-format
|
||||
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
|
||||
msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1019
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1020
|
||||
#, python-format
|
||||
msgid "Could not upload the file. Make sure that it is a valid file with one of these extensions: %(extensions)s"
|
||||
msgstr "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine valide Datei mit einer dieser Erweiterungen ist: %(extensions)s"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1040
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1041
|
||||
msgid "Saving ..."
|
||||
msgstr "Speichere ..."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1040
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1041
|
||||
msgid "Uploading ..."
|
||||
msgstr "Uploade ..."
|
||||
|
||||
@@ -1749,7 +1749,7 @@ msgstr "GCODE Befehle"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:26
|
||||
#: src/octoprint/templates/navbar/login.jinja2:2
|
||||
#: src/octoprint/templates/navbar/login.jinja2:13
|
||||
#: src/octoprint/templates/navbar/login.jinja2:14
|
||||
msgid "Login"
|
||||
msgstr "Login"
|
||||
|
||||
@@ -1762,19 +1762,19 @@ msgstr "Login erfolgreich"
|
||||
msgid "You are now logged in as \"%(username)s\""
|
||||
msgstr "Du bist jetzt eingeloggt als \"%(username)s\""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
|
||||
msgid "Login failed"
|
||||
msgstr "Login fehlgeschlagen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
|
||||
msgid "User unknown or wrong password"
|
||||
msgstr "Nutzer unbekannt oder falsches Passwort"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
|
||||
msgid "Logout successful"
|
||||
msgstr "Logout erfolgreich"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
|
||||
msgid "You are now logged out"
|
||||
msgstr "Du bist jetzt ausgeloggt"
|
||||
|
||||
@@ -1867,83 +1867,91 @@ msgstr "Druckerprofil hinzufügen"
|
||||
msgid "Edit Printer Profile \"%(name)s\""
|
||||
msgstr "Druckerprofile \"%(name)s\" bearbeiten"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:46
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
|
||||
msgid "Restarts the print job from the beginning"
|
||||
msgstr "Started den Druckjob von vorne"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
|
||||
msgid "Starts the print job"
|
||||
msgstr "Startet den Druckjob"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
|
||||
msgid "Resumes the print job"
|
||||
msgstr "Setzt den Druckjob fort"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:50
|
||||
msgid "Pauses the print job"
|
||||
msgstr "Pausiert den Druckjob"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:82
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:83
|
||||
msgid "Still stabilizing..."
|
||||
msgstr "Noch zu ungenau..."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:92
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:93
|
||||
msgid "Based on a linear approximation (very low accuracy, especially at the beginning of the print)"
|
||||
msgstr "Basiert auf einer linearen Approximation (sehr geringe Genauigkeit, insbesondere zu Beginn eines Drucks)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:95
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:96
|
||||
msgid "Based on the estimate from analysis of file (medium accuracy)"
|
||||
msgstr "Basiert auf der Schätzung der Analyse der Datei (mittlere Genauigkeit)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:98
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:99
|
||||
msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)"
|
||||
msgstr "Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung (mittlere Genauigkeit)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:101
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:102
|
||||
msgid "Based on the average total of past prints of this model with the same printer profile (usually good accuracy)"
|
||||
msgstr "Basiert auf der durchschnittlichen Dauer vergangener Druckjobs dieses Modells mit dem selben Druckerprofil (normalerweise gute Genauigkeit)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:104
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:105
|
||||
msgid "Based on a mix of average total from past prints and calculation (usually good accuracy)"
|
||||
msgstr "Basiert auf einem Mix der durschnittlichen Dauer vergangener Druckjobs und der Berechnung (normalerweise gute Genauigkeit)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:107
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:108
|
||||
msgid "Based on the calculated estimate (best accuracy)"
|
||||
msgstr "Basiert auf der berechneten Schätzung (beste Genauigkeit)"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:145
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:146
|
||||
msgid "Continue"
|
||||
msgstr "Fortsetzen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:147
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:148
|
||||
#: src/octoprint/templates/sidebar/state.jinja2:24
|
||||
msgid "Pause"
|
||||
msgstr "Pause"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:158
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:159
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:11
|
||||
msgid "On Z Change"
|
||||
msgstr "Bei Ebenenwechsel"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:10
|
||||
msgid "Timed"
|
||||
msgstr "Nach Zeit"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:25
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:39
|
||||
msgid "sec"
|
||||
msgstr "Sek"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:268
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:269
|
||||
msgid "This will restart the print job from the beginning."
|
||||
msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:292
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:296
|
||||
msgid "This will cancel your print."
|
||||
msgstr "Das wird deinen Druck abbrechen."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:297
|
||||
msgid "No"
|
||||
msgstr "Nein"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:298
|
||||
msgid "Yes"
|
||||
msgstr "Ja"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:64
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:82
|
||||
msgid "violet"
|
||||
@@ -1958,27 +1966,27 @@ msgstr "weiß"
|
||||
msgid "Autodetect from browser"
|
||||
msgstr "Automatisch vom Browser erkennen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:230
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:231
|
||||
msgid "If you see your webcam stream below, the entered stream URL is ok."
|
||||
msgstr "Falls du unten den Webcamstream sehen kannst, ist die Stream-URL ok."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:236
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:237
|
||||
msgid "Stream test"
|
||||
msgstr "Stream Test"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:249
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:250
|
||||
msgid "Could not retrieve snapshot URL, please double check the URL"
|
||||
msgstr "Konnte die Snapshot-URL nicht abgreifen, bitte prüfen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:250
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:251
|
||||
msgid "Snapshot test failed"
|
||||
msgstr "Snapshot Test fehlgeschlagen"
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:272
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:273
|
||||
msgid "If you see your webcam snapshot picture below, the entered snapshot URL is ok."
|
||||
msgstr "Falls du unten dein Snapshotbild sehen kannst, ist die Snapshot-URL ok."
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:274
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:275
|
||||
msgid "Snapshot test"
|
||||
msgstr "Snapshot Test"
|
||||
|
||||
@@ -2421,22 +2429,26 @@ msgid "Beta"
|
||||
msgstr "Beta"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:19
|
||||
msgid "Confirm before cancelling a print"
|
||||
msgstr "Vor Abbruch eines Druckjobs bestätigen"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:26
|
||||
msgid "Enable SD support"
|
||||
msgstr "SD-Unterstützung aktivieren"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:26
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:33
|
||||
msgid "Enable Keyboard Control"
|
||||
msgstr "Tastatursteuerung aktivieren"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:33
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:40
|
||||
msgid "Wait for <code>start</code> on connect"
|
||||
msgstr "Bei der Verbindung auf <code>start</code> warten"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:41
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:47
|
||||
msgid "Enable automatic firmware detection"
|
||||
msgstr "Automatische Firmwareerkennung einschalten"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:42
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:48
|
||||
msgid ""
|
||||
"\n"
|
||||
" If enabled, OctoPrint will try to figure out your printer's firmware automatically and adjust a couple of communication parameters based on that.\n"
|
||||
@@ -2444,52 +2456,52 @@ msgid ""
|
||||
" "
|
||||
msgstr "Falls diese Option eingeschaltet ist, versucht OctoPrint die Firmware des Druckers automatisch zu erkennen und darauf basierend diverse Kommunikationsparameter zu konfigurieren.Falls das für dich nicht korrekt funktioniert oder du mehr Kontrolle haben möchtest, schalte diese Option aus und die entsprechenden Parameter werden zur manuellen Konfigurationeingeblendet."
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
|
||||
msgid "Select SD files by relative path"
|
||||
msgstr "SD Dateien per relativem Pfad addressieren"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
|
||||
msgid "RepRap Firmware"
|
||||
msgstr "RepRap Firmware"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
|
||||
msgid "Always assume SD card is present"
|
||||
msgstr "Immer davon ausgehen, dass eine SD-Karte vorhanden ist"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
|
||||
msgid "Repetier"
|
||||
msgstr "Repetier"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
|
||||
msgid "Ignore consecutive resend requests for the same line"
|
||||
msgstr "Aufeinanderfolgende Resend Requests für die selbe Zeilennummer ignorieren"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
|
||||
#, python-format
|
||||
msgid "Support <code>TargetExtr%%n</code>/<code>TargetBed</code> target temperature format"
|
||||
msgstr "<code>TargetExtr%%n</code>/<code>TargetBed</code> Zieltemperaturformat unterstützen"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
|
||||
msgid "Disable detection of external heatups"
|
||||
msgstr "Detektierung externer Aufheizvorgänge deaktivieren"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:86
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
|
||||
msgid "Send a checksum with the command"
|
||||
msgstr "Eine Prüfsumme mit dem Befehl senden"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:89
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
|
||||
msgid "When printing"
|
||||
msgstr "Beim Drucken"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
|
||||
msgid "Always"
|
||||
msgstr "Immer"
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:101
|
||||
msgid "Never"
|
||||
msgstr "Nie"
|
||||
|
||||
@@ -2863,15 +2875,15 @@ msgid ""
|
||||
" get you printing in no time!\n"
|
||||
msgstr "Danke, dass du OctoPrint installiert hast! Dieser Wizard wird dich nun durch die letzten Schritte begleiten, um deine OctoPrint Instanz fertig einzurichten."
|
||||
|
||||
#: src/octoprint/templates/navbar/login.jinja2:11
|
||||
#: src/octoprint/templates/navbar/login.jinja2:12
|
||||
msgid "Remember me"
|
||||
msgstr "Login merken"
|
||||
|
||||
#: src/octoprint/templates/navbar/login.jinja2:16
|
||||
#: src/octoprint/templates/navbar/login.jinja2:18
|
||||
msgid "User Settings"
|
||||
msgstr "Nutzereinstellungen"
|
||||
|
||||
#: src/octoprint/templates/navbar/login.jinja2:17
|
||||
#: src/octoprint/templates/navbar/login.jinja2:19
|
||||
msgid "Logout"
|
||||
msgstr "Logout"
|
||||
|
||||
@@ -3479,7 +3491,7 @@ msgstr ""
|
||||
"<p>\n"
|
||||
" Du hast <strong data-bind=\"text: selectedFile.name\"></strong> zum Drucken ausgewählt das\n"
|
||||
" <strong data-bind=\"text: formatSize(selectedFile.size())\"></strong> groß ist. Abhängig von Deinem\n"
|
||||
" System könnte das zu groß zum Rendern sein und Deinen Browser zum Absturz bringen. might be too large for rendering and cause your browser to become unresponsive or crash.\n"
|
||||
" System könnte das zu groß zum Rendern sein und Deinen Browser zum Absturz bringen.\n"
|
||||
" </p>\n"
|
||||
"\n"
|
||||
" <p>\n"
|
||||
@@ -3655,7 +3667,7 @@ msgstr "Zeitrafferaufnahme rendern"
|
||||
#~ msgstr "Vorhandene Datei überschreiben"
|
||||
|
||||
#~ msgid ""
|
||||
#~ msgstr ""
|
||||
#~ msgstr "Falls dir OctoPrint gefällt, bitte ziehe es in Betracht <a href=\"%(url)s\" target=\"_blank\">seine fortlaufende Entwicklung zu unterstützen</a>. Diese Entwicklung wird vollständig durch User wie Dich finanziert! Du kannst diesen Link auch im \"Über\" Dialog finden. <strong>Danke!</strong>"
|
||||
|
||||
#~ msgid "Bundled"
|
||||
#~ msgstr "Gebundled"
|
||||
@@ -3695,9 +3707,3 @@ msgstr "Zeitrafferaufnahme rendern"
|
||||
|
||||
#~ msgid "Reboot"
|
||||
#~ msgstr "Neustart"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
#~ " If you enjoy OctoPrint, please consider <a href=\"%(url)s\" target=\"_blank\">supporting its ongoing\n"
|
||||
#~ " development</a>. It's fully funded by users like you! You can also find this link in the \"About\" dialog. <strong>Thank you!</strong>\n"
|
||||
#~ msgstr "Falls dir OctoPrint gefällt, bitte ziehe es in Betracht <a href=\"%(url)s\" target=\"_blank\">seine fortlaufende Entwicklung zu unterstützen</a>. Diese Entwicklung wird vollständig durch User wie Dich finanziert! Du kannst diesen Link auch im \"Über\" Dialog finden. <strong>Danke!</strong>"
|
||||
+87
-75
@@ -1,14 +1,14 @@
|
||||
# Translations template for OctoPrint.
|
||||
# Copyright (C) 2016 The OctoPrint Project
|
||||
# Copyright (C) 2017 The OctoPrint Project
|
||||
# This file is distributed under the same license as the OctoPrint project.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OctoPrint 1.3.0.dev1608+gefb2f99.dirty\n"
|
||||
"Project-Id-Version: OctoPrint 1.3.1.dev40+gfb5d568\n"
|
||||
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
|
||||
"POT-Creation-Date: 2016-12-02 12:37+0100\n"
|
||||
"POT-Creation-Date: 2017-01-12 14:29+0100\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"
|
||||
@@ -156,16 +156,16 @@ msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:19
|
||||
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:45
|
||||
#: src/octoprint/templates/navbar/login.jinja2:6
|
||||
#: src/octoprint/templates/navbar/login.jinja2:7
|
||||
#: src/octoprint/templates/navbar/login.jinja2:8
|
||||
msgid "Username"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25
|
||||
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51
|
||||
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:3
|
||||
#: src/octoprint/templates/navbar/login.jinja2:8
|
||||
#: src/octoprint/templates/navbar/login.jinja2:9
|
||||
#: src/octoprint/templates/navbar/login.jinja2:10
|
||||
msgid "Password"
|
||||
msgstr ""
|
||||
|
||||
@@ -332,22 +332,22 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:176
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:296
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:297
|
||||
msgid "The path doesn't exist"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:178
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:298
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:299
|
||||
msgid "The path is not a file"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:180
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:300
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:301
|
||||
msgid "The path is not an executable"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/cura/static/js/cura.js:183
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:303
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:304
|
||||
msgid "The path is valid"
|
||||
msgstr ""
|
||||
|
||||
@@ -1501,8 +1501,8 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/dataupdater.js:170
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:848
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:855
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:849
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:856
|
||||
#, python-format
|
||||
msgid "Slicing ... (%(percentage)d%%)"
|
||||
msgstr ""
|
||||
@@ -1674,7 +1674,7 @@ msgstr ""
|
||||
#: src/octoprint/static/js/app/viewmodels/control.js:62
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:589
|
||||
#: src/octoprint/static/js/app/viewmodels/gcode.js:482
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:231
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:232
|
||||
#: src/octoprint/static/js/app/viewmodels/temperature.js:62
|
||||
msgid "Tool"
|
||||
msgstr ""
|
||||
@@ -1765,53 +1765,53 @@ msgstr ""
|
||||
msgid "Object doesn't fit print volume"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:850
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:851
|
||||
msgid "Slicing ..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:876
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:877
|
||||
msgid "Slicing done"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:877
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:878
|
||||
#, python-format
|
||||
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:892
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:893
|
||||
#, python-format
|
||||
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:893
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:894
|
||||
msgid "Slicing failed"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:910
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:911
|
||||
msgid "Streaming ..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:922
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:923
|
||||
msgid "Streaming done"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:923
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:924
|
||||
#, python-format
|
||||
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1019
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1020
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Could not upload the file. Make sure that it is a valid file with one of "
|
||||
"these extensions: %(extensions)s"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1040
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1041
|
||||
msgid "Saving ..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1040
|
||||
#: src/octoprint/static/js/app/viewmodels/files.js:1041
|
||||
msgid "Uploading ..."
|
||||
msgstr ""
|
||||
|
||||
@@ -1866,7 +1866,7 @@ msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:26
|
||||
#: src/octoprint/templates/navbar/login.jinja2:2
|
||||
#: src/octoprint/templates/navbar/login.jinja2:13
|
||||
#: src/octoprint/templates/navbar/login.jinja2:14
|
||||
msgid "Login"
|
||||
msgstr ""
|
||||
|
||||
@@ -1879,19 +1879,19 @@ msgstr ""
|
||||
msgid "You are now logged in as \"%(username)s\""
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
|
||||
msgid "Login failed"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:81
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:85
|
||||
msgid "User unknown or wrong password"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
|
||||
msgid "Logout successful"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:88
|
||||
#: src/octoprint/static/js/app/viewmodels/loginstate.js:92
|
||||
msgid "You are now logged out"
|
||||
msgstr ""
|
||||
|
||||
@@ -1990,89 +1990,97 @@ msgstr ""
|
||||
msgid "Edit Printer Profile \"%(name)s\""
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:46
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
|
||||
msgid "Restarts the print job from the beginning"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:47
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
|
||||
msgid "Starts the print job"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:48
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
|
||||
msgid "Resumes the print job"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:49
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:50
|
||||
msgid "Pauses the print job"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:82
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:83
|
||||
msgid "Still stabilizing..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:92
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:93
|
||||
msgid ""
|
||||
"Based on a linear approximation (very low accuracy, especially at the "
|
||||
"beginning of the print)"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:95
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:96
|
||||
msgid "Based on the estimate from analysis of file (medium accuracy)"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:98
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:99
|
||||
msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:101
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:102
|
||||
msgid ""
|
||||
"Based on the average total of past prints of this model with the same "
|
||||
"printer profile (usually good accuracy)"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:104
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:105
|
||||
msgid ""
|
||||
"Based on a mix of average total from past prints and calculation (usually"
|
||||
" good accuracy)"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:107
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:108
|
||||
msgid "Based on the calculated estimate (best accuracy)"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:145
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:146
|
||||
msgid "Continue"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:147
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:148
|
||||
#: src/octoprint/templates/sidebar/state.jinja2:24
|
||||
msgid "Pause"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:158
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:159
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:11
|
||||
msgid "On Z Change"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:10
|
||||
msgid "Timed"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:160
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:161
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:25
|
||||
#: src/octoprint/templates/tabs/timelapse.jinja2:39
|
||||
msgid "sec"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:268
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:269
|
||||
msgid "This will restart the print job from the beginning."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:292
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:296
|
||||
msgid "This will cancel your print."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:297
|
||||
msgid "No"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/printerstate.js:298
|
||||
msgid "Yes"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:64
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:82
|
||||
msgid "violet"
|
||||
@@ -2087,29 +2095,29 @@ msgstr ""
|
||||
msgid "Autodetect from browser"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:230
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:231
|
||||
msgid "If you see your webcam stream below, the entered stream URL is ok."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:236
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:237
|
||||
msgid "Stream test"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:249
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:250
|
||||
msgid "Could not retrieve snapshot URL, please double check the URL"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:250
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:251
|
||||
msgid "Snapshot test failed"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:272
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:273
|
||||
msgid ""
|
||||
"If you see your webcam snapshot picture below, the entered snapshot URL "
|
||||
"is ok."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:274
|
||||
#: src/octoprint/static/js/app/viewmodels/settings.js:275
|
||||
msgid "Snapshot test"
|
||||
msgstr ""
|
||||
|
||||
@@ -2588,22 +2596,26 @@ msgid "Beta"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:19
|
||||
msgid "Enable SD support"
|
||||
msgid "Confirm before cancelling a print"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:26
|
||||
msgid "Enable Keyboard Control"
|
||||
msgid "Enable SD support"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:33
|
||||
msgid "Enable Keyboard Control"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:40
|
||||
msgid "Wait for <code>start</code> on connect"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:41
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:47
|
||||
msgid "Enable automatic firmware detection"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:42
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:48
|
||||
msgid ""
|
||||
"\n"
|
||||
" If enabled, OctoPrint will try to figure out your "
|
||||
@@ -2615,54 +2627,54 @@ msgid ""
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
|
||||
msgid "Select SD files by relative path"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:53
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:59
|
||||
msgid "RepRap Firmware"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
|
||||
msgid "Always assume SD card is present"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:60
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:66
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
|
||||
msgid "Repetier"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:67
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:73
|
||||
msgid "Ignore consecutive resend requests for the same line"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:74
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:80
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Support <code>TargetExtr%%n</code>/<code>TargetBed</code> target "
|
||||
"temperature format"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:81
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:87
|
||||
msgid "Disable detection of external heatups"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:86
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
|
||||
msgid "Send a checksum with the command"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:89
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
|
||||
msgid "When printing"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:92
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:98
|
||||
msgid "Always"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:95
|
||||
#: src/octoprint/templates/dialogs/settings/features.jinja2:101
|
||||
msgid "Never"
|
||||
msgstr ""
|
||||
|
||||
@@ -3100,15 +3112,15 @@ msgid ""
|
||||
" get you printing in no time!\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/navbar/login.jinja2:11
|
||||
#: src/octoprint/templates/navbar/login.jinja2:12
|
||||
msgid "Remember me"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/navbar/login.jinja2:16
|
||||
#: src/octoprint/templates/navbar/login.jinja2:18
|
||||
msgid "User Settings"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/templates/navbar/login.jinja2:17
|
||||
#: src/octoprint/templates/navbar/login.jinja2:19
|
||||
msgid "Logout"
|
||||
msgstr ""
|
||||
|
||||
|
||||
Reference in new issue
Block a user