Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e628aedbc1 | ||
|
|
38fce1665b | ||
|
|
f51a98768c | ||
|
|
4d04c323f6 | ||
|
|
94116bfd53 | ||
|
|
a05761e63f | ||
|
|
89469d38ae | ||
|
|
bd2616e888 | ||
|
|
02e996436d | ||
|
|
a3f2e0b56c | ||
|
|
d60cab1962 | ||
|
|
b01e327f9d | ||
|
|
13260fa219 | ||
|
|
8292408c79 | ||
|
|
9165f83084 | ||
|
|
c2ef371089 | ||
|
|
ac129a2576 | ||
|
|
db8d420860 | ||
|
|
7d7cbb1760 | ||
|
|
89979f1bee | ||
|
|
bd241e8e6c | ||
|
|
7939b0ae4d | ||
|
|
6b57ba2d7d | ||
|
|
2c5465f9a6 | ||
|
|
1565129cfb | ||
|
|
b8d4a58207 | ||
|
|
900f03dc8a | ||
|
|
0c4c4a9d18 | ||
|
|
ff4ed38329 | ||
|
|
5f78ab7b73 | ||
|
|
6556d555bd | ||
|
|
d318ff82b8 | ||
|
|
ff53a826f9 | ||
|
|
d79e777911 | ||
|
|
335e635ec7 | ||
|
|
a5754a8552 | ||
|
|
a8c91ff6ba | ||
|
|
6285fd8010 | ||
|
|
799aedcaed |
No files matched your search
+3
-3
@@ -24,10 +24,10 @@ maintenance 1.3.10 fdf0f75ffa5731fee406c6e761e84a9d2b47aa43 pep440-dev
|
||||
fix/.* 1.3.10 fdf0f75ffa5731fee406c6e761e84a9d2b47aa43 pep440-dev
|
||||
improve/.* 1.3.10 fdf0f75ffa5731fee406c6e761e84a9d2b47aa43 pep440-dev
|
||||
|
||||
# staging/maintenance is currently the branch for preparation of 1.3.10rc2
|
||||
# staging/maintenance is currently the branch for preparation of 1.3.10rc4
|
||||
# so is regressionfix/...
|
||||
staging/maintenance 1.3.10rc2 e14c00f135bf2a955e54ac3f0a2928d8440055d2 pep440-dev
|
||||
regressionfix/.* 1.3.10rc2 e14c00f135bf2a955e54ac3f0a2928d8440055d2 pep440-dev
|
||||
staging/maintenance 1.3.10rc4 b01e327f9d89fc28646e57b709e12ff0574c6ffb pep440-dev
|
||||
regressionfix/.* 1.3.10rc4 b01e327f9d89fc28646e57b709e12ff0574c6ffb pep440-dev
|
||||
|
||||
# every other branch is a development branch and thus gets resolved to 1.4.0-dev for now
|
||||
.* 1.4.0 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev
|
||||
+73
-2
@@ -1,5 +1,69 @@
|
||||
# OctoPrint Changelog
|
||||
|
||||
## 1.3.10rc4 (2018-12-03)
|
||||
|
||||
### Improvements
|
||||
|
||||
* Backup: Exclude `generated`, `logs` and `watched` folders from backup
|
||||
* Backup: Use base version for version check on restore
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* [#2920](https://github.com/foosel/OctoPrint/issues/2920) - Backup: Fix wrong compatibility check logic in plugin install during restore
|
||||
* Backup: Disable restore on Windows servers where it's not supported thanks to the Windows file system
|
||||
* Backup: Fix reporting of restore failure due to version mismatch or other cases of an invalid backup
|
||||
* Backup: Fix feedback in UI during restore, start feedback right on upload of backup
|
||||
* Printer Safety: Fix localization of warning message
|
||||
|
||||
### Unreproduced issues
|
||||
|
||||
The following issues were reported in RC1 or RC2 but so far have been unreproduced and further data to analyse them is still missing. If you encounter any of them please report back with a [fully filled out issue template](https://github.com/foosel/OctoPrint/blob/master/CONTRIBUTING.md#what-should-i-include-in-a-bug-report):
|
||||
|
||||
* [Not possible to complete Anonymous Usage Tracking setup wizard](https://discourse.octoprint.org/t/anonymous-usage-setup/5151)
|
||||
* ["temperature changes doesn't work"](https://github.com/foosel/OctoPrint/issues/2889#issuecomment-441449215)
|
||||
|
||||
### Special thanks to all the contributors!
|
||||
|
||||
Special thanks to everyone who contributed to this release candidate and provided full, analysable bug reports.
|
||||
|
||||
### More information
|
||||
|
||||
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.10rc3...1.3.10rc4)
|
||||
|
||||
## 1.3.10rc3 (2018-11-28)
|
||||
|
||||
### Improvements
|
||||
|
||||
* More resilience against third party plugins that happily block or kill important startup threads
|
||||
* Improved backwards compatibility of the `sarge` dependency by monkey patching it to support the old `async` keyword parameter. Plugin authors are still advised to switch to the new `async_` parameter if running against `sarge>=0.1.5`, unmodified plugins should continue to work now however. For reference, OctoPrint 1.3.10 requires `sarge==0.1.5post0`.
|
||||
* Pi Support plugin: Better wording on the "undervoltage & overheat" popover & added a link to the FAQ entry
|
||||
* Printer Safety plugin: Micro3D printers running stock or iMe firmware are now detected as unsafe
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* [#2897](https://github.com/foosel/OctoPrint/issues/2897) - Improved error resilience of `is_lan_address` so an error during its execution no longer nukes requests
|
||||
* [#2898](https://github.com/foosel/OctoPrint/issues/2898) - ForceLogin plugin no longer interferes with websocket messages sent by plugins right on UI load but instead puts them into a (limited) backlog and then sends them out in received order once the user has authenticated on the socket.
|
||||
* [#2903](https://github.com/foosel/OctoPrint/issues/2903) - Backup plugin: Support for ZIP64 extensions for large zip files
|
||||
* [#2903](https://github.com/foosel/OctoPrint/issues/2903) - Backup plugin: Better error reporting
|
||||
* [#2908](https://github.com/foosel/OctoPrint/issues/2908) - Tracking: Use the file's `path` instead of just the `name` for file name hashing.
|
||||
* Fixed homepage link in Anonymous Usage Tracking plugin
|
||||
* Logout socket on UI logout
|
||||
|
||||
### Unreproduced issues
|
||||
|
||||
The following issues were reported in RC1 or RC2 but so far have been unreproduced and further data to analyse them is still missing. If you encounter any of them please report back with a [fully filled out issue template](https://github.com/foosel/OctoPrint/blob/master/CONTRIBUTING.md#what-should-i-include-in-a-bug-report):
|
||||
|
||||
* [Not possible to complete Anonymous Usage Tracking setup wizard](https://discourse.octoprint.org/t/anonymous-usage-setup/5151)
|
||||
* ["temperature changes doesn't work"](https://github.com/foosel/OctoPrint/issues/2889#issuecomment-441449215)
|
||||
|
||||
### Special thanks to all the contributors!
|
||||
|
||||
Special thanks to everyone who contributed to this release candidate and provided full, analysable bug reports.
|
||||
|
||||
### More information
|
||||
|
||||
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.10rc2...1.3.10rc3)
|
||||
|
||||
## 1.3.10rc2 (2018-11-13)
|
||||
|
||||
### Improvements
|
||||
@@ -125,9 +189,16 @@ Special thanks to everyone who contributed to this release candidate, especially
|
||||
|
||||
### Still running OctoPrint 1.3.6? Heads-up!
|
||||
|
||||
OctoPrint 1.3.9 includes a couple of dependency updates whose update during switch to 1.3.9 are known to trigger an "update failed" message within OctoPrint's update dialog:
|
||||
OctoPrint 1.3.9 includes a couple of dependency updates whose update during switch to 1.3.9 are known to trigger an "update failed" message within OctoPrint's update dialog:
|
||||
|
||||

|
||||
```
|
||||
|
||||
[...]
|
||||
OSError: [Errno 2] No such file or directory: '/home/pi/oprint/local/lib/python2.7/site-packages/python_dateutil-2.6.0-py2.7.egg'
|
||||
Successfully installed OctoPrint-1.3.9rc4 backports-abc-0.5 frozendict-1.2 markdown-2.6.11 pkginfo-1.4.2 pyserial-3.4 python-dateutil-2.6.1 singledispatch-3.4.0.3 tornado-4.5.3
|
||||
The update did not finish successfully. Please consult the log for details.
|
||||
|
||||
```
|
||||
|
||||
The update did in fact succeed and the issue lies with a change in the underlying update mechanism concerning the dependencies. This problem has been fixed in 1.3.7/1.3.8 and versions prior to 1.3.6 aren't yet affected, so there you won't ever see this message there. If you are still running 1.3.6 though and updating from it, **simply run the update a second time through Settings > Software Update > Check for updates and clicking "Update now" in the reshown update notification**.
|
||||
|
||||
|
||||
+3
-1
@@ -23,6 +23,7 @@ thanks to everyone who contributed!
|
||||
* Ernesto Martinez
|
||||
* Frank Sander
|
||||
* George Robles
|
||||
* Jared Go
|
||||
* Jeff Renfer
|
||||
* Jefferson Hunt
|
||||
* Jeremiah Avery
|
||||
@@ -33,6 +34,7 @@ thanks to everyone who contributed!
|
||||
* Kaile Riser
|
||||
* Kale Stedman
|
||||
* Kazuhiro Ogura
|
||||
* LA 3D Printer Repair
|
||||
* Lewis Newby
|
||||
* LulzBot®
|
||||
* Makespace Madrid
|
||||
@@ -54,4 +56,4 @@ thanks to everyone who contributed!
|
||||
* Timothy D Hoogland
|
||||
* Trent Shumay
|
||||
|
||||
and 1376 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
|
||||
and 1436 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
|
||||
@@ -562,6 +562,9 @@ Use the following settings to enable or disable OctoPrint features:
|
||||
- M117
|
||||
- M118
|
||||
|
||||
# whether G90/G91 also influence absolute/relative mode of extruders
|
||||
g90InfluencesExtruder: false
|
||||
|
||||
.. _sec-configuration-config_yaml-folder:
|
||||
|
||||
Folder
|
||||
@@ -1058,6 +1061,15 @@ Use the following settings to configure the server:
|
||||
# How many days to leave unused entries in the preemptive cache config
|
||||
until: 7
|
||||
|
||||
# Configuration of the client IP check to warn about connections from external networks
|
||||
ipCheck:
|
||||
|
||||
# whether to enable the check, defaults to true
|
||||
enabled: true
|
||||
|
||||
# additional non-local subnets to consider trusted, in CIDR notation, e.g. "192.168.1.0/24"
|
||||
trustedSubnets: []
|
||||
|
||||
|
||||
.. note::
|
||||
|
||||
|
||||
@@ -1238,6 +1238,20 @@ octoprint.server.http.routes
|
||||
:return: a list of 3-tuples with additional routes as defined above
|
||||
:rtype: list
|
||||
|
||||
.. _sec-plugins-hook-server-sockjs-authed:
|
||||
|
||||
octoprint.server.sockjs.authed
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. py:function:: socket_authed_hook(socket, user, *args, **kwargs):
|
||||
|
||||
Allows plugins to be notified that a user got authenticated or deauthenticated on the socket (e.g. due to logout).
|
||||
|
||||
See the bundled :ref:`Forcelogin Plugin <sec-bundledplugins-forcelogin>` for an example on how to utilize this.
|
||||
|
||||
:param object socket: the socket object which is about to be registered
|
||||
:param object user: the user that got authenticated on the socket, or None if the user got deauthenticated
|
||||
|
||||
.. _sec-plugins-hook-server-sockjs-register:
|
||||
|
||||
octoprint.server.sockjs.register
|
||||
|
||||
@@ -595,6 +595,9 @@ def main():
|
||||
# cut off stuff from the beginning
|
||||
args = args[-1 * sys_args_length:] if sys_args_length else []
|
||||
|
||||
from octoprint.util.fixes import patch_sarge_async_on_py2
|
||||
patch_sarge_async_on_py2()
|
||||
|
||||
from octoprint.cli import octo
|
||||
octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms
|
||||
|
||||
import os
|
||||
import logging
|
||||
import threading
|
||||
|
||||
from octoprint.settings import settings as s
|
||||
from octoprint.plugin.core import (PluginInfo, PluginManager, Plugin)
|
||||
@@ -168,7 +169,8 @@ def plugin_settings_for_settings_plugin(plugin_key, instance, settings=None):
|
||||
return plugin_settings(plugin_key, get_preprocessors=get_preprocessors, set_preprocessors=set_preprocessors, settings=settings)
|
||||
|
||||
|
||||
def call_plugin(types, method, args=None, kwargs=None, callback=None, error_callback=None, sorting_context=None, initialized=True):
|
||||
def call_plugin(types, method, args=None, kwargs=None, callback=None, error_callback=None, sorting_context=None,
|
||||
initialized=True):
|
||||
"""
|
||||
Helper method to invoke the indicated ``method`` on all registered plugin implementations implementing the
|
||||
indicated ``types``. Allows providing method arguments and registering callbacks to call in case of success
|
||||
@@ -206,7 +208,6 @@ def call_plugin(types, method, args=None, kwargs=None, callback=None, error_call
|
||||
identifier, ``plugin`` the plugin implementation instance itself and ``exc`` the caught exception.
|
||||
initialized (boolean): Whether the plugin needs to be initialized (True) or not (False). Initialization status
|
||||
is determined be presence of injected ``_identifier`` property.
|
||||
|
||||
"""
|
||||
|
||||
if not isinstance(types, (list, tuple)):
|
||||
@@ -216,18 +217,21 @@ def call_plugin(types, method, args=None, kwargs=None, callback=None, error_call
|
||||
if kwargs is None:
|
||||
kwargs = dict()
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
plugins = plugin_manager().get_implementations(*types, sorting_context=sorting_context)
|
||||
for plugin in plugins:
|
||||
if initialized and not hasattr(plugin, "_identifier"):
|
||||
continue
|
||||
|
||||
if hasattr(plugin, method):
|
||||
logger.debug("Calling {} on {}".format(method, plugin._identifier))
|
||||
try:
|
||||
result = getattr(plugin, method)(*args, **kwargs)
|
||||
if callback:
|
||||
callback(plugin._identifier, plugin, result)
|
||||
except Exception as exc:
|
||||
logging.getLogger(__name__).exception("Error while calling plugin %s" % plugin._identifier)
|
||||
logger.exception("Error while calling plugin %s" % plugin._identifier)
|
||||
if error_callback:
|
||||
error_callback(plugin._identifier, plugin, exc)
|
||||
|
||||
|
||||
@@ -25,9 +25,6 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms
|
||||
|
||||
from .core import (Plugin, RestartNeedingPlugin, SortablePlugin)
|
||||
|
||||
# noinspection PyCompatibility
|
||||
from past.builtins import basestring
|
||||
|
||||
class OctoPrintPlugin(Plugin):
|
||||
"""
|
||||
The parent class of all OctoPrint plugin mixins.
|
||||
@@ -159,6 +156,10 @@ class StartupPlugin(OctoPrintPlugin, SortablePlugin):
|
||||
is not actually up yet and none of your plugin's APIs or blueprints will be reachable yet. If you need to be
|
||||
externally reachable, use :func:`on_after_startup` instead or additionally.
|
||||
|
||||
.. warning::
|
||||
|
||||
Do not perform long-running or even blocking operations in your implementation or you **will** block and break the server.
|
||||
|
||||
The relevant sorting context is ``StartupPlugin.on_startup``.
|
||||
|
||||
:param string host: the host the server will listen on, may be ``0.0.0.0``
|
||||
@@ -171,6 +172,10 @@ class StartupPlugin(OctoPrintPlugin, SortablePlugin):
|
||||
"""
|
||||
Called just after launch of the server, so when the listen loop is actually running already.
|
||||
|
||||
.. warning::
|
||||
|
||||
Do not perform long-running or even blocking operations in your implementation or you **will** block and break the server.
|
||||
|
||||
The relevant sorting context is ``StartupPlugin.on_after_startup``.
|
||||
"""
|
||||
|
||||
@@ -191,6 +196,10 @@ class ShutdownPlugin(OctoPrintPlugin, SortablePlugin):
|
||||
"""
|
||||
Called upon the imminent shutdown of OctoPrint.
|
||||
|
||||
.. warning::
|
||||
|
||||
Do not perform long-running or even blocking operations in your implementation or you **will** block and break the server.
|
||||
|
||||
The relevant sorting context is ``ShutdownPlugin.on_shutdown``.
|
||||
"""
|
||||
pass
|
||||
@@ -1802,6 +1811,10 @@ class EventHandlerPlugin(OctoPrintPlugin):
|
||||
"""
|
||||
Called by OctoPrint upon processing of a fired event on the platform.
|
||||
|
||||
.. warning::
|
||||
|
||||
Do not perform long-running or even blocking operations in your implementation or you **will** block and break the server.
|
||||
|
||||
Arguments:
|
||||
event (str): The type of event that got fired, see :ref:`the list of events <sec-events-available_events>`
|
||||
for possible values
|
||||
|
||||
@@ -11,7 +11,8 @@ from octoprint.plugin.core import FolderOrigin
|
||||
from octoprint.server import admin_permission, NO_CONTENT
|
||||
from octoprint.server.util.flask import restricted_access
|
||||
from octoprint.util import is_hidden_path
|
||||
from octoprint.util.version import get_octoprint_version_string, get_octoprint_version, get_comparable_version
|
||||
from octoprint.util.version import get_octoprint_version_string, get_octoprint_version, get_comparable_version, is_octoprint_compatible
|
||||
from octoprint.util.platform import is_os_compatible
|
||||
from octoprint.util.pip import LocalPipCaller
|
||||
|
||||
try:
|
||||
@@ -83,7 +84,8 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
unknown_plugins = self._get_unknown_plugins()
|
||||
return flask.jsonify(backups=backups,
|
||||
backup_in_progress=len(self._in_progress) > 0,
|
||||
unknown_plugins=unknown_plugins)
|
||||
unknown_plugins=unknown_plugins,
|
||||
restore_supported=is_os_compatible(["!windows"]))
|
||||
|
||||
@octoprint.plugin.BlueprintPlugin.route("/unknown_plugins", methods=["GET"])
|
||||
@admin_permission.require(403)
|
||||
@@ -135,6 +137,17 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
|
||||
self._logger.info(u"... done creating backup zip.")
|
||||
|
||||
def on_backup_error(name, exc_info):
|
||||
with self._in_progress_lock:
|
||||
try:
|
||||
self._in_progress.remove(name)
|
||||
except ValueError:
|
||||
# we'll ignore that
|
||||
pass
|
||||
|
||||
self._send_client_message("backup_error", payload=dict(name=name,
|
||||
error=u"{}".format(exc_info[1])))
|
||||
self._logger.error(u"Error while creating backup zip", exc_info=exc_info)
|
||||
|
||||
thread = threading.Thread(target=self._create_backup,
|
||||
args=(backup_file,),
|
||||
@@ -143,7 +156,8 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
plugin_manager=self._plugin_manager,
|
||||
datafolder=self.get_plugin_data_folder(),
|
||||
on_backup_start=on_backup_start,
|
||||
on_backup_done=on_backup_done))
|
||||
on_backup_done=on_backup_done,
|
||||
on_backup_error=on_backup_error))
|
||||
thread.daemon = True
|
||||
thread.start()
|
||||
|
||||
@@ -172,6 +186,9 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
@admin_permission.require(403)
|
||||
@restricted_access
|
||||
def perform_restore(self):
|
||||
if not is_os_compatible(["!windows"]):
|
||||
return flask.make_response(u"Invalid request, the restores are not supported on the underlying operating system", 400)
|
||||
|
||||
input_name = "file"
|
||||
input_upload_path = input_name + "." + self._settings.global_get(["server", "uploads", "pathSuffix"])
|
||||
|
||||
@@ -200,8 +217,8 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
self._send_client_message("logline", dict(line=line, type="stdout"))
|
||||
|
||||
for plugin in plugins:
|
||||
octoprint_compatible = plugin["compatibility"]["octoprint"]
|
||||
os_compatible = plugin["compatibility"]["os"]
|
||||
octoprint_compatible = is_octoprint_compatible(*plugin["compatibility"]["octoprint"])
|
||||
os_compatible = is_os_compatible(plugin["compatibility"]["os"])
|
||||
compatible = octoprint_compatible and os_compatible
|
||||
if not compatible:
|
||||
if not octoprint_compatible and not os_compatible:
|
||||
@@ -251,6 +268,9 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
def on_restore_failed(path):
|
||||
self._send_client_message("restore_failed")
|
||||
|
||||
def on_invalid_backup(line):
|
||||
on_log_error(line)
|
||||
|
||||
archive = tempfile.NamedTemporaryFile(delete=False)
|
||||
archive.close()
|
||||
shutil.copy(path, archive.name)
|
||||
@@ -264,6 +284,7 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
datafolder=self.get_plugin_data_folder(),
|
||||
on_install_plugins=on_install_plugins,
|
||||
on_report_unknown_plugins=on_report_unknown_plugins,
|
||||
on_invalid_backup=on_invalid_backup,
|
||||
on_log_progress=on_log_progress,
|
||||
on_log_error=on_log_error,
|
||||
on_restore_start=on_restore_start,
|
||||
@@ -372,8 +393,8 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
click.echo(u"\t{}".format(line))
|
||||
|
||||
for plugin in plugins:
|
||||
octoprint_compatible = plugin["compatibility"]["octoprint"]
|
||||
os_compatible = plugin["compatibility"]["os"]
|
||||
octoprint_compatible = is_octoprint_compatible(*plugin["compatibility"]["octoprint"])
|
||||
os_compatible = is_os_compatible(plugin["compatibility"]["os"])
|
||||
compatible = octoprint_compatible and os_compatible
|
||||
if not compatible:
|
||||
if not octoprint_compatible and not os_compatible:
|
||||
@@ -420,7 +441,8 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
on_install_plugins=on_install_plugins,
|
||||
on_report_unknown_plugins=on_report_unknown_plugins,
|
||||
on_log_progress=on_log_progress,
|
||||
on_log_error=on_log_error):
|
||||
on_log_error=on_log_error,
|
||||
on_invalid_backup=on_log_error):
|
||||
click.echo(u"Restored from {}".format(path))
|
||||
else:
|
||||
click.echo(u"Restoring from {} failed".format(path), err=True)
|
||||
@@ -571,81 +593,95 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
plugin_manager=None,
|
||||
datafolder=None,
|
||||
on_backup_start=None,
|
||||
on_backup_done=None):
|
||||
if exclude is None:
|
||||
exclude = []
|
||||
on_backup_done=None,
|
||||
on_backup_error=None):
|
||||
try:
|
||||
if exclude is None:
|
||||
exclude = []
|
||||
|
||||
configfile = settings._configfile
|
||||
basedir = settings._basedir
|
||||
configfile = settings._configfile
|
||||
basedir = settings._basedir
|
||||
|
||||
temporary_path = os.path.join(datafolder, ".{}".format(name))
|
||||
final_path = os.path.join(datafolder, name)
|
||||
temporary_path = os.path.join(datafolder, ".{}".format(name))
|
||||
final_path = os.path.join(datafolder, name)
|
||||
|
||||
size = cls._get_disk_size(basedir)
|
||||
if not cls._free_space(os.path.dirname(temporary_path), size):
|
||||
raise InsufficientSpace()
|
||||
size = cls._get_disk_size(basedir)
|
||||
if not cls._free_space(os.path.dirname(temporary_path), size):
|
||||
raise InsufficientSpace()
|
||||
|
||||
own_folder = datafolder
|
||||
defaults = [os.path.join(basedir, "config.yaml"),] + \
|
||||
[os.path.join(basedir, folder) for folder in default_settings["folder"].keys()]
|
||||
own_folder = datafolder
|
||||
defaults = [os.path.join(basedir, "config.yaml"),] + \
|
||||
[os.path.join(basedir, folder) for folder in default_settings["folder"].keys()]
|
||||
|
||||
compression = zipfile.ZIP_DEFLATED if zlib else zipfile.ZIP_STORED
|
||||
compression = zipfile.ZIP_DEFLATED if zlib else zipfile.ZIP_STORED
|
||||
|
||||
if callable(on_backup_start):
|
||||
on_backup_start(name, temporary_path, exclude)
|
||||
if callable(on_backup_start):
|
||||
on_backup_start(name, temporary_path, exclude)
|
||||
|
||||
with zipfile.ZipFile(temporary_path, "w", compression) as zip:
|
||||
def add_to_zip(source, target, ignored=None):
|
||||
if ignored is None:
|
||||
ignored = []
|
||||
with zipfile.ZipFile(temporary_path, mode="w", compression=compression, allowZip64=True) as zip:
|
||||
def add_to_zip(source, target, ignored=None):
|
||||
if ignored is None:
|
||||
ignored = []
|
||||
|
||||
if source in ignored:
|
||||
return
|
||||
if source in ignored:
|
||||
return
|
||||
|
||||
if os.path.isdir(source):
|
||||
for entry in scandir(source):
|
||||
add_to_zip(entry.path, os.path.join(target, entry.name), ignored=ignored)
|
||||
elif os.path.isfile(source):
|
||||
zip.write(source, arcname=target)
|
||||
if os.path.isdir(source):
|
||||
for entry in scandir(source):
|
||||
add_to_zip(entry.path, os.path.join(target, entry.name), ignored=ignored)
|
||||
elif os.path.isfile(source):
|
||||
zip.write(source, arcname=target)
|
||||
|
||||
# add metadata
|
||||
metadata = dict(version=get_octoprint_version_string(),
|
||||
excludes=exclude)
|
||||
zip.writestr("metadata.json", json.dumps(metadata))
|
||||
# add metadata
|
||||
metadata = dict(version=get_octoprint_version_string(),
|
||||
excludes=exclude)
|
||||
zip.writestr("metadata.json", json.dumps(metadata))
|
||||
|
||||
# backup current config file
|
||||
add_to_zip(configfile, "basedir/config.yaml", ignored=[own_folder,])
|
||||
# backup current config file
|
||||
add_to_zip(configfile, "basedir/config.yaml", ignored=[own_folder,])
|
||||
|
||||
# backup configured folder paths
|
||||
for folder in default_settings["folder"].keys():
|
||||
if folder in exclude:
|
||||
continue
|
||||
add_to_zip(settings.global_get_basefolder(folder),
|
||||
"basedir/" + folder.replace("_", "/"),
|
||||
ignored=[own_folder,])
|
||||
# backup configured folder paths
|
||||
for folder in default_settings["folder"].keys():
|
||||
if folder in exclude:
|
||||
continue
|
||||
|
||||
# backup anything else that might be lying around in our basedir
|
||||
add_to_zip(basedir, "basedir", ignored=defaults + [own_folder, ])
|
||||
if folder in ("generated", "logs", "watched",):
|
||||
continue
|
||||
|
||||
# add list of installed plugins
|
||||
plugins = []
|
||||
plugin_folder = settings.global_get_basefolder("plugins")
|
||||
for key, plugin in plugin_manager.plugins.items():
|
||||
if plugin.bundled or (isinstance(plugin.origin, FolderOrigin) and plugin.origin.folder == plugin_folder):
|
||||
# ignore anything bundled or from the plugins folder we already include in the backup
|
||||
continue
|
||||
add_to_zip(settings.global_get_basefolder(folder),
|
||||
"basedir/" + folder.replace("_", "/"),
|
||||
ignored=[own_folder,])
|
||||
|
||||
plugins.append(dict(key=plugin.key,
|
||||
name=plugin.name,
|
||||
url=plugin.url))
|
||||
# backup anything else that might be lying around in our basedir
|
||||
add_to_zip(basedir, "basedir", ignored=defaults + [own_folder, ])
|
||||
|
||||
if len(plugins):
|
||||
zip.writestr("plugin_list.json", json.dumps(plugins))
|
||||
# add list of installed plugins
|
||||
plugins = []
|
||||
plugin_folder = settings.global_get_basefolder("plugins")
|
||||
for key, plugin in plugin_manager.plugins.items():
|
||||
if plugin.bundled or (isinstance(plugin.origin, FolderOrigin) and plugin.origin.folder == plugin_folder):
|
||||
# ignore anything bundled or from the plugins folder we already include in the backup
|
||||
continue
|
||||
|
||||
os.rename(temporary_path, final_path)
|
||||
plugins.append(dict(key=plugin.key,
|
||||
name=plugin.name,
|
||||
url=plugin.url))
|
||||
|
||||
if callable(on_backup_done):
|
||||
on_backup_done(name, final_path, exclude)
|
||||
if len(plugins):
|
||||
zip.writestr("plugin_list.json", json.dumps(plugins))
|
||||
|
||||
os.rename(temporary_path, final_path)
|
||||
|
||||
if callable(on_backup_done):
|
||||
on_backup_done(name, final_path, exclude)
|
||||
except:
|
||||
if callable(on_backup_error):
|
||||
exc_info = sys.exc_info()
|
||||
try:
|
||||
on_backup_error(name, exc_info)
|
||||
finally:
|
||||
del exc_info
|
||||
raise
|
||||
|
||||
@classmethod
|
||||
def _restore_backup(cls, path,
|
||||
@@ -660,6 +696,13 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
on_restore_start=None,
|
||||
on_restore_done=None,
|
||||
on_restore_failed=None):
|
||||
if not is_os_compatible(["!windows"]):
|
||||
if callable(on_log_error):
|
||||
on_log_error(u"Restore is not supported on this operating system")
|
||||
if callable(on_restore_failed):
|
||||
on_restore_failed(path)
|
||||
return False
|
||||
|
||||
restart_command = settings.global_get(["server", "commands", "serverRestartCommand"])
|
||||
|
||||
basedir = settings._basedir
|
||||
@@ -683,15 +726,19 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
except KeyError:
|
||||
if callable(on_invalid_backup):
|
||||
on_invalid_backup(u"Not an OctoPrint backup, lacks metadata.json")
|
||||
if callable(on_restore_failed):
|
||||
on_restore_failed(path)
|
||||
return False
|
||||
|
||||
metadata_bytes = zip.read(metadata_zipinfo)
|
||||
metadata = json.loads(metadata_bytes)
|
||||
|
||||
backup_version = get_comparable_version(metadata["version"])
|
||||
if backup_version > get_octoprint_version():
|
||||
backup_version = get_comparable_version(metadata["version"], base=True)
|
||||
if backup_version > get_octoprint_version(base=True):
|
||||
if callable(on_invalid_backup):
|
||||
on_invalid_backup(u"Backup is from a newer version of OctoPrint and cannot be applied")
|
||||
if callable(on_restore_failed):
|
||||
on_restore_failed(path)
|
||||
return False
|
||||
|
||||
# unzip to temporary folder
|
||||
@@ -710,6 +757,8 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
if not os.path.exists(configfile):
|
||||
if callable(on_invalid_backup):
|
||||
on_invalid_backup(u"Backup lacks config.yaml")
|
||||
if callable(on_restore_failed):
|
||||
on_restore_failed(path)
|
||||
return False
|
||||
|
||||
import yaml
|
||||
@@ -722,6 +771,8 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
if not os.path.exists(userfile):
|
||||
if callable(on_invalid_backup):
|
||||
on_invalid_backup(u"Backup lacks users.yaml")
|
||||
if callable(on_restore_failed):
|
||||
on_restore_failed(path)
|
||||
return False
|
||||
|
||||
if callable(on_log_progress):
|
||||
@@ -808,10 +859,14 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
shutil.rmtree(temp)
|
||||
|
||||
except:
|
||||
if callable(on_log_error):
|
||||
on_log_error(u"Error while running restore", exc_info=sys.exc_info())
|
||||
if callable(on_restore_failed):
|
||||
on_restore_failed(path)
|
||||
exc_info = sys.exc_info()
|
||||
try:
|
||||
if callable(on_log_error):
|
||||
on_log_error(u"Error while running restore", exc_info=exc_info)
|
||||
if callable(on_restore_failed):
|
||||
on_restore_failed(path)
|
||||
finally:
|
||||
del exc_info
|
||||
return False
|
||||
|
||||
finally:
|
||||
@@ -826,6 +881,9 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
|
||||
if callable(on_log_progress):
|
||||
on_log_progress(u"Restarting...")
|
||||
if callable(on_restore_done):
|
||||
on_restore_done(path)
|
||||
|
||||
try:
|
||||
sarge.run(restart_command, async_=True)
|
||||
except:
|
||||
@@ -835,8 +893,9 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
on_log_error(u"Please restart OctoPrint manually")
|
||||
return False
|
||||
|
||||
if callable(on_restore_done):
|
||||
on_restore_done(path)
|
||||
else:
|
||||
if callable(on_restore_done):
|
||||
on_restore_done(path)
|
||||
|
||||
return True
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ $(function() {
|
||||
|
||||
self.excludeFromBackup = ko.observableArray([]);
|
||||
self.backupInProgress = ko.observable(false);
|
||||
self.restoreSupported = ko.observable(true);
|
||||
|
||||
self.backupUploadButton = $("#settings-backup-upload");
|
||||
self.backupUploadData = undefined;
|
||||
@@ -66,6 +67,7 @@ $(function() {
|
||||
self.fromResponse = function(response) {
|
||||
self.backups.updateItems(response.backups);
|
||||
self.unknownPlugins(response.unknown_plugins);
|
||||
self.restoreSupported(response.restore_supported);
|
||||
};
|
||||
|
||||
self.createBackup = function() {
|
||||
@@ -88,7 +90,15 @@ $(function() {
|
||||
};
|
||||
|
||||
self.restoreBackup = function(backup) {
|
||||
if (!self.restoreSupported()) return;
|
||||
|
||||
var perform = function() {
|
||||
self.restoreInProgress(true);
|
||||
self.loglines.removeAll();
|
||||
self.loglines.push({line: "Preparing to restore...", stream: "message"});
|
||||
self.loglines.push({line: " ", stream: "message"});
|
||||
self.restoreDialog.modal({keyboard: false, backdrop: "static", show: true});
|
||||
|
||||
OctoPrint.plugins.backup.restoreBackup(backup);
|
||||
};
|
||||
showConfirmationDialog(_.sprintf(gettext("You are about to restore the backup file \"%(name)s\". This cannot be undone."), {name: backup}),
|
||||
@@ -99,6 +109,12 @@ $(function() {
|
||||
if (self.backupUploadData === undefined) return;
|
||||
|
||||
var perform = function() {
|
||||
self.restoreInProgress(true);
|
||||
self.loglines.removeAll();
|
||||
self.loglines.push({line: "Uploading backup, this can take a while. Please wait...", stream: "message"});
|
||||
self.loglines.push({line: " ", stream: "message"});
|
||||
self.restoreDialog.modal({keyboard: false, backdrop: "static", show: true});
|
||||
|
||||
self.backupUploadData.submit();
|
||||
};
|
||||
showConfirmationDialog(_.sprintf(gettext("You are about to upload and restore the backup file \"%(name)s\". This cannot be undone."), {name: self.backupUploadName()}),
|
||||
@@ -155,14 +171,24 @@ $(function() {
|
||||
if (data.type === "backup_done") {
|
||||
self.requestData();
|
||||
self.backupInProgress(false);
|
||||
new PNotify({
|
||||
title: gettext("Backup created successfully"),
|
||||
type: "success"
|
||||
});
|
||||
} else if (data.type === "backup_started") {
|
||||
self.backupInProgress(true);
|
||||
} else if (data.type === "backup_error") {
|
||||
self.requestData();
|
||||
self.backupInProgress(false);
|
||||
new PNotify({
|
||||
title: gettext("Creating the backup failed"),
|
||||
text: _.sprintf(gettext("OctoPrint could not create your backup. Please consult <code>octoprint.log</code> for details. Error: %(error)s"), {error:data.error}),
|
||||
type: "error",
|
||||
hide: false
|
||||
});
|
||||
} else if (data.type === "restore_started") {
|
||||
self.restoreInProgress(true);
|
||||
self.loglines.removeAll();
|
||||
self.loglines.push({line: gettext("Restoring from backup..."), stream: "message"});
|
||||
self.loglines.push({line: " ", stream: "message"});
|
||||
self.restoreDialog.modal({keyboard: false, backdrop: "static", show: true});
|
||||
} else if (data.type === "restore_failed") {
|
||||
self.loglines.push({line: " ", stream: "message"});
|
||||
self.loglines.push({line: gettext("Restore failed! Check the above output and octoprint.log for reasons as to why."), stream: "error"});
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
<td class="settings_plugin_backup_name" data-bind="text: name"></td>
|
||||
<td class="settings_plugin_backup_date" data-bind="text: formatDate(date)"></td>
|
||||
<td class="settings_plugin_backup_size" data-bind="text: formatSize(size)"></td>
|
||||
<td class="settings_plugin_backup_actions"><a href="javascript:void(0)" title="{{ _('Delete') }}" class="fa fa-trash-o" data-bind="click: function() { $parent.removeBackup($data.name) }, css: {disabled: $root.backupInProgress() || $root.restoreInProgress()"></a> | <a href="javascript:void(0)" title="{{ _('Download') }}" class="fa fa-download" data-bind="attr: {href: url}"></a> | <a href="javascript:void(0)" title="{{ _('Restore') }}" data-bind="click: function() { $parent.restoreBackup($data.name) }, css: {disabled: $root.backupInProgress() || $root.restoreInProgress()"><i class="fa fa-refresh"></i></a></td>
|
||||
<td class="settings_plugin_backup_actions"><a href="javascript:void(0)" title="{{ _('Delete') }}" class="fa fa-trash-o" data-bind="click: function() { $parent.removeBackup($data.name) }, css: {disabled: $root.backupInProgress() || $root.restoreInProgress()"></a> | <a href="javascript:void(0)" title="{{ _('Download') }}" class="fa fa-download" data-bind="attr: {href: url}"></a><span data-bind="visible: $parent.restoreSupported()"> | <a href="javascript:void(0)" title="{{ _('Restore') }}" data-bind="click: function() { $parent.restoreBackup($data.name) }, css: {disabled: $root.backupInProgress() || $root.restoreInProgress()"><i class="fa fa-refresh"></i></a></span></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -91,30 +91,36 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<h3>{{ _('Restore from uploaded backup') }}</h3>
|
||||
<div data-bind="visible: restoreSupported()">
|
||||
<h3>{{ _('Restore from uploaded backup') }}</h3>
|
||||
|
||||
<p>{{ _('Restore settings & files from an uploaded backup archive.') }}</p>
|
||||
<p>{{ _('Restore settings & files from an uploaded backup archive.') }}</p>
|
||||
|
||||
<form class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label">{{ _('Backup file') }}</label>
|
||||
<div class="controls">
|
||||
<div class="input-prepend">
|
||||
<span class="btn fileinput-button">
|
||||
<span>{{ _('Browse...') }}</span>
|
||||
<input id="settings-backup-upload" type="file" name="file" data-url="{{ url_for("plugin.backup.perform_restore") }}" accept=".zip">
|
||||
</span>
|
||||
<span class="add-on" data-bind="text: backupUploadName"></span>
|
||||
<form class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label">{{ _('Backup file') }}</label>
|
||||
<div class="controls">
|
||||
<div class="input-prepend">
|
||||
<span class="btn fileinput-button">
|
||||
<span>{{ _('Browse...') }}</span>
|
||||
<input id="settings-backup-upload" type="file" name="file" data-url="{{ url_for("plugin.backup.perform_restore") }}" accept=".zip">
|
||||
</span>
|
||||
<span class="add-on" data-bind="text: backupUploadName"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary" data-bind="enable: !backupInProgress() && !restoreInProgress(), click: performRestoreFromUpload"><i class="fa fa-spinner fa-spin" data-bind="visible: restoreInProgress"></i> {{ _('Upload & restore') }}</button>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary" data-bind="enable: !backupInProgress() && !restoreInProgress(), click: performRestoreFromUpload"><i class="fa fa-spinner fa-spin" data-bind="visible: restoreInProgress"></i> {{ _('Upload & restore') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div data-bind="visible: !restoreSupported()">
|
||||
{{ _('Please note that the operating system that this OctoPrint server is running on does not support automatically restoring backups. You will have to <a href="%(url)s" target="_blank" rel="noopener noreferrer">restore your backups manually for now</a>.', url='https://faq.octoprint.org/manual-restore') }}
|
||||
</div>
|
||||
|
||||
<div id="settings_plugin_backup_restoredialog" class="modal hide fade">
|
||||
<div class="modal-header">
|
||||
|
||||
@@ -10,9 +10,18 @@ import flask
|
||||
import flask_login
|
||||
from flask_babel import gettext
|
||||
|
||||
from collections import defaultdict
|
||||
import threading
|
||||
|
||||
class ForceLoginPlugin(octoprint.plugin.UiPlugin,
|
||||
octoprint.plugin.TemplatePlugin,
|
||||
octoprint.plugin.AssetPlugin):
|
||||
MAX_BACKLOG_LEN = 100
|
||||
|
||||
# noinspection PyMissingConstructor
|
||||
def __init__(self):
|
||||
self._message_backlog = defaultdict(list)
|
||||
self._message_backlog_mutex = threading.RLock()
|
||||
|
||||
def get_assets(self):
|
||||
return dict(
|
||||
@@ -123,6 +132,15 @@ class ForceLoginPlugin(octoprint.plugin.UiPlugin,
|
||||
|
||||
return user is not None and not user.is_anonymous() and user.is_active()
|
||||
|
||||
def socket_authed(self, socket, user):
|
||||
with self._message_backlog_mutex:
|
||||
backlog = self._message_backlog.pop(socket, [])
|
||||
|
||||
if len(backlog):
|
||||
for message, payload in backlog:
|
||||
socket._do_emit(message, payload)
|
||||
self._logger.debug("Sent backlog of {} message(s) via socket".format(len(backlog)))
|
||||
|
||||
def socket_emit_validator(self, socket, user, message, payload):
|
||||
if self._user_manager.enabled and not self._user_manager.hasBeenCustomized():
|
||||
# ACL hasn't been configured yet, make an exception
|
||||
@@ -134,7 +152,17 @@ class ForceLoginPlugin(octoprint.plugin.UiPlugin,
|
||||
if message in ("connected", "reauthRequired"):
|
||||
return True
|
||||
|
||||
return user is not None and not user.is_anonymous() and user.is_active()
|
||||
if user is not None and not user.is_anonymous() and user.is_active():
|
||||
return True
|
||||
|
||||
with self._message_backlog_mutex:
|
||||
if len(self._message_backlog[socket]) < self.MAX_BACKLOG_LEN:
|
||||
self._message_backlog[socket].append((message, payload))
|
||||
self._logger.debug("Socket message held back until authed, added to backlog: {}".format(message))
|
||||
else:
|
||||
self._logger.warn("Socket message held back, but backlog full. Throwing message away: {}".format(message))
|
||||
|
||||
return False
|
||||
|
||||
|
||||
__plugin_name__ = "Force Login"
|
||||
@@ -150,5 +178,6 @@ __plugin_hooks__ = {
|
||||
"octoprint.server.api.before_request": __plugin_implementation__.get_before_request_handlers,
|
||||
"octoprint.server.http.access_validator": __plugin_implementation__.access_validator,
|
||||
"octoprint.server.sockjs.register": __plugin_implementation__.socket_register_validator,
|
||||
"octoprint.server.sockjs.authed": __plugin_implementation__.socket_authed,
|
||||
"octoprint.server.sockjs.emit": __plugin_implementation__.socket_emit_validator
|
||||
}
|
||||
@@ -27,7 +27,7 @@ $(function() {
|
||||
|
||||
var octoPrintVersion = $(".footer span.version");
|
||||
var octoPiVersion = $("<span id='octopi_support_footer'> " + gettext("running on") + " " + gettext("OctoPi")
|
||||
+ " <span class='octopi_version'>" + response.octopi_version + "</span></span>")
|
||||
+ " <span class='octopi_version'>" + response.octopi_version + "</span></span>");
|
||||
$(octoPiVersion).insertAfter(octoPrintVersion);
|
||||
})
|
||||
};
|
||||
@@ -41,11 +41,34 @@ $(function() {
|
||||
self.pastIssue(state.past_issue);
|
||||
};
|
||||
|
||||
self.issuePopoverContent = function() {
|
||||
return "<p><strong><i class=\"fa fa-bolt\"></i><i class=\"fa fa-exclamation\"></i></strong></strong> - " + gettext("Undervoltage. Make sure your power supply and cabling are providing enough power to the Pi.") + "</p>"
|
||||
+ "<p><strong><i class=\"fa fa-thermometer-full\"></i><i class=\"fa fa-exclamation\"></i></strong> - " + gettext("Frequency capping due to overheating. Improve cooling of the CPU and GPU.") + "</p>"
|
||||
+ "<p>" + gettext("A blinking icon indicates an acute issue!") + "</p>"
|
||||
};
|
||||
self.popoverContent = ko.pureComputed(function() {
|
||||
var undervoltageParagraphClasses = "muted";
|
||||
var undervoltageSymbolClasses = "";
|
||||
|
||||
var overheatParagraphClasses = "muted";
|
||||
var overheatSymbolClasses = "";
|
||||
|
||||
if (self.currentUndervoltage()) {
|
||||
undervoltageSymbolClasses = "text-error pi_support_state_pulsate";
|
||||
undervoltageParagraphClasses = "";
|
||||
} else if (self.pastUndervoltage()) {
|
||||
undervoltageSymbolClasses = "text-error";
|
||||
undervoltageParagraphClasses = "";
|
||||
}
|
||||
|
||||
if (self.currentOverheat()) {
|
||||
overheatSymbolClasses = "text-error pi_support_state_pulsate";
|
||||
overheatParagraphClasses = "";
|
||||
} else if (self.pastOverheat()) {
|
||||
overheatSymbolClasses = "text-error";
|
||||
overheatParagraphClasses = "";
|
||||
}
|
||||
|
||||
return "<p class='" + undervoltageParagraphClasses + "'><strong class='" + undervoltageSymbolClasses + "'><i class=\"fa fa-bolt\"></i><i class=\"fa fa-exclamation\"></i></strong></strong> - " + gettext("Undervoltage. Make sure your power supply and cabling are providing enough power to the Pi.") + "</p>"
|
||||
+ "<p class='" + overheatParagraphClasses + "'><strong class='" + overheatSymbolClasses + "'><i class=\"fa fa-thermometer-full\"></i><i class=\"fa fa-exclamation\"></i></strong> - " + gettext("Frequency capping due to overheating. Improve cooling of the CPU and GPU.") + "</p>"
|
||||
+ "<p>" + gettext("A blinking symbol indicates a current issue, a non blinking symbol one that was observed some time since the Pi booted up.") + "</p>"
|
||||
+ "<p><small>" + gettext("Click the symbol in the navbar for more information.") + "</small></p>";
|
||||
});
|
||||
|
||||
self.onStartup = function() {
|
||||
self.requestData();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<a href="javascript:void(0)" data-bind="visible: currentIssue() || pastIssue(), popover: { placement: 'bottom', title: '{{ _('Issues reported by the Pi') }}', html: true, content: issuePopoverContent(), trigger: 'hover' }" style="display: none">
|
||||
<a href="https://faq.octoprint.org/pi-issues" target="_blank" rel="noopener noreferrer" data-bind="visible: currentIssue() || pastIssue(), popover: { placement: 'bottom', title: '{{ _('What do the symbols mean?') }}', html: true, content: popoverContent, trigger: 'hover' }" style="display: none">
|
||||
<span data-bind="visible: currentUndervoltage() || pastUndervoltage(), css: {'pi_support_state_pulsate': currentUndervoltage}" title="{{ _('Undervoltage') }}"><i class="fa fa-bolt"></i><i class="fa fa-exclamation"></i></span>
|
||||
<span data-bind="visible: currentOverheat() || pastOverheat(), css: {'pi_support_state_pulsate': currentOverheat}" title="{{ _('Overheat') }}"><i class="fa fa-thermometer-full"></i><i class="fa fa-exclamation"></i></span>
|
||||
</a>
|
||||
@@ -40,9 +40,15 @@ CR10S_RECEIVED_TEST = lambda line: line and CR10S_AUTHOR in line.lower()
|
||||
ENDER3_AUTHOR = " | Author: (Ender3)".lower()
|
||||
ENDER3_RECEIVED_TEST = lambda line: line and ENDER3_AUTHOR in line.lower()
|
||||
|
||||
# iMe on Micro3D
|
||||
IME_M115_TEST = lambda name, data: name and name.lower().startswith("ime")
|
||||
|
||||
# Malyan M200 aka Monoprice Select Mini
|
||||
MALYANM200_M115_TEST = lambda name, data: name and name.lower().startswith("malyan") and data.get("MODEL") == "M200"
|
||||
|
||||
# Stock Micro3D
|
||||
MICRO3D_M115_TEST = lambda name, data: name and name.lower().startswith("micro3d")
|
||||
|
||||
# Any Repetier versions < 0.92
|
||||
REPETIER_BEFORE_092_M115_TEST = lambda name, data: name and name.lower().startswith("repetier") and extract_repetier_version(name) is not None and extract_repetier_version(name) < get_comparable_version("0.92")
|
||||
|
||||
@@ -50,11 +56,12 @@ REPETIER_BEFORE_092_M115_TEST = lambda name, data: name and name.lower().startsw
|
||||
THERMAL_PROTECTION_CAP_TEST = lambda cap, enabled: cap == "THERMAL_PROTECTION" and not enabled
|
||||
|
||||
SAFETY_CHECKS = {
|
||||
"firmware-unsafe": dict(m115=(ANETA8_M115_TEST, MALYANM200_M115_TEST, REPETIER_BEFORE_092_M115_TEST),
|
||||
"firmware-unsafe": dict(m115=(ANETA8_M115_TEST, IME_M115_TEST, MALYANM200_M115_TEST, MICRO3D_M115_TEST,
|
||||
REPETIER_BEFORE_092_M115_TEST),
|
||||
received=(ANYCUBIC_RECEIVED_TEST, CR10S_RECEIVED_TEST, ENDER3_RECEIVED_TEST),
|
||||
cap=(THERMAL_PROTECTION_CAP_TEST,),
|
||||
message=u"Your printer's firmware is known to lack mandatory safety features (e.g. " \
|
||||
u"thermal runaway protection). This is a fire risk.")
|
||||
message=gettext(u"Your printer's firmware is known to lack mandatory safety features (e.g. "
|
||||
u"thermal runaway protection). This is a fire risk."))
|
||||
}
|
||||
|
||||
def extract_repetier_version(name):
|
||||
|
||||
@@ -23,7 +23,7 @@ $(function() {
|
||||
self.fromResponse = function(data) {
|
||||
var warnings = [];
|
||||
_.each(data, function(message, warning_type) {
|
||||
warnings.push({type: warning_type, message: message});
|
||||
warnings.push({type: warning_type, message: gettext(message)});
|
||||
});
|
||||
self.warnings(warnings);
|
||||
};
|
||||
|
||||
@@ -69,7 +69,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
self._version_cache_dirty = False
|
||||
self._version_cache_timestamp = None
|
||||
|
||||
self._environment_supported = False
|
||||
self._environment_supported = True
|
||||
self._environment_versions = dict()
|
||||
self._environment_ready = threading.Event()
|
||||
|
||||
@@ -99,15 +99,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
self._console_logger.propagate = False
|
||||
|
||||
def on_after_startup(self):
|
||||
# refresh cache now if necessary so it's faster once the user connects to the instance - but decouple it from
|
||||
# the server startup
|
||||
def fetch_data():
|
||||
self.get_current_versions()
|
||||
self._check_environment()
|
||||
|
||||
thread = threading.Thread(target=fetch_data)
|
||||
thread.daemon = True
|
||||
thread.start()
|
||||
self._check_environment()
|
||||
self.get_current_versions()
|
||||
|
||||
def _get_configured_checks(self):
|
||||
with self._configured_checks_mutex:
|
||||
@@ -516,7 +509,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
force = flask.request.values.get("force", "false") in octoprint.settings.valid_boolean_trues
|
||||
|
||||
def view():
|
||||
self._environment_ready.wait()
|
||||
self._environment_ready.wait(timeout=30.0)
|
||||
|
||||
try:
|
||||
information, update_available, update_possible = self.get_current_versions(check_targets=check_targets, force=force)
|
||||
|
||||
@@ -233,7 +233,7 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
|
||||
return
|
||||
|
||||
sha = hashlib.sha1()
|
||||
sha.update(payload.get("name"))
|
||||
sha.update(payload.get("path"))
|
||||
sha.update(self._settings.get([b"unique_id"]))
|
||||
|
||||
track_event = None
|
||||
@@ -316,7 +316,7 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
|
||||
|
||||
__plugin_name__ = "Anonymous Usage Tracking"
|
||||
__plugin_description__ = "Anonymous version and usage tracking, see homepage for details on what gets tracked"
|
||||
__plugin_homepage__ = "https://tracking.octoprint.org"
|
||||
__plugin_url__ = "https://tracking.octoprint.org"
|
||||
__plugin_author__ = "Gina Häußge"
|
||||
|
||||
__plugin_implementation__ = TrackingPlugin()
|
||||
@@ -17,6 +17,7 @@ import octoprint.timelapse
|
||||
import octoprint.server
|
||||
import octoprint.events
|
||||
import octoprint.plugin
|
||||
import octoprint.users
|
||||
|
||||
from octoprint.events import Events
|
||||
from octoprint.settings import settings
|
||||
@@ -87,6 +88,8 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
|
||||
self._eventManager = eventManager
|
||||
self._pluginManager = pluginManager
|
||||
|
||||
self._userManager.register_callback(self._user_manager_callback)
|
||||
|
||||
self._remoteAddress = None
|
||||
self._user = None
|
||||
|
||||
@@ -95,6 +98,7 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
|
||||
self._baseRateLimit = 0.5
|
||||
|
||||
self._register_hooks = self._pluginManager.get_hooks("octoprint.server.sockjs.register")
|
||||
self._authed_hooks = self._pluginManager.get_hooks("octoprint.server.sockjs.authed")
|
||||
self._emit_hooks = self._pluginManager.get_hooks("octoprint.server.sockjs.emit")
|
||||
|
||||
self._registered = False
|
||||
@@ -112,6 +116,7 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
|
||||
return "Unconnected {!r}".format(self)
|
||||
|
||||
def on_open(self, info):
|
||||
self._pluginManager.register_message_receiver(self.on_plugin_message)
|
||||
self._remoteAddress = self._getRemoteAddress(info)
|
||||
self._logger.info("New connection from client: %s" % self._remoteAddress)
|
||||
|
||||
@@ -145,8 +150,9 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
|
||||
|
||||
self._logger.info("Client connection closed: %s" % self._remoteAddress)
|
||||
|
||||
self._user = None
|
||||
self._on_logout()
|
||||
self._remoteAddress = None
|
||||
self._pluginManager.unregister_message_receiver(self.on_plugin_message)
|
||||
|
||||
def on_message(self, message):
|
||||
try:
|
||||
@@ -169,12 +175,10 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
|
||||
user = self._userManager.findUser(userid=user_id, session=user_session)
|
||||
|
||||
if user is not None:
|
||||
self._user = user
|
||||
self._logger.info("User {} logged in on the socket from client {}".format(user.get_name(),
|
||||
self._remoteAddress))
|
||||
self._on_login(user)
|
||||
else:
|
||||
self._user = None
|
||||
self._logger.warn("Unknown user/session combo: {}:{}".format(user_id, user_session))
|
||||
self._on_logout()
|
||||
|
||||
self._register()
|
||||
|
||||
@@ -270,6 +274,9 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
|
||||
if not proceed:
|
||||
return
|
||||
|
||||
self._do_emit(type, payload)
|
||||
|
||||
def _do_emit(self, type, payload):
|
||||
try:
|
||||
self.send({type: payload})
|
||||
except Exception as e:
|
||||
@@ -295,7 +302,6 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
|
||||
self._printer.register_callback(self)
|
||||
self._fileManager.register_slicingprogress_callback(self)
|
||||
octoprint.timelapse.register_callback(self)
|
||||
self._pluginManager.register_message_receiver(self.on_plugin_message)
|
||||
|
||||
self._eventManager.fire(Events.CLIENT_OPENED, {"remoteAddress": self._remoteAddress})
|
||||
for event in octoprint.events.all_events():
|
||||
@@ -320,7 +326,6 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
|
||||
self._printer.unregister_callback(self)
|
||||
self._fileManager.unregister_slicingprogress_callback(self)
|
||||
octoprint.timelapse.unregister_callback(self)
|
||||
self._pluginManager.unregister_message_receiver(self.on_plugin_message)
|
||||
|
||||
self._eventManager.fire(Events.CLIENT_CLOSED, {"remoteAddress": self._remoteAddress})
|
||||
for event in octoprint.events.all_events():
|
||||
@@ -328,3 +333,40 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
|
||||
|
||||
self._registered = False
|
||||
|
||||
def _user_manager_callback(self, action, session_user):
|
||||
if action != "logout":
|
||||
# we are only interested in logouts
|
||||
return
|
||||
|
||||
if not self._user or not session_user:
|
||||
# we need both users set
|
||||
return
|
||||
|
||||
if not isinstance(self._user, octoprint.users.SessionUser) or not isinstance(session_user, octoprint.users.SessionUser):
|
||||
# and we need both users to be session users
|
||||
return
|
||||
|
||||
if self._user.get_id() == session_user.get_id() and self._user.session == session_user.session:
|
||||
# our user just logged out
|
||||
self._on_logout()
|
||||
|
||||
def _on_login(self, user):
|
||||
self._user = user
|
||||
self._logger.info("User {} logged in on the socket from client {}".format(user.get_name(),
|
||||
self._remoteAddress))
|
||||
|
||||
for name, hook in self._authed_hooks.items():
|
||||
try:
|
||||
hook(self, self._user)
|
||||
except:
|
||||
self._logger.exception("Error processing authed hook handler for plugin {}".format(name))
|
||||
|
||||
def _on_logout(self):
|
||||
self._user = None
|
||||
|
||||
for name, hook in self._authed_hooks.items():
|
||||
try:
|
||||
hook(self, self._user)
|
||||
except:
|
||||
self._logger.exception("Error processing authed hook handler for plugin {}".format(name))
|
||||
|
||||
@@ -294,9 +294,9 @@ default_settings = {
|
||||
"tab": ["temperature", "control", "gcodeviewer", "terminal", "timelapse"],
|
||||
"settings": [
|
||||
"section_printer", "serial", "printerprofiles", "temperatures", "terminalfilters", "gcodescripts",
|
||||
"section_features", "features", "webcam", "accesscontrol", "gcodevisualizer", "api",
|
||||
"section_features", "features", "webcam", "accesscontrol", "gcodevisualizer", "api", "plugin_appkeys",
|
||||
"section_octoprint", "server", "folders", "appearance", "plugin_logging", "plugin_pluginmanager",
|
||||
"plugin_softwareupdate", "plugin_announcements", "plugin_backup"
|
||||
"plugin_softwareupdate", "plugin_announcements", "plugin_backup", "plugin_tracking", "plugin_pi_support"
|
||||
],
|
||||
"usersettings": ["access", "interface"],
|
||||
"wizard": ["access"],
|
||||
|
||||
@@ -1,16 +1,26 @@
|
||||
ko.bindingHandlers.popover = {
|
||||
keys: ["title", "animation", "placement", "trigger", "delay", "content", "html"],
|
||||
|
||||
init: function(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
|
||||
var val = ko.utils.unwrapObservable(valueAccessor());
|
||||
|
||||
var options = {
|
||||
title: val.title,
|
||||
animation: val.animation,
|
||||
placement: val.placement,
|
||||
trigger: val.trigger,
|
||||
delay: val.delay,
|
||||
content: val.content,
|
||||
html: val.html
|
||||
};
|
||||
var keys = ko.bindingHandlers.popover.keys;
|
||||
var options = {};
|
||||
_.each(keys, function(key) {
|
||||
options[key] = ko.utils.unwrapObservable(val[key]);
|
||||
});
|
||||
|
||||
$(element).popover(options);
|
||||
},
|
||||
|
||||
update: function(element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {
|
||||
var val = ko.utils.unwrapObservable(valueAccessor());
|
||||
|
||||
var keys = ko.bindingHandlers.popover.keys;
|
||||
var value;
|
||||
_.each(keys, function(key) {
|
||||
value = ko.utils.unwrapObservable(val[key]);
|
||||
$(element).data("popover").options[key] = value;
|
||||
});
|
||||
}
|
||||
};
|
||||
Binary file not shown.
@@ -7,8 +7,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OctoPrint\n"
|
||||
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
|
||||
"POT-Creation-Date: 2018-11-13 12:40+0100\n"
|
||||
"PO-Revision-Date: 2018-11-13 12:42+0100\n"
|
||||
"POT-Creation-Date: 2018-12-03 11:55+0100\n"
|
||||
"PO-Revision-Date: 2018-12-03 11:57+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"
|
||||
@@ -89,7 +89,7 @@ msgid "Mark as last read"
|
||||
msgstr "Zuletzt gelesen"
|
||||
|
||||
#: src/octoprint/plugins/announcements/templates/announcements.jinja2:44
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:127
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:133
|
||||
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:121
|
||||
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:235
|
||||
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:136
|
||||
@@ -287,90 +287,103 @@ msgstr "Generiere einen Application Key manuell"
|
||||
msgid "Generate"
|
||||
msgstr "Erzeugen"
|
||||
|
||||
#: src/octoprint/plugins/backup/__init__.py:855
|
||||
#: src/octoprint/plugins/backup/__init__.py:914
|
||||
msgid "Backup & Restore"
|
||||
msgstr "Sicherung & Wiederherstellung"
|
||||
|
||||
#: src/octoprint/plugins/backup/__init__.py:858
|
||||
#: src/octoprint/plugins/backup/__init__.py:917
|
||||
msgid "Without this plugin you will no longer be able to backup & restore your OctoPrint settings and data."
|
||||
msgstr "Ohne dieses Plugin kannst du deine OctoPrint Einstellung und Daten nicht länger sichern & wiederherstellen."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:86
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:88
|
||||
#, python-format
|
||||
msgid "You are about to delete backup file \"%(name)s\"."
|
||||
msgstr "Du bist im Begriff, die Sicherung \"%(name)s\" zu löschen."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:94
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:104
|
||||
#, python-format
|
||||
msgid "You are about to restore the backup file \"%(name)s\". This cannot be undone."
|
||||
msgstr "Du bist im Begriff, die Sicherung \"%(name)s\" wiederherzustellen."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:104
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:120
|
||||
#, python-format
|
||||
msgid "You are about to upload and restore the backup file \"%(name)s\". This cannot be undone."
|
||||
msgstr "Du bist im Begriff, die Sicherung \"%(name)s\" hochzuladen und wiederherzustellen. Das kann nicht rückgängig gemacht werden."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:115
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:131
|
||||
msgid "You are about to delete the record of plugins unknown during the last restore."
|
||||
msgstr "Du bist dabei, die Liste der Plugins zu löschen, die während der letzten Wiederherstellung unbekannt waren."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:139
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:155
|
||||
#, python-format
|
||||
msgid "You are about to delete %(count)d backups."
|
||||
msgstr "Du bist im Begriff, %(count)d Sicherungen zu löschen."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:163
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:121
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:175
|
||||
msgid "Backup created successfully"
|
||||
msgstr "Backup erfolgreich erstellt"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:184
|
||||
msgid "Creating the backup failed"
|
||||
msgstr "Backuperstellung fehlgeschlagen"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:185
|
||||
#, python-format
|
||||
msgid "OctoPrint could not create your backup. Please consult <code>octoprint.log</code> for details. Error: %(error)s"
|
||||
msgstr "OctoPrint konnte dein Backup nicht erstellen. Bitte konsultiere <code>octoprint.log</code> für Details. Fehler: %(error)s"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:190
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:127
|
||||
msgid "Restoring from backup..."
|
||||
msgstr "Stelle Sicherung wieder her..."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:168
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:194
|
||||
msgid "Restore failed! Check the above output and octoprint.log for reasons as to why."
|
||||
msgstr "Wiederherstellung fehlgeschlagen! Prüfe die obige Ausgabe sowie octoprint.log für mögliche Gründe dafür."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:172
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:198
|
||||
msgid "Restore successful! The server will now be restarted!"
|
||||
msgstr "Wiederherstellung erfolgreich! Der Server wird jetzt neu gestartet!"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:177
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:203
|
||||
#, python-format
|
||||
msgid "Installing plugin \"%(plugin)s}\"..."
|
||||
msgstr "Installiere Plugin \"%(plugin)s\"..."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:183
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:209
|
||||
#, python-format
|
||||
msgid "Cannot install plugin \"%(plugin)s\" due to it being incompatible to this OctoPrint version and/or underlying operating system"
|
||||
msgstr "Kann Plugin \"%(plugin)s\" nicht installieren, da es mit dieser OctoPrint Version oder dem darunter liegenden Betriebssystem inkompatibel ist"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:189
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:215
|
||||
#, python-format
|
||||
msgid "There are %(count)d plugins you'll need to install manually since they aren't registered on the repository:"
|
||||
msgstr "Du musst %(count)d Plugins manuell installieren, da sie nicht im Repository registriert sind:"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:217
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:243
|
||||
msgid "Deleting backups"
|
||||
msgstr "Lösche Sicherungen"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:218
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:244
|
||||
#, python-format
|
||||
msgid "Deleting %(count)d backups..."
|
||||
msgstr "Lösche %(count)d Sicherungen..."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:222
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:248
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:313
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:327
|
||||
#, python-format
|
||||
msgid "Deleted %(filename)s..."
|
||||
msgstr "%(filename)s gelöscht..."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:225
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:251
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:316
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:330
|
||||
#, python-format
|
||||
msgid "Deletion of %(filename)s failed, continuing..."
|
||||
msgstr "Löschen von %(filename)s fehlgeschlagen, fahre fort..."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:226
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:252
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:317
|
||||
#, python-format
|
||||
msgid "Deletion of %(filename)s failed: %(error)s"
|
||||
@@ -459,29 +472,34 @@ msgstr "Zeitrafferaufnahmen nicht sichern"
|
||||
msgid "Create backup now"
|
||||
msgstr "Sicherung jetzt erstellen"
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:94
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:95
|
||||
msgid "Restore from uploaded backup"
|
||||
msgstr "Von einer hochgeladenen Sicherung wiederherstellen"
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:96
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:97
|
||||
msgid "Restore settings & files from an uploaded backup archive."
|
||||
msgstr "Einstellungen und Dateien von einer hochgeladenen Sicherung wiederherstellen."
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:100
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:101
|
||||
msgid "Backup file"
|
||||
msgstr "Sicherungsdatei"
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:104
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:105
|
||||
#: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:13
|
||||
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:209
|
||||
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:104
|
||||
msgid "Browse..."
|
||||
msgstr "Durchsuchen..."
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:114
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:115
|
||||
msgid "Upload & restore"
|
||||
msgstr "Hochladen & wiederherstellen"
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:122
|
||||
#, python-format
|
||||
msgid "Please note that the operating system that this OctoPrint server is running on does not support automatically restoring backups. You will have to <a href=\"%(url)s\" target=\"_blank\" rel=\"noopener noreferrer\">restore your backups manually for now</a>."
|
||||
msgstr "Achtung: Das Betriebssystem, auf dem diese OctoPrint Instanz läuft, unterstützt nicht die automatische Wiederherstellung von Sicherungen. Bis auf weiteres kannst du Sicherungen nur <a href=\"%(url)s\" target=\"_blank\" rel=\"noopener noreferrer\">manuell wiederherstellen</a>."
|
||||
|
||||
#: src/octoprint/plugins/corewizard/__init__.py:123
|
||||
msgid "Without this plugin OctoPrint will no longer be able to perform setup steps that might be required after an update."
|
||||
msgstr "Ohne dieses Plugin wird OctoPrint nicht mehr in der Lage sein, wichtige Konfigurationsschritte durchzuführen, die ggf. nach einem Update notwendig sind."
|
||||
@@ -1065,7 +1083,7 @@ msgstr "Profil entfernen"
|
||||
msgid "Without this plugin your OctoPrint instance will no longer be discoverable on the network via Bonjour and uPnP."
|
||||
msgstr "Ohne dieses Plugin wird deine OctoPrint Instanz nicht mehr in deinem Netzwerk mittels Bonjour oder uPnP automatisch auffindbar sein."
|
||||
|
||||
#: src/octoprint/plugins/forcelogin/__init__.py:143
|
||||
#: src/octoprint/plugins/forcelogin/__init__.py:171
|
||||
msgid "Without this plugin anonymous users will have read-only access to your OctoPrint instance. Only disable this if you are comfortable with this, your OctoPrint instance is not publicly reachable on the internet and you fully trust everyone who has access to your local network!"
|
||||
msgstr "Ohne dieses Plugin haben anonyme Nutzer read-only Zugriff auf deine OctoPrint Instanz. Deaktiviere es nur, wenn du dich bei diesem Gedanken wohlfühlst, deine OctoPrint Instanz nicht öffentlich über das Internet erreichbar ist und du jedem, der Zugriff auf dein lokales Netzwork hat, vollständig vertraust."
|
||||
|
||||
@@ -1151,25 +1169,29 @@ msgstr "auf"
|
||||
msgid "OctoPi"
|
||||
msgstr "OctoPi"
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:45
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:67
|
||||
msgid "Undervoltage. Make sure your power supply and cabling are providing enough power to the Pi."
|
||||
msgstr "Zu niedrige Spannung. Stelle sicher, dass dein Netzteil und die Verkabelung dem Pi genug Strom liefern."
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:46
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:68
|
||||
msgid "Frequency capping due to overheating. Improve cooling of the CPU and GPU."
|
||||
msgstr "Heruntertaktung aufgrund von Überhitzung. Verbessere die Kühlung von CPU und GPU."
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:47
|
||||
msgid "A blinking icon indicates an acute issue!"
|
||||
msgstr "Ein blinkendes Symbol zeigt ein akutes Problem an!"
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:69
|
||||
msgid "A blinking symbol indicates a current issue, a non blinking symbol one that was observed some time since the Pi booted up."
|
||||
msgstr "Ein blinkendes Symbol zeigt ein aktuelles Problem an, ein nicht blinkendes ein Problem, das irgendwann seit dem Bootup des Pis aufgetreten ist."
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:70
|
||||
msgid "Click the symbol in the navbar for more information."
|
||||
msgstr "Klick für weitere Informationen auf das Symbol in der Navbar."
|
||||
|
||||
#: src/octoprint/plugins/pi_support/templates/pi_support_about_octopi.jinja2:1
|
||||
msgid "About OctoPi"
|
||||
msgstr "Über OctoPi"
|
||||
|
||||
#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:1
|
||||
msgid "Issues reported by the Pi"
|
||||
msgstr "Vom Pi gemeldete Fehler"
|
||||
msgid "What do the symbols mean?"
|
||||
msgstr "Was bedeuten die Symbole?"
|
||||
|
||||
#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:2
|
||||
msgid "Undervoltage"
|
||||
@@ -1698,11 +1720,15 @@ msgstr "Abbruch"
|
||||
msgid "Save"
|
||||
msgstr "Speichern"
|
||||
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:87
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:63
|
||||
msgid "Your printer's firmware is known to lack mandatory safety features (e.g. thermal runaway protection). This is a fire risk."
|
||||
msgstr "Die Firmware deines Druckers ist bekannt dafür, obligatorische Sicherheitsfunktionen deaktiviert zu haben (z.B. Thermal Runaway Protection). Das ist ein Brandrisiko."
|
||||
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:94
|
||||
msgid "Printer Safety Warning"
|
||||
msgstr "Druckersicherheitswarnung"
|
||||
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:171
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:178
|
||||
msgid "Without this plugin OctoPrint will no longer be able to check if the printer it is connected to has a known safetyissue and inform you about that fact."
|
||||
msgstr "Ohne dieses Plugin wird OctoPrint nicht länger in der Lage sein, dich über bekannte Sicherheitsprobleme mit verbundenen Druckern zu informieren."
|
||||
|
||||
@@ -1714,24 +1740,24 @@ msgstr "Warnung!"
|
||||
msgid "Learn more..."
|
||||
msgstr "Mehr erfahren..."
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:527
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:520
|
||||
msgid "Python"
|
||||
msgstr "Python"
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:528
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:521
|
||||
msgid "pip"
|
||||
msgstr "pip"
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:529
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:522
|
||||
msgid "setuptools"
|
||||
msgstr "setuptools"
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:616
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:609
|
||||
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:1
|
||||
msgid "Software Update"
|
||||
msgstr "Software Update"
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1052
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1045
|
||||
#: src/octoprint/server/views.py:577
|
||||
#: src/octoprint/static/js/app/viewmodels/appearance.js:99
|
||||
#: src/octoprint/static/js/app/viewmodels/appearance.js:104
|
||||
@@ -1742,7 +1768,7 @@ msgstr "Software Update"
|
||||
msgid "OctoPrint"
|
||||
msgstr "OctoPrint"
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1212
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1205
|
||||
msgid "Without this plugin OctoPrint will no longer be able to update itself or any of your installed plugins which might put your system at risk."
|
||||
msgstr "Ohne dieses Plugin wird OctoPrint nicht länger in der Lage sein, sich selbst oder deine installierten Plugins zu aktualisierten. Das könnte dein System gefährden."
|
||||
|
||||
@@ -5885,3 +5911,9 @@ msgstr "Zeitrafferaufnahme rendern"
|
||||
|
||||
#~ msgid "Event based position logging"
|
||||
#~ msgstr "Eventbasiertes Positionslogging"
|
||||
|
||||
#~ msgid "A blinking icon indicates an acute issue!"
|
||||
#~ msgstr "Ein blinkendes Symbol zeigt ein akutes Problem an!"
|
||||
|
||||
#~ msgid "Issues reported by the Pi"
|
||||
#~ msgstr "Vom Pi gemeldete Fehler"
|
||||
@@ -31,6 +31,8 @@ class UserManager(object):
|
||||
self._sessionids_by_userid = dict()
|
||||
self._enabled = True
|
||||
|
||||
self._callbacks = []
|
||||
|
||||
@property
|
||||
def enabled(self):
|
||||
return self._enabled
|
||||
@@ -45,6 +47,16 @@ class UserManager(object):
|
||||
def disable(self):
|
||||
self._enabled = False
|
||||
|
||||
def register_callback(self, callback):
|
||||
self._callbacks.append(callback)
|
||||
|
||||
def unregister_callback(self, callback):
|
||||
try:
|
||||
self._callbacks.remove(callback)
|
||||
except ValueError:
|
||||
# just wasn't registered
|
||||
pass
|
||||
|
||||
def login_user(self, user):
|
||||
self._cleanup_sessions()
|
||||
|
||||
@@ -70,6 +82,12 @@ class UserManager(object):
|
||||
|
||||
self._logger.debug("Logged in user: %r" % user)
|
||||
|
||||
for callback in self._callbacks:
|
||||
try:
|
||||
callback("login", user)
|
||||
except:
|
||||
self._logger.exception("Error while calling login callback {!r}".format(callback))
|
||||
|
||||
return user
|
||||
|
||||
def logout_user(self, user):
|
||||
@@ -96,6 +114,12 @@ class UserManager(object):
|
||||
|
||||
self._logger.debug("Logged out user: %r" % user)
|
||||
|
||||
for callback in self._callbacks:
|
||||
try:
|
||||
callback("logout", user)
|
||||
except:
|
||||
self._logger.exception("Error while calling logout callback {!r}".format(callback))
|
||||
|
||||
def _cleanup_sessions(self):
|
||||
import time
|
||||
for session, user in self._session_users_by_session.items():
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
# coding=utf-8
|
||||
"""
|
||||
This module contains a functions that monkey patch third party dependencies in the one or other way.
|
||||
"""
|
||||
from __future__ import absolute_import, division, print_function
|
||||
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
|
||||
|
||||
import functools
|
||||
import warnings
|
||||
import sys
|
||||
|
||||
def patch_sarge_async_on_py2():
|
||||
if sys.version_info[0] >= 3:
|
||||
return
|
||||
|
||||
def move_async(f):
|
||||
@functools.wraps(f)
|
||||
def decorated_function(*args, **kwargs):
|
||||
if "async" in kwargs:
|
||||
warnings.warn("sarge's \"async\" parameter is deprecated. Use \"_async\" instead.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2)
|
||||
kwargs["async_"] = kwargs.pop("async")
|
||||
return f(*args, **kwargs)
|
||||
return decorated_function
|
||||
|
||||
import sarge
|
||||
|
||||
# wrap helper
|
||||
sarge.run = move_async(sarge.run)
|
||||
|
||||
# wrap Command
|
||||
sarge.Command.run = move_async(sarge.Command.run)
|
||||
|
||||
# wrap Pipeline
|
||||
sarge.Pipeline.run = move_async(sarge.Pipeline.run)
|
||||
sarge.Pipeline.run_command_node = move_async(sarge.Pipeline.run_command_node)
|
||||
sarge.Pipeline.run_list_node = move_async(sarge.Pipeline.run_list_node)
|
||||
sarge.Pipeline.run_logical_node = move_async(sarge.Pipeline.run_logical_node)
|
||||
sarge.Pipeline.run_node = move_async(sarge.Pipeline.run_node)
|
||||
sarge.Pipeline.run_node_in_thread = move_async(sarge.Pipeline.run_node_in_thread)
|
||||
sarge.Pipeline.run_pipeline_node = move_async(sarge.Pipeline.run_pipeline_node)
|
||||
+41
-28
@@ -8,6 +8,7 @@ import socket
|
||||
import sys
|
||||
import netaddr
|
||||
import netifaces
|
||||
import logging
|
||||
|
||||
_cached_check_v6 = None
|
||||
def check_v6():
|
||||
@@ -44,26 +45,27 @@ else:
|
||||
HAS_V6 = False
|
||||
|
||||
def is_lan_address(address, additional_private=None):
|
||||
if address.lower().startswith("::ffff:") and "." in address:
|
||||
# ipv6 mapped ipv4 address, unmap
|
||||
address = address[len("::ffff:"):]
|
||||
try:
|
||||
if address.lower().startswith("::ffff:") and "." in address:
|
||||
# ipv6 mapped ipv4 address, unmap
|
||||
address = address[len("::ffff:"):]
|
||||
|
||||
ip = netaddr.IPAddress(address)
|
||||
if ip.is_private() or ip.is_loopback():
|
||||
return True
|
||||
ip = netaddr.IPAddress(address)
|
||||
if ip.is_private() or ip.is_loopback():
|
||||
return True
|
||||
|
||||
if additional_private is None or not isinstance(additional_private, (list, tuple)):
|
||||
additional_private = []
|
||||
if additional_private is None or not isinstance(additional_private, (list, tuple)):
|
||||
additional_private = []
|
||||
|
||||
subnets = netaddr.IPSet()
|
||||
for additional in additional_private:
|
||||
try:
|
||||
subnets.add(netaddr.IPNetwork(additional))
|
||||
except:
|
||||
pass
|
||||
subnets = netaddr.IPSet()
|
||||
for additional in additional_private:
|
||||
try:
|
||||
subnets.add(netaddr.IPNetwork(additional))
|
||||
except:
|
||||
if logging.getLogger(__name__).isEnabledFor(logging.DEBUG):
|
||||
logging.getLogger(__name__).exception("Error while trying to add additional private network to local subnets: {}".format(additional))
|
||||
|
||||
def to_ipnetwork(address):
|
||||
try:
|
||||
def to_ipnetwork(address):
|
||||
prefix = address["netmask"]
|
||||
if "/" in prefix:
|
||||
# v6 notation in netifaces output, e.g. "ffff:ffff:ffff:ffff::/64"
|
||||
@@ -74,19 +76,30 @@ def is_lan_address(address, additional_private=None):
|
||||
# interface comment in netifaces output, e.g. "fe80::457f:bbee:d579:1063%wlan0"
|
||||
addr = addr[:addr.find("%")]
|
||||
return netaddr.IPNetwork("{}/{}".format(addr, prefix))
|
||||
except:
|
||||
pass
|
||||
|
||||
for interface in netifaces.interfaces():
|
||||
addrs = netifaces.ifaddresses(interface)
|
||||
for v4 in addrs.get(socket.AF_INET, ()):
|
||||
subnets.add(to_ipnetwork(v4))
|
||||
for interface in netifaces.interfaces():
|
||||
addrs = netifaces.ifaddresses(interface)
|
||||
for v4 in addrs.get(socket.AF_INET, ()):
|
||||
try:
|
||||
subnets.add(to_ipnetwork(v4))
|
||||
except:
|
||||
if logging.getLogger(__name__).isEnabledFor(logging.DEBUG):
|
||||
logging.getLogger(__name__).exception("Error while trying to add v4 network to local subnets: {!r}".format(v4))
|
||||
|
||||
if HAS_V6:
|
||||
for v6 in addrs.get(socket.AF_INET6, ()):
|
||||
subnets.add(to_ipnetwork(v6))
|
||||
if HAS_V6:
|
||||
for v6 in addrs.get(socket.AF_INET6, ()):
|
||||
try:
|
||||
subnets.add(to_ipnetwork(v6))
|
||||
except:
|
||||
if logging.getLogger(__name__).isEnabledFor(logging.DEBUG):
|
||||
logging.getLogger(__name__).exception("Error while trying to add v6 network to local subnets: {!r}".format(v6))
|
||||
|
||||
if ip in subnets:
|
||||
if ip in subnets:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
except:
|
||||
# we are extra careful here since an unhandled exception in this method will effectively nuke the whole UI
|
||||
logging.getLogger(__name__).exception("Error while trying to determine whether {} is a local address".format(address))
|
||||
return True
|
||||
|
||||
return False
|
||||
Binary file not shown.
@@ -7,8 +7,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OctoPrint\n"
|
||||
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
|
||||
"POT-Creation-Date: 2018-11-13 12:40+0100\n"
|
||||
"PO-Revision-Date: 2018-11-13 12:42+0100\n"
|
||||
"POT-Creation-Date: 2018-12-03 11:55+0100\n"
|
||||
"PO-Revision-Date: 2018-12-03 11:57+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"
|
||||
@@ -89,7 +89,7 @@ msgid "Mark as last read"
|
||||
msgstr "Zuletzt gelesen"
|
||||
|
||||
#: src/octoprint/plugins/announcements/templates/announcements.jinja2:44
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:127
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:133
|
||||
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:121
|
||||
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:235
|
||||
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:136
|
||||
@@ -287,90 +287,103 @@ msgstr "Generiere einen Application Key manuell"
|
||||
msgid "Generate"
|
||||
msgstr "Erzeugen"
|
||||
|
||||
#: src/octoprint/plugins/backup/__init__.py:855
|
||||
#: src/octoprint/plugins/backup/__init__.py:914
|
||||
msgid "Backup & Restore"
|
||||
msgstr "Sicherung & Wiederherstellung"
|
||||
|
||||
#: src/octoprint/plugins/backup/__init__.py:858
|
||||
#: src/octoprint/plugins/backup/__init__.py:917
|
||||
msgid "Without this plugin you will no longer be able to backup & restore your OctoPrint settings and data."
|
||||
msgstr "Ohne dieses Plugin kannst du deine OctoPrint Einstellung und Daten nicht länger sichern & wiederherstellen."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:86
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:88
|
||||
#, python-format
|
||||
msgid "You are about to delete backup file \"%(name)s\"."
|
||||
msgstr "Du bist im Begriff, die Sicherung \"%(name)s\" zu löschen."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:94
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:104
|
||||
#, python-format
|
||||
msgid "You are about to restore the backup file \"%(name)s\". This cannot be undone."
|
||||
msgstr "Du bist im Begriff, die Sicherung \"%(name)s\" wiederherzustellen."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:104
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:120
|
||||
#, python-format
|
||||
msgid "You are about to upload and restore the backup file \"%(name)s\". This cannot be undone."
|
||||
msgstr "Du bist im Begriff, die Sicherung \"%(name)s\" hochzuladen und wiederherzustellen. Das kann nicht rückgängig gemacht werden."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:115
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:131
|
||||
msgid "You are about to delete the record of plugins unknown during the last restore."
|
||||
msgstr "Du bist dabei, die Liste der Plugins zu löschen, die während der letzten Wiederherstellung unbekannt waren."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:139
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:155
|
||||
#, python-format
|
||||
msgid "You are about to delete %(count)d backups."
|
||||
msgstr "Du bist im Begriff, %(count)d Sicherungen zu löschen."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:163
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:121
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:175
|
||||
msgid "Backup created successfully"
|
||||
msgstr "Backup erfolgreich erstellt"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:184
|
||||
msgid "Creating the backup failed"
|
||||
msgstr "Backuperstellung fehlgeschlagen"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:185
|
||||
#, python-format
|
||||
msgid "OctoPrint could not create your backup. Please consult <code>octoprint.log</code> for details. Error: %(error)s"
|
||||
msgstr "OctoPrint konnte dein Backup nicht erstellen. Bitte konsultiere <code>octoprint.log</code> für Details. Fehler: %(error)s"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:190
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:127
|
||||
msgid "Restoring from backup..."
|
||||
msgstr "Stelle Sicherung wieder her..."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:168
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:194
|
||||
msgid "Restore failed! Check the above output and octoprint.log for reasons as to why."
|
||||
msgstr "Wiederherstellung fehlgeschlagen! Prüfe die obige Ausgabe sowie octoprint.log für mögliche Gründe dafür."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:172
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:198
|
||||
msgid "Restore successful! The server will now be restarted!"
|
||||
msgstr "Wiederherstellung erfolgreich! Der Server wird jetzt neu gestartet!"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:177
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:203
|
||||
#, python-format
|
||||
msgid "Installing plugin \"%(plugin)s}\"..."
|
||||
msgstr "Installiere Plugin \"%(plugin)s\"..."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:183
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:209
|
||||
#, python-format
|
||||
msgid "Cannot install plugin \"%(plugin)s\" due to it being incompatible to this OctoPrint version and/or underlying operating system"
|
||||
msgstr "Kann Plugin \"%(plugin)s\" nicht installieren, da es mit dieser OctoPrint Version oder dem darunter liegenden Betriebssystem inkompatibel ist"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:189
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:215
|
||||
#, python-format
|
||||
msgid "There are %(count)d plugins you'll need to install manually since they aren't registered on the repository:"
|
||||
msgstr "Du musst %(count)d Plugins manuell installieren, da sie nicht im Repository registriert sind:"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:217
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:243
|
||||
msgid "Deleting backups"
|
||||
msgstr "Lösche Sicherungen"
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:218
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:244
|
||||
#, python-format
|
||||
msgid "Deleting %(count)d backups..."
|
||||
msgstr "Lösche %(count)d Sicherungen..."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:222
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:248
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:313
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:327
|
||||
#, python-format
|
||||
msgid "Deleted %(filename)s..."
|
||||
msgstr "%(filename)s gelöscht..."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:225
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:251
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:316
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:330
|
||||
#, python-format
|
||||
msgid "Deletion of %(filename)s failed, continuing..."
|
||||
msgstr "Löschen von %(filename)s fehlgeschlagen, fahre fort..."
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:226
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:252
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:317
|
||||
#, python-format
|
||||
msgid "Deletion of %(filename)s failed: %(error)s"
|
||||
@@ -459,29 +472,34 @@ msgstr "Zeitrafferaufnahmen nicht sichern"
|
||||
msgid "Create backup now"
|
||||
msgstr "Sicherung jetzt erstellen"
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:94
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:95
|
||||
msgid "Restore from uploaded backup"
|
||||
msgstr "Von einer hochgeladenen Sicherung wiederherstellen"
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:96
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:97
|
||||
msgid "Restore settings & files from an uploaded backup archive."
|
||||
msgstr "Einstellungen und Dateien von einer hochgeladenen Sicherung wiederherstellen."
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:100
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:101
|
||||
msgid "Backup file"
|
||||
msgstr "Sicherungsdatei"
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:104
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:105
|
||||
#: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:13
|
||||
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:209
|
||||
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:104
|
||||
msgid "Browse..."
|
||||
msgstr "Durchsuchen..."
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:114
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:115
|
||||
msgid "Upload & restore"
|
||||
msgstr "Hochladen & wiederherstellen"
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:122
|
||||
#, python-format
|
||||
msgid "Please note that the operating system that this OctoPrint server is running on does not support automatically restoring backups. You will have to <a href=\"%(url)s\" target=\"_blank\" rel=\"noopener noreferrer\">restore your backups manually for now</a>."
|
||||
msgstr "Achtung: Das Betriebssystem, auf dem diese OctoPrint Instanz läuft, unterstützt nicht die automatische Wiederherstellung von Sicherungen. Bis auf weiteres kannst du Sicherungen nur <a href=\"%(url)s\" target=\"_blank\" rel=\"noopener noreferrer\">manuell wiederherstellen</a>."
|
||||
|
||||
#: src/octoprint/plugins/corewizard/__init__.py:123
|
||||
msgid "Without this plugin OctoPrint will no longer be able to perform setup steps that might be required after an update."
|
||||
msgstr "Ohne dieses Plugin wird OctoPrint nicht mehr in der Lage sein, wichtige Konfigurationsschritte durchzuführen, die ggf. nach einem Update notwendig sind."
|
||||
@@ -1065,7 +1083,7 @@ msgstr "Profil entfernen"
|
||||
msgid "Without this plugin your OctoPrint instance will no longer be discoverable on the network via Bonjour and uPnP."
|
||||
msgstr "Ohne dieses Plugin wird deine OctoPrint Instanz nicht mehr in deinem Netzwerk mittels Bonjour oder uPnP automatisch auffindbar sein."
|
||||
|
||||
#: src/octoprint/plugins/forcelogin/__init__.py:143
|
||||
#: src/octoprint/plugins/forcelogin/__init__.py:171
|
||||
msgid "Without this plugin anonymous users will have read-only access to your OctoPrint instance. Only disable this if you are comfortable with this, your OctoPrint instance is not publicly reachable on the internet and you fully trust everyone who has access to your local network!"
|
||||
msgstr "Ohne dieses Plugin haben anonyme Nutzer read-only Zugriff auf deine OctoPrint Instanz. Deaktiviere es nur, wenn du dich bei diesem Gedanken wohlfühlst, deine OctoPrint Instanz nicht öffentlich über das Internet erreichbar ist und du jedem, der Zugriff auf dein lokales Netzwork hat, vollständig vertraust."
|
||||
|
||||
@@ -1151,25 +1169,29 @@ msgstr "auf"
|
||||
msgid "OctoPi"
|
||||
msgstr "OctoPi"
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:45
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:67
|
||||
msgid "Undervoltage. Make sure your power supply and cabling are providing enough power to the Pi."
|
||||
msgstr "Zu niedrige Spannung. Stelle sicher, dass dein Netzteil und die Verkabelung dem Pi genug Strom liefern."
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:46
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:68
|
||||
msgid "Frequency capping due to overheating. Improve cooling of the CPU and GPU."
|
||||
msgstr "Heruntertaktung aufgrund von Überhitzung. Verbessere die Kühlung von CPU und GPU."
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:47
|
||||
msgid "A blinking icon indicates an acute issue!"
|
||||
msgstr "Ein blinkendes Symbol zeigt ein akutes Problem an!"
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:69
|
||||
msgid "A blinking symbol indicates a current issue, a non blinking symbol one that was observed some time since the Pi booted up."
|
||||
msgstr "Ein blinkendes Symbol zeigt ein aktuelles Problem an, ein nicht blinkendes ein Problem, das irgendwann seit dem Bootup des Pis aufgetreten ist."
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:70
|
||||
msgid "Click the symbol in the navbar for more information."
|
||||
msgstr "Klick für weitere Informationen auf das Symbol in der Navbar."
|
||||
|
||||
#: src/octoprint/plugins/pi_support/templates/pi_support_about_octopi.jinja2:1
|
||||
msgid "About OctoPi"
|
||||
msgstr "Über OctoPi"
|
||||
|
||||
#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:1
|
||||
msgid "Issues reported by the Pi"
|
||||
msgstr "Vom Pi gemeldete Fehler"
|
||||
msgid "What do the symbols mean?"
|
||||
msgstr "Was bedeuten die Symbole?"
|
||||
|
||||
#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:2
|
||||
msgid "Undervoltage"
|
||||
@@ -1698,11 +1720,15 @@ msgstr "Abbruch"
|
||||
msgid "Save"
|
||||
msgstr "Speichern"
|
||||
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:87
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:63
|
||||
msgid "Your printer's firmware is known to lack mandatory safety features (e.g. thermal runaway protection). This is a fire risk."
|
||||
msgstr "Die Firmware deines Druckers ist bekannt dafür, obligatorische Sicherheitsfunktionen deaktiviert zu haben (z.B. Thermal Runaway Protection). Das ist ein Brandrisiko."
|
||||
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:94
|
||||
msgid "Printer Safety Warning"
|
||||
msgstr "Druckersicherheitswarnung"
|
||||
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:171
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:178
|
||||
msgid "Without this plugin OctoPrint will no longer be able to check if the printer it is connected to has a known safetyissue and inform you about that fact."
|
||||
msgstr "Ohne dieses Plugin wird OctoPrint nicht länger in der Lage sein, dich über bekannte Sicherheitsprobleme mit verbundenen Druckern zu informieren."
|
||||
|
||||
@@ -1714,24 +1740,24 @@ msgstr "Warnung!"
|
||||
msgid "Learn more..."
|
||||
msgstr "Mehr erfahren..."
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:527
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:520
|
||||
msgid "Python"
|
||||
msgstr "Python"
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:528
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:521
|
||||
msgid "pip"
|
||||
msgstr "pip"
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:529
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:522
|
||||
msgid "setuptools"
|
||||
msgstr "setuptools"
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:616
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:609
|
||||
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:1
|
||||
msgid "Software Update"
|
||||
msgstr "Software Update"
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1052
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1045
|
||||
#: src/octoprint/server/views.py:577
|
||||
#: src/octoprint/static/js/app/viewmodels/appearance.js:99
|
||||
#: src/octoprint/static/js/app/viewmodels/appearance.js:104
|
||||
@@ -1742,7 +1768,7 @@ msgstr "Software Update"
|
||||
msgid "OctoPrint"
|
||||
msgstr "OctoPrint"
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1212
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1205
|
||||
msgid "Without this plugin OctoPrint will no longer be able to update itself or any of your installed plugins which might put your system at risk."
|
||||
msgstr "Ohne dieses Plugin wird OctoPrint nicht länger in der Lage sein, sich selbst oder deine installierten Plugins zu aktualisierten. Das könnte dein System gefährden."
|
||||
|
||||
@@ -5885,3 +5911,9 @@ msgstr "Zeitrafferaufnahme rendern"
|
||||
|
||||
#~ msgid "Event based position logging"
|
||||
#~ msgstr "Eventbasiertes Positionslogging"
|
||||
|
||||
#~ msgid "A blinking icon indicates an acute issue!"
|
||||
#~ msgstr "Ein blinkendes Symbol zeigt ein akutes Problem an!"
|
||||
|
||||
#~ msgid "Issues reported by the Pi"
|
||||
#~ msgstr "Vom Pi gemeldete Fehler"
|
||||
+77
-41
@@ -6,9 +6,9 @@
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OctoPrint 1.3.10rc2.dev21+gf607f5568.dirty\n"
|
||||
"Project-Id-Version: OctoPrint 1.3.10rc4.dev10+g38fce1665\n"
|
||||
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
|
||||
"POT-Creation-Date: 2018-11-13 12:40+0100\n"
|
||||
"POT-Creation-Date: 2018-12-03 11:55+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"
|
||||
@@ -97,7 +97,7 @@ msgid "Mark as last read"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/announcements/templates/announcements.jinja2:44
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:127
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:133
|
||||
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:121
|
||||
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:235
|
||||
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:136
|
||||
@@ -299,104 +299,119 @@ msgstr ""
|
||||
msgid "Generate"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/__init__.py:855
|
||||
#: src/octoprint/plugins/backup/__init__.py:914
|
||||
msgid "Backup & Restore"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/__init__.py:858
|
||||
#: src/octoprint/plugins/backup/__init__.py:917
|
||||
msgid ""
|
||||
"Without this plugin you will no longer be able to backup & restore your "
|
||||
"OctoPrint settings and data."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:86
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:88
|
||||
#, python-format
|
||||
msgid "You are about to delete backup file \"%(name)s\"."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:94
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:104
|
||||
#, python-format
|
||||
msgid ""
|
||||
"You are about to restore the backup file \"%(name)s\". This cannot be "
|
||||
"undone."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:104
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:120
|
||||
#, python-format
|
||||
msgid ""
|
||||
"You are about to upload and restore the backup file \"%(name)s\". This "
|
||||
"cannot be undone."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:115
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:131
|
||||
msgid ""
|
||||
"You are about to delete the record of plugins unknown during the last "
|
||||
"restore."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:139
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:155
|
||||
#, python-format
|
||||
msgid "You are about to delete %(count)d backups."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:163
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:121
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:175
|
||||
msgid "Backup created successfully"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:184
|
||||
msgid "Creating the backup failed"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:185
|
||||
#, python-format
|
||||
msgid ""
|
||||
"OctoPrint could not create your backup. Please consult "
|
||||
"<code>octoprint.log</code> for details. Error: %(error)s"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:190
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:127
|
||||
msgid "Restoring from backup..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:168
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:194
|
||||
msgid ""
|
||||
"Restore failed! Check the above output and octoprint.log for reasons as "
|
||||
"to why."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:172
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:198
|
||||
msgid "Restore successful! The server will now be restarted!"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:177
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:203
|
||||
#, python-format
|
||||
msgid "Installing plugin \"%(plugin)s}\"..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:183
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:209
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Cannot install plugin \"%(plugin)s\" due to it being incompatible to this"
|
||||
" OctoPrint version and/or underlying operating system"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:189
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:215
|
||||
#, python-format
|
||||
msgid ""
|
||||
"There are %(count)d plugins you'll need to install manually since they "
|
||||
"aren't registered on the repository:"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:217
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:243
|
||||
msgid "Deleting backups"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:218
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:244
|
||||
#, python-format
|
||||
msgid "Deleting %(count)d backups..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:222
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:248
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:313
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:327
|
||||
#, python-format
|
||||
msgid "Deleted %(filename)s..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:225
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:251
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:316
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:330
|
||||
#, python-format
|
||||
msgid "Deletion of %(filename)s failed, continuing..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:226
|
||||
#: src/octoprint/plugins/backup/static/js/backup.js:252
|
||||
#: src/octoprint/static/js/app/viewmodels/timelapse.js:317
|
||||
#, python-format
|
||||
msgid "Deletion of %(filename)s failed: %(error)s"
|
||||
@@ -487,29 +502,38 @@ msgstr ""
|
||||
msgid "Create backup now"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:94
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:95
|
||||
msgid "Restore from uploaded backup"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:96
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:97
|
||||
msgid "Restore settings & files from an uploaded backup archive."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:100
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:101
|
||||
msgid "Backup file"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:104
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:105
|
||||
#: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:13
|
||||
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:209
|
||||
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:104
|
||||
msgid "Browse..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:114
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:115
|
||||
msgid "Upload & restore"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:122
|
||||
#, python-format
|
||||
msgid ""
|
||||
"Please note that the operating system that this OctoPrint server is "
|
||||
"running on does not support automatically restoring backups. You will "
|
||||
"have to <a href=\"%(url)s\" target=\"_blank\" rel=\"noopener "
|
||||
"noreferrer\">restore your backups manually for now</a>."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/corewizard/__init__.py:123
|
||||
msgid ""
|
||||
"Without this plugin OctoPrint will no longer be able to perform setup "
|
||||
@@ -1128,7 +1152,7 @@ msgid ""
|
||||
"discoverable on the network via Bonjour and uPnP."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/forcelogin/__init__.py:143
|
||||
#: src/octoprint/plugins/forcelogin/__init__.py:171
|
||||
msgid ""
|
||||
"Without this plugin anonymous users will have read-only access to your "
|
||||
"OctoPrint instance. Only disable this if you are comfortable with this, "
|
||||
@@ -1223,18 +1247,24 @@ msgstr ""
|
||||
msgid "OctoPi"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:45
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:67
|
||||
msgid ""
|
||||
"Undervoltage. Make sure your power supply and cabling are providing "
|
||||
"enough power to the Pi."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:46
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:68
|
||||
msgid "Frequency capping due to overheating. Improve cooling of the CPU and GPU."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:47
|
||||
msgid "A blinking icon indicates an acute issue!"
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:69
|
||||
msgid ""
|
||||
"A blinking symbol indicates a current issue, a non blinking symbol one "
|
||||
"that was observed some time since the Pi booted up."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:70
|
||||
msgid "Click the symbol in the navbar for more information."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/pi_support/templates/pi_support_about_octopi.jinja2:1
|
||||
@@ -1242,7 +1272,7 @@ msgid "About OctoPi"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:1
|
||||
msgid "Issues reported by the Pi"
|
||||
msgid "What do the symbols mean?"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:2
|
||||
@@ -1821,11 +1851,17 @@ msgstr ""
|
||||
msgid "Save"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:87
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:63
|
||||
msgid ""
|
||||
"Your printer's firmware is known to lack mandatory safety features (e.g. "
|
||||
"thermal runaway protection). This is a fire risk."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:94
|
||||
msgid "Printer Safety Warning"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:171
|
||||
#: src/octoprint/plugins/printer_safety_check/__init__.py:178
|
||||
msgid ""
|
||||
"Without this plugin OctoPrint will no longer be able to check if the "
|
||||
"printer it is connected to has a known safetyissue and inform you about "
|
||||
@@ -1840,24 +1876,24 @@ msgstr ""
|
||||
msgid "Learn more..."
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:527
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:520
|
||||
msgid "Python"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:528
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:521
|
||||
msgid "pip"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:529
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:522
|
||||
msgid "setuptools"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:616
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:609
|
||||
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:1
|
||||
msgid "Software Update"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1052
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1045
|
||||
#: src/octoprint/server/views.py:577
|
||||
#: src/octoprint/static/js/app/viewmodels/appearance.js:99
|
||||
#: src/octoprint/static/js/app/viewmodels/appearance.js:104
|
||||
@@ -1868,7 +1904,7 @@ msgstr ""
|
||||
msgid "OctoPrint"
|
||||
msgstr ""
|
||||
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1212
|
||||
#: src/octoprint/plugins/softwareupdate/__init__.py:1205
|
||||
msgid ""
|
||||
"Without this plugin OctoPrint will no longer be able to update itself or "
|
||||
"any of your installed plugins which might put your system at risk."
|
||||
|
||||
Reference in new issue
Block a user