Compare commits

..
23 Commits
Author SHA1 Message Date
Gina Häußge de42ce73f7 Preparing release of 1.3.10rc2 2018-11-13 12:43:06 +01:00
Gina Häußge 962e09906e tracking: Fix translatability of a message 2018-11-13 12:42:31 +01:00
Gina Häußge f607f55683 printer_safety_check: Detect Ender 3 stock fw
As reported in https://discourse.octoprint.org/t/thermal-runaway-protection-absent-on-creality-ender-3/2787
2018-11-13 11:17:24 +01:00
Gina Häußge 1b45047826 tracking: wizard changes
* spinners for the enable/disable buttons
  * error handler for persisting the decision that unlocks the wizard

Might help to work around issues less than a hand full of people have
now observed where the wizard's buttons are non functional but the
wizard itself is active and blocking.

More data needed to reproduce and debug the core issue though.
2018-11-12 15:23:17 +01:00
Gina Häußge edd4d90b12 tracking: tracking.js -> usage.js
To work around some ad blockers that might block this otherwise - which
is kinda funny since the js file doesn't do any tracking, it just
makes the setup wizard for the opt-in functional 🤦‍♀️
2018-11-12 14:33:43 +01:00
Gina Häußge 0a3ad8a880 tracking: add time & reason for failure to print_failed
(cherry picked from commit b7e373c)
2018-11-12 14:33:43 +01:00
Gina Häußge 82615791a2 Add time & reason for failure to PrintFailed event
(cherry picked from commit dae0264)
2018-11-12 14:33:42 +01:00
Gina Häußge 2b5af2c36a Add docs for octoprint.util.commandline 2018-11-09 18:16:57 +01:00
Gina Häußge b2e50e13d4 Blacklist broken regex version 2018-11-08 15:54:05 +01:00
Gina Häußge cb4404a833 Merge branch 'pr/2878' into staging/maintenance 2018-11-08 15:50:13 +01:00
Gina Häußge 38bb81cfe7 tracking: add throttle events, slightly change throttle payload
Also adjusted helper signature in pi_support plugin slightly.

Addon to #2878
2018-11-08 15:49:11 +01:00
Gina Häußge 1667f9bd52 Fix bug introduced in 4caf4ef09 2018-11-08 14:00:48 +01:00
Gina Häußge 1ec61a9fe6 Give the favicon mask SVG width and height attrs
Otherwise it won't render correctly in Firefox due to drawImage silently
failing, see also https://bugzilla.mozilla.org/show_bug.cgi?id=700533

Closes #2879
2018-11-08 13:42:19 +01:00
tedder 98c84b6bb9 fix test, match dict 2018-11-08 01:34:45 +00:00
tedder 76f48b3b13 PR feedback: throttle state and uuid
- add a way to get the raw value only from throttle state (glad I already plumbed it into the object!)
- add warning about not sending uuid, modify the log entry too
2018-11-08 01:29:15 +00:00
Gina Häußge 8596ae5c4a SWU: Make sure check providers are in the correct format
Just in case there's some odd data in `config.yaml` as reported in https://github.com/foosel/OctoPrint/issues/2871#issuecomment-436507623
2018-11-07 11:10:31 +01:00
tedder c1482eaacd add throttle_state to tracking
- weave the throttle_state through pi_support and tracking. This should come in handy to see how many throttled Pis are out there, as well as if it is correllated with canceled prints.
- upgraded disclosure of tracking information so it shows as INFO-level in the logs and all the information is dumped. If tracking.octoprint.org gets it, I should have it too :)
2018-11-06 15:37:45 -08:00
Gina Häußge e23fe4a925 forcelogin: Fix issue when running with acl disabled
Closes one variant of #2876
2018-11-06 17:34:01 +01:00
Gina Häußge 2f08b90200 Merge branch 'master' into staging/maintenance 2018-11-06 15:56:33 +01:00
Gina Häußge 68ca2c5e51 Pin regex dependency to last known working version
See #2874 and https://bitbucket.org/mrabarnett/mrab-regex/issues/301/typeerror-character-mapping-must-return
2018-11-06 15:52:41 +01:00
Gina Häußge 343195477b Fix connection fail if fw doesn't send start
Closes #2872
2018-11-06 14:47:39 +01:00
Gina Häußge 4caf4ef09b Fix GCODE viewer not being able to load files
Side effect of the ForcedLogin plugin and a bug in
get_flask_user_from_request.

Closes #2873
2018-11-06 14:02:49 +01:00
Gina Häußge 0325628693 staging/maintenance is now 1.3.10rc2.dev 2018-11-06 12:29:28 +01:00
26 changed files with 374 additions and 99 deletions

No files matched your search

+3 -3
View File
@@ -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.9rc5
# staging/maintenance is currently the branch for preparation of 1.3.10rc2
# so is regressionfix/...
staging/maintenance 1.3.9rc5 71b2cc87a36d403e09325c90134a002c5229b6aa pep440-dev
regressionfix/.* 1.3.9rc5 71b2cc87a36d403e09325c90134a002c5229b6aa pep440-dev
staging/maintenance 1.3.10rc2 e14c00f135bf2a955e54ac3f0a2928d8440055d2 pep440-dev
regressionfix/.* 1.3.10rc2 e14c00f135bf2a955e54ac3f0a2928d8440055d2 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
+33 -1
View File
@@ -1,6 +1,38 @@
# OctoPrint Changelog
## 1.3.10rc1 (2018-11-05)
## 1.3.10rc2 (2018-11-13)
### Improvements
* Anonymous Usage Tracking: Added elapsed time & reason of print failure to tracking (to be able to distinguish cancelled from errored out prints)
* Anonymous Usage Tracking: Added undervoltage/overheat detection on Pis to tracking (to correlate print failures to power issues, see also [#2878](https://github.com/foosel/OctoPrint/pull/2878)).
* Printer Safety Plugin: Added Ender 3 stock firmware to detection
* Added documentation for `octoprint.util.commandline` module
### Bug fixes
* [#2872](https://github.com/foosel/OctoPrint/issues/2872) - Fix Timeout when connecting to printer that doesn't send `start` on connect
* [#2873](https://github.com/foosel/OctoPrint/issues/2873) - Fix GCODE viewer no longer being able to load files.
* [#2876](https://github.com/foosel/OctoPrint/issues/2876) - Fix semi functional UI when access control is disabled
* [#2879](https://github.com/foosel/OctoPrint/issues/2879) - Fix favicon in Firefox
* Anonymous Usage Tracking: More error resilience for the wizard to possibly work around issues observed with the first RC (for which sadly no information was provided to reproduce and analyse).
* Softwareupdate: More resilience against invalid data in config
### Unreproduced issues
The following issues were reported in RC1 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)
### Special thanks to all the contributors!
Special thanks to everyone who contributed to this release candidate, especially @tedder for his PR.
### More information
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.10rc1...1.3.10rc2)
## 1.3.10rc1 (2018-11-06)
### Heads-up for plugin authors regarding the `sarge` dependency
+6 -12
View File
@@ -6,25 +6,23 @@ thanks to everyone who contributed!
## Patreon Patrons
* Andre Bubel
* Andrew Moorby
* Arnljot Arntsen
* Boris Hussein
* Brad Jackson
* Brian E. Tyler
* Charles Haislip
* Christian Petropolis
* Christian Wolf
* COLLE+McVOY
* D Brian Kimmel
* DeltaMaker 3D Printers
* E3D BigBox
* Eric Betts
* Eric Slape
* Ernesto Martinez
* F. Kunsmann
* Frank Sander
* George Robles
* günter weber
* Hydra Research LLC
* James Seigel
* Jeff Moe
* Jeff Renfer
* Jefferson Hunt
* Jeremiah Avery
@@ -35,7 +33,6 @@ thanks to everyone who contributed!
* Kaile Riser
* Kale Stedman
* Kazuhiro Ogura
* Kodama Inc.
* Lewis Newby
* LulzBot®
* Makespace Madrid
@@ -43,21 +40,18 @@ thanks to everyone who contributed!
* Martin Beattie
* Michael Aumock
* Miles Flavel
* mitchell hirsch
* Noe Ruiz
* Patrick McGinnis
* Prof Yuh Wen Chen
* Randy C. Will
* Robert Gusek
* Roger Strolz
* Roy Cortes
* Rudolff Vang
* Samer Najia
* Simon Hallam
* Stefan Krister
* Sven Mueller
* Symbiotic Devices
* Thomas Hatley
* Timothy D Hoogland
* Trent Shumay
and 1351 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
and 1376 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
+2
View File
@@ -338,6 +338,8 @@ PrintFailed
* ``name``: the file's name
* ``path``: the file's path within its storage location
* ``origin``: the origin storage location of the file, either ``local`` or ``sdcard``
* ``time``: the elapsed time of the print when it failed, in seconds (float)
* ``reason``: the reason the print failed, either ``cancelled`` or ``error``
.. deprecated:: 1.3.0
+6
View File
@@ -6,4 +6,10 @@ octoprint.util
.. automodule:: octoprint.util
:members:
.. _sec-modules-util-commandline:
octoprint.util.commandline
--------------------------
.. automodule:: octoprint.util.commandline
:members:
+1
View File
@@ -21,6 +21,7 @@ INSTALL_REQUIRES = [
"Jinja2>=2.8.1,<2.9", # Jinja 2.9 has breaking changes WRT template scope - we can't
# guarantee backwards compatibility for plugins and such with that
# version, hence we need to pin to a lower version for now. See #1697
"regex!=2018.11.6", # avoid broken 2018.11.6. See #2874
"werkzeug>=0.8.3,<0.9",
"tornado==4.5.3",
#"sockjs-tornado>=1.0.3,<1.1", # current version is incompatible to tornado 5, we use a
@@ -85,6 +85,9 @@ class ForceLoginPlugin(octoprint.plugin.UiPlugin,
if self._user_manager.enabled and not self._user_manager.hasBeenCustomized():
# ACL hasn't been configured yet, make an exception
return
elif not self._user_manager.enabled:
# ACL isn't enabled
return
if flask.request.endpoint in ("api.login",):
return
@@ -99,6 +102,9 @@ class ForceLoginPlugin(octoprint.plugin.UiPlugin,
if self._user_manager.enabled and not self._user_manager.hasBeenCustomized():
# ACL hasn't been configured yet, make an exception
return
elif not self._user_manager.enabled:
# ACL isn't enabled
return
import tornado.web
from octoprint.server.util.flask import get_flask_user_from_request
@@ -111,6 +117,9 @@ class ForceLoginPlugin(octoprint.plugin.UiPlugin,
if self._user_manager.enabled and not self._user_manager.hasBeenCustomized():
# ACL hasn't been configured yet, make an exception
return True
elif not self._user_manager.enabled:
# ACL isn't enabled
return True
return user is not None and not user.is_anonymous() and user.is_active()
@@ -118,6 +127,9 @@ class ForceLoginPlugin(octoprint.plugin.UiPlugin,
if self._user_manager.enabled and not self._user_manager.hasBeenCustomized():
# ACL hasn't been configured yet, make an exception
return True
elif not self._user_manager.enabled:
# ACL isn't enabled
return True
if message in ("connected", "reauthRequired"):
return True
+22 -5
View File
@@ -35,10 +35,9 @@ _FLAG_PAST_UNDERVOLTAGE = 1 << 16
_FLAG_PAST_FREQ_CAPPED = 1 << 17
_FLAG_PAST_THROTTLED = 1 << 18
class ThrottleState(object):
@classmethod
def from_value(cls, value):
def from_value(cls, value=0):
if value == 0:
return ThrottleState()
@@ -47,10 +46,12 @@ class ThrottleState(object):
throttled=_FLAG_THROTTLED & value == _FLAG_THROTTLED,
past_undervoltage=_FLAG_PAST_UNDERVOLTAGE & value == _FLAG_PAST_UNDERVOLTAGE,
past_freq_capped=_FLAG_PAST_FREQ_CAPPED & value == _FLAG_PAST_FREQ_CAPPED,
past_throttled=_FLAG_PAST_THROTTLED & value == _FLAG_PAST_THROTTLED)
past_throttled=_FLAG_PAST_THROTTLED & value == _FLAG_PAST_THROTTLED,
raw_value=value)
return ThrottleState(**kwargs)
def __init__(self, **kwargs):
self._raw_value = kwargs.get('raw_value', -1)
self._undervoltage = False
self._freq_capped = False
self._throttled = False
@@ -111,7 +112,8 @@ class ThrottleState(object):
and self._past_throttled == other._past_throttled
def as_dict(self):
return dict(current_undervoltage=self.current_undervoltage,
return dict(raw_value=self._raw_value,
current_undervoltage=self.current_undervoltage,
past_undervoltage=self.past_undervoltage,
current_overheat=self.current_overheat,
past_overheat=self.past_overheat,
@@ -242,6 +244,16 @@ class PiSupportPlugin(octoprint.plugin.EnvironmentDetectionPlugin,
def _check_throttled_state_condition(self):
return self._throttle_functional
def get_throttle_state(self, run_now=False):
"""Exposed as public helper."""
if run_now:
self._check_throttled_state()
if not self._throttle_functional:
return False
return self._throttle_state.as_dict()
def _check_throttled_state(self):
command = self._settings.get(["vcgencmd_throttle_check_command"])
@@ -278,6 +290,7 @@ class PiSupportPlugin(octoprint.plugin.EnvironmentDetectionPlugin,
self._plugin_manager.send_plugin_message(self._identifier, dict(type="throttle_state",
state=self._throttle_state.as_dict()))
self._event_bus.fire("plugin_pi_support_throttle_state", self._throttle_state.as_dict())
__plugin_name__ = "Pi Support Plugin"
@@ -299,5 +312,9 @@ def __plugin_check__():
return "raspberry pi" in proc_dt_model.lower()
def __plugin_load__():
plugin = PiSupportPlugin()
global __plugin_implementation__
__plugin_implementation__ = PiSupportPlugin()
__plugin_implementation__ = plugin
global __plugin_helpers__
__plugin_helpers__ = dict(get_throttled=plugin.get_throttle_state)
@@ -36,6 +36,10 @@ ANYCUBIC_RECEIVED_TEST = lambda line: line and (ANYCUBIC_AUTHOR1 in line.lower()
CR10S_AUTHOR = " | Author: (CR-10Slanguage)".lower()
CR10S_RECEIVED_TEST = lambda line: line and CR10S_AUTHOR in line.lower()
# Creality Ender 3
ENDER3_AUTHOR = " | Author: (Ender3)".lower()
ENDER3_RECEIVED_TEST = lambda line: line and ENDER3_AUTHOR in line.lower()
# Malyan M200 aka Monoprice Select Mini
MALYANM200_M115_TEST = lambda name, data: name and name.lower().startswith("malyan") and data.get("MODEL") == "M200"
@@ -47,7 +51,7 @@ THERMAL_PROTECTION_CAP_TEST = lambda cap, enabled: cap == "THERMAL_PROTECTION" a
SAFETY_CHECKS = {
"firmware-unsafe": dict(m115=(ANETA8_M115_TEST, MALYANM200_M115_TEST, REPETIER_BEFORE_092_M115_TEST),
received=(ANYCUBIC_RECEIVED_TEST, CR10S_RECEIVED_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.")
@@ -117,6 +117,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
update_check_hooks = self._plugin_manager.get_hooks("octoprint.plugin.softwareupdate.check_config")
check_providers = self._settings.get(["check_providers"], merged=True)
if not isinstance(check_providers, dict):
check_providers = dict()
effective_configs = dict()
for name, hook in update_check_hooks.items():
+59 -6
View File
@@ -39,6 +39,8 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
def __init__(self):
self._environment = None
self._throttle_state = None
self._helpers_get_throttle_state = None
self._printer_connection_parameters = None
self._url = None
self._ping_worker = None
@@ -60,7 +62,8 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
printjob=True,
plugin=True,
update=True,
printer=True))
printer=True,
throttled=True))
def get_settings_restricted_paths(self):
return dict(admin=[["enabled"], ["unique_id"], ["events"]],
@@ -84,13 +87,19 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
##~~ StartupPlugin
def on_after_startup(self):
self._track_startup()
ping = self._settings.get_int(["ping"])
if ping:
self._ping_worker = RepeatedTimer(ping, self._track_ping)
self._ping_worker.start()
# cautiously look for the get_throttled helper from pi_support
pi_helper = self._plugin_manager.get_helpers("pi_support", "get_throttled")
if pi_helper and 'get_throttled' in pi_helper:
self._helpers_get_throttle_state = pi_helper['get_throttled']
# now that we have everything set up, phone home.
self._track_startup()
##~~ ShutdownPlugin
def on_shutdown(self):
@@ -101,8 +110,11 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
def on_event(self, event, payload):
if event.startswith("plugin_pluginmanager_"):
self._track_plugin_event(event, payload)
if event.startswith("plugin_softwareupdate_"):
elif event.startswith("plugin_softwareupdate_"):
self._track_update_event(event, payload)
elif event in ("plugin_pi_support_throttle_state",):
self._throttle_state = payload
self._track_throttle_event(event, payload)
elif event in (Events.PRINT_STARTED, Events.PRINT_DONE, Events.PRINT_FAILED, Events.PRINT_CANCELLED):
self._track_printjob_event(event, payload)
elif event in (Events.CONNECTED,):
@@ -124,7 +136,7 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
##~~ AssetPlugin
def get_assets(self):
return dict(js=["js/tracking.js"])
return dict(js=["js/usage.js"])
##~~ WizardPlugin
@@ -162,6 +174,7 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
if b"plugins" in self._environment and b"pi_support" in self._environment[b"plugins"]:
payload[b"pi_model"] = self._environment[b"plugins"][b"pi_support"][b"model"]
if b"octopi_version" in self._environment[b"plugins"][b"pi_support"]:
payload[b"octopi_version"] = self._environment[b"plugins"][b"pi_support"][b"octopi_version"]
@@ -195,6 +208,26 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
elif event.endswith("_update_failed"):
self._track("update_failed", target=payload.get("target"), from_version=payload.get("from_version"), to_version=payload.get("to_version"))
def _track_throttle_event(self, event, payload):
if not self._settings.get_boolean(["events", "throttled"]):
return
args = dict(throttled_now=payload[b"current_issue"],
throttled_past=payload[b"past_issue"],
throttled_mask=payload[b"raw_value"],
throttled_voltage_now=payload[b"current_undervoltage"],
throttled_voltage_past=payload[b"past_undervoltage"],
throttled_overheat_now=payload[b"current_overheat"],
throttled_overheat_past=payload[b"past_overheat"])
if payload[b"current_issue"]:
track_event = "system_throttled"
else:
track_event = "system_unthrottled"
if track_event is not None:
self._track(track_event, **args)
def _track_printjob_event(self, event, payload):
if not self._settings.get_boolean(["events", "printjob"]):
return
@@ -216,10 +249,27 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
args[b"elapsed"] = elapsed
track_event = "print_done"
elif event == Events.PRINT_FAILED:
try:
elapsed = int(payload.get(b"time"))
except ValueError:
elapsed = "unknown"
args[b"elapsed"] = elapsed
args[b"reason"] = payload.get(b"reason", "unknown")
track_event = "print_failed"
elif event == Events.PRINT_CANCELLED:
track_event = "print_cancelled"
if callable(self._helpers_get_throttle_state):
try:
throttle_state = self._helpers_get_throttle_state(run_now=True)
if throttle_state and (throttle_state.get(b"current_issue", False) or throttle_state.get(b"past_issue", False)):
args[b"throttled_now"] = throttle_state[b"current_issue"]
args[b"throttled_past"] = throttle_state[b"past_issue"]
args[b"throttled_mask"] = throttle_state[b"raw_value"]
except:
# ignored
pass
if track_event is not None:
self._track(track_event, **args)
@@ -246,15 +296,18 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
server = self._settings.get([b"server"])
url = server.format(id=self._settings.get([b"unique_id"]), event=event)
# Don't print the URL or UUID! That would expose the UUID in forums/tickets
# if pasted. It's okay for the user to know their uuid, but it shouldn't be shared.
headers = {"User-Agent": "OctoPrint/{}".format(get_octoprint_version_string())}
try:
params = urlencode(kwargs, doseq=True).replace("+", "%20")
requests.get(url,
params=params,
timeout=3.1,
headers=headers)
self._logger.debug("Sent tracking event to {}".format(url))
self._logger.info("Sent tracking event {}, payload: {!r}".format(event, kwargs))
except:
if self._logger.isEnabledFor(logging.DEBUG):
self._logger.exception("Error while sending event to anonymous usage tracking".format(url))
@@ -1,5 +1,5 @@
$(function() {
function TrackingViewModel(parameters) {
function UsageViewModel(parameters) {
var self = this;
self.settingsViewModel = parameters[0];
@@ -7,16 +7,16 @@ $(function() {
self.setup = ko.observable(false);
self.decision = ko.observable();
self.active = ko.observable();
self.required = false;
self.active = false;
self.enableTracking = function() {
self.enableUsage = function() {
self.settingsViewModel.settings.plugins.tracking.enabled(true);
self.decision(true);
self._sendData();
};
self.disableTracking = function() {
self.disableUsage = function() {
self.settingsViewModel.settings.plugins.tracking.enabled(false);
self.decision(false);
self._sendData();
@@ -45,7 +45,7 @@ $(function() {
};
self.onWizardPreventSettingsRefreshDialog = function() {
return self.active;
return self.active();
};
self.onWizardDetails = function(response) {
@@ -68,17 +68,33 @@ $(function() {
}
};
self.active = true;
self.active(true);
self.settingsViewModel.saveData(data)
.done(function() {
self.setup(true);
self.active = false;
self.active(false);
})
.fail(function() {
self.decision(false);
self.setup(true);
self.active(false);
var message = gettext("Please open a <a href='%(bugreport)s' target='_blank' rel='noopener noreferrer'>" +
"bug report</a> on this. Make sure to include all requested information, including your " +
"<a href='%(jsconsole)s' target='_blank' rel='noopener noreferrer'>JS console</a> and " +
"<code>octoprint.log</code>.");
new PNotify({
title: gettext("Something went wrong"),
text: _.sprintf(message, {bugreport: "https://github.com/foosel/OctoPrint/blob/master/CONTRIBUTING.md#how-to-file-a-bug-report", jsconsole: "https://webmasters.stackexchange.com/a/77337"}),
type: "error",
hide: false
});
});
};
}
OCTOPRINT_VIEWMODELS.push([
TrackingViewModel,
UsageViewModel,
["settingsViewModel"],
"#wizard_plugin_tracking"
]);
@@ -37,6 +37,9 @@
<label class="checkbox">
<input type="checkbox" data-bind="checked: settings.plugins.tracking.events.update"> {{ _('OctoPrint or a plugin updated successfully or unsuccessfully') }}
</label>
<label class="checkbox">
<input type="checkbox" data-bind="checked: settings.plugins.tracking.events.throttled"> {{ _('System got throttled/unthrottled (currently only detected on RPis)') }}
</label>
</div>
</div>
</form>
@@ -9,8 +9,8 @@
</p>
<div class="row-fluid">
<a href="javascript:void(0)" class="btn span6" data-bind="click: function() { if(!setup()){disableTracking()}}, enable: !setup(), css: {disabled: setup()}">{{ _('Disable Anonymous Usage Tracking') }}</a>
<a href="javascript:void(0)" class="btn btn-primary span6" data-bind="click: function() { if(!setup()){enableTracking()}}, enable: !setup(), css: {disabled: setup()}">{{ _('Enable Anonymous Usage Tracking') }}</a>
<a href="javascript:void(0)" class="btn span6" data-bind="click: function() { if(!setup()){disableUsage()}}, enable: !setup(), css: {disabled: setup()}"><i class="fa fa-spinner fa-spin" style="display: none" data-bind="visible: active() && decision() === false"></i> {{ _('Disable Anonymous Usage Tracking') }}</a>
<a href="javascript:void(0)" class="btn btn-primary span6" data-bind="click: function() { if(!setup()){enableUsage()}}, enable: !setup(), css: {disabled: setup()}"><i class="fa fa-spinner fa-spin" style="display: none" data-bind="visible: active() && decision() === true"></i> {{ _('Enable Anonymous Usage Tracking') }}</a>
</div>
<div class="tracking_decision" style="display: none" data-bind="visible: setup()">
+9 -1
View File
@@ -973,6 +973,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
payload = self._payload_for_print_job_event()
if payload:
payload["time"] = self._comm.getPrintTime()
payload["reason"] = "error"
def finalize():
self._fileManager.log_print(payload["origin"],
@@ -1103,8 +1104,14 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
self._stateMonitor.set_state(self._dict(text=self.get_state_string(), flags=self._getStateFlags()))
def on_comm_print_job_failed(self):
def on_comm_print_job_failed(self, reason=None):
payload = self._payload_for_print_job_event()
if reason:
payload["reason"] = reason
else:
payload["reason"] = "unknown"
if payload:
eventManager().fire(Events.PRINT_FAILED, payload)
@@ -1122,6 +1129,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
payload = self._payload_for_print_job_event(position=self._comm.cancel_position.as_dict() if self._comm and self._comm.cancel_position else None)
if payload:
payload["time"] = self._comm.getPrintTime()
payload["reason"] = "cancelled"
eventManager().fire(Events.PRINT_CANCELLED, payload)
if not suppress_script:
+4 -1
View File
@@ -1106,10 +1106,13 @@ def get_flask_user_from_request(request):
import flask_login
from octoprint.settings import settings
user = None
apikey = octoprint.server.util.get_api_key(request)
if settings().getBoolean(["api", "enabled"]) and apikey is not None:
user = octoprint.server.util.get_user_for_apikey(apikey)
else:
if user is None:
user = flask_login.current_user
return user
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="svg8868" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 107.1 107.1" style="enable-background:new 0 0 107.1 107.1;" xml:space="preserve">
viewBox="0 0 107.1 107.1" width="256" height="256" style="enable-background:new 0 0 107.1 107.1;" xml:space="preserve">
<style type="text/css">
.st0{fill:#13C100;}
.st1{fill:#169300;}

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2018-11-05 10:01+0100\n"
"PO-Revision-Date: 2018-11-05 11:55+0100\n"
"POT-Creation-Date: 2018-11-13 12:40+0100\n"
"PO-Revision-Date: 2018-11-13 12:42+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"
@@ -136,7 +136,7 @@ msgstr "Ankündigungen aktualisieren"
msgid "Application Keys"
msgstr "Application Keys"
#: src/octoprint/plugins/appkeys/__init__.py:393
#: src/octoprint/plugins/appkeys/__init__.py:398
msgid "Without this plugin third party clients will no longer be able to obtain an API key without you manually copy-pasting it."
msgstr "Ohne dieses Plugin können Third Party Clients keine API Keys mehr erlangen, ohne dass du sie manuell übertragen musst."
@@ -1065,7 +1065,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:131
#: src/octoprint/plugins/forcelogin/__init__.py:143
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."
@@ -1134,12 +1134,12 @@ msgstr "Entfernen"
msgid "Add"
msgstr "Hinzufügen"
#: src/octoprint/plugins/pi_support/__init__.py:203
#: src/octoprint/plugins/pi_support/__init__.py:205
#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:1
msgid "Pi Support"
msgstr "Pi Support"
#: src/octoprint/plugins/pi_support/__init__.py:286
#: src/octoprint/plugins/pi_support/__init__.py:299
msgid "Without this plugin OctoPrint will no longer be able to provide additional information about your Pi,which will make it more tricky to help you if you need support."
msgstr "Ohne dieses Plugin kann OctoPrint nicht mehr zusätzliche Informationen über deinen Pi Instanz zur Verfügung stellen, was es ggf. schwieriger macht, dir zu helfen, falls du Support brauchst."
@@ -1244,6 +1244,7 @@ msgstr "Installiere Plugin von hochgeladenem Archiv..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:484
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:522
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:712
#: src/octoprint/plugins/tracking/static/js/usage.js:87
msgid "Something went wrong"
msgstr "Etwas ist schief gegangen"
@@ -1697,11 +1698,11 @@ msgstr "Abbruch"
msgid "Save"
msgstr "Speichern"
#: src/octoprint/plugins/printer_safety_check/__init__.py:83
#: src/octoprint/plugins/printer_safety_check/__init__.py:87
msgid "Printer Safety Warning"
msgstr "Druckersicherheitswarnung"
#: src/octoprint/plugins/printer_safety_check/__init__.py:167
#: src/octoprint/plugins/printer_safety_check/__init__.py:171
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."
@@ -1713,24 +1714,24 @@ msgstr "Warnung!"
msgid "Learn more..."
msgstr "Mehr erfahren..."
#: src/octoprint/plugins/softwareupdate/__init__.py:524
#: src/octoprint/plugins/softwareupdate/__init__.py:527
msgid "Python"
msgstr "Python"
#: src/octoprint/plugins/softwareupdate/__init__.py:525
#: src/octoprint/plugins/softwareupdate/__init__.py:528
msgid "pip"
msgstr "pip"
#: src/octoprint/plugins/softwareupdate/__init__.py:526
#: src/octoprint/plugins/softwareupdate/__init__.py:529
msgid "setuptools"
msgstr "setuptools"
#: src/octoprint/plugins/softwareupdate/__init__.py:613
#: src/octoprint/plugins/softwareupdate/__init__.py:616
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:1
msgid "Software Update"
msgstr "Software Update"
#: src/octoprint/plugins/softwareupdate/__init__.py:1049
#: src/octoprint/plugins/softwareupdate/__init__.py:1052
#: src/octoprint/server/views.py:577
#: src/octoprint/static/js/app/viewmodels/appearance.js:99
#: src/octoprint/static/js/app/viewmodels/appearance.js:104
@@ -1741,7 +1742,7 @@ msgstr "Software Update"
msgid "OctoPrint"
msgstr "OctoPrint"
#: src/octoprint/plugins/softwareupdate/__init__.py:1209
#: src/octoprint/plugins/softwareupdate/__init__.py:1212
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."
@@ -2105,20 +2106,25 @@ msgstr "Stelle sicher, dass du <a href=\"%(url)s\" target=\"_blank\" rel=\"noref
msgid "OctoPrint version tracking"
msgstr "OctoPrint Versionstracking"
#: src/octoprint/plugins/tracking/__init__.py:120
#: src/octoprint/plugins/tracking/__init__.py:121
#: src/octoprint/plugins/tracking/__init__.py:132
#: src/octoprint/plugins/tracking/__init__.py:133
#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:1
msgid "Anonymous Usage Tracking"
msgstr "Anonymous Usage Tracking"
#: src/octoprint/plugins/tracking/static/js/tracking.js:57
#: src/octoprint/plugins/tracking/static/js/usage.js:57
msgid "Please set up anonymous usage tracking"
msgstr "Bitte konfiguriere das Anonymous Usage Tracking"
#: src/octoprint/plugins/tracking/static/js/tracking.js:58
#: src/octoprint/plugins/tracking/static/js/usage.js:58
msgid "You haven't yet decided on whether to enable or disable anonymous usage tracking. You need to either enable or disable it before continuing."
msgstr "Du hast noch nicht entschieden, ob das Anonymous Usage Tracking aktiviert werden soll. Du musst es entweder aktivieren oder deaktivieren bevor du fortfahren kannst."
#: src/octoprint/plugins/tracking/static/js/usage.js:82
#, python-format
msgid "Please open a <a href='%(bugreport)s' target='_blank' rel='noopener noreferrer'>bug report</a> on this. Make sure to include all requested information, including your <a href='%(jsconsole)s' target='_blank' rel='noopener noreferrer'>JS console</a> and <code>octoprint.log</code>."
msgstr "Bitte eröffne einen <a href='%(bugreport)s' target='_blank' rel='noopener noreferrer'>Bugreport</a> zu diesem Problem. Stelle sicher, dass du alle erbetenen Daten zur Verfügung stellst, inklusive deiner <a href='%(jsconsole)s' target='_blank' rel='noopener noreferrer'>JS console</a> und <code>octoprint.log</code>."
#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:9
msgid "Enable anonymous usage tracking"
msgstr "Anonymous Usage Tracking aktivieren"
@@ -2163,6 +2169,10 @@ msgstr "Plugin installiert/deinstalliert/aktiviert/deaktiviert"
msgid "OctoPrint or a plugin updated successfully or unsuccessfully"
msgstr "OctoPrint oder ein Plugin erfolgreich oder erfolglos aktualisiert"
#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:41
msgid "System got throttled/unthrottled (currently only detected on RPis)"
msgstr "Systemleistung wurde begrenzt/freigegeben (aktuell nur auf RPis erkannt)"
#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:1
msgid "Configure Anonymous Usage Tracking"
msgstr "Anonymous Usage Tracking konfigurieren"
+3
View File
@@ -1299,6 +1299,9 @@ class CountedEvent(object):
else:
self._internal_set(self._counter - 1)
def reset(self):
self.clear(completely=True)
def wait(self, timeout=None):
self._event.wait(timeout)
+3 -3
View File
@@ -2322,7 +2322,7 @@ class MachineCom(object):
def _on_external_reset(self):
# hold queue processing, clear queues and acknowledgements, reset line number and last lines
with self._send_queue.blocked():
self._clear_to_send.clear(completely=True)
self._clear_to_send.reset()
with self._command_queue.blocked():
self._command_queue.clear()
self._send_queue.clear()
@@ -2493,7 +2493,7 @@ class MachineCom(object):
# first hook to succeed wins, but any can pass on to the next
self._changeState(self.STATE_OPEN_SERIAL)
self._serial = serial_obj
self._clear_to_send.clear()
self._clear_to_send.reset()
return True
return False
@@ -3600,7 +3600,7 @@ class MachineComPrintCallback(object):
def on_comm_print_job_started(self, suppress_script=False):
pass
def on_comm_print_job_failed(self):
def on_comm_print_job_failed(self, reason=None):
pass
def on_comm_print_job_done(self, suppress_script=False):
+83
View File
@@ -47,6 +47,14 @@ def clean_ansi(line):
class CommandlineError(Exception):
"""
Raised by :py:func:`~octoprint.util.commandline.CommandLineCaller.checked_call` on non zero return codes
Arguments:
returncode (int): the return code of the command
stdout (str): the stdout output produced by the command
stderr (str): the stderr output produced by the command
"""
def __init__(self, returncode, stdout, stderr):
self.returncode = returncode
self.stdout = stdout
@@ -54,15 +62,78 @@ class CommandlineError(Exception):
class CommandlineCaller(object):
"""
The CommandlineCaller is a utility class that allows running command line commands while logging there stdout
and stderr via configurable callback functions.
Callbacks are expected to have a signature matching
.. code-block:: python
def callback(*lines):
do_something_with_the_passed_lines()
The class utilizes sarge underneath.
Example:
.. code-block:: python
from octoprint.util.commandline import CommandLineCaller, CommandLineError
def log(prefix, *lines):
for line in lines:
print(u"{} {}".format(prefix, line))
def log_stdout(*lines):
log(u">>>", *lines)
def log_stderr(*lines):
log(u"!!!", *lines)
def log_call(*lines)
log(u"---", *lines)
caller = CommandLineCaller()
caller.on_log_call = log_call
caller.on_log_stdout = log_stdout
caller.on_log_stderr = log_stderr
try:
caller.checked_call(["some", "command", "with", "parameters"])
except CommandLineError as err:
print(u"Command returned {}".format(err.returncode))
else:
print(u"Command finished successfully")
"""
def __init__(self):
self._logger = logging.getLogger(__name__)
self.on_log_call = lambda *args, **kwargs: None
"""Callback for the called command line"""
self.on_log_stdout = lambda *args, **kwargs: None
"""Callback for stdout output"""
self.on_log_stderr = lambda *args, **kwargs: None
"""Callback for stderr output"""
def checked_call(self, command, **kwargs):
"""
Calls a command and raises an error if it doesn't return with return code 0
Args:
command (list, tuple or str): command to call
kwargs (dict): additional keyword arguments to pass to the sarge ``run`` call (note that ``_async``,
``stdout`` and ``stderr`` will be overwritten)
Returns:
(tuple) a 3-tuple of return code, full stdout and full stderr output
Raises:
CommandlineError
"""
returncode, stdout, stderr = self.call(command, **kwargs)
if returncode != 0:
@@ -71,6 +142,18 @@ class CommandlineCaller(object):
return returncode, stdout, stderr
def call(self, command, **kwargs):
"""
Calls a command
Args:
command (list, tuple or str): command to call
kwargs (dict): additional keyword arguments to pass to the sarge ``run`` call (note that ``_async``,
``stdout`` and ``stderr`` will be overwritten)
Returns:
(tuple) a 3-tuple of return code, full stdout and full stderr output
"""
if isinstance(command, (list, tuple)):
joined_command = " ".join(command)
else:
+2 -1
View File
@@ -150,4 +150,5 @@ class ThrottleStateTestCase(unittest.TestCase):
current_overheat=False,
past_overheat=True,
current_issue=True,
past_issue=True))
past_issue=True,
raw_value=-1))
Binary file not shown.
+28 -18
View File
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2018-11-05 10:01+0100\n"
"PO-Revision-Date: 2018-11-05 11:55+0100\n"
"POT-Creation-Date: 2018-11-13 12:40+0100\n"
"PO-Revision-Date: 2018-11-13 12:42+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"
@@ -136,7 +136,7 @@ msgstr "Ankündigungen aktualisieren"
msgid "Application Keys"
msgstr "Application Keys"
#: src/octoprint/plugins/appkeys/__init__.py:393
#: src/octoprint/plugins/appkeys/__init__.py:398
msgid "Without this plugin third party clients will no longer be able to obtain an API key without you manually copy-pasting it."
msgstr "Ohne dieses Plugin können Third Party Clients keine API Keys mehr erlangen, ohne dass du sie manuell übertragen musst."
@@ -1065,7 +1065,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:131
#: src/octoprint/plugins/forcelogin/__init__.py:143
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."
@@ -1134,12 +1134,12 @@ msgstr "Entfernen"
msgid "Add"
msgstr "Hinzufügen"
#: src/octoprint/plugins/pi_support/__init__.py:203
#: src/octoprint/plugins/pi_support/__init__.py:205
#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:1
msgid "Pi Support"
msgstr "Pi Support"
#: src/octoprint/plugins/pi_support/__init__.py:286
#: src/octoprint/plugins/pi_support/__init__.py:299
msgid "Without this plugin OctoPrint will no longer be able to provide additional information about your Pi,which will make it more tricky to help you if you need support."
msgstr "Ohne dieses Plugin kann OctoPrint nicht mehr zusätzliche Informationen über deinen Pi Instanz zur Verfügung stellen, was es ggf. schwieriger macht, dir zu helfen, falls du Support brauchst."
@@ -1244,6 +1244,7 @@ msgstr "Installiere Plugin von hochgeladenem Archiv..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:484
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:522
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:712
#: src/octoprint/plugins/tracking/static/js/usage.js:87
msgid "Something went wrong"
msgstr "Etwas ist schief gegangen"
@@ -1697,11 +1698,11 @@ msgstr "Abbruch"
msgid "Save"
msgstr "Speichern"
#: src/octoprint/plugins/printer_safety_check/__init__.py:83
#: src/octoprint/plugins/printer_safety_check/__init__.py:87
msgid "Printer Safety Warning"
msgstr "Druckersicherheitswarnung"
#: src/octoprint/plugins/printer_safety_check/__init__.py:167
#: src/octoprint/plugins/printer_safety_check/__init__.py:171
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."
@@ -1713,24 +1714,24 @@ msgstr "Warnung!"
msgid "Learn more..."
msgstr "Mehr erfahren..."
#: src/octoprint/plugins/softwareupdate/__init__.py:524
#: src/octoprint/plugins/softwareupdate/__init__.py:527
msgid "Python"
msgstr "Python"
#: src/octoprint/plugins/softwareupdate/__init__.py:525
#: src/octoprint/plugins/softwareupdate/__init__.py:528
msgid "pip"
msgstr "pip"
#: src/octoprint/plugins/softwareupdate/__init__.py:526
#: src/octoprint/plugins/softwareupdate/__init__.py:529
msgid "setuptools"
msgstr "setuptools"
#: src/octoprint/plugins/softwareupdate/__init__.py:613
#: src/octoprint/plugins/softwareupdate/__init__.py:616
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:1
msgid "Software Update"
msgstr "Software Update"
#: src/octoprint/plugins/softwareupdate/__init__.py:1049
#: src/octoprint/plugins/softwareupdate/__init__.py:1052
#: src/octoprint/server/views.py:577
#: src/octoprint/static/js/app/viewmodels/appearance.js:99
#: src/octoprint/static/js/app/viewmodels/appearance.js:104
@@ -1741,7 +1742,7 @@ msgstr "Software Update"
msgid "OctoPrint"
msgstr "OctoPrint"
#: src/octoprint/plugins/softwareupdate/__init__.py:1209
#: src/octoprint/plugins/softwareupdate/__init__.py:1212
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."
@@ -2105,20 +2106,25 @@ msgstr "Stelle sicher, dass du <a href=\"%(url)s\" target=\"_blank\" rel=\"noref
msgid "OctoPrint version tracking"
msgstr "OctoPrint Versionstracking"
#: src/octoprint/plugins/tracking/__init__.py:120
#: src/octoprint/plugins/tracking/__init__.py:121
#: src/octoprint/plugins/tracking/__init__.py:132
#: src/octoprint/plugins/tracking/__init__.py:133
#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:1
msgid "Anonymous Usage Tracking"
msgstr "Anonymous Usage Tracking"
#: src/octoprint/plugins/tracking/static/js/tracking.js:57
#: src/octoprint/plugins/tracking/static/js/usage.js:57
msgid "Please set up anonymous usage tracking"
msgstr "Bitte konfiguriere das Anonymous Usage Tracking"
#: src/octoprint/plugins/tracking/static/js/tracking.js:58
#: src/octoprint/plugins/tracking/static/js/usage.js:58
msgid "You haven't yet decided on whether to enable or disable anonymous usage tracking. You need to either enable or disable it before continuing."
msgstr "Du hast noch nicht entschieden, ob das Anonymous Usage Tracking aktiviert werden soll. Du musst es entweder aktivieren oder deaktivieren bevor du fortfahren kannst."
#: src/octoprint/plugins/tracking/static/js/usage.js:82
#, python-format
msgid "Please open a <a href='%(bugreport)s' target='_blank' rel='noopener noreferrer'>bug report</a> on this. Make sure to include all requested information, including your <a href='%(jsconsole)s' target='_blank' rel='noopener noreferrer'>JS console</a> and <code>octoprint.log</code>."
msgstr "Bitte eröffne einen <a href='%(bugreport)s' target='_blank' rel='noopener noreferrer'>Bugreport</a> zu diesem Problem. Stelle sicher, dass du alle erbetenen Daten zur Verfügung stellst, inklusive deiner <a href='%(jsconsole)s' target='_blank' rel='noopener noreferrer'>JS console</a> und <code>octoprint.log</code>."
#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:9
msgid "Enable anonymous usage tracking"
msgstr "Anonymous Usage Tracking aktivieren"
@@ -2163,6 +2169,10 @@ msgstr "Plugin installiert/deinstalliert/aktiviert/deaktiviert"
msgid "OctoPrint or a plugin updated successfully or unsuccessfully"
msgstr "OctoPrint oder ein Plugin erfolgreich oder erfolglos aktualisiert"
#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:41
msgid "System got throttled/unthrottled (currently only detected on RPis)"
msgstr "Systemleistung wurde begrenzt/freigegeben (aktuell nur auf RPis erkannt)"
#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:1
msgid "Configure Anonymous Usage Tracking"
msgstr "Anonymous Usage Tracking konfigurieren"
+32 -18
View File
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.3.10.dev254+ge2c1fa3d4.dirty\n"
"Project-Id-Version: OctoPrint 1.3.10rc2.dev21+gf607f5568.dirty\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2018-11-05 10:01+0100\n"
"POT-Creation-Date: 2018-11-13 12:40+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"
@@ -144,7 +144,7 @@ msgstr ""
msgid "Application Keys"
msgstr ""
#: src/octoprint/plugins/appkeys/__init__.py:393
#: src/octoprint/plugins/appkeys/__init__.py:398
msgid ""
"Without this plugin third party clients will no longer be able to obtain "
"an API key without you manually copy-pasting it."
@@ -1128,7 +1128,7 @@ msgid ""
"discoverable on the network via Bonjour and uPnP."
msgstr ""
#: src/octoprint/plugins/forcelogin/__init__.py:131
#: src/octoprint/plugins/forcelogin/__init__.py:143
msgid ""
"Without this plugin anonymous users will have read-only access to your "
"OctoPrint instance. Only disable this if you are comfortable with this, "
@@ -1203,12 +1203,12 @@ msgstr ""
msgid "Add"
msgstr ""
#: src/octoprint/plugins/pi_support/__init__.py:203
#: src/octoprint/plugins/pi_support/__init__.py:205
#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:1
msgid "Pi Support"
msgstr ""
#: src/octoprint/plugins/pi_support/__init__.py:286
#: src/octoprint/plugins/pi_support/__init__.py:299
msgid ""
"Without this plugin OctoPrint will no longer be able to provide "
"additional information about your Pi,which will make it more tricky to "
@@ -1326,6 +1326,7 @@ msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:484
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:522
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:712
#: src/octoprint/plugins/tracking/static/js/usage.js:87
msgid "Something went wrong"
msgstr ""
@@ -1820,11 +1821,11 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/octoprint/plugins/printer_safety_check/__init__.py:83
#: src/octoprint/plugins/printer_safety_check/__init__.py:87
msgid "Printer Safety Warning"
msgstr ""
#: src/octoprint/plugins/printer_safety_check/__init__.py:167
#: src/octoprint/plugins/printer_safety_check/__init__.py:171
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 "
@@ -1839,24 +1840,24 @@ msgstr ""
msgid "Learn more..."
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:524
#: src/octoprint/plugins/softwareupdate/__init__.py:527
msgid "Python"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:525
#: src/octoprint/plugins/softwareupdate/__init__.py:528
msgid "pip"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:526
#: src/octoprint/plugins/softwareupdate/__init__.py:529
msgid "setuptools"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:613
#: src/octoprint/plugins/softwareupdate/__init__.py:616
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:1
msgid "Software Update"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:1049
#: src/octoprint/plugins/softwareupdate/__init__.py:1052
#: src/octoprint/server/views.py:577
#: src/octoprint/static/js/app/viewmodels/appearance.js:99
#: src/octoprint/static/js/app/viewmodels/appearance.js:104
@@ -1867,7 +1868,7 @@ msgstr ""
msgid "OctoPrint"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:1209
#: src/octoprint/plugins/softwareupdate/__init__.py:1212
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."
@@ -2279,22 +2280,31 @@ msgstr ""
msgid "OctoPrint version tracking"
msgstr ""
#: src/octoprint/plugins/tracking/__init__.py:120
#: src/octoprint/plugins/tracking/__init__.py:121
#: src/octoprint/plugins/tracking/__init__.py:132
#: src/octoprint/plugins/tracking/__init__.py:133
#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:1
msgid "Anonymous Usage Tracking"
msgstr ""
#: src/octoprint/plugins/tracking/static/js/tracking.js:57
#: src/octoprint/plugins/tracking/static/js/usage.js:57
msgid "Please set up anonymous usage tracking"
msgstr ""
#: src/octoprint/plugins/tracking/static/js/tracking.js:58
#: src/octoprint/plugins/tracking/static/js/usage.js:58
msgid ""
"You haven't yet decided on whether to enable or disable anonymous usage "
"tracking. You need to either enable or disable it before continuing."
msgstr ""
#: src/octoprint/plugins/tracking/static/js/usage.js:82
#, python-format
msgid ""
"Please open a <a href='%(bugreport)s' target='_blank' rel='noopener "
"noreferrer'>bug report</a> on this. Make sure to include all requested "
"information, including your <a href='%(jsconsole)s' target='_blank' "
"rel='noopener noreferrer'>JS console</a> and <code>octoprint.log</code>."
msgstr ""
#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:9
msgid "Enable anonymous usage tracking"
msgstr ""
@@ -2339,6 +2349,10 @@ msgstr ""
msgid "OctoPrint or a plugin updated successfully or unsuccessfully"
msgstr ""
#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:41
msgid "System got throttled/unthrottled (currently only detected on RPis)"
msgstr ""
#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:1
msgid "Configure Anonymous Usage Tracking"
msgstr ""