diff --git a/.editorconfig b/.editorconfig index d8d42bbc9..bf65494f2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,6 +11,7 @@ trim_trailing_whitespace = true [**.py] indent_style = tab +indent_size = 4 [src/octoprint/static/js/app/**.js] indent_style = space diff --git a/.versioneer-lookup b/.versioneer-lookup index 788d23da4..1f56523dd 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -20,14 +20,14 @@ HEAD # maintenance is currently the branch for preparation of maintenance release 1.3.9 # so are any fix/... and improve/... branches -maintenance 1.3.9 da2c9632ea54fd1b3c8ae34f8f26bab29dbaf3c6 pep440-dev -fix/.* 1.3.9 da2c9632ea54fd1b3c8ae34f8f26bab29dbaf3c6 pep440-dev -improve/.* 1.3.9 da2c9632ea54fd1b3c8ae34f8f26bab29dbaf3c6 pep440-dev +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.9rc4 +# staging/maintenance is currently the branch for preparation of 1.3.10rc5 # so is regressionfix/... -staging/maintenance 1.3.9rc4 2806676707020b270097876d6189d3c484dd47b8 pep440-dev -regressionfix/.* 1.3.9rc4 2806676707020b270097876d6189d3c484dd47b8 pep440-dev +staging/maintenance 1.3.10rc5 e628aedbc11e2ef03ba4172b93e5be2a892b955b pep440-dev +regressionfix/.* 1.3.10rc5 e628aedbc11e2ef03ba4172b93e5be2a892b955b 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 diff --git a/AUTHORS.md b/AUTHORS.md index 483e6b722..d7cf88fea 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -91,6 +91,9 @@ date of first contribution): * [Ganey](https://github.com/ganey) * [Sven Lohrmann](https://github.com/malnvenshorn) * [Andy Castille](https://github.com/klikini) + * [Gaston Dombiak](https://github.com/gdombiak) + * [Brad Fisher](https://github.com/bradcfisher) + * [Aldo Hoeben](https://github.com/fieldofview) OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by [Daid Braam](https://github.com/daid). Parts of its communication layer and diff --git a/CHANGELOG.md b/CHANGELOG.md index 47cfe59bc..27f4b8065 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,147 @@ # OctoPrint Changelog +## 1.3.10 (2018-12-10) + +### Heads-up for plugin authors regarding the `sarge` dependency + +OctoPrint has updated its `sarge` dependency. The new version 0.1.5 has a small breaking change - the `async` keyword +was renamed to `async_` for compatibility reasons with Python 3.7. This might also affect your plugin if you happen to +use `sarge` somewhere therein. OctoPrint has a workaround for this in place so your plugin will continue to function for +now. However, you should look into updating it to use `async_` instead of `async` if running against OctoPrint 1.3.10+. + +See also [here](https://sarge.readthedocs.io/en/latest/overview.html#id1) for the `sarge` changelog. + +### Improvements + + * [#1504](https://github.com/foosel/OctoPrint/issues/1504) - Added detection of `EMERGENCY_PARSER` firmware capability and if it's present add `M108` to the cancel procedure, to cancel blocking heatups. + * [#2674](https://github.com/foosel/OctoPrint/issues/2674) - Improved error handling when the file OctoPrint is currently printing from becomes unreadable. + * [#2698](https://github.com/foosel/OctoPrint/pull/2698) - Made favicon color match custom theme color. + * [#2717](https://github.com/foosel/OctoPrint/pull/2717) - Various speed ups of the GCODE viewer. + * [#2723](https://github.com/foosel/OctoPrint/pull/2723) - Always allow the file analysis to run, even if the slicer does provide analysis data. Allows plugins implementing the analysis hook to override behaviour in all cases. + * [#2729](https://github.com/foosel/OctoPrint/issues/2729) - Allow additional video formats to appear in the timelapse tab. + * [#2730](https://github.com/foosel/OctoPrint/pull/2730) & [#2739](https://github.com/foosel/OctoPrint/pull/2739) & [#2742](https://github.com/foosel/OctoPrint/pull/2742) - Improved GCODE analysis speed. + * [#2740](https://github.com/foosel/OctoPrint/issues/2740) & [#2859](https://github.com/foosel/OctoPrint/issues/2859) - Make the connection panel reflect the current connection parameters. + * [#2769](https://github.com/foosel/OctoPrint/issues/2769) - Cura Plugin: Improve error handling a profile import fails. + * [#2802](https://github.com/foosel/OctoPrint/pull/2802) - Updated the temperature filters to ignore more sent and received lines belonging to temperature requests/responses that so far weren't covered. + * [#2806](https://github.com/foosel/OctoPrint/pull/2806) - Refactored some unit tests. + * [#2827](https://github.com/foosel/OctoPrint/pull/2827) - Spelling fixes in the documentation. + * [#2839](https://github.com/foosel/OctoPrint/issues/2839) - Recognize position reports that include a space after the axis, as e.g. observed in the firmware of AlfaWise U20 + * [#2854](https://github.com/foosel/OctoPrint/issues/2854) - Auto detect Teacup firmware. + * [#2865](https://github.com/foosel/OctoPrint/pull/2865) - Added `speed` parameter to `extrude` command on the `/api/printer/tool` API endpoint which allows to set the feedrate to use for the extrude per request. + * Improve SD print detection + * Added the Anonymous Usage Tracking Plugin. Tracking will only take place if the plugin is enabled and you’ve decided to opt-in during initial setup (or enabled it manually afterwards, through the corresponding switch in the settings). The tracking data will give insight into how OctoPrint is used, which versions are running and on what kind of hardware OctoPrint gets installed. You can learn about what will get tracked (if you opt-in) on [tracking.octoprint.org](https://tracking.octoprint.org). Please consider helping development by participating in the anonymous usage tracking. + * The OctoPi Support Plugin is now the Pi Support Plugin: + * Always enabled when running on a Raspberry Pi, regardless of whether OctoPi is used or not. + * Now detects undervoltage/overheat issues and displays an alert on the UI if such an issue is found. + * Changed detection method of the Raspberry Pi Model to something a bit more future proof. + * Added the Application Keys Plugin: The new bundled plugin offers an authorization for third party apps that doesn't involve manually copying API keys or using QR codes. Third party client developers are strongly advised to implement this workflow in their apps. Read more [in the documentation](http://docs.octoprint.org/en/maintenance/bundledplugins/appkeys.html). + * Added the Backup & Restore Plugin: The new bundled plugin will allow you to make a backup of your OctoPrint settings, files and list of installed plugins, and to restore from such a backup on the + same or another instance. This should make migration paths from outdated installations to newer ones easier. + * Software Update Plugin: Automatic updates in outdated environments are no longer supported. After repeated issues out in the fields with ancient installations and ancient underlying Python environments, OctoPrint will no longer allow automatic updates of itself or plugins via the Software Update Plugin if a certain set of minimum versions of Python, `pip` and `setuptools` isn't detected. The current minimum versions reflect the environment found on OctoPi 0.14.0: Python 2.7.9, pip 9.0.1, setuptools 5.5.1. See also the [related FAQ entry](https://faq.octoprint.org/unsupported-python-environment). + * OctoPrint will now longer allow itself to be installed on Python versions less than 2.7.3 or higher than 2.7.x, to avoid peope running into issues in unsupported environments. + * Protect/educate against the dangers of opening up OctoPrint on the public internet: + * Detect connections to the UI from external IPs and display a warning in such cases. + * Added explicit warning to the first run wizard. + * Added explicit warning to the documentation. + * Added the ForcedLogin Plugin: Disables anonymous read-only access. To get back the old behaviour you'll have to explicitely disable this plugin. + * Removed printed/visited layer counts from the GCODE viewer since it was confusing people more than helping them. + * Added a warning to the documentation re expensive code in gcode hooks. + * Added the `no_firstrun_access` decorator. + * Only disable autoscroll in the terminal when scrolling up, not when scrolling down. + * Added a new asset type `clientjs` for JS client library components. + * Added new options for the `showConfirmationDialog` UI helper: + * `oncancel`: callback to call when the cancel button is pressed + * `noclose`: don't allow dismissing/closing the dialog without having chosen to proceed or cancel. + * Allow further access restrictions on API and Tornado routes by third party plugins. + * Support using the JS client library with an unset API key. + * Added documentation for `octoprint.util.commandline` module + * 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`. + * Better detection of ipv6 support by the underlying OS. + * Updated several dependencies to current versions where possible. + * Announcements Plugin: Add documentation. + * 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)). + * Backup: Exclude `generated`, `logs` and `watched` folders from backup + * Backup: Use base version for version check on restore + * Pi Support plugin: Better wording on the "undervoltage & overheat" popover & added a link to the FAQ entry + * Printer Safety Plugin: Added Ender 3 stock firmware, Micro3D stock firmware and iME firmware to detection + +### Bug fixes + + * [#2629](https://github.com/foosel/OctoPrint/issues/2629) - Cura Plugin: Fixed wrong gcode snippet being used when slicing against a printer profile with multiple extruders. + * [#2696](https://github.com/foosel/OctoPrint/pull/2696) - Fixed a comment. + * [#2697](https://github.com/foosel/OctoPrint/pull/2697) - Fixed documentation regarding unit of `estimatedPrintTime` field in the analysis result. + * [#2705](https://github.com/foosel/OctoPrint/issues/2705) - Fixed internal server error on GET request for files on the printer's SD card. + * [#2706](https://github.com/foosel/OctoPrint/issues/2706) - Fixed a documentation error regarding HTTP status code returned on invalid API key + * [#2712](https://github.com/foosel/OctoPrint/issues/2712) - Fixed updating via commandline (`octoprint plugins softwareupdate:update`). + * [#2749](https://github.com/foosel/OctoPrint/issues/2749) - Fixed empty API key being treated as anonymous API key. + * [#2752](https://github.com/foosel/OctoPrint/issues/2752) - Only reset timeout to shorter "busy" timeout once the busy configuration command has been sent to the printer. + * [#2772](https://github.com/foosel/OctoPrint/issues/2772) & [#2764](https://github.com/foosel/OctoPrint/issues/2764) - Stop sending commands to the printer if a fatal error is reported that results in a `kill()`, even if OctoPrint is configured to keep the connection going on firmware errors. + * [#2774](https://github.com/foosel/OctoPrint/issues/2774) - Fixed autoscroll in the terminal stopping when switching browser windows or tabs. + * [#2780](https://github.com/foosel/OctoPrint/issues/2780) - Fixed error when trying to save timeout settings. + * [#2800](https://github.com/foosel/OctoPrint/pull/2800) - Fixed a conjugation error in the documentation. + * [#2805](https://github.com/foosel/OctoPrint/issues/2805) - Fixed duplicated method name in a unit test. + * [#2846](https://github.com/foosel/OctoPrint/issues/2846) - Removed requirement to have `messages.pot` exist to use `babel_extract` for translating plugins (see also [#2846](https://github.com/foosel/OctoPrint/pull/2847)). + * [#2850](https://github.com/foosel/OctoPrint/issues/2850) - Fixed a race condition in the web socket causing the push connection to fail (see also [#2858](https://github.com/foosel/OctoPrint/pull/2858)). + * [#2852](https://github.com/foosel/OctoPrint/issues/2852) - Fixed issue with zeroconf announcement failing for the second instance of OctoPrint on the same Linux host due to a name conflict. + * [#2872](https://github.com/foosel/OctoPrint/issues/2872) (regression) - Fix Timeout when connecting to printer that doesn't send `start` on connect + * [#2873](https://github.com/foosel/OctoPrint/issues/2873) (regression) - Fix GCODE viewer no longer being able to load files. + * [#2876](https://github.com/foosel/OctoPrint/issues/2876) (regression) - Fix semi functional UI when access control is disabled + * [#2879](https://github.com/foosel/OctoPrint/issues/2879) (regression) - Fix favicon in Firefox + * [#2897](https://github.com/foosel/OctoPrint/issues/2897) (regression) - 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) (regression) - 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) (regression) - Tracking: Use the file's `path` instead of just the `name` for file name hashing. + * [#2920](https://github.com/foosel/OctoPrint/issues/2920) - Backup plugin: Fix wrong compatibility check logic in plugin install during restore + * Fixed an issue with collision free SD name detection. + * Fixed some JS warnings in the GCODE viewer. + * Fixed wrongly used `.error` instead of the correct `.fail` in the UI's logout handler. + * Fixed the `disable_hotends` snippet in case of a shared nozzle setup. + * Logout socket on UI logout + * Announcements Plugin: Fix an issue with atom feeds. + * 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). + * Anonymous Usage Tracking: Fixed homepage link in plugin manager + * 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 + * Software Update Plugin: Fixed the update button being visible although the update is impossible. + * Software Update Plugin: More resilience against invalid data in config + * Software Update Plugin: Fixed version output of CLI update message + +### Special thanks to all the contributors! + +Special thanks to everyone who contributed to this release candidate, especially [@BillyBlaze](https://github.com/BillyBlaze), +[@bradcfisher](https://github.com/bradcfisher), [@eyal0](https://github.com/eyal0), [@fieldOfView](https://github.com/fieldOfView), +[@gdombiak](https://github.com/gdombiak), [@gerfderp](https://github.com/gerfderp), [@hashashin](https://github.com/hashashin) +and [@tedder](https://github.com/tedder) for their PRs. + +### More information + + * [Commits](https://github.com/foosel/OctoPrint/compare/1.3.9...1.3.10) + * Release Candidates: + * [1.3.10rc1](https://github.com/foosel/OctoPrint/releases/tag/1.3.10rc1) + * [1.3.10rc2](https://github.com/foosel/OctoPrint/releases/tag/1.3.10rc2) + * [1.3.10rc3](https://github.com/foosel/OctoPrint/releases/tag/1.3.10rc3) + * [1.3.10rc4](https://github.com/foosel/OctoPrint/releases/tag/1.3.10rc4) + * A big **Thank you!** to everyone who reported back on these release candidates this time: [@andrivet](https://github.com/andrivet), [@arminth](https://github.com/arminth), [@autonumous](https://github.com/autonumous), [@benlye](https://github.com/benlye), [@BillyBlaze](https://github.com/BillyBlaze), [@bradcfisher](https://github.com/bradcfisher), [@Charly333](https://github.com/Charly333), [@ChrisHeerschap](https://github.com/ChrisHeerschap), [@Crowlord](https://github.com/Crowlord), [@ctgreybeard](https://github.com/ctgreybeard), [@devildant](https://github.com/devildant), [@dimkin-eu](https://github.com/dimkin-eu), [@DominikPalo](https://github.com/DominikPalo), [@duncanlovett](https://github.com/duncanlovett), [@EddyMI3d](https://github.com/EddyMI3d), [@FanDjango](https://github.com/FanDjango), [@FormerLurker](https://github.com/FormerLurker), [@gdombiak](https://github.com/gdombiak), [@GhostlyCrowd](https://github.com/GhostlyCrowd), [@goeland86](https://github.com/goeland86), [@Goodeid](https://github.com/Goodeid), [@hamster65](https://github.com/hamster65), [@hashashin](https://github.com/hashashin), [@jenilliii](https://github.com/jenilliii), [@JohnOCFII](https://github.com/JohnOCFII), [@kmanley57](https://github.com/kmanley57), [@louispires](https://github.com/louispires), [@markuskruse](https://github.com/markuskruse), [@Nervemanna](https://github.com/Nervemanna), [@nionio6915](https://github.com/nionio6915), [@ntoff](https://github.com/ntoff), [@paukstelis](https://github.com/paukstelis), [@racenviper](https://github.com/racenviper), [@ramsesiden](https://github.com/ramsesiden), [@rtbon](https://github.com/rtbon), [@skohls](https://github.com/skohls), [@stough](https://github.com/stough), [@tech-rat](https://github.com/tech-rat), [@tedder](https://github.com/tedder), [@ThaliaFromPrussia](https://github.com/ThaliaFromPrussia), [@thisiskeithb](https://github.com/thisiskeithb), [@trendelkamp](https://github.com/trendelkamp), [@truglodite](https://github.com/truglodite), [@tteckenburg](https://github.com/tteckenburg), [@varazir](https://github.com/varazir), [@Webstas](https://github.com/Webstas) and [@zeroflow](https://github.com/zeroflow) + ## 1.3.9 (2018-07-25) ### 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: -![](https://i.imgur.com/BbEZTlc.png) +``` + +[...] +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**. @@ -885,1019 +1020,6 @@ If you are running OctoPi, this does **not** apply to you and you do not need to * [1.3.0rc2](https://github.com/foosel/OctoPrint/releases/tag/1.3.0rc2) * [1.3.0rc3](https://github.com/foosel/OctoPrint/releases/tag/1.3.0rc3) -## 1.2.18 (2016-11-30) +--- -### Improvements - - * Allow arbitrary frame rates for creating timelapses. Before, the entered fps value was also directly used as frame rate for the actual video, which could cause problems with any frame rates not specified in the MPEG2 standard. Now OctoPrint will use a standard frame rate for the rendered video and render the timelapse stills into the finished movie with the configured frame rate. - * Limited Cura profile importer to `.ini` files and clarified the supported versions - * Add support for the `R` parameter for `M109` and `M190` - -### Bug fixes - - * [#1541](https://github.com/foosel/OctoPrint/issues/1541) - Fix selecting the printer profile to use by default - * [#1543](https://github.com/foosel/OctoPrint/issues/1543) - Fix target temperature propagation from communication layer - * [#1567](https://github.com/foosel/OctoPrint/issues/1567) - Fix issue with restricted settings getting parsed to the wrong data structure in the frontend if loaded anonymously first. - * [#1571](https://github.com/foosel/OctoPrint/issues/1571) - Fix parsing of port number from HTTP Host header for IPv6 addresses - * Fix issue with settings restriction causing internal settings defaults to be changed. - -### More information - - * [Commits](https://github.com/foosel/OctoPrint/compare/1.2.17...1.2.18) - * Release Candidates: - * [1.2.18rc1](https://github.com/foosel/OctoPrint/releases/tag/1.2.18rc1) - -## 1.2.17 (2016-11-08) - -### Improvements - - * Files like `config.yaml` etc will now persist their permissions, with a lower and upper permission bounds for sanitization (e.g. removing executable flags on configuration files but keeping group read/write permissions if found). - * Log full stack trace on socket connection errors when debug logging for `octoprint.server.util.sockjs` is enabled - * ``SettingsPlugin``s may now mark configuration paths as restricted so that they are not returned on the REST API - * Updated LESS.js version - * Improved the `serial.log` logging handler to roll over serial log on new connections to the printer instead of continuously appending to the same file. Please note that `serial.log` is a debugging tool only and should *not* be left enabled unless you are trying to troubleshoot something in your printer communication. - * Split JS/CSS/LESS asset bundles according into asset bundles for core + bundled plugins ("packed_core.{js|css|less}") and third party plugins ("packed_plugins.{js|css|less}"). That will allow the core UI to still function properly even if an installed third party plugin produces invalid JS and therefore causes a parser error for the whole plugin JS file. See [#1544](https://github.com/foosel/OctoPrint/issues/1544) for an example of such a situation. - -### Bug fixes - - * [#1531](https://github.com/foosel/OctoPrint/issues/1531) - Fixed encoding bug in HTTP request processing triggered by content type headers on form data fields - * Fixed forced `config.yaml` save on startup caused by mistakenly assuming that printer parameters were always migrated. - * Fixed issue causing ``remember_me`` cookie not to be deleted properly on logout - * Fixed broken filter toggling on ``ItemListHelper`` class used for various lists throughout the web interface - * Fixed an issue with the preliminary page never reporting that the server is now up if the page generated during preliminary caching had no cache headers set (e.g. because it contained the first run setup wizard) - * Fixed a bug causing the update of OctoPrint to not work under certain circumstances: If 1.2.16 was installed and the settings were *never* saved via the "Settings" dialog's "Save", the update of OctoPrint would fail due to a `KeyError` in the updater. Reason is a renamed property, properly switched to when saving the settings. - * Fixed the logging subsystem to properly clean up after itself. - * Fixed a wrong order in loading JS files on the client introduced in 1.2.17rc2 to make the UI more resilient against broken plugin JS. - * Properly handle empty JS file list from plugins. Solves a 500 on OctoPrint instances without any third party plugins installed generated during web asset bundling introduced in 1.2.17rc2. - -### More information - - * [Commits](https://github.com/foosel/OctoPrint/compare/1.2.16...1.2.17) - * Release Candidates: - * [1.2.17rc1](https://github.com/foosel/OctoPrint/releases/tag/1.2.17rc1) - * [1.2.17rc2](https://github.com/foosel/OctoPrint/releases/tag/1.2.17rc2) - * [1.2.17rc3](https://github.com/foosel/OctoPrint/releases/tag/1.2.17rc3) - * [1.2.17rc4](https://github.com/foosel/OctoPrint/releases/tag/1.2.17rc4) - -## 1.2.16 (2016-09-23) - -### Improvements - - * [#1434](https://github.com/foosel/OctoPrint/issues/1434): Make sure to sanitize any file names in the upload folder that do not match OctoPrint's file name "sanitization standard" automatically when creating a file listing. This should solve issues with UI functionality like selecting a file for printing or deleting a file to not work with files that were uploaded manually to the ``uploads`` folder. As a side note: Please don't do this, use the ``watched`` folder if you want to SCP/FTP/copy files directly to OctoPrint. - * [#1434](https://github.com/foosel/OctoPrint/issues/1434): Allow `[` and `]` in uploaded file names. - * [#1481](https://github.com/foosel/OctoPrint/issues/1481): Bring back non-fuzzy layer time estimates in the GCODE viewer. - * Improved fuzzy print time displays in the frontend. Rounding now takes overall duration into account - durations over a day will be rounded up/down to half days, durations over an hour will be rounded up/down to half hours, durations over 30min will be rounded to 10min segments, durations below 30min will be rounded up or down to the next minute depending on the seconds and finally if we are talking about less than a minute, durations over 30s will return "less than a minute", durations under 30s will return "a couple of seconds". - * Improved intermediary loading page: Don't report server as ready and reload until preliminary caching has been done, IF preliminary caching will be done. - * Added release channels to OctoPrint's bundled Software Update plugin. You will now be able to subscribe to OctoPrint's `maintenance` or `devel` release candidates in addition to stable versions. [Read more about Release Channels on the wiki](https://github.com/foosel/OctoPrint/wiki/Using-Release-Channels). - * Return a "400 Bad Request" instead of a "500 Internal Server Error" if a `multipart/form-data` request (e.g. a file upload) is sent which lacks the `boundary` field. - -### Bug Fixes - - * [#1448](https://github.com/foosel/OctoPrint/issues/1448): Don't "eat" first line of the pause script after a pause triggering `M0` but send it to the printer instead - * [#1477](https://github.com/foosel/OctoPrint/issues/1477): Only report files enqueued for analysis which actually are (as in, don't claim to have queued STL files for GCODE analysis) - * [#1478](https://github.com/foosel/OctoPrint/issues/1478): Don't display inaccurate linear estimate ("6 days remaining") until 30 *minutes* have passed, even if nothing else is available. Potentially related to [#1428](https://github.com/foosel/OctoPrint/issues/1428). - * [#1479](https://github.com/foosel/OctoPrint/issues/1479): Make sure set cookies are post fixed with a port specific suffix and that the path they are set on takes the script root from the request into account. - * [#1483](https://github.com/foosel/OctoPrint/issues/1483): Filenames in file uploads may also now be encoded in ISO-8859-1, as defined in [RFC 7230](https://tools.ietf.org/html/rfc7230#section-3.2.4). Solves an issue when sending files with non-ASCII-characters in the file name from Slic3r. - * [#1491](https://github.com/foosel/OctoPrint/issues/1491): Fixed generate/delete API key in the user settings - * [#1492](https://github.com/foosel/OctoPrint/issues/1492): Fixed a bug in the software update plugin depending on the presence of the ``prerelease`` flag which is only present when added manually or using a non stable release channel. - -### More information - - * [Commits](https://github.com/foosel/OctoPrint/compare/1.2.15...1.2.16) - * Release Candidates: - * [1.2.16rc1](https://github.com/foosel/OctoPrint/releases/tag/1.2.16rc1) - * [1.2.16rc2](https://github.com/foosel/OctoPrint/releases/tag/1.2.16rc2) - -## 1.2.15 (2016-07-30) - -### Improvements - - * [#1425](https://github.com/foosel/OctoPrint/issues/1425) - Added a compatibility work around for plugins implementing the [`octoprint.comm.transport.serial_factory` hook](http://docs.octoprint.org/en/master/plugins/hooks.html#octoprint-comm-transport-serial-factory) but whose handler's `write` method did not return the number of written bytes (e.g. [GPX plugin including v2.5.2](http://plugins.octoprint.org/plugins/gpx/), [M33 Fio plugin including v1.2](http://plugins.octoprint.org/plugins/m33fio/)). - -### Bug Fixes - - * [#1423](https://github.com/foosel/OctoPrint/issues/1423) - Fixed an issue with certain printers dropping or garbling communication when setting the read timeout of the serial line. Removed the dynamic timeout setting introduced by [#1409](https://github.com/foosel/OctoPrint/issues/1409) to solve this. - * [#1425](https://github.com/foosel/OctoPrint/issues/1425) - Fixed an error when trying to close a printer connection that had not yet been opened and was `None` - * Fixed "Last Modified" header calculation for views where only one source file was present - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.14...1.2.15)) - -## 1.2.14 (2016-07-28) - -### Improvements - - * [#935](https://github.com/foosel/OctoPrint/issues/935) - Support alternative source file types and target extensions in [SlicerPlugins](http://docs.octoprint.org/en/master/plugins/mixins.html#slicerplugin). - * [#1393](https://github.com/foosel/OctoPrint/issues/1393) - Added dedicated sub commands on the job API to pause and resume a print job (instead of only offering a toggle option). - * Better "upload error" message with a list of supported extensions (instead of hardcoded ones) - * Use fuzzy times for print time estimation from GCODE analysis - * Allow M23 "File opened" response with no filename (RepRapPro) - * Allow intermediary startup page to forward query parameters and fragments from initial call to actual web frontend - * More error resilience when rendering templates (e.g. from plugins) - * Make sure that all bytes of a line to send to the printer have actually been sent - * "Tickle" printer when encountering a communication timeout while idle - * Report `CLOSED`/`CLOSED_WITH_ERROR` states as "Offline" in frontend for more consistency with startup `NONE` state which already was reported as "Offline" - * Another attempt at a saner print time estimation: Force linear (way less accurate) estimate if calculation of more accurate version takes too long, sanity check calculated estimate and use linear estimate if it looks wrong, improved threshold values for calculation. Read [the second half of this post on the mailing list](https://groups.google.com/forum/#!msg/octoprint/WWpm1FCUkAs/X3HomTM5DgAJ) on why accurate print time estimation is so difficult to achieve. - * Display print job progress percentage on progress bar. - * Added an indicator for print time left prediction accuracy and explanation of its origin as tooltip. - * Improved visual distinction of "State" sidebar panel info clusters. - -### Bug Fixes - - * [#1385](https://github.com/foosel/OctoPrint/issues/1385) - Send all non-protocol messages from printer to clients. - * [#1388](https://github.com/foosel/OctoPrint/issues/1388) - Track consecutive timeouts even when idle and disconnect from printer when it's not responding any longer. - * [#1391](https://github.com/foosel/OctoPrint/issues/1391) - Only use the first value from the X-Scheme header for the reverse proxy setup. Otherwise there could be problems when multiple reverse proxies were configured chained together, each adding their own header to the mix. - * [#1407](https://github.com/foosel/OctoPrint/issues/1407) - If a file is uploaded with the "print" flag set to true, make sure to clear that flag after the print job has been triggered so that now all following uploaded or selected files will start printing on their own. - * [#1409](https://github.com/foosel/OctoPrint/issues/1409) - Don't report a communication timeout after a heatup triggered by a print from SD. - * Fixed scrolling to freshly uploaded files, also now highlighting the file entry for better visibility. - * Fixed overeager preemptive caching of invalid protocols. - * Fix modal background of update confirmation not vanishing - * Ensure log entries and messages from printer are sent to frontend already converted to utf-8. Otherwise even one line in the log that can't be converted automatically without error can cause updates from the backend to not arrive. - * Report correct printer state including error strings even after disconnecting - * While printing, be sure to read the next line from file and send that if the current line was filtered - * Small fixes in the GCODE analysis - * Small fixes in the documentation - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.13...1.2.14)) - -## 1.2.13 (2016-06-16) - -### Bug Fixes - - * [#1373](https://github.com/foosel/OctoPrint/issues/1373): Don't parse `B:` as bed temperature when it shows up as part of a position report from `M114`. - * [#1374](https://github.com/foosel/OctoPrint/issues/1374): Don't try to perform a passive login when the components we'd need to inform about a change in login state aren't yet available. Solves a bug that lead - among other things - to the Plugin Manager and the Software Update Plugin not showing anything but misleading errors until the user logged out and back in. - * Fixed the temperature graph staying uninitialized until a connection to a printer was established. - * Fixed an error causing issues during frontend startup if the browser doesn't support tracking browser visibility. - * Fixed an error causing issues during frontend startup if the browser doesn't support the capabilities needed for the GCODE viewer. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.12...1.2.13)) - -## 1.2.12 (2016-06-09) - -### Improvements - - * [#1338](https://github.com/foosel/OctoPrint/issues/1338): Threshold configuration fields now include information about how to specify the thresholds. - * Mark unrendered timelapses currently being processed (recording or rendering) in the list and remove action buttons so no accidental double-processing can take place. - * Removed file extension from "rendering" and "rendered" notifications, was misleading when using the [mp4 wrapper script](https://github.com/guysoft/OctoPi/issues/184). - * Added some new events for manipulation of slicing profiles. - * Small fix of the german translation. - -### Bug Fixes - - * [#1314](https://github.com/foosel/OctoPrint/issues/1314): Do not change the extension of `.g` files being uploaded to SD (e.g. `auto0.g`) - * [#1320](https://github.com/foosel/OctoPrint/issues/1320): Allow deletion of *.mp4 timelapse files (see [this wrapper script](https://github.com/guysoft/OctoPi/issues/184)). - * [#1324](https://github.com/foosel/OctoPrint/issues/1324): Make daemonized OctoPrint properly clean up its pid file again (see also [#1330](https://github.com/foosel/OctoPrint/pull/1330)). - * [#1326](https://github.com/foosel/OctoPrint/issues/1326): Do not try to clean up an unrendered timelapse while it is already being deleted (and produce way too much logging output in the process). - * [#1343](https://github.com/foosel/OctoPrint/issues/1343): Events are now processed in the order they are fired in, making e.g. the "timelapse rendering" message always appear before "timelapse failed" and hence not stay on forever in case of a failed timelapse. - * [#1344](https://github.com/foosel/OctoPrint/issues/1344): `ProgressPlugin`s now get also notified about a progress of 0%. - * [#1357](https://github.com/foosel/OctoPrint/issues/1357): Fixed wrongly named method call on editing access control options for a user, causing that to not work properly. - * [#1361](https://github.com/foosel/OctoPrint/issues/1361): Properly reload profile list for currently selected slicer in the slicing dialog on change of profiles. - * [#1364](https://github.com/foosel/OctoPrint/issues/1364): Fixed a race condition that could cause the UI to not initialize correctly due to 401 errors, leaving it in an unusable state until a reload. - * Fixed concurrent message pushing to the frontend being able to break push messages for the session by forcing synchronization of SockJS message sending. - * Do not require admin rights for connecting/disconnecting, like it was in 1.1.x (note that this is supposed to become configurable behaviour once [#1110](https://github.com/foosel/OctoPrint/issues/1110) gets implemented) - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.11...1.2.12)) - -## 1.2.11 (2016-05-04) - -### Important Announcement - -Due to a recent change in the financial situation of the project, the funding of OctoPrint is at stake. If you love OctoPrint and want to see its development continue at the pace of the past two years, please read on about its current funding situation and how you can help: ["I need your support"](http://octoprint.org/blog/2016/04/13/i-need-your-support/). - -### Improvements - - * Added option to treat resend requests as `ok` for such firmwares that do not send an `ok` after requesting a resend. If you printer communication gets stalled after a resend request from the firmware, try checking this option. - * Added an "About" dialog to properly inform about OctoPrint's license, contributors and supporters. - * Added a announcement plugin that utilizes the RSS feeds of the [OctoPrint Blog](http://octoprint.org/blog/) and the [plugin repository](http://plugins.octoprint.org) to display news to the user. By default only the "important announcement" category is enabled. This category will only be used for very rare situations such as making you aware of critical updates or important news. You can enable further categories (with more announcements to be expected) in the plugin's settings dialog. - -### Bug Fixes - - * [#1300](https://github.com/foosel/OctoPrint/issues/1300) - Removed possibility to accidentally disabling local file list by first limiting view to files from SD and then disabling SD support. - * [#1315](https://github.com/foosel/OctoPrint/issues/1315) - Fixed broken post roll on z-based timelapses. - * Fixed CSS data binding syntax on the download link in the files list - * Changed control distance from jQuery data into a knockout observerable and observerableArray - * Allow an unauthorized user to logout from a logedin interface state - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.10...1.2.11)) - -## 1.2.10 (2016-03-16) - -### Improvements - - * Improved performance of console output during plugin installation/deinstallation - * Slight performance improvements in the communication layer - * Log small log excerpt to `octoprint.log` upon encountering a communication error. - * Changed wording in "firmware error" notifications to better reflect that there was an error while communicating with the printer, since the error condition can also be triggered by serial errors while trying to establish a connection to the printer or when already connected. - * Support downloading ".mp4" timelapse files. You'll need a [custom wrapper script for timelapse rendering](https://github.com/guysoft/OctoPi/issues/184) for this to be relevant to you. See also [#1255](https://github.com/foosel/OctoPrint/pull/1255) - * The communication layer will now wait up to 10s after clicking disconnect in order to send any left-over lines from its buffers. - * Moved less commonly used configuration options in Serial settings into "Advanced options" roll-out. - -### Bug Fixes - - * [#1224](https://github.com/foosel/OctoPrint/issues/1224) - Fixed an issue introduced by the fix for [#1196](https://github.com/foosel/OctoPrint/issues/1196) that had the "Upload to SD" button stop working correctly. - * [#1226](https://github.com/foosel/OctoPrint/issues/1226) - Fixed an issue causing an error on disconnect after or cancelling of an SD print, caused by the unsuccessful attempt to record print recovery data for the file on the printer's SD card. - * [#1268](https://github.com/foosel/OctoPrint/issues/1268) - Only add bed temperature line to temperature management specific start gcode in CuraEngine invocation if a bed temperature is actually set in the slicing profile. - * [#1271](https://github.com/foosel/OctoPrint/issues/1271) - If a communication timeout occurs during an active resend request, OctoPrint will now not send an `M105` with an increased line number anymore but repeat the last resent command instead. - * [#1272](https://github.com/foosel/OctoPrint/issues/1272) - Don't add an extra `ok` for `M28` response. - * [#1273](https://github.com/foosel/OctoPrint/issues/1273) - Add an extra `ok` for `M29` response, but only if configured such in "Settings" > "Serial" > "Advanced options" > "Generate additional ok for M29" - * [#1274](https://github.com/foosel/OctoPrint/issues/1274) - Trigger `M20` only once after finishing uploading to SD - * [#1275](https://github.com/foosel/OctoPrint/issues/1275) - Prevent `M105` "cascade" due to communication timeouts - * Fixed wrong tracking of extruder heating up for `M109 Tn` commands in multi-extruder setups. - * Fixed start of SD file uploads not sending an `M110`. - * Fixed job data not being reset when disconnecting while printing. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.9...1.2.10)) - -## 1.2.9 (2016-02-10) - -### Improvements - - * [#318](https://github.com/foosel/OctoPrint/issues/318) - Snapshots for timelapses are now named in a non-colliding, job-based way, allowing a new timelapse to start while the other is still being rendered (although printing with an active timelapse rendering job is not recommended and will be solved with a proper render job queue in a later version). Timelapses that were not successfully rendered are kept for 7 days (configurable, although not via the UI so far) and can be manually rendered or deleted through a new UI component within the timelapse tab that shows up if unrendered timelapses are detected. - * [#485](https://github.com/foosel/OctoPrint/issues/485) - "Timelapse rendering" notification is now persistent, even across reloads/client switches. That should make it easier to see that a rendering job is currently in progress. - * [#939](https://github.com/foosel/OctoPrint/issues/939) - Updated to Knockout 3.4.0 - * [#1204](https://github.com/foosel/OctoPrint/issues/1204) - Display total print time as estimated by GCODE viewer on GCODE viewer tab. That will allow access to an estimate even if the server hadn't yet calculated that when a print started. Note that due to slightly different implementation server and client side the resulting estimate might differ. - * OctoPrint now serves an intermediary page upon start that informs the user about the server still starting up. Once the server is detected as running, the page automatically switches to the standard interface. - * OctoPrint now displays a link to the release notes of an updated component in the update notification, the update confirmation and the version overview in the settings dialog. Please always make sure to at least skim over the release notes for new OctoPrint releases, they might contain important information that you need to know before updating. - * Improved initial page loading speeds by introducing a preemptive cache. OctoPrint will now record how you access it and on server start pre-render the page so it's ideally available in the server-side cache when you try to access it. - * Initialize login user name and password with an empty string and clear both on successful login (see [#1175](https://github.com/foosel/OctoPrint/pull/1175)). - * Added a "Refresh" button to the file list for people who modify the stored files externally (doing this is not encouraged however due to reasons of book keeping, e.g. metadata tracking etc). - * "Save" button on settings dialog is now disabled while background tasks (getting or receiving config data from the backend) are in progress. - * Improved performance of terminal tab on lower powered clients. Adaptive rate limiting now ensures the server backs off with log updates if the client can't process them fast enough. If the client is really slow, log updates get disabled automatically during printing. This behaviour can be disabled with override buttons in the terminal tab's advanced options if necessary. - * Added option to ignore any unhandled errors reported by the firmware and another option to only cancel ongoing prints on unhandled errors from the firmware (instead of instant disconnect that so far was the default). - * Made version compatibility check PEP440 compliant (important for plugin authors). - * Do not hiccup on manually sent `M28` commands. - * Persist print recovery data on print failures (origin and name of printed file, position in file when print was aborted, time and date of print failure). Currently this data isn't used anywhere, but it [can be accessed from plugins in order to add recovery functionality](https://github.com/foosel/OctoPrint-PrintRecoveryPoc) to OctoPrint. - * Small performance improvements in update checks. - * The file upload dialog will now only display files having an extension that's supported for upload (if the browser supports it, also see [#1196](https://github.com/foosel/OctoPrint/issues/1196)). - -### Bug Fixes - - * [#1007](https://github.com/foosel/OctoPrint/issues/1007) - Don't enable the "Print" button if no print job is selected. - * [#1181](https://github.com/foosel/OctoPrint/issues/1181) - Properly slugify UTF-8 only file names. - * [#1196](https://github.com/foosel/OctoPrint/issues/1196) - Do not show drag-n-drop overlay if server is offline. - * [#1208](https://github.com/foosel/OctoPrint/issues/1208) - Fixed `retraction_combing` profile setting being incorrectly used by bundled Cura plugin (see [#1209](https://github.com/foosel/OctoPrint/pull/1209)) - * Fixed OctoPrint compatibility check in the plugin manager, could report `False` for development versions against certain versions of Python's `setuptools` (thanks to @ignaworm who stumbled over this). - * Fixed a missing parameter in `PluginSettings.remove` call (see [#1177](https://github.com/foosel/OctoPrint/pull/1177)). - * Docs: Fixed the example for a custom `M114` control to also match negative coordinates. - * Reset scroll position in settings dialog properly when re-opening it or switching tabs. - * Fixed an issue that prevented system menu entries that were added to a so far empty system menu make the menu show up. - * Fixed an issue that made requests to restricted resources fail even though the first run wizard had been completed successfully. - * Fixed an issue where an unknown command or the suppression of a command could cause the communication to stall until a communication timeout was triggered. - * Strip [unwanted ANSI characters](https://github.com/pypa/pip/issues/3418) from output produced by pip versions 8.0.0, 8.0.1 and 8.0.3 that prevents our plugin installation detection from working correctly. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.8...1.2.9)) - -## 1.2.8 (2015-12-07) - -### Notes for Upgraders - -#### A bug in 1.2.7 prevents directly updating to 1.2.8, here's what to do - -A bug in OctoPrint 1.2.7 (fixed in 1.2.8) prevents updating OctoPrint to version -1.2.8. If you try to perform the update, you will simply be told that "the update -was successful", but the update won't actually have taken place. To solve this -hen-egg-problem, a plugin has been made available that fixes said bug (through -monkey patching). - -The plugin is called "Updatefix 1.2.7" and can be found -[in the plugin repository](http://plugins.octoprint.org/plugins/updatefix127/) -and [on Github](https://github.com/OctoPrint/OctoPrint-Updatefix-1.2.7/). - -Before attempting to update your installation from version 1.2.7 to version 1.2.8, -please install the plugin via your plugin manager and restart your server. Note that -you will only see it in the Plugin Manager if you need it, since it's only compatible with -OctoPrint version 1.2.7. After you installed the plugin and restarted your server -you can update as usual. The plugin will self-uninstall once it detects that it's -running under OctoPrint 1.2.8. After the self-uninstall another restart of your server -will be triggered (if you have setup your server's restart command, defaults to -`sudo service octoprint restart` on OctoPi) in order to really get rid of any -left-overs, so don't be alarmed when that happens, it is intentional. - -**If you cannot or don't want to use the plugin**, alternatively you can switch -OctoPrint to "Commit" based tracking via the settings of the Software Update plugin, -update, then switch back to "Release" based tracking (see [this screenshot](https://i.imgur.com/wvkgiGJ.png)). - -#### Bed temperatures are now only displayed if printer profile has a heated bed configured - -This release fixes a [bug](https://github.com/foosel/OctoPrint/issues/1125) -that caused bed temperature display and controls to be available even if the -selected printer profile didn't have a heated bed configured. - -If your printer does have a heated bed but you are not seeing its temperature -in the "Temperature" tab after updating to 1.2.8, please make sure to check -the "Heated Bed" option in your printer profile (under Settings > Printer Profiles) -as shown [in this short GIF](http://i.imgur.com/wp1j9bs.gif). - -### Improvements - - * Version numbering now follows [PEP440](https://www.python.org/dev/peps/pep-0440/). - * Prepared some things for publishing OctoPrint on [PyPi](https://pypi.python.org/pypi) - in the future. - * [BlueprintPlugin mixin](http://docs.octoprint.org/en/master/plugins/mixins.html#blueprintplugin) - now has an `errorhandler` decorator that serves the same purpose as - [Flask's](http://flask.pocoo.org/docs/0.10/patterns/errorpages/#error-handlers) - ([#1059](https://github.com/foosel/OctoPrint/pull/1059)) - * Interpret `M25` in a GCODE file that is being streamed from OctoPrint as - indication to pause, like `M0` and `M1`. - * Cache rendered page and translation files indefinitely. That should - significantly improve performance on reloads of the web interface. - * Added the string "unknown command" to the list of ignored printer errors. - This should help with general firmware compatibility in case a firmware - lacks features. - * Added the strings "cannot open" and "cannot enter" to the list of ignored - printer errors. Those are errors that Marlin may report if there is an issue - with the printer's SD card. - * The "CuraEngine" plugin now makes it more obvious that it only targets - CuraEngine versions up to and including 15.04 and also links to the plugin's - homepage with more information right within the settings dialog. - * Browser tab visibility is now tracked by the web interface, disabling the - webcam and the GCODE viewer if the tab containing OctoPrint is not active. - That should reduce the amount of resource utilized by the web interface on - the client when it is not actively monitored. Might also help to mitigate - [#1065](https://github.com/foosel/OctoPrint/issues/1065), the final verdict - on that one is still out though. - * The printer log in the terminal tab will now be cut off after 3000 lines - even if autoscroll is disabled. If the limit is reached, no more log lines - will be added to the client's buffer. That ensures that the log will not - scroll and the current log excerpt will stay put while also not causing - the browser to run into memory errors due to trying to buffer an endless - amount of log lines. - * Increased timeout of "waiting for restart" after an update from 20 to 60sec - (20sec turned out to be too little for OctoPi for whatever reason). - * Added a couple of unit tests - -### Bug Fixes - - * [#1120](https://github.com/foosel/OctoPrint/issues/1120) - Made the watchdog - that monitors and handles the `watched` folder more resilient towards errors. - * [#1125](https://github.com/foosel/OctoPrint/issues/1125) - Fixed OctoPrint - displaying bed temperature and controls and allowing the sending of GCODE - commands targeting the bed (`M140`, `M190`) if the printer profile doesn't - have a heated bed configured. - * Fixed an issue that stopped the software updater working for OctoPrint. The - updater reports success updating, but no update has actually taken place. A - fix can be applied for this issue to OctoPrint version 1.2.7 via - [the Updatefix 1.2.7 plugin](https://github.com/OctoPrint/OctoPrint-Updatefix-1.2.7). - For more information please refer to the [Important information for people updating from version 1.2.7](#important-information-for-people-updating-from-version-127) - above. - * Fix: Current filename in job data should never be prefixed with `/` - * Only persist plugin settings that differ from the defaults. This way the - `config.yaml` won't be filled with lots of redundant data. It's the - responsibility of the plugin authors to responsibly handle changes in default - settings of their plugins and add data migration where necessary. - * Fixed a documentation bug ([#1067](https://github.com/foosel/OctoPrint/pull/1067)) - * Fixed a conflict with bootstrap-responsive, e.g. when using the - [ScreenSquish Plugin](http://plugins.octoprint.org/plugins/screensquish/) - ([#1103](https://github.com/foosel/OctoPrint/pull/1067)) - * Fixed OctoPrint still sending SD card related commands to the printer even - if SD card support is disabled (e.g. `M21`). - * Hidden files are no longer visible to the template engine, neither as (GCODE) - scripts nor as interface templates. - * The hostname and URL prefix via which the OctoPrint web interface is accessed - is now part of the cache key. Without that being the case the cache could - be created referring to something like `/octoprint/prefix/api/` for its API - endpoint (if accessed via `http://somehost:someport/octoprint/prefix/` first - time), which would then cause the interface to not work if accessed later - via another route (e.g. `http://someotherhost/`). - * Fixed a JavaScript error on finishing streaming of a file to SD. - * Fixed version reporting on detached HEADs (when the branch detection - reported "HEAD" instead of "(detached" - * Fixed some path checks for systems with symlinked paths - ([#1051](https://github.com/foosel/OctoPrint/pull/1051)) - * Fixed a bug causing the "Server Offline" overlay to pop _under_ the - "Please reload" overlay, which could lead to "Connection refused" browser - messages when clicking "Reload now" in the wrong moment. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.7...1.2.8)) - -## 1.2.7 (2015-10-20) - -### Improvements - - * [#1062](https://github.com/foosel/OctoPrint/issues/1062) - Plugin Manager - now has a configuration dialog that among other things allows defining the - used `pip` command if auto detection proves to be insufficient here. - * Allow defining additional `pip` parameters in Plugin Manager. That might - make `sudo`-less installation of plugins possible in situations where it's - tricky otherwise. - * Improved timelapse processing (backported from `devel` branch): - * Individually captured frames cannot "overtake" each other anymore through - usage of a capture queue. - * Notifications will now be shown when the capturing of the timelapse's - post roll happens, including an approximation of how long that will take. - * Usage of `requests` instead of `urllib` for fetching the snapshot, - appears to also have [positive effects on webcam compatibility](https://github.com/foosel/OctoPrint/issues/1078). - * Some more defensive escaping for various settings in the UI (e.g. webcam URL) - * Switch to more error resilient saving of configuration files and other files - modified during runtime (save to temporary file & move). Should reduce risk - of file corruption. - * Downloading GCODE and STL files should now set more fitting `Content-Type` - headers (`text/plain` and `application/sla`) for better client side support - for "Open with" like usage scenarios. - * Selecting z-triggered timelapse mode will now inform about that not working - when printing from SD card. - * Software Update Plugin: Removed "The web interface will now be reloaded" - notification after successful update since that became obsolete with - introduction of the "Reload Now" overlay. - * Updated required version of `psutil` and `netifaces` dependencies. - -### Bug Fixes - - * [#1057](https://github.com/foosel/OctoPrint/issues/1057) - Better error - resilience of the Software Update plugin against broken/incomplete update - configurations. - * [#1075](https://github.com/foosel/OctoPrint/issues/1075) - Fixed support - of `sudo` for installing plugins, but added big visible warning about it - as it's **not** recommended. - * [#1077](https://github.com/foosel/OctoPrint/issues/1077) - Do not hiccup - on [UTF-8 BOMs](https://en.wikipedia.org/wiki/Byte_order_mark) (or other - BOMs for that matter) at the beginning of GCODE files. - * Fixed an issue that caused user sessions to not be properly associated, - leading to Sessions getting duplicated, wrongly saved etc. - * Fixed internal server error (HTTP 500) response on REST API calls with - unset `Content-Type` header. - * Fixed an issue leading to drag-and-drop file uploads to trigger frontend - processing in various other file upload widgets. - * Fixed a documentation error. - * Fixed caching behaviour on GCODE/STL downloads, was setting the `ETag` - header improperly. - * Fixed GCODE viewer not properly detecting change of currently visualized - file on Windows systems. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.6...1.2.7)) - -## 1.2.6 (2015-09-02) - -### Improvements - - * Added support for version reporting on detached checkouts - (see [#1041](https://github.com/foosel/OctoPrint/pull/1041)) - -### Bug Fixes - - * Pinned requirement for [psutil](https://pypi.python.org/pypi/psutil) - dependency to version 3.1.1 of that library due to an issue when - installing version 3.2.0 of that library released on 2015-09-02 through - a `python setup.py install` on OctoPrint. Also pinned all other requirements - to definitive versions that definitely work while at it to keep that from - happening again. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.5...1.2.6)) - -## 1.2.5 (2015-08-31) - -### Improvements - - * [#986](https://github.com/foosel/OctoPrint/issues/986) - Added tooltip for - "additional data" button in file list. - * [#1028](https://github.com/foosel/OctoPrint/issues/1028) - Hint about why - timelapse configuration is disabled. - * New central configuration option for commands to restart OctoPrint and to - restart and shut down the system OctoPrint is running on. This allows plugins - (like the Software Update Plugin or the Plugin Manager) and core functionality - to perform these common administrative tasks without the user needing to define - everything redundantly. - * Settings dialog now visualizes when settings are saving and when they being - retrieved. Also the Send/Cancel buttons are disabled while settings are saving - to prevent duplicated requests and concurrent retrieval of the settings by - multiple viewmodels is disabled as well. - * Better protection against rendering errors from templates provided by third - party plugins. - * Better protection against corrupting the configuration by using a temporary - file as intermediate buffer. - * Added warning to UI regarding Z timelapses and spiralized objects. - * Better compatibility with Repetier firmware: - * Added "Format Error" to whitelisted recoverable communication errors - (see also [#1032](https://github.com/foosel/OctoPrint/pull/1032)). - * Added option to ignore repeated resend requests for the same line (see - also discussion in [#1015](https://github.com/foosel/OctoPrint/pull/1015)). - * Software Update Plugin: - * Adjusted to utilize new centralized restart commands (see above). - * Allow configuration of checkout folder and version tracking type via - Plugin Configuration. - * Display message to user if OctoPrint's checkout folder is not configured - or a non-release version is running and version tracking against releases - is enabled. - * Clear version cache when a change in the check configuration is detected. - * Mark check configurations for which an update is not possible. - * Made disk space running low a bit more obvious through visual warning on - configurable thresholds. - -### Bug Fixes - - * [#985](https://github.com/foosel/OctoPrint/issues/985) - Do not hiccup on - unset `Content-Type` part headers for multipart file uploads. - * [#1001](https://github.com/foosel/OctoPrint/issues/1001) - Fixed connection - tab not unfolding properly (see also [#1002](https://github.com/foosel/OctoPrint/pull/1002)). - * [#1012](https://github.com/foosel/OctoPrint/issues/1012) - All API - responses now set no-cache headers, making the Edge browser behave a bit better - * [#1019](https://github.com/foosel/OctoPrint/issues/1019) - Better error - handling of problems when trying to write the webassets cache. - * [#1021](https://github.com/foosel/OctoPrint/issues/1021) - Properly handle - serial close on Macs. - * [#1031](https://github.com/foosel/OctoPrint/issues/1031) - Special - handling of `M112` (emergency stop) command: - * Jump send queue - * In case the printer's firmware doesn't understand it yet, at least - shutdown all of the heaters - * Disconnect - * Properly reset job progress to 0% when restarting a previously completed - printjob (see [#998](https://github.com/foosel/OctoPrint/pull/998)). - * Report an update as failed if the `pip` command returns a return code that - indicates failure. - * Fixed sorting of templates: could only be sorted by name, individual - configurations were ignored (see [#1022](https://github.com/foosel/OctoPrint/pull/1022)). - * Fixed positioning of custom context menus: were offset due to changes in - overall positioning settings (see [#1023](https://github.com/foosel/OctoPrint/pull/1023)). - * Software Update: Don't use display version for comparison of git commit - hashs. - * Fixed temperature parsing for multi extruder setups. - * Fixed nested vertical and horizontal custom control layouts. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.4...1.2.5)) - -## 1.2.4 (2015-07-23) - -### Improvements - - * `RepeatedTimer` now defaults to `daemon` set to `True`. This makes sure - plugins using it don't have to remember to set that flag themselves in - order for the server to properly shut down when timers are still active. - * Fixed a typo in the docs about `logging.yaml` (top level element is - `loggers`, not `logger`). - * Support for plugins with external dependencies (`dependency_links` in - setuptools), interesting for plugin authors who need to depend on Python - libraries that are (not yet) available on PyPI. - * Better resilience against errors within plugins. - -### Bug Fixes - - * Do not cache web page when running for the first time, to avoid caching - the first run dialog popup along side with it. This should solve issues - people were having when configuring OctoPrint for the first time, then - reloading the page without clearing the cache, being again prompted with - the dialog with no chance to clear it. - * Fix/workaround for occasional white panes in settings dialog on Safari 8, - which appears to have an issue with fixed positioning. - * Fixed form field truncation in upload requests that could lead to problems - when trying to import Cura profiles with names longer than 28 characters. - * Fixed webcam rotation for timelapse rendering. - * Fixed user settings not reaching the editor in the frontend. - * Notifications that are in process of being closed don't open again on - mouse over (that was actually more of an unwanted feature). - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.3...1.2.4)) - -## 1.2.3 (2015-07-09) - -### Improvements - - * New option to actively poll the watched folder. This should make it work also - if it is mounted on a filesystem that doesn't allow getting notifications - about added files through notification by the operating system (e.g. - network shares). - * Better resilience against senseless temperature/SD-status-polling intervals - (such as 0). - * Log exceptions during writing to the serial port to `octoprint.log`. - -### Bug Fixes - - * [#961](https://github.com/foosel/OctoPrint/pull/961) - Fixed a JavaScript error that caused an error to be logged when "enter" was pressed in file or plugin search. - * [#962](https://github.com/foosel/OctoPrint/pull/962) - ``url(...)``s in packed CSS and LESS files should now be rewritten properly too to refer to correct paths - * Update notifications were not vanishing properly after updating: - * Only use version cache for update notifications if the OctoPrint version still is the same to make sure the cache gets invalidated after an external update of OctoPrint. - * Do not persist version information when saving settings of the Software Update plugin - * Always delete files from the ``watched`` folder after importing then. Using file preprocessor plugins could lead to the files staying there. - * Fixed an encoding problem causing OctoPrint's Plugin Manager and Software Update plugins to choke on UTF-8 characters in the update output. - * Fixed sorting by file size in file list - * More resilience against missing plugin assets: - * Asset existence will now be checked before they get included - in the assets to bundle by webassets, logging a warning if a - file isn't present. - * Monkey-patched webassets filter chain to not die when a file - doesn't exist, but to log an error instead and just return - an empty file instead. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.2...1.2.3)) - -## 1.2.2 (2015-06-30) - -### Bug Fixes - -* Fixed an admin-only security issue introduced in 1.2.0, updating is strongly advised. - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.1...1.2.2)) - -## 1.2.1 (2015-06-30) - -### Improvements - -* More flexibility when interpreting compatibility data from plugin repository. If compatibility information is provided - only as a version number it's prefixed with `>=` for the check (so stating a compatibility of only - `1.2.0` will now make the plugin compatible to OctoPrint 1.2.0+, not only 1.2.0). Alternatively the compatibility - information may now contain stuff like `>=1.2,<1.3` in which case the plugin will only be shown as compatible - to OctoPrint versions 1.2.0 and up but not 1.3.0 or anything above that. See also - [the requirement specification format of the `pkg_resources` package](https://pythonhosted.org/setuptools/pkg_resources.html#requirements-parsing). -* Only print the commands of configured event handlers to the log when a new `debug` flag is present in the config - (see [the docs](http://docs.octoprint.org/en/master/configuration/config_yaml.html#events)). Reduces risk of disclosing sensitive data when sharing log files. - -### Bug Fixes - -* [#956](https://github.com/foosel/OctoPrint/issues/956) - Fixed server crash when trying to configure a default - slicing profile for a still unconfigured slicer. -* [#957](https://github.com/foosel/OctoPrint/issues/957) - Increased maximum allowed body size for plugin archive uploads. -* Bugs without tickets: - * Clean exit on `SIGTERM`, calling the shutdown functions provided by plugins. - * Don't disconnect on `volume.init` errors from the firmware. - * `touch` uploaded files on local file storage to ensure proper "uploaded date" even for files that are just moved - from other locations of the file system (e.g. when being added from the `watched` folder). - -([Commits](https://github.com/foosel/OctoPrint/compare/1.2.0...1.2.1)) - -## 1.2.0 (2015-06-25) - -### Note for Upgraders - - * The [Cura integration](https://github.com/daid/Cura) has changed in such a way that OctoPrint now calls the - [CuraEngine](https://github.com/Ultimaker/CuraEngine) directly instead of depending on the full Cura installation. See - [the wiki](https://github.com/foosel/OctoPrint/wiki/Plugin:-Cura) for instructions on how to change your setup to - accommodate the new integration. - -### New Features - -* OctoPrint now has a [plugin system](http://docs.octoprint.org/en/master/plugins/index.html) which allows extending its - core functionality. - * Plugins may be installed through the new and bundled [Plugin Manager Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Plugin-Manager) - available in OctoPrint's settings. This Plugin Manager also allows browsing and easy installation of plugins - registered on the official [OctoPrint Plugin Repository](http://plugins.octoprint.org). - * For interested developers there is a [tutorial available in the documentation](http://docs.octoprint.org/en/master/plugins/gettingstarted.html) - and also a [cookiecutter template](https://github.com/OctoPrint/cookiecutter-octoprint-plugin) to quickly bootstrap - new plugins. -* Added internationalization of UI. Translations of OctoPrint are being crowd sourced via [Transifex](https://www.transifex.com/projects/p/octoprint/). - Language Packs for both the core application as well as installed plugins can be uploaded through a new management - dialog in Settings > Appearance > Language Packs. A translation into German is included, further language packs - will soon be made available. -* Printer Profiles: Printer properties like print volume, extruder offsets etc are now managed via Printer Profiles. A - connection to a printer will always have a printer profile associated. -* File management now supports STL files as first class citizens (including UI adjustments to allow management of - uploaded STL files including removal and reslicing) and also allows folders (not yet supported by UI). STL files - can be downloaded like GCODE files. -* Slicing has been greatly improved: - * It now allows for a definition of slicing profiles to use for slicing plus overrides which can be defined per slicing - job (defining overrides is not yet part of the UI but it's on the roadmap). - * A new slicing dialog has been added which allows (re-)slicing uploaded STL files (which are now displayed in the file list - as well). The slicing profile and printer profile to use can be specified here as well as the file name to which to - slice to and the action to take after slicing has been completed (none, selecting the sliced GCODE for printing or - starting to print it directly) - * The slicing API allows positioning the model to slice on the print bed (Note: this is not yet available in the UI). - * Slicers themselves are integrated into the system via ``SlicingPlugins``. - * Bundled [Cura Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Cura) allows slicing through CuraEngine up - to and including 15.04. Existing Cura slicing profiles can be imported through the web interface. -* New file list: Pagination is gone, no more (mobile incompatible) pop overs, instead scrollable and with instant - search -* You can now define a folder (default: `~/.octoprint/watched`) to be watched for newly added GCODE (or -- if slicing - support is enabled -- STL) files to automatically add. -* New type of API key: [App Session Keys](http://docs.octoprint.org/en/master/api/apps.html) for trusted applications -* OctoPrint now supports `action:...` commands received via debug messages (`// action:...`) from the printer. Currently supported are - - `action:pause`: Pauses the current job in OctoPrint - - `action:resume`: Resumes the current job in OctoPrint - - `action:disconnect`: Disconnects OctoPrint from the printer - Plugins can add supported commands by [hooking](http://docs.octoprint.org/en/master/plugins/hooks.html) into the - ``octoprint.comm.protocol.action`` hook -* Mousing over the webcam image in the control tab enables key control mode, allowing you to quickly move the axis of your - printer with your computer's keyboard ([#610](https://github.com/foosel/OctoPrint/pull/610)): - - arrow keys: X and Y axes - - W, S / PageUp, PageDown: Z axes - - Home: Home X and Y axes - - End: Home Z axes - - 1, 2, 3, 4: change step size used (0.1, 1, 10, 100mm) -* Controls for adjusting feed and flow rate factor added to Controls ([#362](https://github.com/foosel/OctoPrint/issues/362)) -* Custom controls now also support slider controls -* Custom controls now support a row layout -* Users can now define custom GCODE scripts to run upon starting/pausing/resuming/success/failure of a print or for - custom controls ([#457](https://github.com/foosel/OctoPrint/issues/457), [#347](https://github.com/foosel/OctoPrint/issues/347)) -* Bundled [Discovery Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Discovery) allows discovery of OctoPrint - instances via SSDP/UPNP and optionally also via ZeroConf/Bonjour/Avahi. -* Bundled [Software Update Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Software-Update) takes care of notifying - about new OctoPrint releases and also allows updating if configured as such. Plugins may register themselves with the - update notification and application process through a new hook ["octoprint.plugin.softwareupdate.check_config"](https://github.com/foosel/OctoPrint/wiki/Plugin:-Software-Update#octoprintpluginsoftwareupdatecheck_config). - -### Improvements - -* Logging is now configurable via config file -* Added last print time to additional GCODE file information -* Better error handling for capture issues during timelapse creation & more robust handling of missing images during - timelapse creation -* Start counting the layers at 1 instead of 0 in the GCODE viewer -* Upgraded [Font Awesome](https://fortawesome.github.io/Font-Awesome/) to version 3.2.1 -* Better error reporting for timelapse rendering and system commands -* Custom control can now be defined so that they show a Confirm dialog with configurable text before executing - ([#532](https://github.com/foosel/OctoPrint/issues/532) and [#590](https://github.com/foosel/OctoPrint/pull/590)) -* Serial communication: Also interpret lines starting with "!!" as errors -* Added deletion of pyc files to the `python setup.py clean` command -* Settings now show a QRCode for the API Key ([#637](https://github.com/foosel/OctoPrint/pull/637)) -* Username in UI is no longer enclosed in scare quotes ([#595](https://github.com/foosel/OctoPrint/pull/595)) -* Username in login dialog is not automatically capitalized on mobile devices anymore ([#639](https://github.com/foosel/OctoPrint/pull/639)) -* "Slicing Done" and "Streaming Done" notifications now have a green background ([#558](https://github.com/foosel/OctoPrint/issues/558)) -* Files that are currently in use, be it for slicing, printing or whatever, are now tracked and can not be deleted as - long as they are in use -* Settings in UI get refreshed when opening settings dialog -* New event "SettingsUpdated" -* "Print time left" is now not displayed until it becomes somewhat stable. Display in web interface now also happens - in a fuzzy way instead of the format hh:mm:ss, to not suggest a high accuracy anymore where the can't be one. Additionally - OctoPrint will use data from prior prints to enhance the initial print time estimation. -* Added handler for uncaught exceptions to make sure those get logged, should make the logs even more useful for analysing - bug reports -* The server now tracks the modification date of the configuration file and reloads it prior to saving the config if - it has been changed during runtime by external editing, hence no config settings added manually while the server - was running should be overwritten anymore. -* Display a "Please Reload" overlay when a new server version or a change in installed plugins is detected after a - reconnect to the server. -* Better handling of errors on the websocket - no more logging of the full stack trace to the log, only a warning - message for now. -* Daemonized OctoPrint now cleans up its pidfile when receiving a TERM signal ([#711](https://github.com/foosel/OctoPrint/issues/711)) -* Added serial types for OpenBSD ([#551](https://github.com/foosel/OctoPrint/pull/551)) -* Improved behaviour of terminal: - * Disabling autoscrolling now also stops cutting off the log while it's enabled, effectively preventing log lines from - being modified at all ([#735](https://github.com/foosel/OctoPrint/issues/735)) - * Applying filters displays ``[...]`` where lines where removed and doesn't cause scrolling on filtered lines - anymore ([#286](https://github.com/foosel/OctoPrint/issues/286)) - * Added a link to scroll to the end of the terminal log (useful for when autoscroll is disabled) - * Added a link to select all current contents of the terminal log for easy copy-pasting - * Added a display of how many lines are displayed, how many are filtered and how many are available in total -* Frame rate for timelapses can now be configured per timelapse ([#782](https://github.com/foosel/OctoPrint/pull/782)) -* Added an option to specify the amount of encoding threads for FFMPEG ([#785](https://github.com/foosel/OctoPrint/pull/785)) -* "Disconnected" screen now is not shown directly after a close of the socket, instead the client first tries to - directly reconnect once, and only if that doesn't work displays the dialog. Should reduce short popups of the dialog - due to shaky network connections and/or weird browser behaviour when downloading things from the UI. -* Development dependencies can now be installed with ``pip -e .[develop]`` -* White and transparent colors ;) are supported for the navigation bar ([#789](https://github.com/foosel/OctoPrint/pull/789)) -* Drag-n-drop overlay for file uploads now uses the full available screen space, improving usability on high resolution - displays ([#187](https://github.com/foosel/OctoPrint/issues/187)) -* OctoPrint server should no longer hang when big changes in the system time happen, e.g. after first contact to an - NTP server on a Raspberry Pi image. Achieved through monkey patching Tornado with - [this PR](https://github.com/tornadoweb/tornado/pull/1290). -* Serial ports matching ``/dev/ttyAMA*`` are not anymore listed by default (this was the reason for a lot of people - running into problems while attempting to connect to their printer on their Raspberry Pis, on which ``/dev/ttyAMA0`` - is the OS's serial console by default). Added configuration of additional ports to the Serial Connection section in - the Settings to make it easier for those people who do indeed have their printer connected to ``/dev/ttyAMA0``. -* Better behaviour of the settings dialog on low-width devices, navigation and content also now scroll independently - from each other (see also [#823](https://github.com/foosel/OctoPrint/pull/823)) -* Renamed "Temperature Timeout" and "SD Status Timeout" in Settings to "Temperature Interval" and "SD Status Interval" - to better reflect what those values are actually used for. -* Added support for rectangular printer beds with the origin in the center ([#682](https://github.com/foosel/OctoPrint/issues/682) - and [#852](https://github.com/foosel/OctoPrint/pull/852)). Printer profiles now contain a new settings ``volume.origin`` - which can either be ``lowerleft`` or ``center``. For circular beds only ``center`` is supported. -* Made baudrate detection a bit more solid, still can't perform wonders. -* Only show configuration options for additional extruders if more than one is available, and don't include offset - configuration for first nozzle which acts as reference for the other offsets ([#677](https://github.com/foosel/OctoPrint/issues/677)). -* Cut off of the temperature graph is now not based on the number of data points any more but on the actual time of the - data points. Anything older than ``n`` minutes will be cut off, with ``n`` defaulting to 30min. This value can be - changed under "Temperatures" in the Settings ([#343](https://github.com/foosel/OctoPrint/issues/343)). -* High-DPI support for the GCode viewer ([#837](https://github.com/foosel/OctoPrint/issues/837)). -* Stop websocket connections from multiplying ([#888](https://github.com/foosel/OctoPrint/pull/888)). -* New setting to rotate webcam by 90° counter clockwise ([#895](https://github.com/foosel/OctoPrint/issues/895) and - [#906](https://github.com/foosel/OctoPrint/pull/906)) -* System commands now be set to a) run asynchronized by setting their `async` property to `true` and b) to ignore their - result by setting their `ignore` property to `true`. -* Various improvements of newly introduced features over the course of development: - * File management: The new implementation will migrate metadata from the old one upon first startup after upgrade from - version 1.1.x to 1.2.x. That should speed up initial startup. - * File management: GCODE Analysis backlog processing has been throttled to not take up too many resources on system - startup. Freshly uploaded files should still be analyzed at full speed. - * Plugins: SettingsPlugins may track versions of configuration format stored in `config.yaml`, including a custom - migration method getting called when a mismatch between the currently stored configuration format version and the one - reported by the plugin as current is detected. - * Plugins: Plugins may now have a folder for plugin related data whose path can be retrieved from the plugin itself - via its new method [`get_plugin_data_folder`](http://docs.octoprint.org/en/master/modules/plugin.html#octoprint.plugin.types.OctoPrintPlugin.get_plugin_data_folder). - * Plugin Manager: Don't allow plugin management actions (like installing/uninstalling or enabling/disabling) while the - printer is printing (see also unreproduced issue [#936](https://github.com/foosel/OctoPrint/issues/936)). - * Plugin Manager: More options to try to match up installed plugin packages with discovered plugins. - * Plugin Manager: Display a more friendly message if after the installation of a plugin it could not be correctly - identifier. - * Software Update: Enforce refreshing of available updates after any changes in enabled plugins. - -### Bug Fixes - -* [#435](https://github.com/foosel/OctoPrint/issues/435) - Always interpret negative duration (e.g. for print time left) - as 0 -* [#516](https://github.com/foosel/OctoPrint/issues/516) - Also require API key even if ACL is disabled. -* [#556](https://github.com/foosel/OctoPrint/issues/556) - Allow login of the same user from multiple browsers without - side effects -* [#612](https://github.com/foosel/OctoPrint/issues/612) - Fixed GCODE viewer in zoomed out browsers -* [#633](https://github.com/foosel/OctoPrint/issues/633) - Correctly interpret temperature lines from multi extruder - setups under Smoothieware -* [#680](https://github.com/foosel/OctoPrint/issues/680) - Don't accidentally include a newline from the MIME headers - in the parsed multipart data from file uploads -* [#709](https://github.com/foosel/OctoPrint/issues/709) - Properly initialize time estimation for SD card transfers too -* [#715](https://github.com/foosel/OctoPrint/issues/715) - Fixed an error where Event Triggers of type command caused - and exception to be raised due to a misnamed attribute in the code -* [#717](https://github.com/foosel/OctoPrint/issues/717) - Use ``shutil.move`` instead of ``os.rename`` to avoid cross - device renaming issues -* [#752](https://github.com/foosel/OctoPrint/pull/752) - Fix error in event handlers sending multiple gcode commands. -* [#780](https://github.com/foosel/OctoPrint/issues/780) - Always (re)set file position in SD files to 0 so that reprints - work correctly -* [#784](https://github.com/foosel/OctoPrint/pull/784) - Also include ``requirements.txt`` in files packed up for - ``python setup.py sdist`` -* [#330](https://github.com/foosel/OctoPrint/issues/330) - Ping pong sending to fix potential acknowledgement errors. - Also affects [#166](https://github.com/foosel/OctoPrint/issues/166), [#470](https://github.com/foosel/OctoPrint/issues/470) - and [#490](https://github.com/foosel/OctoPrint/issues/490). A big thank you to all people involved in these tickets - in getting to the ground of this. -* [#825](https://github.com/foosel/OctoPrint/issues/825) - Fixed "please visualize" button of large GCODE files -* Various fixes of bugs in newly introduced features and improvements: - * [#625](https://github.com/foosel/OctoPrint/pull/625) - Newly added GCODE files were not being added to the analysis - queue - * [#664](https://github.com/foosel/OctoPrint/issues/664) - Fixed jog controls again - * [#677](https://github.com/foosel/OctoPrint/issues/677) - Fixed extruder offsets not being properly editable in - printer profiles - * [#678](https://github.com/foosel/OctoPrint/issues/678) - SockJS endpoints is now referenced by relative URL - using ``url_for``, should solve any issues with IE11. - * [#683](https://github.com/foosel/OctoPrint/issues/683) - Fixed heated bed option not being properly displayed in - printer profiles - * [#685](https://github.com/foosel/OctoPrint/issues/685) - Quoted file name for Timelapse creation to not make - command hiccup on ``~`` in file name - * [#709](https://github.com/foosel/OctoPrint/issues/709) - Fixed file sending to SD card - * [#714](https://github.com/foosel/OctoPrint/issues/714) - Fixed type validation of printer profiles - * Heating up the heated bed (if present) was not properly configured in CuraEngine plugin - * [#720](https://github.com/foosel/OctoPrint/issues/720) - Fixed translation files not being properly copied over - during install - * [#724](https://github.com/foosel/OctoPrint/issues/724) - Fixed timelapse deletion for timelapses with non-ascii - characters in their name - * [#726](https://github.com/foosel/OctoPrint/issues/726) - Fixed ``babel_refresh`` command - * [#759](https://github.com/foosel/OctoPrint/pull/759) - Properly initialize counter for template plugins of type - "generic" - * [#775](https://github.com/foosel/OctoPrint/pull/775) - Error messages in javascript console show the proper name - of the objects - * [#795](https://github.com/foosel/OctoPrint/issues/795) - Allow adding slicing profiles for unconfigured slicers - * [#809](https://github.com/foosel/OctoPrint/issues/809) - Added proper form validation to printer profile editor - * [#824](https://github.com/foosel/OctoPrint/issues/824) - Settings getting lost when switching between panes in - the settings dialog (fix provided by [#879](https://github.com/foosel/OctoPrint/pull/879)) - * [#892](https://github.com/foosel/OctoPrint/issues/892) - Preselected baudrate is now properly used for auto detected - serial ports - * [#909](https://github.com/foosel/OctoPrint/issues/909) - Fixed Z-Timelapse for Z changes on ``G1`` moves. - * Fixed another instance of a missing `branch` field in version dicts generated by versioneer (compare - [#634](https://github.com/foosel/OctoPrint/pull/634)). Caused an issue when installing from source archive - downloaded from Github. - * [#931](https://github.com/foosel/OctoPrint/issues/931) - Adjusted `octoprint_setuptools` to be compatible to older - versions of setuptools potentially site-wide installed on hosts. - * [#942](https://github.com/foosel/OctoPrint/issues/942) - Settings can now be saved again after installing a new - plugin. Plugins must not use `super` anymore to call parent implementation of `SettingsPlugin.on_settings_save` but - should instead switch to `SettingsPlugin.on_settings_save(self, ...)`. Settings API will capture related - `TypeErrors` and log a big warning to the log file indicating which plugin caused the problem and needs to be - updated. Also updated all bundled plugins accordingly. - * Software Update: Don't persist more check data than necessary in the configuration. Solves an issue where persisted - information overrode updated check configuration reported by plugins, leading to a "an update is available" loop. - An auto-migration function was added that should remove the redundant data. -* Various fixes without tickets: - * GCODE viewer now doesn't stumble over completely extrusionless GCODE files - * Do not deliver the API key on settings API unless user has admin rights - * Don't hiccup on slic3r filament_diameter comments in GCODE generated for multi extruder setups - * Color code successful or failed print results directly in file list, not just after a reload - * Changing Timelapse post roll activates save button - * Timelapse post roll is loaded properly from config - * Handling of files on the printer's SD card contained in folders now works correctly - * Don't display a "Disconnected" screen when trying to download a timelapse in Firefox - * Fixed handling of SD card files in folders - * Fixed refreshing of timelapse file list upon finished rendering of a new one - * Fixed ``/api/printer`` which wasn't adapter yet to new internal offset data model - * Made initial connection to printer a bit more responsive: Having to wait for the first serial timeout before sending - the first ``M105`` even when not waiting for seeing a "start" caused unnecessary wait times for reaching the - "Operational" state. - * Log cancelled prints only once (thanks to @imrahil for the headsup) - -### More information - - * [Commits](https://github.com/foosel/OctoPrint/compare/1.1.2...1.2.0) - * Release Candidates: - * [RC1](https://github.com/foosel/OctoPrint/releases/tag/1.2.0-rc1) - * [RC2](https://github.com/foosel/OctoPrint/releases/tag/1.2.0-rc2) - * [RC3](https://github.com/foosel/OctoPrint/releases/tag/1.2.0-rc3) - -## 1.1.2 (2015-03-23) - -### Improvements - -* Added deletion of `*.pyc` files to `python setup.py clean` command, should help tremendously when switching branches (backported - from [9e014eb](https://github.com/foosel/OctoPrint/commit/9e014eba1feffde11ed0601d9c911b8cac9f3fb0)) -* Increased default communication and connection timeouts -* [#706](https://github.com/foosel/OctoPrint/issues/706) - Do not truncate error reported from printer - -### Bug Fixes - -* [#539](https://github.com/foosel/OctoPrint/issues/539) - Limit maximum number of tools, sanity check tool numbers in - GCODE files against upper limit and refuse to create 10000 tools due to weird slicers. (backported from `devel`) -* [#634](https://github.com/foosel/OctoPrint/pull/634) - Fixed missing `branch` fields in version dicts generated - by versioneer -* [#679](https://github.com/foosel/OctoPrint/issues/679) - Fix error where API state is requested and printer is offline - (backport of [619fe9a](https://github.com/foosel/OctoPrint/commit/619fe9a0e78826bd1524b235a910156439bcb6d7)). -* [#719](https://github.com/foosel/OctoPrint/issues/719) - Properly center print bed in GCODE viewer -* [#780](https://github.com/foosel/OctoPrint/issues/780) - Always (re)set file position in SD files to 0 so that reprints - work correctly (backported from ``devel``) -* [#801](https://github.com/foosel/OctoPrint/issues/801) - Fixed setting of bed temperature offset -* [IRC] - Don't hiccup on slic3r ``filament_diameter`` comments generated for multi extruder setups -* [ML] - Fixed relative URL to SockJS endpoint, wasn't yet using the proper base url -* [unreported] & [#698](https://github.com/foosel/OctoPrint/issues/698) - Generated URLs now take X-Forwarded-Host header - sent by proxies into account for included host and port, also fixed [#698](https://github.com/foosel/OctoPrint/issues/698) - introduced by this -* [unreported] Fixed a bug causing gcodeInterpreter to hiccup on GCODES containing invalid coordinates such as Xnan or - Yinf (backported from `devel`) -* Small fixes for timelapse creation: - - [#344](https://github.com/foosel/OctoPrint/issues/344) - Made timelapses capable of coping with missing captures in between by decrementing the image counter again if there - was an error fetching the latest image from the snapshot URL (backport of [1a7a468](https://github.com/foosel/OctoPrint/commit/1a7a468eb65fdf2a13b4c7a7723280e822c9c34b) - and [bf9d5ef](https://github.com/foosel/OctoPrint/commit/bf9d5efe43a1e57aacd8512125082ddca06b4efc)) - - [#693](https://github.com/foosel/OctoPrint/issues/693) - Try not to capture an image if image counter is still unset - - [unreported] Synchronize image counter decrementing as well as incrementing to prevent rare race conditions when generating the - image file names - -([Commits](https://github.com/foosel/OctoPrint/compare/1.1.1...1.1.2)) - -## 1.1.1 (2014-10-27) - -### Improvements - -* The API is now enabled by default and the API key -- if not yet set -- will be automatically generated on first - server start and written back into ``config.yaml`` -* Event subscriptions are now enabled by default (it was an accident that they weren't) -* Generate the key used for session hashing individually for each server instance -* Generate the salt used for hashing user passwords individually for each server instance - -### Bug Fixes - -* [#580](https://github.com/foosel/OctoPrint/issues/580) - Properly unset job data when instructed so by callers -* [#604](https://github.com/foosel/OctoPrint/issues/604) - Properly initialize settings basedir on server startup -* [IRC] Also allow downloading .g files via Tornado - -([Commits](https://github.com/foosel/OctoPrint/compare/1.1.0...1.1.1)) - -## 1.1.0 (2014-09-03) - -### New Features - -* New REST API, including User API Keys additionally to the global API key. Please note that **this will break existing - API clients** as it replaces the old API (same endpoint). You can find the documentation of the new API at - [docs.octoprint.org](http://docs.octoprint.org/en/1.1.0/api/index.html). -* New Event structure allows more flexibility regarding payload data, configuration files will be migrated automatically. - You can find the documentation of the new event format and its usage at [docs.octoprint.org](http://docs.octoprint.org/en/1.1.0/events/index.html). -* Support for multi extruder setups. With this OctoPrint now in theory supports an unlimited amount of extruders, however - for now it's artificially limited to 9. -* Log files can be accessed from within the browser via the Settings dialog ([#361](https://github.com/foosel/OctoPrint/pull/361)) -* Timelapses can now have a post-roll duration configured which will be rendered into the video too to not let it - end so abruptly ([#384](https://github.com/foosel/OctoPrint/issues/384)) -* The terminal tab now has a command history ([#388](https://github.com/foosel/OctoPrint/pull/388)) - -### Improvements - -* Stopping the application via Ctrl-C produces a less scary message ([#277](https://github.com/foosel/OctoPrint/pull/277)) -* Webcam stream is disabled when control tab is not in focus, reduces bandwidth ([#316](https://github.com/foosel/OctoPrint/issues/316)) -* M and G commands entered in Terminal tab are automatically converted to uppercase -* GCODE viewer now only loads automatically if GCODE file size is beneath certain threshold (different ones for desktop - and mobile devices), only actually loads file if user acknowledges that this might be too much for his browser -* Added time needed for printing file to PrintDone event's payload ([#333](https://github.com/foosel/OctoPrint/issues/333)) -* Also provide the filename (basename without the path) in print events -* Support for circular beds in the GCODE viewer ([#407](https://github.com/foosel/OctoPrint/pull/407)) -* The dimensions of the print bed can now be configured via the Settings ([#396](https://github.com/foosel/OctoPrint/pull/396)) -* Target temperature reporting format of Repetier Firmware is now supported as well ([360](https://github.com/foosel/OctoPrint/issues/360)) -* Version tracking now based on git tagging and [versioneer](https://github.com/warner/python-versioneer/). Version number, - git commit and branch get reported in the format `--g ( branch)`, - e.g. `1.2.0-dev-172-ga48b5de (devel branch)`. -* Made "Center viewport on model" and "Zoom in on model" in the GCODE viewer automatically deselect and de-apply if - viewport gets manipulated by the user ([#398](https://github.com/foosel/OctoPrint/issues/398)) -* GCODE viewer now interprets inverted axes for printer control and mirrors print bed accordingly ([#431](https://github.com/foosel/OctoPrint/issues/431)) -* Added `clean` command to `setup.py`, removes old build artifacts (mostly interesting for developers) -* Added version resource on API which reports application and API version -* Made the navbar static instead of fixed to improve usability on mobile devices ([#257](https://github.com/foosel/OctoPrint/issues/257)) -* Switch to password field upon enter in username field, submit login form upon enter in password field -* Changed default path to OctoPrint executable in included init-script to `/usr/local/bin/octoprint` (the default when - installing via `python setup.py install`) - -### Bug Fixes - -* Properly calculate time deltas (forgot to factor in days) -* [#35](https://github.com/foosel/OctoPrint/issues/35) - GCODE viewer has been modularized, options are now functional -* [#337](https://github.com/foosel/OctoPrint/issues/337) - Also recognize `--iknowwhatimdoing` when running as daemon -* [#357](https://github.com/foosel/OctoPrint/issues/357) - Do not run GCODE analyzer when a print is ongoing -* [#381](https://github.com/foosel/OctoPrint/issues/381) - Only list those SD files that have an ASCII filename -* Fixed a race condition that could occur when pressing "Print" (File not opened yet, but attempt to read from it) -* [#398](https://github.com/foosel/OctoPrint/issues/398) - Fixed interfering options in GCODE viewer -* [#399](https://github.com/foosel/OctoPrint/issues/399) & [360](https://github.com/foosel/OctoPrint/issues/360) - Leave - bed temperature unset when not detected (instead of dying a horrible death) -* [#492](https://github.com/foosel/OctoPrint/issues/492) - Fixed a race condition which could lead to an attempt to read - from an already closed serial port, causing an error to be displayed to the user -* [#257](https://github.com/foosel/OctoPrint/issues/257) - Logging in on mobile devices should now work -* [#476](https://github.com/foosel/OctoPrint/issues/476) - Also update the metadata correctly when an analysis finishes -* Various fixes of bugs in newly introduced features and improvements: - - [#314](https://github.com/foosel/OctoPrint/issues/314) - Use G28 for homing (G1 was copy and paste error) - - [#317](https://github.com/foosel/OctoPrint/issues/317) - Fixed "load and print" function - - [#326](https://github.com/foosel/OctoPrint/issues/326) - Fixed refresh of SD file list - - [#338](https://github.com/foosel/OctoPrint/issues/338) - Refetch file list when deleting a file - - [#339](https://github.com/foosel/OctoPrint/issues/339) - More error resilience when handling temperature offset data from the backend - - [#345](https://github.com/foosel/OctoPrint/issues/345) - Also recognize such temperature reports that do not contain a `T:` but a `T0:` - - [#377](https://github.com/foosel/OctoPrint/pull/377) - URLs in API examples fixed - - [#378](https://github.com/foosel/OctoPrint/pull/378) - Fixed crash of API call when `getStartTime()` returns None - - [#379](https://github.com/foosel/OctoPrint/pull/379) - Corrected response code for connection success - - [#414](https://github.com/foosel/OctoPrint/pull/414) - Fix style attribute for Actual column header - -([Commits](https://github.com/foosel/OctoPrint/compare/1.0.0...1.1.0)) - -## 1.0.0 (2014-06-22) - -First release with new versioning scheme. +For even older changes, please refer to [the Github releases page](https://github.com/foosel/OctoPrint/releases). diff --git a/SUPPORTERS.md b/SUPPORTERS.md index 2ddb3b341..aae0022bb 100644 --- a/SUPPORTERS.md +++ b/SUPPORTERS.md @@ -6,25 +6,23 @@ thanks to everyone who contributed! ## Patreon Patrons + * Andre Bubel * Andrew Moorby * Arnljot Arntsen * Boris Hussein * Brad Jackson - * Brian E. Tyler * 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 + * Jared Go * Jeff Renfer * Jefferson Hunt * Jeremiah Avery @@ -35,29 +33,25 @@ thanks to everyone who contributed! * Kaile Riser * Kale Stedman * Kazuhiro Ogura - * Kodama Inc. + * LA 3D Printer Repair * Lewis Newby * LulzBot® * Makespace Madrid * Mark Walker - * Martin Beattie * Michael Aumock * Miles Flavel - * mitchell hirsch - * Noe Ruiz + * Mosaic Manufacturing * 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)! \ No newline at end of file +and 1446 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)! \ No newline at end of file diff --git a/docs/api/general.rst b/docs/api/general.rst index 4232a96c9..edc54ed78 100644 --- a/docs/api/general.rst +++ b/docs/api/general.rst @@ -12,8 +12,11 @@ Authorization ============= OctoPrint's API expects an API key to be supplied with each request. This API key can be either the globally -configured one, a user specific one if "Access Control" is enabled or an :ref:`App Session Key `. -Users are able to generate and revoke their custom API key via the "Change password" dialog. +configured one, a user specific one if "Access Control" is enabled or an app and user specific one as generated +by the authorization workflow implemented by the bundled :ref:`Application Keys Plugin ` (since 1.3.10). + +Clients are advised to implement the :ref:`Application Keys Plugin workflow ` first and +fallback on directing the user to manually supply the the user specific API key. The global key should rarely be used. The API key must be supplied in the custom HTTP header ``X-Api-Key``, e.g. @@ -23,7 +26,7 @@ The API key must be supplied in the custom HTTP header ``X-Api-Key``, e.g. Host: example.com X-Api-Key: abcdef... -If it is missing or included but invalid, OctoPrint will directly return a response with status :http:statuscode:`401`. +If it is missing or included but invalid, OctoPrint will directly return a response with status :http:statuscode:`403`. For testing purposes it is also possible to supply the API key via a query parameter ``apikey``, e.g. @@ -120,3 +123,94 @@ If CORS is not enabled you will get errors like the following:: XMLHttpRequest cannot load http://localhost:8081/api/files. No 'Access-Control-Allow-Origin' header is present on the requested resource. +.. _sec-api-general-login: + +Login +===== + +.. http:post:: /api/login + + Creates a login session or retrieves information about the currently existing session ("passive login"). + + Can be used in one of two ways: to login a user via username and password and create a persistent session (usually + from a UI in the browser), or to retrieve information about the active user (from an existing session or an API key) + via the ``passive`` flag. + + Will return a :http:statuscode:`200` with a :ref:`login response ` on successful + login, whether active or passive. The active (username/password) login may also return a :http:statuscode:`401` in + case of a username/password mismatch or unknown user and a :http:statuscode:`403` in case of a deactivated account. + + :json passive: If present, performs a passive login only, returning information about the current user that's + active either through an existing session or the used API key + :json user: (active login only) Username + :json pass: (active login only) Password + :json remember: (active login only) Whether to set a "remember me" cookie on the session + :status 200: Successful login + :status 401: Username/password mismatch or unknown user + :status 403: Deactivated account + +.. _sec-api-general-logout: + +Logout +====== + +.. http:post:: /api/logout + + Ends the current login session of the current user. + + Only makes sense in the context of browser based workflows. + + Will return a :http:statuscode:`204`. + + :status 204: No error + +.. _sec-api-general-datamodel: + +Data model +========== + +.. _sec-api-general-datamodel-login: + +Login response +-------------- + +.. list-table:: + :widths: 15 5 10 30 + :header-rows: 1 + + * - Name + - Multiplicity + - Type + - Description + * - ``name`` + - 1 + - string + - the user's name/id + * - ``active`` + - 1 + - boolean + - Whether the user's account is active or not + * - ``admin`` + - 1 + - boolean + - Whether the user has admin rights or not + * - ``user`` + - 1 + - boolean + - Whether the user has user rights or not (always ``true``) + * - ``apikey`` + - 1 + - string or None + - The user's API key, if set + * - ``settings`` + - 1 + - dict + - The user's settings, if any + * - ``session`` + - 1 + - string + - The session key, can be used to authenticate with the ``auth`` message on the :ref:`push API `. + * - ``_is_external_client`` + - 1 + - boolean + - Whether the client that made the request got detected as external from the local network or not. diff --git a/docs/api/printer.rst b/docs/api/printer.rst index 98f4ccbff..1c8483a55 100644 --- a/docs/api/printer.rst +++ b/docs/api/printer.rst @@ -219,7 +219,7 @@ Issue a print head command axes values are relative amounts) or to absolute position (provided axes values are coordinates) * ``speed``: Optional. Speed at which to move. If not provided, minimum speed for all selected axes from printer profile will be used. If provided but ``false``, no speed parameter will be appended to the command. Otherwise - interpreted as an integer signifying the speed in mm/s, to append to the command. + interpreted as an integer signifying the speed in mm/min, to append to the command. home Homes the print head in all of the given axes. Additional parameters are: @@ -362,6 +362,8 @@ Issue a tool command Extrudes the given amount of filament from the currently selected tool. Additional parameters: * ``amount``: The amount of filament to extrude in mm. May be negative to retract. + * ``speed``: Optional. Speed at which to extrude. If not provided, maximum speed for E axis from printer + profile will be used. Otherwise interpreted as an integer signifying the speed in mm/min, to append to the command. flowrate Changes the flow rate factor to apply to extrusion of the tool. diff --git a/docs/api/push.rst b/docs/api/push.rst index 7d8813867..87e40bf5d 100644 --- a/docs/api/push.rst +++ b/docs/api/push.rst @@ -47,23 +47,41 @@ Clients must ignore any unknown messages. The data model of the attached payloads is described further below. -OctoPrint's SockJS socket also accepts one command from the client to the server, -the ``throttle`` command. Usually, OctoPrint will push the general state update -in the ``current`` message twice per second. For some clients that might still -be too fast, so they can signal a different factor to OctoPrint utilizing the -``throttle`` message. OctoPrint expects a single integer here which represents -the multiplier for the base rate limit of one message every 500ms. A value of -1 hence will produce the default behaviour of getting every update. A value of -2 will set the rate limit to maximally one message every 1s, 3 to maximally one -message every 1.5s and so on. +OctoPrint's SockJS socket also accepts two commands from the client to the server. -Example for a ``throttle`` client-server-message: + * ``auth`` (since 1.3.10): With the ``auth`` message, clients may associate an + existing user session with the socket. That is of special importance to receive + any kind of messages if the bundled :ref:`Forcelogin Plugin ` is enabled + (as it is by default), since it will prevent any kind of status messages to be sent to connected unauthenticated + clients. -.. sourcecode:: javascript + The ``auth`` message expects the user id of the user to authenticate followed by ``:`` and a session key to be + obtained from the successful payload of a :ref:`(passive or active) login via the API `. - { - "throttle": 2 - } + Example for a ``auth`` client-server-message: + + .. sourcecode:: javascript + + { + "auth": "someuser:LGZ0trf8By" + } + + * ``throttle``: Usually, OctoPrint will push the general state update + in the ``current`` message twice per second. For some clients that might still + be too fast, so they can signal a different factor to OctoPrint utilizing the + ``throttle`` message. OctoPrint expects a single integer here which represents + the multiplier for the base rate limit of one message every 500ms. A value of + 1 hence will produce the default behaviour of getting every update. A value of + 2 will set the rate limit to maximally one message every 1s, 3 to maximally one + message every 1.5s and so on. + + Example for a ``throttle`` client-server-message: + + .. sourcecode:: javascript + + { + "throttle": 2 + } .. _sec-api-push-datamodel: diff --git a/docs/api/settings.rst b/docs/api/settings.rst index f87887536..c485f0a95 100644 --- a/docs/api/settings.rst +++ b/docs/api/settings.rst @@ -396,7 +396,7 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted: - * - ``feature.sdSupport`` - - * - ``feature.sdReleativePath`` + * - ``feature.sdRelativePath`` - * - ``feature.sdAlwaysAvailable`` - diff --git a/docs/bundledplugins/announcements.rst b/docs/bundledplugins/announcements.rst new file mode 100644 index 000000000..44dfe63e1 --- /dev/null +++ b/docs/bundledplugins/announcements.rst @@ -0,0 +1,67 @@ +.. _sec-bundledplugins-announcements: + +Announcement Plugin +=================== + +The OctoPrint Announcement Plugin comes bundled with OctoPrint (starting with 1.2.11). + +It displays announcements fetched from OctoPrint's websites, such as important updates, release announcements, new +plugins and similar. Through some manual configuration via ``config.yaml`` it also allows adding additional channels +via RSS or Atom feed URLs. + +.. _fig-bundledplugins-announcements-example1: +.. figure:: ../images/bundledplugins-announcements-example1.png + :align: center + :alt: Example notification + + An example notification from the Announcement Plugin. + +.. _fig-bundledplugins-announcements-example2: +.. figure:: ../images/bundledplugins-announcements-example2.png + :align: center + :alt: Announcement reader + + The Announcement Plugin's reader dialog. + +.. _fig-bundledplugins-announcements-settings: +.. figure:: ../images/bundledplugins-announcements-settings.png + :align: center + :alt: Announcement settings + + The Announcement Plugin's settings dialog. + +.. _sec-bundledplugins-announcements-configuration: + +Configuring the plugin +---------------------- + +The plugin allows enabling and disabling the preconfigured announcement channels via its settings dialog. + +On top of that it's possible to add additional announcement channels (as RSS or Atom feed URLs) or change the +configuration of the existing channels through ``config.yaml``. + +The available configuration keys are: + + * ``channels``: Configured announcement channels. A mapping from a unique identifier to a configuration structure + that follows this format: + + * ``name``: Name of the channel, used e.g. in the title of the displayed notifications. + * ``description``: Description of the channel. + * ``priority``: ``1`` for high priority announcements (red notification), ``2`` for regular ones (yellow notification). + * ``type``: Currently unused. + * ``url``: URL for the feed acting as notification source, must be RSS or Atom format. + + * ``enabled_channels``: List of identifiers of enabled channels. + * ``forced_channels``: List of identifiers of channels that cannot be disabled (currently only ``_important`` which is used sparingly). + * ``channel_order``: List of channel identifiers in the order they should appear in the UI. + * ``ttl``: Time to live of the channel cache in minutes (default: 6 hours). + * ``display_limit``: Limit of items to display per channel (default: 3). + * ``summary_limit``: Limit of characters to display from each channel entry (default: 300). + +.. _sec-bundledplugins-announcements-sourcecode: + +Source code +----------- + +The source of the Announcement plugin is bundled with OctoPrint and can be found in +its source repository under ``src/octoprint/plugins/announcements``. diff --git a/docs/bundledplugins/appkeys.rst b/docs/bundledplugins/appkeys.rst new file mode 100644 index 000000000..9d696dac2 --- /dev/null +++ b/docs/bundledplugins/appkeys.rst @@ -0,0 +1,543 @@ +.. _sec-bundledplugins-appkeys: + +Application Keys Plugin +======================= + +The OctoPrint Application Keys Plugin comes bundled with OctoPrint (starting with version 1.3.10). + +It implements a workflow for third party apps or clients to obtain an application specific API key from OctoPrint to interact with it +on a user's behalf, via confirmation of the user through OctoPrint's web interface. Existing keys can be managed +on a per-user base as well as globally by administrators. + +.. _fig-bundledplugins-appkeys-confirmation: +.. figure:: ../images/bundledplugins-appkeys-confirmation_prompt.png + :align: center + :alt: Confirmation + + The plugin's confirmation generated for a new application key request. + +.. _fig-bundledplugins-appkeys-user_settings: +.. figure:: ../images/bundledplugins-appkeys-user_settings.png + :align: center + :alt: Key management via user settings + + Users can manage the application specific API keys registered to their account via their user settings. + +.. _fig-bundledplugins-appkeys-settings: +.. figure:: ../images/bundledplugins-appkeys-settings.png + :align: center + :alt: Global key management via settings + + Administrators can manage all application specific API keys registered to any user. + +.. _sec-bundledplugins-appkeys-workflow: + +Workflow +-------- + +The workflow to receive an API key for a third party client/an app via the Application Keys Plugin should consist +of the following steps: + + 1. The User opens the App and gets prompted to enter or select an instance URL. Optionally (recommended!) the User also + enters their username which is also their user ID into the App. + 2. The App :ref:`probes for workflow support ` on the Server. If this request + doesn't get an HTTP :http:statuscode:`204` the App needs to direct the user to an alternative manual workflow + (copy-paste API key) and abort this one. Otherwise it proceeds to the next step. + 3. The App sends a :ref:`key request ` to the Server to start the + authorization process. + 4. The Server triggers a confirmation dialog for the User on the Webinterface and returns an endpoint to the + App to poll for a decision in the ``Location`` header of an HTTP :http:statuscode:`201`. + 5. The App uses the obtained request specific endpoint to poll for a decision every second. An HTTP :http:statuscode:`202` + signals that no decision has been made yet. + 6. The User either accepts or denies the access request which makes the Webinterface send a + :ref:`decision request ` to the Server. + 7. If the User accepted the request, the App receives an HTTP :http:statuscode:`200` with an attached + :ref:`API key response `. If they deny it, the App will receive + an HTTP :http:statuscode:`404`. + + +.. mermaid:: + + sequenceDiagram + participant User + participant App + participant Webinterface + participant Server + + note over User, Server: Step 1, 2 & 3 + + User->>App: enters URL of instance to connect to and optional user_id + + App->>Server: GET /plugin/appkeys/probe + + alt Workflow unsupported + + Server->>App: 404 + App->>User: alternative workflow, copy-paste key manually + + else Workflow supported + + App->>Server: POST /plugin/appkeys/request, (app_name, user_id) + + note over User, Server: Step 4 + + Server-->>Webinterface: plugin message for "appkeys" w/ (app_name, user_token, user_id) + Webinterface-->>User: Display confirmation dialog + Server->>App: 201, Location: /plugin/appkeys/request/ + + note over User, Server: Step 5 + + loop Poll for decision + App->>Server: GET /plugin/appkeys/request/ + Server->>App: 202 + end + + note over User, Server: Step 6 & 7 + + alt User accepts + + User-->>Webinterface: Allow access + Webinterface->>Server: POST /plugin/appkeys/decision/, (True) + Server->>Webinterface: 204 + App->>Server: GET /plugin/appkeys/request/ + Server->>App: 200, api_key + + else User denies + + User-->>Webinterface: Deny access + Webinterface->>Server: POST /plugin/appkeys/decision/, (False) + Server->>Webinterface: 204 + App->>Server: GET /plugin/appkeys/request/ + Server->>App: 404 + + end + + end + +.. _sec-bundledplugins-appkeys-api: + +API +--- + +.. _sec-bundledplugins-appkeys-api-probe: + +Probe for workflow support +.......................... + +.. http:get:: /plugin/appkeys/probe + + Probes for support of the workflow. + + Normally returns an HTTP :http:statuscode:`204`, indicating workflow availability. If a different status code is returned + (usually an HTTP :http:statuscode:`404`), the plugin is disabled or not installed. Fall back to manual api key exchange. + + :status 204: the workflow is supported + +.. _sec-bundledplugins-appkeys-api-startauthprocess: + +Start authorization process +........................... + +.. http:post:: /plugin/appkeys/request + + Starts the authorization process. + + Expects a :ref:`Key request ` as request body. + + The ``app`` parameter should be a human readable identifier to use + for the application requesting access. It will be displayed to the user. Internally it will be used case insensitively, + so ``My App`` and ``my APP`` are considered the same application identifiers. + + The optional ``user`` parameter should be used to limit the authorization process to a specified user. If the parameter + is left unset, any user will be able to complete the authorization process and grant access to the app with their + account. E.g. if a user ``me`` starts the process in an app, the app should request that name from the user and use + it in the ``user`` parameter. OctoPrint will then only display the authorization request on browsers the user ``me`` + is logged in on. + + :json app: application identifier to use for the request, case insensitive + :json user: optional user id to restrict the decision to the specified user + :status 201: authorization process started, polling URL to query can be found in ``Location`` header + +.. _sec-bundledplugins-appkeys-api-polldecision: + +Poll for decision on existing request +..................................... + +.. http:get:: /plugin/appkeys/request/ + + Endpoint generated per authorization request to poll for the result. + + Returns an HTTP :http:statuscode:`202` while no decision has been made yet, an HTTP :http:statuscode:`200` and + a :ref:`Key response ` if access has been granted and an + HTTP :http:statuscode:`404` if the request has been denied or timed out. + + .. note:: + + The request will be considered stale and deleted internally if the polling endpoint for it isn't called + for more than 5s. + + :status 200: access granted, API key in response body + :status 202: no decision has been made yet, continue polling + :status 404: access denied or request timed out + +.. _sec-bundledplugins-appkeys-api-decide: + +Decide on existing request +.......................... + +.. http:post:: /plugin/appkeys/decision/ + + Endpoint to decide on the authorization request. + + Expects a :ref:`Decision request ` as request body. + + Returns an HTTP :http:statuscode:`204` on success. + + :json decision: boolean value to indicate whether to confirm (``True``) or deny (``False``) access + :status 204: success + +.. _sec-bundledplugins-appkeys-api-fetchlist: + +Fetch list of existing application keys +....................................... + +.. http:get:: /api/plugin/appkeys + + Fetches a list of existing application keys and pending requests registered in the system for the current user. + + If the additional optional parameter ``all`` is provided and the user has administrator rights, fetches a list + of *all** application keys and pending requests registered in the system for any user. + + Returns a :http:statuscode:`200` with a :ref:`List response ` in the + body upon success. + + :query all: Fetch all application keys and pending requests from all users. Requires administrator rights. + +.. _sec-bundledplugins-appkeys-api-issuecommand: + +Issue an application key command +................................ + +.. http:post:: /api/plugin/appkeys + + Application key commands allow revoking existing application keys and manually generating new ones. The available + commands are: + + revoke + Revokes an existing application key. Must belong to the user issuing the command, unless the user has admin rights + in which case they make revoke any application key in the system. Expects the key in question as parameter ``key``. + + generate + Generates a new application key for the user, using the application identifier provided as parameter ``app``. + + Upon success, a status code of :http:statuscode:`204` and an empty body is returned. + + Requires user rights. + + **Example revoke request** + + Revokes the (fictional) key ``aabbccddeeff112233445566``. + + .. sourcecode:: http + + POST /api/plugin/appkeys HTTP/1.1 + Host: example.com + Content-Type: application/json + X-Api-Key: abcdef... + + { + "command": "revoke", + "key": "aabbccddeeff112233445566" + } + + .. sourcecode:: http + + HTTP/1.1 204 No Content + + **Example generate request** + + Generates a new key for application identifier "My awesome application 1.0". + + .. sourcecode:: http + + POST /api/plugin/appkeys HTTP/1.1 + Host: example.com + Content-Type: application/json + X-Api-Key: abcdef... + + { + "command": "generate", + "key": "My awesome application 1.0" + } + + .. sourcecode:: http + + HTTP/1.1 204 No Content + + :json string command: The command to issue, either ``revoke`` or ``generate`` + :json string key: ``revoke`` command: The key to revoke + :json string app: ``generate`` command: Application identifier for which to generate a key + :statuscode 204: No error + :statuscode 400: Invalid or missing parameter + +.. _sec-bundledplugins-appkey-datamodel: + +Data model +---------- + +.. _sec-bundledplugins-appkey-datamodel-keyrequest: + +Key request +........... + +.. list-table:: + :widths: 15 5 10 30 + :header-rows: 1 + + * - Name + - Multiplicity + - Type + - Description + * - ``app`` + - 1 + - str + - Application identifier to use for the request + * - ``user`` + - 0..1 + - str + - User identifier/name to restrict the request to + +.. _sec-bundledplugins-appkey-datamodel-keyresponse: + +Key response +............ + +.. list-table:: + :widths: 15 5 10 30 + :header-rows: 1 + + * - Name + - Multiplicity + - Type + - Description + * - ``apikey`` + - 1 + - str + - the API key generated for the application + +.. _sec-bundledplugins-appkey-datamodel-decisionrequest: + +Decision request +................ + +.. list-table:: + :widths: 15 5 10 30 + :header-rows: 1 + + * - Name + - Multiplicity + - Type + - Description + * - ``decision`` + - 1 + - boolean + - ``True`` if the access request it to be granted, ``False`` otherwise + +.. _sec-bundledplugins-appkey-datamodel-listreponse: + +List response +............. + +.. list-table:: + :widths: 15 5 10 30 + :header-rows: 1 + + * - Name + - Multiplicity + - Type + - Description + * - ``keys`` + - 1 + - list of :ref:`key list entries ` + - Keys registered in the system + * - ``pending`` + - 1 + - list of :ref:`pending list entries ` + - Currently pending authorization requests + +.. _sec-bundledplugins-appkey-datamodel-keylistentry: + +Key list entry +.............. + +.. list-table:: + :widths: 15 5 10 30 + :header-rows: 1 + + * - Name + - Multiplicity + - Type + - Description + * - ``api_key`` + - 1 + - str + - API key + * - ``app_id`` + - 1 + - str + - Application identifier + * - ``user_id`` + - 1 + - str + - User ID of the key's owner + +.. _sec-bundledplugins-appkey-datamodel-pendinglistentry: + +Pending list entry +.................. + +.. list-table:: + :widths: 15 5 10 30 + :header-rows: 1 + + * - Name + - Multiplicity + - Type + - Description + * - ``app_id`` + - 1 + - str + - Application identifier + * - ``user_id`` + - 0..1 + - str + - optional: User ID of user who can grant or deny request + * - ``user_token`` + - 1 + - str + - Token to grant or deny request + +.. _sec-bundledplugins-appkeys-jsclientlib: + +JavaScript Client Library +------------------------- + +.. js:function:: OctoPrintClient.plugins.appkeys.getKeys(opts) + + Retrieves registered keys and pending requests for the current user. + + See :ref:`Fetch list of existing application keys ` for more details. + + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + +.. js:function:: OctoPrintClient.plugins.appkeys.getAllKeys(opts) + + Retrieves registered keys and pending requests for all users. + + Needs administrator rights. + + See :ref:`Fetch list of existing application keys ` for more details. + + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + +.. js:function:: OctoPrintClient.plugins.appkeys.generateKey(app, opts) + + Generates a key for the given ``app`` and the current user. + + See :ref:`Issue an application key command ` for details. + + :param string app: Application identifier + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + +.. js:function:: OctoPrintClient.plugins.appkeys.revokeKey(key, opts) + + Revokes the given ``key``. The key must belong to the current user, or the current user must have administrator + rights. + + See :ref:`Issue an application key command ` for details. + + :param string key: Key to revoke + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + +.. js:function:: OctoPrintClient.plugins.appkeys.decide(token, decision, opts) + + Decides on an existing authorization request. + + See :ref:`Decide on existing request ` for more details. + + :param string token: User token for which to make the decision, as pushed to the client via the socket. + :param boolean decision: Whether to grant access (``true``) or not (``false``). + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + +.. js:function:: OctoPrintClient.plugins.appkeys.probe(opts) + + Probes for workflow support. + + See :ref:`Probe for workflow support ` for more details. + + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + +.. js:function:: OctoPrintClient.plugins.appkeys.request(app, opts) + + Starts a new authorization request for the provided ``app`` identifier. + + See :ref:`Start authorization process ` for more details. + + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + +.. js:function:: OctoPrintClient.plugins.appkeys.requestForUser(app, user, opts) + + Starts a new authorization request for the provided ``app`` and ``user`` identifiers. + + See :ref:`Start authorization process ` for more details. + + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + +.. js:function:: OctoPrintClient.plugins.appkeys.checkDecision(token, opts) + + Polls for a decision on an existing authorization request identified by ``token``. + + See :ref:`Poll for decision on existing request ` for more details. + + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + +.. js:function:: OctoPrintClient.plugins.appkeys.authenticate(app, user, opts) + + Convenience function that probes for support, issues a request and then automatically starts polling for a decision + on the returned polling endpoint every 1s, until either a positive or negative decision is returned. On success the + returned promise is resolved with the generated API key as argument. If anything goes wrong or there is no support + for the workflow, the promise is rejected. + + **Example usage** + + .. sourcecode:: javascript + + OctoPrint.plugins.appkeys.authenticate("My App", "some_user") + .done(function(api_key) { + console.log("Got our API key:", api_key); + }) + .fail(function() { + console.log("No API key for us"); + }) + + :param string app: Application identifier + :param string user: Optional user identifier + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + +.. _sec-bundledplugins-appkeys-sourcecode: + +Source code +----------- + +The source of the Application Keys plugin is bundled with OctoPrint and can be found in +its source repository under ``src/octoprint/plugins/appkeys``. diff --git a/docs/bundledplugins/backup.rst b/docs/bundledplugins/backup.rst new file mode 100644 index 000000000..350d40508 --- /dev/null +++ b/docs/bundledplugins/backup.rst @@ -0,0 +1,70 @@ +.. _sec-bundledplugins-backup: + +Backup Plugin +============= + +The OctoPrint Backup Plugin comes bundled with OctoPrint (starting with 1.3.10). + +It allows the creation and restoration of backups of OctoPrint's settings, data and installed plugins [#]_. + +This allows easy migration +to newly setup instances as well as making regular backups to prevent data loss. + +.. _fig-bundledplugins-backup-settings: +.. figure:: ../images/bundledplugins-backup-settings.png + :align: center + :alt: OctoPrint Backup Plugin + + The plugin's settings panel with existing backups, the backup creation and restore sections. + +As long as plugins adhere to the standard of storing their data and settings in OctoPrint's plugin data folders, their +data will be part of the backup. Note that the backups made by the Backup Plugin will *not* be part of any backups - +you'll need to persist the resulting zip files yourself! + +.. _sec-bundledplugins-backup-cli: + +Command line usage +------------------ + +The Backup Plugin implements a command line interface that allows creation and restoration of backups. +It adds two new commands, ``backup:backup`` and ``backup_restore``. + +.. code-block:: none + + $ octoprint plugins backup:backup --help + Initializing settings & plugin subsystem... + Usage: octoprint plugins backup:backup [OPTIONS] + + Creates a new backup. + + Options: + --exclude TEXT Identifiers of data folders to exclude, e.g. 'uploads' to + exclude uploads or 'timelapse' to exclude timelapses. + --help Show this message and exit. + + $ octoprint plugins backup:restore --help + Initializing settings & plugin subsystem... + Usage: octoprint plugins backup:restore [OPTIONS] PATH + + Restores an existing backup from the backup zip provided as argument. + + OctoPrint does not need to run for this to proceed. + + Options: + --help Show this message and exit. + +.. note:: + + The ``backup:backup`` command can be useful in combination with a cronjob to create backups in regular intervals. + +.. _sec-bundledplugins-backup-sourcecode: + +Source code +----------- + +The source of the Backup plugin is bundled with OctoPrint and can be found in +its source repository under ``src/octoprint/plugins/backup``. + +.. [#] Note that only those plugins that are available on `OctoPrint's official plugin repository `_ + can be automatically restored. If you have plugins installed that are not available on there you'll get their + names and - if available - homepage URL displayed after restore in order to be able to manually reinstall them. diff --git a/docs/bundledplugins/forcelogin.rst b/docs/bundledplugins/forcelogin.rst new file mode 100644 index 000000000..e5214f79f --- /dev/null +++ b/docs/bundledplugins/forcelogin.rst @@ -0,0 +1,35 @@ +.. _sec-bundledplugins-forcelogin: + +ForceLogin Plugin +================= + +The ForceLogin Plugin comes bundled with OctoPrint (starting with version 1.3.10). It removes the anonymous +read-only access that up until 1.3.10 was standard when accessing OctoPrint instances without being logged in and +instead forces users to log in if they want to get any kind of information from OctoPrint. + +.. _fig-bundledplugins-forcelogin: +.. figure:: ../images/bundledplugins-forcelogin-dialog.png + :align: center + :alt: Forced login dialog + + OctoPrint's new forced login dialog. + +.. warning:: + + Keep in mind that **OctoPrint does not manage your webcam**, it merely embeds it. If you have a webcam, + it will still be accessible to users who are not logged in under its (guessable) URL. If you need to restrict + access to your webcam, you'll need to find a way to do so directly on the webcam server which - again - + is not OctoPrint itself. + +.. note:: + + If you want back the old behaviour of allowing anonymous read-only access to your OctoPrint instance, disable + the ForceLogin Plugin in OctoPrint's plugin manager. + +.. _sec-bundledplugins-forcelogin-sourcecode: + +Source code +----------- + +The source of the ForceLogin plugin is bundled with OctoPrint and can be found in +its source repository under ``src/octoprint/plugins/forcelogin``. diff --git a/docs/bundledplugins/index.rst b/docs/bundledplugins/index.rst index 26a520699..8bf1d5d35 100644 --- a/docs/bundledplugins/index.rst +++ b/docs/bundledplugins/index.rst @@ -8,8 +8,12 @@ Bundled Plugins :maxdepth: 2 action_command_prompt.rst + announcements.rst + appkeys.rst + backup.rst cura.rst discovery.rst + forcelogin.rst logging.rst pluginmanager.rst printer_safety_check.rst diff --git a/docs/bundledplugins/printer_safety_check.rst b/docs/bundledplugins/printer_safety_check.rst index 89974de48..6770056cb 100644 --- a/docs/bundledplugins/printer_safety_check.rst +++ b/docs/bundledplugins/printer_safety_check.rst @@ -16,17 +16,12 @@ such identification. An example of a warning generated by the Printer Safety Check -Currently the following firmwares produce this warning: - - * Anet A8 stock firmware +Please refer to the `entry on the "unsafe firmware" warning in OctoPrint's FAQ `_ +for a list of currently identified printers. If you know of further printers/printer firmwares that need to be added here, please `get in touch on the forum and provide their response to an M115 `_. -.. seealso:: - - `Entry on the "unsafe firmware" warning in OctoPrint's FAQ `_ - .. note:: Feel free to disable the plugin in OctoPrint's Plugin Manager if you feel like it is unnecessary. Be advised though diff --git a/docs/configuration/config_yaml.rst b/docs/configuration/config_yaml.rst index 9149f1324..bb1236c38 100644 --- a/docs/configuration/config_yaml.rst +++ b/docs/configuration/config_yaml.rst @@ -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:: @@ -1165,7 +1177,7 @@ Use `Javascript regular expressions `_ - A plugin that disables anonymous access to the regular OctoPrint UI by implementing a custom UI. Utilizes the - client library's :ref:`browser component ` to login the user. + :ref:`Application Key Plugin ` + A bundled plugin that implements an authorization workflow for third party clients. It adds various additional + methods to the JS Client Library. + :ref:`ForceLogin Plugin ` + A bundled plugin that disables anonymous access to the regular OctoPrint UI by implementing a custom UI and + various hooks. Utilizes the client library's :ref:`browser component ` to login the + user. .. toctree:: :maxdepth: 3 diff --git a/docs/modules/util.rst b/docs/modules/util.rst index 32a61b728..156a25ff3 100644 --- a/docs/modules/util.rst +++ b/docs/modules/util.rst @@ -6,4 +6,10 @@ octoprint.util .. automodule:: octoprint.util :members: +.. _sec-modules-util-commandline: +octoprint.util.commandline +-------------------------- + +.. automodule:: octoprint.util.commandline + :members: diff --git a/docs/plugins/helpers.rst b/docs/plugins/helpers.rst index c411d3776..f8c5424f3 100644 --- a/docs/plugins/helpers.rst +++ b/docs/plugins/helpers.rst @@ -3,7 +3,7 @@ Helpers ======= -Helpers are methods that plugin can exposed to other plugins in order to make common functionality available on the +Helpers are methods that plugins can expose to other plugins in order to make common functionality available on the system. They are registered with the OctoPrint plugin system through the use of the control property ``__plugin_helpers__``. An example for providing some helper functions to the system can be found in the diff --git a/docs/plugins/hooks.rst b/docs/plugins/hooks.rst index 5f4d156bf..77a3fbaec 100644 --- a/docs/plugins/hooks.rst +++ b/docs/plugins/hooks.rst @@ -402,6 +402,13 @@ octoprint.comm.firmware.info ``firmware_name`` will be ``Some Firmware Name`` in this case. + .. warning:: + + Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as + you will effectively block the receive loop, causing the communication with the printer to stall. + + This includes I/O of any kind. + :param object comm_instance: The :class:`~octoprint.util.comm.MachineCom` instance which triggered the hook. :param str firmware_name: The name of the parsed capability :param dict firmware_data: All data contained in the ``M115`` report @@ -421,6 +428,13 @@ octoprint.comm.firmware.capabilities Note that hook handlers will be called once per received capability line. + .. warning:: + + Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as + you will effectively block the receive loop, causing the communication with the printer to stall. + + This includes I/O of any kind. + :param object comm_instance: The :class:`~octoprint.util.comm.MachineCom` instance which triggered the hook. :param str capability: The name of the parsed capability :param bool enabled: Whether the capability is reported as enabled or disabled @@ -440,6 +454,13 @@ octoprint.comm.protocol.action No returned value is expected. + .. warning:: + + Make sure to not perform any computationally expensive or otherwise long running actions within your handlers as + you will effectively block the receive loop, causing the communication with the printer to stall. + + This includes I/O of any kind. + **Example:** Logs if the ``custom`` action (``// action:custom``) is received from the printer's firmware. @@ -477,6 +498,13 @@ This describes actually two hooks: trigger the *actual execution* of whatever functionality lies behind a given @ command, similar to :ref:`the action command hook `. + .. warning:: + + Make sure to not perform any computationally expensive or otherwise long running actions within your handlers as + you will effectively block the send/receive loops, causing the communication with the printer to stall. + + This includes I/O of any kind. + **Example** Pause the print on ``@wait`` (this mirrors the implementation of the built-in ``@pause`` command, just with a @@ -623,6 +651,13 @@ This describes actually four hooks: Note: Only one command of a given ``cmd_type`` (other than None) may be queued at a time. Trying to rewrite the ``cmd_type`` to one already in the queue will give an error. + .. warning:: + + Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as + you will effectively block the send loop, causing the communication with the printer to stall. + + This includes I/O of any kind. + **Example** The following hook handler replaces all ``M107`` ("Fan Off", deprecated) with an ``M106 S0`` ("Fan On" with speed @@ -658,6 +693,13 @@ octoprint.comm.protocol.gcode.received empty string as the received line. Note that Python functions will also automatically return ``None`` if an empty ``return`` statement is used or just nothing is returned explicitly from the handler. + .. warning:: + + Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as + you will effectively block the receive loop, causing the communication with the printer to stall. + + This includes I/O of any kind. + **Example:** Looks for the response of an ``M115``, which contains information about the ``MACHINE_TYPE``, among other things. @@ -687,6 +729,13 @@ octoprint.comm.protocol.gcode.error Plugins might utilize this hook to handle errors generated by the printer that are recoverable in one way or the other and should not trigger the normal handling that assumes the worst. + .. warning:: + + Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as + you will effectively block the receive loop, causing the communication with the printer to stall. + + This includes I/O of any kind. + **Example:** Looks for error messages containing "fan error" or "bed missing" (ignoring case) and marks them as handled by the @@ -762,6 +811,13 @@ octoprint.comm.protocol.temperatures.received additional sanity checking to be applied and invalid values to be filtered out. If a handler returns an empty dictionary or ``None``, no further processing will take place. + .. warning:: + + Make sure to not perform any computationally expensive or otherwise long running actions within these handlers as + you will effectively block the receive loop, causing the communication with the printer to stall. + + This includes I/O of any kind. + **Example** The following example shows how to filter out actual temperatures that are outside a sane range of 1°C to 300°C. @@ -1033,6 +1089,54 @@ octoprint.printer.estimation.factory :return: The :class:`~octoprint.printer.estimation.PrintTimeEstimator` class to use, or a factory method :rtype: class or function +.. _sec-plugins-hook-server-http-after_request: + +octoprint.server.api.after_request +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. py:function:: after_request_handlers_hook(*args, **kwargs) + + Allows adding additional after-request-handlers to API endpoints defined by OctoPrint itself and installed plugins. + + Your plugin might need this to further restrict access to API methods. See the bundled "Force Login" plugin for a + usage example. + + .. important:: + + Implementing this hook will make your plugin require a restart of OctoPrint for enabling/disabling it fully. + +.. _sec-plugins-hook-server-http-before_request: + +octoprint.server.api.before_request +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. py:function:: after_request_handlers_hook(*args, **kwargs) + + Allows adding additional before-request-handlers to API endpoints defined by OctoPrint itself and installed plugins. + + Your plugin might need this to further restrict access to API methods. See the bundled "Force Login" plugin for a + usage example. + + .. important:: + + Implementing this hook will make your plugin require a restart of OctoPrint for enabling/disabling it fully. + +.. _sec-plugins-hook-server-http-access_validator: + +octoprint.server.http.access_validator +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. py:function:: access_validator_hook(request, *args, **kwargs) + + Allows adding additional access validators to the default tornado routers. + + Your plugin might need to this to restrict acccess to downloads and webcam snapshots further. See the bundled + "Force Login" plugin for a usage example. + + .. important:: + + Implementing this hook will make your plugin require a restart of OctoPrint for enabling/disabling it fully. + .. _sec-plugins-hook-server-http-bodysize: octoprint.server.http.bodysize @@ -1134,6 +1238,85 @@ 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 ` 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 +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. py:function:: socket_registration_hook(socket, user, *args, **kwargs): + + Allows plugins to prevent a new :ref:`push socket client ` to be registered to the system. + + Handlers should return either ``True`` or ``False``. ``True`` signals to proceed with normal registration. ``False`` + signals to not register the client. + + See the bundled :ref:`Forcelogin Plugin ` 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 currently authenticated on the socket - might be None + :return: whether to proceed with registration (``True``) or not (``False``) + :rtype: boolean + +.. _sec-plugins-hook-server-sockjs-emit: + +octoprint.server.sockjs.emit +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. py:function:: socket_emit_hook(socket, user, message, payload, *args, **kwargs): + + Allows plugins to prevent any messages to be emitted on an existing :ref:`push connection `. + + Handlers should return either ``True`` to allow the message to be emitted, or ``False`` to prevent it. + + See the bundled :ref:`Forcelogin Plugin ` for an example on how to utilize this. + + :param object socket: the socket object on which a message is about to be emitted + :param object user: the user currently authenticated on the socket - might be None + :param string message: the message type about to be emitted + :param dict payload: the payload of the message about to be emitted (may be None) + :return: whether to proceed with sending the message (``True``) or not (``False``) + :rtype: boolean + +.. _sec-plugins-hook-timelapse-extensions: + +octoprint.timelapse.extensions +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. py:function:: timelapse_extension_hook(*args, **kwargs) + + Allows extending the set of supported file extensions for timelapse files. Handlers must return a list of + additional file extensions. + + **Example** + + Allow the management of timelapse GIFs with extension ``gif``. + + .. code-block:: python + + def get_timelapse_extensions(*args, **kwargs): + return ["gif"] + + __plugin_hooks__ = { + "octoprint.timelapse.extensions": get_timelapse_extensions + } + + :return: a list of additional file extensions + :rtype: list + .. _sec-plugins-hook-ui-web-templatetypes: octoprint.ui.web.templatetypes diff --git a/setup.py b/setup.py index 3da12ab63..39672f3b5 100644 --- a/setup.py +++ b/setup.py @@ -12,13 +12,16 @@ import octoprint_setuptools #----------------------------------------------------------------------------------------------------------------------- +# Supported python versions +PYTHON_REQUIRES = ">=2.7.3,<3" # TODO change to >=2.7.9,<3 in 1.3.11 + # Requirements for our application INSTALL_REQUIRES = [ "flask>=0.10.1,<0.11", "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.3", # Current version as of 2018-11-06 is broken. See #2874 + "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 @@ -32,8 +35,7 @@ INSTALL_REQUIRES = [ "pyserial>=3.4,<3.5", "netaddr>=0.7.19,<0.8", "watchdog>=0.8.3,<0.9", - "sarge==0.1.4", # 0.1.5 introduced a breaking change with regards to the async keyword. Pinning - # to 0.1.4 for now to work around this. + "sarge==0.1.5post0", "netifaces>=0.10.6,<0.11", "pylru>=1.0.9,<1.1", "rsa>=3.2.3,<3.3", @@ -81,9 +83,6 @@ EXTRA_REQUIRES = dict( ] ) -# Additional requirements for setup -SETUP_REQUIRES = [] - # Dependency links for any of the aforementioned dependencies DEPENDENCY_LINKS = [] @@ -156,10 +155,10 @@ def params(): long_description = read_file_contents(os.path.join(here, "README.md")) long_description_content_type = "text/markdown" + python_requires = PYTHON_REQUIRES install_requires = INSTALL_REQUIRES extras_require = EXTRA_REQUIRES dependency_links = DEPENDENCY_LINKS - setup_requires = SETUP_REQUIRES classifiers = [ "Development Status :: 5 - Production/Stable", diff --git a/src/octoprint/__init__.py b/src/octoprint/__init__.py index 31566ff46..48cf8f25c 100644 --- a/src/octoprint/__init__.py +++ b/src/octoprint/__init__.py @@ -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") diff --git a/src/octoprint/cli/analysis.py b/src/octoprint/cli/analysis.py index 34c90d78d..bb69de05c 100644 --- a/src/octoprint/cli/analysis.py +++ b/src/octoprint/cli/analysis.py @@ -71,3 +71,6 @@ def gcode_command(path, speedx, speedy, speedz, offset, maxt, throttle, throttle click.echo("DONE:{}s".format(time.time() - start_time)) click.echo("RESULTS:") click.echo(yaml.safe_dump(interpreter.get_result(), default_flow_style=False, indent=" ", allow_unicode=True)) + +if __name__ == "__main__": + gcode_command() diff --git a/src/octoprint/cli/server.py b/src/octoprint/cli/server.py index 5fed71e5a..dc9ff6cbf 100644 --- a/src/octoprint/cli/server.py +++ b/src/octoprint/cli/server.py @@ -82,7 +82,6 @@ def run_server(basedir, configfile, host, port, debug, allow_root, logging_confi ignore_blacklist=ignore_blacklist, after_safe_mode=log_startup, after_environment_detector=log_register_rollover) - settings, _, safe_mode, event_manager, connectivity_checker, plugin_manager, environment_detector = components except FatalStartupError as e: diff --git a/src/octoprint/filemanager/__init__.py b/src/octoprint/filemanager/__init__.py index 01622b837..44cd9e4f1 100644 --- a/src/octoprint/filemanager/__init__.py +++ b/src/octoprint/filemanager/__init__.py @@ -256,7 +256,7 @@ class FileManager(object): file_name = storage_manager.split_path(path) # we'll use the default printer profile for the backlog since we don't know better - queue_entry = QueueEntry(file_name, entry, file_type, storage_type, path, self._printer_profile_manager.get_default()) + queue_entry = QueueEntry(file_name, entry, file_type, storage_type, path, self._printer_profile_manager.get_default(), None) if self._analysis_queue.enqueue(queue_entry, high_priority=high_priority): counter += 1 @@ -476,12 +476,9 @@ class FileManager(object): path_in_storage = self._storage(destination).add_file(path, file_object, links=links, printer_profile=printer_profile, allow_overwrite=allow_overwrite, display=display) - if analysis is None: - queue_entry = self._analysis_queue_entry(destination, path_in_storage, printer_profile=printer_profile) - if queue_entry: - self._analysis_queue.enqueue(queue_entry, high_priority=True) - else: - self._add_analysis_result(destination, path, analysis) + queue_entry = self._analysis_queue_entry(destination, path_in_storage, printer_profile=printer_profile, analysis=analysis) + if queue_entry: + self._analysis_queue.enqueue(queue_entry, high_priority=True) _, name = self._storage(destination).split_path(path_in_storage) eventManager().fire(Events.FILE_ADDED, dict(storage=destination, @@ -700,7 +697,7 @@ class FileManager(object): def _on_analysis_finished(self, entry, result): self._add_analysis_result(entry.location, entry.path, result) - def _analysis_queue_entry(self, destination, path, printer_profile=None): + def _analysis_queue_entry(self, destination, path, printer_profile=None, analysis=None): if printer_profile is None: printer_profile = self._printer_profile_manager.get_current_or_default() @@ -709,6 +706,6 @@ class FileManager(object): file_type = get_file_type(absolute_path) if file_type: - return QueueEntry(file_name, path, file_type[-1], destination, absolute_path, printer_profile) + return QueueEntry(file_name, path, file_type[-1], destination, absolute_path, printer_profile, analysis) else: return None diff --git a/src/octoprint/filemanager/analysis.py b/src/octoprint/filemanager/analysis.py index ad24a3e4f..b8b9dd246 100644 --- a/src/octoprint/filemanager/analysis.py +++ b/src/octoprint/filemanager/analysis.py @@ -20,7 +20,7 @@ from octoprint.events import Events, eventManager from octoprint.settings import settings -class QueueEntry(collections.namedtuple("QueueEntry", "name, path, type, location, absolute_path, printer_profile")): +class QueueEntry(collections.namedtuple("QueueEntry", "name, path, type, location, absolute_path, printer_profile, analysis")): """ A :class:`QueueEntry` for processing through the :class:`AnalysisQueue`. Wraps the entry's properties necessary for processing. @@ -33,6 +33,7 @@ class QueueEntry(collections.namedtuple("QueueEntry", "name, path, type, locatio location (str): Location the file is located on. absolute_path (str): Absolute path on disk through which to access the file. printer_profile (PrinterProfile): :class:`PrinterProfile` which to use for analysis. + analysis (dict): :class:`GcodeAnalysisQueue` results from prior analysis, or ``None`` if there is none. """ def __str__(self): @@ -298,7 +299,7 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue): - * **Key** * **Description** - * ``estimatedPrintTime`` - * Estimated time the file take to print, in minutes + * Estimated time the file take to print, in seconds - * ``filament`` * Substructure describing estimated filament usage. Keys are ``tool0`` for the first extruder, ``tool1`` for the second and so on. For each tool extruded length and volume (based on diameter) are provided. @@ -341,6 +342,8 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue): import sys import yaml + if self._current.analysis: + return self._current.analysis try: throttle = settings().getFloat(["gcodeAnalysis", "throttle_highprio"]) if high_priority \ else settings().getFloat(["gcodeAnalysis", "throttle_normalprio"]) @@ -364,7 +367,7 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue): self._logger.info("Invoking analysis command: {}".format(" ".join(command))) self._aborted = False - p = sarge.run(command, async=True, stdout=sarge.Capture()) + p = sarge.run(command, async_=True, stdout=sarge.Capture()) while len(p.commands) == 0: # somewhat ugly... we can't use wait_events because diff --git a/src/octoprint/plugin/__init__.py b/src/octoprint/plugin/__init__.py index fa24ccf0a..9bcdcd625 100644 --- a/src/octoprint/plugin/__init__.py +++ b/src/octoprint/plugin/__init__.py @@ -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) @@ -94,7 +95,8 @@ def plugin_manager(init=False, plugin_folders=None, plugin_bases=None, plugin_en if plugin_restart_needing_hooks is None: plugin_restart_needing_hooks = ["octoprint.server.http.*", - "octoprint.printer.factory"] + "octoprint.printer.factory", + "octoprint.timelapse.extensions"] if plugin_obsolete_hooks is None: plugin_obsolete_hooks = ["octoprint.comm.protocol.gcode"] @@ -167,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 @@ -205,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)): @@ -215,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) diff --git a/src/octoprint/plugin/core.py b/src/octoprint/plugin/core.py index d92ed0a80..54566de4f 100644 --- a/src/octoprint/plugin/core.py +++ b/src/octoprint/plugin/core.py @@ -861,7 +861,7 @@ class PluginManager(object): if plugin.check(): return plugin else: - self.logger.warn("Plugin \"{plugin}\" did not pass check".format(plugin=str(plugin))) + self.logger.info("Plugin {plugin} did not pass check, not loading.".format(plugin=str(plugin))) return None def _is_plugin_disabled(self, key): diff --git a/src/octoprint/plugin/types.py b/src/octoprint/plugin/types.py index 79306a4ec..2bfd5063f 100644 --- a/src/octoprint/plugin/types.py +++ b/src/octoprint/plugin/types.py @@ -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 @@ -225,6 +234,8 @@ class AssetPlugin(OctoPrintPlugin, RestartNeedingPlugin): js JavaScript files, such as additional view models + jsclient + JavaScript files containing additional parts for the JS Client Library (since 1.3.10) css CSS files with additional styles, will be embedded into delivered pages when not running in LESS mode. less @@ -239,6 +250,7 @@ class AssetPlugin(OctoPrintPlugin, RestartNeedingPlugin): def get_assets(self): return dict( js=['js/my_file.js', 'js/my_other_file.js'], + clientjs=['clientjs/my_file.js'], css=['css/my_styles.css'], less=['less/my_styles.less'] ) @@ -1799,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 ` for possible values @@ -1984,7 +2000,7 @@ class SlicerPlugin(OctoPrintPlugin): For jobs that finished successfully, ``result`` should be a :class:`dict` containing additional information about the slicing job under the following keys: - _analysis + analysis Analysis result of the generated machine code as returned by the slicer itself. This should match the data structure described for the analysis queue of the matching machine code format, e.g. :class:`~octoprint.filemanager.analysis.GcodeAnalysisQueue` for GCODE files. diff --git a/src/octoprint/plugins/action_command_prompt/__init__.py b/src/octoprint/plugins/action_command_prompt/__init__.py index 0dd9a4be2..8900c5d7a 100644 --- a/src/octoprint/plugins/action_command_prompt/__init__.py +++ b/src/octoprint/plugins/action_command_prompt/__init__.py @@ -49,7 +49,8 @@ class ActionCommandPromptPlugin(octoprint.plugin.AssetPlugin, #~ AssetPlugin def get_assets(self): - return dict(js=["js/action_command_prompt.js"]) + return dict(js=["js/action_command_prompt.js"], + clientjs=["clientjs/action_command_prompt.js"]) #~ SettingsPlugin diff --git a/src/octoprint/plugins/action_command_prompt/static/clientjs/action_command_prompt.js b/src/octoprint/plugins/action_command_prompt/static/clientjs/action_command_prompt.js new file mode 100644 index 000000000..9ba9b4a14 --- /dev/null +++ b/src/octoprint/plugins/action_command_prompt/static/clientjs/action_command_prompt.js @@ -0,0 +1,25 @@ +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define(["OctoPrintClient"], factory); + } else { + factory(global.OctoPrintClient); + } +})(this, function(OctoPrintClient) { + var OctoPrintActionCommandPromptClient = function(base) { + this.base = base; + }; + + OctoPrintActionCommandPromptClient.prototype.get = function(refresh, opts) { + return this.base.get(this.base.getSimpleApiUrl("action_command_prompt"), opts); + }; + + OctoPrintActionCommandPromptClient.prototype.select = function(choice, opts) { + var data = { + choice: choice + }; + return this.base.simpleApiCommand("action_command_prompt", "select", data, opts); + }; + + OctoPrintClient.registerPluginComponent("action_command_prompt", OctoPrintActionCommandPromptClient); + return OctoPrintActionCommandPromptClient; +}); diff --git a/src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js b/src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js index 6298a5338..e077903a2 100644 --- a/src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js +++ b/src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js @@ -1,29 +1,3 @@ -(function (global, factory) { - if (typeof define === "function" && define.amd) { - define(["OctoPrintClient"], factory); - } else { - factory(global.OctoPrintClient); - } -})(this, function(OctoPrintClient) { - var OctoPrintActionCommandPromptClient = function(base) { - this.base = base; - }; - - OctoPrintActionCommandPromptClient.prototype.get = function(refresh, opts) { - return this.base.get(this.base.getSimpleApiUrl("action_command_prompt"), opts); - }; - - OctoPrintActionCommandPromptClient.prototype.select = function(choice, opts) { - var data = { - choice: choice - }; - return this.base.simpleApiCommand("action_command_prompt", "select", data, opts); - }; - - OctoPrintClient.registerPluginComponent("action_command_prompt", OctoPrintActionCommandPromptClient); - return OctoPrintActionCommandPromptClient; -}); - $(function() { function ActionCommandPromptViewModel(parameters) { var self = this; diff --git a/src/octoprint/plugins/announcements/__init__.py b/src/octoprint/plugins/announcements/__init__.py index bccea5198..8ff8e289a 100644 --- a/src/octoprint/plugins/announcements/__init__.py +++ b/src/octoprint/plugins/announcements/__init__.py @@ -372,15 +372,24 @@ class AnnouncementPlugin(octoprint.plugin.AssetPlugin, result = [] if "entries" in feed: for entry in feed["entries"]: - internal_entry = self._to_internal_entry(entry, read_until=read_until) - if internal_entry: - result.append(internal_entry) + try: + internal_entry = self._to_internal_entry(entry, read_until=read_until) + if internal_entry: + result.append(internal_entry) + except: + self._logger.exception("Error while converting entry from feed, skipping it") return result def _to_internal_entry(self, entry, read_until=None): """Convert feed entries to internal data structure.""" - published = calendar.timegm(entry["published_parsed"]) + timestamp = entry.get("published_parsed", + entry.get("updated_parsed", + None)) + if timestamp is None: + return None + + published = calendar.timegm(timestamp) read = True if read_until is not None: diff --git a/src/octoprint/plugins/appkeys/__init__.py b/src/octoprint/plugins/appkeys/__init__.py new file mode 100644 index 000000000..7de100e79 --- /dev/null +++ b/src/octoprint/plugins/appkeys/__init__.py @@ -0,0 +1,403 @@ +# coding=utf-8 +from __future__ import absolute_import + +import flask +import threading +import os +import yaml +import codecs +import time +from binascii import hexlify +from collections import defaultdict +from flask_babel import gettext + +import octoprint.plugin +from octoprint.settings import valid_boolean_trues +from octoprint.server.util.flask import restricted_access, no_firstrun_access +from octoprint.server import NO_CONTENT, current_user, admin_permission +from octoprint.util import atomic_write, monotonic_time, ResettableTimer + + +CUTOFF_TIME = 10 * 60 # 10min +POLL_TIMEOUT = 5 # 5 seconds + +class AppAlreadyExists(Exception): + pass + + +class PendingDecision(object): + def __init__(self, app_id, app_token, user_id, user_token, timeout_callback=None): + self.app_id = app_id + self.app_token = app_token + self.user_id = user_id + self.user_token = user_token + self.created = monotonic_time() + + if callable(timeout_callback): + self.poll_timeout = ResettableTimer(POLL_TIMEOUT, timeout_callback, [user_token]) + self.poll_timeout.start() + + def external(self): + return dict(app_id=self.app_id, + user_id=self.user_id, + user_token=self.user_token) + + +class ReadyDecision(object): + def __init__(self, app_id, app_token, user_id): + self.app_id = app_id + self.app_token = app_token + self.user_id = user_id + + @classmethod + def for_pending(cls, pending, user_id): + return cls(pending.app_id, pending.app_token, user_id) + + +class ActiveKey(object): + def __init__(self, app_id, api_key, user_id): + self.app_id = app_id + self.api_key = api_key + self.user_id = user_id + + def external(self): + return dict(app_id=self.app_id, + api_key=self.api_key, + user_id=self.user_id) + + def internal(self): + return dict(app_id=self.app_id, + api_key=self.api_key) + + @classmethod + def for_internal(cls, internal, user_id): + return cls(internal["app_id"], internal["api_key"], user_id) + + +class AppKeysPlugin(octoprint.plugin.AssetPlugin, + octoprint.plugin.BlueprintPlugin, + octoprint.plugin.SimpleApiPlugin, + octoprint.plugin.TemplatePlugin): + + def __init__(self): + self._pending_decisions = [] + self._pending_lock = threading.RLock() + + self._ready_decisions = [] + self._ready_lock = threading.RLock() + + self._keys = defaultdict(list) + self._keys_lock = threading.RLock() + + self._key_path = None + + def initialize(self): + self._key_path = os.path.join(self.get_plugin_data_folder(), "keys.yaml") + self._load_keys() + + ##~~ TemplatePlugin + + def get_template_configs(self): + return [dict(type="usersettings", name=gettext("Application Keys")), + dict(type="settings", name=gettext("Application Keys"))] + + ##~~ AssetPlugin + + def get_assets(self): + return dict(js=["js/appkeys.js"], + clientjs=["clientjs/appkeys.js"], + less=["less/appkeys.less"], + css=["css/appkeys.css"]) + + ##~~ BlueprintPlugin mixin + + @octoprint.plugin.BlueprintPlugin.route("/probe", methods=["GET"]) + @no_firstrun_access + def handle_probe(self): + return NO_CONTENT + + @octoprint.plugin.BlueprintPlugin.route("/request", methods=["POST"]) + @no_firstrun_access + def handle_request(self): + data = flask.request.json + if not "app" in data: + return flask.make_response("No app name provided", 400) + + app_name = data["app"] + user_id = None + if "user" in data: + user_id = data["user"] + + app_token, user_token = self._add_pending_decision(app_name, user_id=user_id) + + self._plugin_manager.send_plugin_message(self._identifier, dict(type="request_access", + app_name=app_name, + user_token=user_token, + user_id=user_id)) + response = flask.jsonify(app_token=app_token) + response.status_code = 201 + response.headers["Location"] = flask.url_for(".handle_decision_poll", app_token=app_token, _external=True) + return response + + @octoprint.plugin.BlueprintPlugin.route("/request/") + @no_firstrun_access + def handle_decision_poll(self, app_token): + result = self._get_pending_by_app_token(app_token) + if result: + for pending_decision in result: + pending_decision.poll_timeout.reset() + + response = flask.jsonify(message="Awaiting decision") + response.status_code = 202 + return response + + result = self._get_decision(app_token) + if result: + return flask.jsonify(api_key=result) + + return flask.abort(404) + + @octoprint.plugin.BlueprintPlugin.route("/decision/", methods=["POST"]) + @restricted_access + def handle_decision(self, user_token): + data = flask.request.json + if not "decision" in data: + return flask.make_response("No decision provided", 400) + decision = data["decision"] in valid_boolean_trues + user_id = current_user.get_name() + + result = self._set_decision(user_token, decision, user_id) + if not result: + return flask.abort(404) + + # Close access_request dialog for this request on all open OctoPrint connections + self._plugin_manager.send_plugin_message(self._identifier, dict( + type="end_request", + user_token=user_token + )) + + return NO_CONTENT + + def is_blueprint_protected(self): + return False # No API key required to request API access + + ##~~ SimpleApiPlugin mixin + + def get_api_commands(self): + return dict(generate=["app"], + revoke=["key"]) + + def on_api_get(self, request): + user_id = current_user.get_name() + if not user_id: + return flask.abort(403) + + if request.values.get("all") in valid_boolean_trues and admin_permission.can(): + keys = self._all_api_keys() + else: + keys = self._api_keys_for_user(user_id) + + return flask.jsonify(keys=map(lambda x: x.external(), keys), + pending=dict((x.user_token, x.external()) for x in self._get_pending_by_user_id(user_id))) + + def on_api_command(self, command, data): + user_id = current_user.get_name() + if not user_id: + return flask.abort(403) + + if command == "revoke": + api_key = data.get("key") + if not api_key: + return flask.abort(400) + + if not admin_permission.can(): + user_for_key = self._user_for_api_key(api_key) + if user_for_key is None or user_for_key.user_id != user_id: + return flask.abort(403) + + self._delete_api_key(api_key) + + elif command == "generate": + # manual generateKey + app_name = data.get("app") + if not app_name: + return flask.abort(400) + + self._add_api_key(user_id, app_name.strip()) + + return NO_CONTENT + + ##~~ key validator hook + + def validate_api_key(self, api_key, *args, **kwargs): + return self._user_for_api_key(api_key) + + ##~~ Helpers + + def _add_pending_decision(self, app_name, user_id=None): + app_token = self._generate_key() + user_token = self._generate_key() + + with self._pending_lock: + self._remove_stale_pending() + self._pending_decisions.append(PendingDecision(app_name, app_token, user_id, user_token, + timeout_callback=self._expire_pending)) + + return app_token, user_token + + def _get_pending_by_app_token(self, app_token): + result = [] + with self._pending_lock: + self._remove_stale_pending() + for data in self._pending_decisions: + if data.app_token == app_token: + result.append(data) + return result + + def _get_pending_by_user_id(self, user_id): + result = [] + with self._pending_lock: + self._remove_stale_pending() + for data in self._pending_decisions: + if data.user_id == user_id or data.user_id is None: + result.append(data) + return result + + def _expire_pending(self, user_token): + with self._pending_lock: + len_before = len(self._pending_decisions) + self._pending_decisions = filter(lambda x: x.user_token != user_token, self._pending_decisions) + len_after = len(self._pending_decisions) + + if len_after < len_before: + self._plugin_manager.send_plugin_message(self._identifier, dict( + type="end_request", + user_token=user_token + )) + + def _remove_stale_pending(self): + with self._pending_lock: + cutoff = monotonic_time() - CUTOFF_TIME + len_before = len(self._pending_decisions) + self._pending_decisions = filter(lambda x: x.created >= cutoff, + self._pending_decisions) + len_after = len(self._pending_decisions) + if len_after < len_before: + self._logger.info("Deleted {} stale pending authorization requests".format(len_before - len_after)) + + def _set_decision(self, user_token, decision, user_id): + with self._pending_lock: + self._remove_stale_pending() + for data in self._pending_decisions: + if data.user_token == user_token and (data.user_id == user_id or data.user_id is None): + pending = data + break + else: + return False # not found + + if decision: + with self._ready_lock: + self._ready_decisions.append(ReadyDecision.for_pending(pending, user_id)) + + with self._pending_lock: + self._pending_decisions = filter(lambda x: x.user_token != user_token, self._pending_decisions) + + return True + + def _get_decision(self, app_token): + self._remove_stale_pending() + + with self._ready_lock: + for data in self._ready_decisions: + if data.app_token == app_token: + decision = data + break + else: + return False # not found + + api_key = self._add_api_key(decision.user_id, decision.app_id) + + with self._ready_lock: + self._ready_decisions = filter(lambda x: x.app_token != app_token, self._ready_decisions) + + return api_key + + def _add_api_key(self, user_id, app_name): + with self._keys_lock: + for key in self._keys[user_id]: + if key.app_id.lower() == app_name.lower(): + return key.api_key + + key = ActiveKey(app_name, self._generate_key(), user_id) + self._keys[user_id].append(key) + self._save_keys() + return key.api_key + + def _delete_api_key(self, api_key): + with self._keys_lock: + for user_id, data in self._keys.items(): + self._keys[user_id] = filter(lambda x: x.api_key != api_key, data) + self._save_keys() + + def _user_for_api_key(self, api_key): + with self._keys_lock: + for user_id, data in self._keys.items(): + if filter(lambda x: x.api_key == api_key, data): + return self._user_manager.findUser(userid=user_id) + return None + + def _api_keys_for_user(self, user_id): + with self._keys_lock: + return self._keys[user_id] + + def _all_api_keys(self): + with self._keys_lock: + result = [] + for user_id, keys in self._keys.items(): + result += keys + return result + + def _generate_key(self): + return hexlify(os.urandom(16)) + + def _load_keys(self): + with self._keys_lock: + if not os.path.exists(self._key_path): + return + + try: + with codecs.open(self._key_path, "rb", encoding="utf-8", errors="strict") as f: + persisted = yaml.safe_load(f) + except: + self._logger.exception("Could not load application keys from {}".format(self._key_path)) + return + + if not isinstance(persisted, dict): + return + + keys = defaultdict(list) + for user_id, persisted_keys in persisted.items(): + keys[user_id] = [ActiveKey.for_internal(x, user_id) for x in persisted_keys] + self._keys = keys + + def _save_keys(self): + with self._keys_lock: + to_persist = dict() + for user_id, keys in self._keys.items(): + to_persist[user_id] = [x.internal() for x in keys] + + try: + with atomic_write(self._key_path) as f: + yaml.safe_dump(to_persist, f) + except: + self._logger.exception("Could not write application keys to {}".format(self._key_path)) + +__plugin_name__ = u"Application Keys Plugin" +__plugin_description__ = u"Implements a workflow for third party clients to obtain API keys" +__plugin_author__ = u"Gina Häußge, Aldo Hoeben" +__plugin_disabling_discouraged__ = gettext(u"Without this plugin third party clients will no longer be able to " + u"obtain an API key without you manually copy-pasting it.") +__plugin_implementation__ = AppKeysPlugin() +__plugin_hooks__ = { + "octoprint.accesscontrol.keyvalidator": __plugin_implementation__.validate_api_key +} diff --git a/src/octoprint/plugins/appkeys/static/clientjs/appkeys.js b/src/octoprint/plugins/appkeys/static/clientjs/appkeys.js new file mode 100644 index 000000000..9b29428aa --- /dev/null +++ b/src/octoprint/plugins/appkeys/static/clientjs/appkeys.js @@ -0,0 +1,98 @@ +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define(["OctoPrintClient"], factory); + } else { + factory(global.OctoPrintClient); + } +})(this, function(OctoPrintClient) { + var OctoPrintAppKeysClient = function(base) { + this.base = base; + }; + + OctoPrintAppKeysClient.prototype.getKeys = function(opts) { + return this.base.simpleApiGet("appkeys", opts); + }; + + OctoPrintAppKeysClient.prototype.getAllKeys = function(opts) { + return this.base.get(OctoPrintClient.prototype.getSimpleApiUrl("appkeys") + "?all=true", opts); + }; + + OctoPrintAppKeysClient.prototype.generateKey = function(app, opts) { + return this.base.simpleApiCommand("appkeys", "generate", {"app": app}, opts); + }; + + OctoPrintAppKeysClient.prototype.revokeKey = function(key, opts) { + return this.base.simpleApiCommand("appkeys", "revoke", {"key": key}, opts); + }; + + OctoPrintAppKeysClient.prototype.decide = function(token, decision, opts) { + return this.base.postJson(this.base.getBlueprintUrl("appkeys") + "decision/" + token, {decision: !!decision}, opts); + }; + + OctoPrintAppKeysClient.prototype.probe = function(opts) { + return this.base.get(this.base.getBlueprintUrl("appkeys") + "probe", opts); + }; + + OctoPrintAppKeysClient.prototype.request = function(app, opts) { + return this.requestForUser(app, undefined, opts); + }; + + OctoPrintAppKeysClient.prototype.requestForUser = function(app, user, opts) { + return this.base.postJson(this.base.getBlueprintUrl("appkeys") + "request", {app: app, user: user}, opts); + }; + + OctoPrintAppKeysClient.prototype.checkDecision = function(token, opts) { + return this.base.get(this.base.getBlueprintUrl("appkeys") + "request/" + token, opts); + }; + + OctoPrintAppKeysClient.prototype.authenticate = function(app, user) { + var deferred = $.Deferred(); + var client = this; + + client.probe() + .done(function() { + client.requestForUser(app, user) + .done(function(response) { + var token = response.app_token; + if (!token) { + // no token received, something went wrong + deferred.reject(); + return; + } + + var interval = 1000; + var poll = function() { + client.checkDecision(token) + .done(function(response) { + if (response.api_key) { + // got a decision, resolve the promise + deferred.resolve(response.api_key); + } else { + // no decision yet, poll a bit more + deferred.notify(); + window.setTimeout(poll, interval); + } + }) + .fail(function() { + // something went wrong + deferred.reject(); + }); + }; + window.setTimeout(poll, interval); + }) + .fail(function() { + // something went wrong + deferred.reject(); + }); + }) + .fail(function() { + // workflow unsupported + deferred.reject(); + }); + + return deferred.promise(); + }; + + OctoPrintClient.registerPluginComponent("appkeys", OctoPrintAppKeysClient); + return OctoPrintAppKeysClient; +}); diff --git a/src/octoprint/plugins/appkeys/static/css/appkeys.css b/src/octoprint/plugins/appkeys/static/css/appkeys.css new file mode 100644 index 000000000..6240d21d7 --- /dev/null +++ b/src/octoprint/plugins/appkeys/static/css/appkeys.css @@ -0,0 +1 @@ +#settings_plugin_appkeys_allkeys_table .settings_plugin_appkeys_actions,#settings_plugin_appkeys_userkeys_table .settings_plugin_appkeys_actions{width:75px;text-align:center}#settings_plugin_appkeys_allkeys_table .settings_plugin_appkeys_actions a,#settings_plugin_appkeys_userkeys_table .settings_plugin_appkeys_actions a{color:#000}#settings_plugin_appkeys_allkeys_table .settings_plugin_appkeys_user,#settings_plugin_appkeys_userkeys_table .settings_plugin_appkeys_user{width:100px}#settings_plugin_appkeys_allkeys_table .settings_plugin_appkeys_checkbox,#settings_plugin_appkeys_userkeys_table .settings_plugin_appkeys_checkbox{text-align:center;width:10px}#settings_plugin_appkeys_allkeys_table .settings_plugin_appkeys_checkbox input[type=checkbox],#settings_plugin_appkeys_userkeys_table .settings_plugin_appkeys_checkbox input[type=checkbox]{margin-top:0} \ No newline at end of file diff --git a/src/octoprint/plugins/appkeys/static/js/appkeys.js b/src/octoprint/plugins/appkeys/static/js/appkeys.js new file mode 100644 index 000000000..bdd72e97b --- /dev/null +++ b/src/octoprint/plugins/appkeys/static/js/appkeys.js @@ -0,0 +1,308 @@ +$(function() { + function UserAppKeysViewModel(parameters) { + var self = this; + self.loginState = parameters[0]; + + self.keys = new ItemListHelper( + "plugin.appkeys.userkeys", + { + "app": function (a, b) { + // sorts ascending + if (a["app_id"].toLowerCase() < b["app_id"].toLowerCase()) return -1; + if (a["app_id"].toLowerCase() > b["app_id"].toLowerCase()) return 1; + return 0; + } + }, + { + }, + "app", + [], + [], + 5 + ); + self.pending = {}; + self.openRequests = {}; + + self.editorApp = ko.observable(); + + self.requestData = function() { + OctoPrint.plugins.appkeys.getKeys() + .done(self.fromResponse); + }; + + self.fromResponse = function(response) { + self.keys.updateItems(response.keys); + self.pending = response.pending; + _.each(self.pending, function(data, token) { + self.openRequests[token] = self.promptForAccess(data.app_id, token); + }) + }; + + self.generateKey = function() { + return OctoPrint.plugins.appkeys.generateKey(self.editorApp()) + .done(self.requestData) + .done(function() { + self.editorApp(""); + }); + }; + + self.revokeKey = function(key) { + var perform = function() { + OctoPrint.plugins.appkeys.revokeKey(key) + .done(self.requestData); + }; + + showConfirmationDialog(_.sprintf(gettext("You are about to revoke the application key \"%(key)s\"."), {key: key}), + perform); + }; + + self.allowApp = function(token) { + return OctoPrint.plugins.appkeys.decide(token, true) + .done(self.requestData); + }; + + self.denyApp = function(token) { + return OctoPrint.plugins.appkeys.decide(token, false) + .done(self.requestData); + }; + + self.promptForAccess = function(app, token) { + var message = gettext("\"%(app)s\" has requested access to control OctoPrint through the API."); + message = _.sprintf(message, {app: app}); + message = "

" + message + "

" + gettext("Do you want to allow access to this application with your user account?") + "

"; + return new PNotify({ + title: gettext("Access Request"), + text: message, + hide: false, + icon: "fa fa-key", + confirm: { + confirm: true, + buttons: [{ + text: gettext("Allow"), + click: function(notice) { + self.allowApp(token); + notice.remove(); + } + }, { + text: gettext("Deny"), + click: function(notice) { + self.denyApp(token); + notice.remove(); + } + }] + }, + buttons: { + sticker: false, + closer: false + } + }); + }; + + self.onUserSettingsShown = function() { + self.requestData(); + }; + + self.onUserLoggedIn = function() { + self.requestData(); + }; + + self.onDataUpdaterPluginMessage = function(plugin, data) { + if (plugin !== "appkeys") { + return; + } + + var app, token, user; + + if (data.type === "request_access" && self.loginState.isUser()) { + app = data.app_name; + token = data.user_token; + user = data.user_id; + + if (user && user !== self.loginState.username()) { + return; + } + + if (self.pending[token] !== undefined) { + return; + } + + self.openRequests[token] = self.promptForAccess(app, token); + + } else if (data.type === "end_request") { + token = data.user_token; + + if (self.openRequests[token] !== undefined) { + // another instance responded to the access request before the current user did + if (self.openRequests[token].state !== "closed") { + self.openRequests[token].remove(); + } + delete self.openRequests[token] + } + } + }; + } + + function AllAppKeysViewModel(parameters) { + var self = this; + self.loginState = parameters[0]; + + self.keys = new ItemListHelper( + "plugin.appkeys.allkeys", + { + "user_app": function (a, b) { + // sorts ascending, first by user, then by app + if (a["user_id"] > b["user_id"]) return 1; + if (a["user_id"] < b["user_id"]) return -1; + + if (a["app_id"].toLowerCase() > b["app_id"].toLowerCase()) return 1; + if (a["app_id"].toLowerCase() < b["app_id"].toLowerCase()) return -1; + + return 0; + } + }, + { + }, + "user_app", + [], + [], + 10 + ); + self.users = ko.observableArray([]); + self.apps = ko.observableArray([]); + + self.markedForDeletion = ko.observableArray([]); + + self.onSettingsShown = function() { + self.requestData(); + }; + + self.onUserLoggedIn = function() { + self.requestData(); + }; + + self.requestData = function() { + OctoPrint.plugins.appkeys.getAllKeys() + .done(self.fromResponse); + }; + + self.fromResponse = function(response) { + self.keys.updateItems(response.keys); + + var users = []; + var apps = []; + _.each(response.keys, function(key) { + users.push(key.user_id); + apps.push(key.app_id.toLowerCase()); + }); + + users = _.uniq(users); + users.sort(); + self.users(users); + + apps = _.uniq(apps); + apps.sort(); + self.apps(apps); + }; + + self.revokeKey = function(key) { + var perform = function() { + OctoPrint.plugins.appkeys.revokeKey(key) + .done(self.requestData); + }; + + showConfirmationDialog(_.sprintf(gettext("You are about to revoke the application key \"%(key)s\"."), {key: key}), + perform); + }; + + self.revokeMarked = function() { + var perform = function() { + self._bulkRevoke(self.markedForDeletion()) + .done(function() { + self.markedForDeletion.removeAll(); + }); + }; + + showConfirmationDialog(_.sprintf(gettext("You are about to revoke %(count)d application keys."), {count: self.markedForDeletion().length}), + perform); + }; + + self.markAllOnPageForDeletion = function() { + self.markedForDeletion(_.uniq(self.markedForDeletion().concat(_.map(self.keys.paginatedItems(), "api_key")))); + }; + + self.markAllForDeletion = function() { + self.markedForDeletion(_.uniq(_.map(self.keys.allItems, "api_key"))); + }; + + self.markAllByUserForDeletion = function(user) { + self.markAllByFilterForDeletion(function(e) { return (e.user_id === user); }); + }; + + self.markAllByAppForDeletion = function(app) { + self.markAllByFilterForDeletion(function(e) { return (e.app_id.toLowerCase() === app); }) + }; + + self.markAllByFilterForDeletion = function(filter) { + self.markedForDeletion(_.uniq(self.markedForDeletion().concat(_.map(_.filter(self.keys.allItems, filter), "api_key")))); + }; + + self.clearMarked = function() { + self.markedForDeletion.removeAll(); + }; + + self._bulkRevoke = function(keys) { + var title, message, handler; + + title = gettext("Revoking application keys"); + message = _.sprintf(gettext("Revoking %(count)d application keys..."), {count: keys.length}); + handler = function(key) { + return OctoPrint.plugins.appkeys.revokeKey(key) + .done(function() { + deferred.notify(_.sprintf(gettext("Revoked %(key)s..."), {key: key}), true); + }) + .fail(function(jqXHR) { + var short = _.sprintf(gettext("Revocation of %(key)s failed, continuing..."), {key: key}); + var long = _.sprintf(gettext("Deletion of %(key)s failed: %(error)s"), {key: key, error: jqXHR.responseText}); + deferred.notify(short, long, false); + }); + }; + + var deferred = $.Deferred(); + + var promise = deferred.promise(); + + var options = { + title: title, + message: message, + max: keys.length, + output: true + }; + showProgressModal(options, promise); + + var requests = []; + _.each(keys, function(key) { + var request = handler(key); + requests.push(request) + }); + $.when.apply($, _.map(requests, wrapPromiseWithAlways)) + .done(function() { + deferred.resolve(); + self.requestData(); + }); + + return promise; + }; + } + + OCTOPRINT_VIEWMODELS.push([ + UserAppKeysViewModel, + ["loginStateViewModel"], + ["#usersettings_plugin_appkeys"] + ]); + + OCTOPRINT_VIEWMODELS.push([ + AllAppKeysViewModel, + ["loginStateViewModel"], + ["#settings_plugin_appkeys"] + ]) +}); diff --git a/src/octoprint/plugins/appkeys/static/less/appkeys.less b/src/octoprint/plugins/appkeys/static/less/appkeys.less new file mode 100644 index 000000000..0e7d3f1c8 --- /dev/null +++ b/src/octoprint/plugins/appkeys/static/less/appkeys.less @@ -0,0 +1,24 @@ +#settings_plugin_appkeys_userkeys_table, +#settings_plugin_appkeys_allkeys_table { + .settings_plugin_appkeys_app { + } + .settings_plugin_appkeys_actions { + width: 75px; + text-align: center; + + a { + color: black; + } + } + .settings_plugin_appkeys_user { + width: 100px; + } + .settings_plugin_appkeys_checkbox { + text-align: center; + width: 10px; + + input[type="checkbox"] { + margin-top: 0; + } + } +} diff --git a/src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2 b/src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2 new file mode 100644 index 000000000..700fb8f2b --- /dev/null +++ b/src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2 @@ -0,0 +1,59 @@ +
+

{{ _('There are no application keys registered yet.') }}

+
+
+ + + + + + + + + + + + + + + + + + +
{{ _('User') }}{{ _('Application identifier') }}{{ _('Action') }}

{{ _('API Key') }}:
+ +
diff --git a/src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2 b/src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2 new file mode 100644 index 000000000..2499b2330 --- /dev/null +++ b/src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2 @@ -0,0 +1,49 @@ +{{ _('Registered application keys') }} + +
+

{{ _('There are no application keys registered yet.') }}

+
+
+ + + + + + + + + + + + + +
{{ _('Application identifier') }}{{ _('Action') }}

{{ _('API Key') }}:
+ +
+ +{{ _('Manually generate an application key') }} + +
+
+ +
+ +
+
+ +
+
+ +
+
+
diff --git a/src/octoprint/plugins/backup/__init__.py b/src/octoprint/plugins/backup/__init__.py new file mode 100644 index 000000000..b00f5faf2 --- /dev/null +++ b/src/octoprint/plugins/backup/__init__.py @@ -0,0 +1,925 @@ +# coding=utf-8 +from __future__ import absolute_import, division, print_function + +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2018 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import octoprint.plugin + +from octoprint.settings import default_settings +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, is_octoprint_compatible +from octoprint.util.platform import is_os_compatible +from octoprint.util.pip import LocalPipCaller + +try: + from os import scandir +except ImportError: + from scandir import scandir + +try: + import zlib # check if zlib is available +except ImportError: + zlib = None + + +from flask_babel import gettext + +import codecs +import flask +import logging +import os +import requests +import sarge +import shutil +import tempfile +import threading +import time +import zipfile +import json +import sys +import traceback + + +UNKNOWN_PLUGINS_FILE = "unknown_plugins_from_restore.json" + + +class BackupPlugin(octoprint.plugin.SettingsPlugin, + octoprint.plugin.TemplatePlugin, + octoprint.plugin.AssetPlugin, + octoprint.plugin.BlueprintPlugin, + octoprint.plugin.StartupPlugin): + + _pip_caller = None + + # noinspection PyMissingConstructor + def __init__(self): + self._in_progress = [] + self._in_progress_lock = threading.RLock() + + ##~~ StarupPlugin + + def on_after_startup(self): + self._clean_dir_backup(self._settings._basedir, + on_log_progress=self._logger.info) + + ##~~ AssetPlugin + + def get_assets(self): + return dict(js=["js/backup.js"], + clientjs=["clientjs/backup.js"], + css=["css/backup.css"], + less=["less/backup.less"]) + + ##~~ BlueprintPlugin + + @octoprint.plugin.BlueprintPlugin.route("/", methods=["GET"]) + @admin_permission.require(403) + @restricted_access + def get_state(self): + backups = self._get_backups() + unknown_plugins = self._get_unknown_plugins() + return flask.jsonify(backups=backups, + backup_in_progress=len(self._in_progress) > 0, + unknown_plugins=unknown_plugins, + restore_supported=is_os_compatible(["!windows"])) + + @octoprint.plugin.BlueprintPlugin.route("/unknown_plugins", methods=["GET"]) + @admin_permission.require(403) + @restricted_access + def get_unknown_plugins(self): + # TODO add caching + unknown_plugins = self._get_unknown_plugins() + return flask.jsonify(unknown_plugins=unknown_plugins) + + @octoprint.plugin.BlueprintPlugin.route("/unknown_plugins", methods=["DELETE"]) + @admin_permission.require(403) + @restricted_access + def delete_unknown_plugins(self): + data_file = os.path.join(self.get_plugin_data_folder(), UNKNOWN_PLUGINS_FILE) + try: + os.remove(data_file) + except: + pass + return NO_CONTENT + + @octoprint.plugin.BlueprintPlugin.route("/backup", methods=["GET"]) + @admin_permission.require(403) + @restricted_access + def get_backups(self): + backups = self._get_backups() + return flask.jsonify(backups=backups) + + @octoprint.plugin.BlueprintPlugin.route("/backup", methods=["POST"]) + @admin_permission.require(403) + @restricted_access + def create_backup(self): + backup_file = "backup-{}.zip".format(time.strftime("%Y%m%d-%H%M%S")) + + data = flask.request.json + exclude = data.get("exclude", []) + + def on_backup_start(name, temporary_path, exclude): + self._logger.info(u"Creating backup zip at {} (excluded: {})...".format(temporary_path, + u",".join(exclude) if len(exclude) else "-")) + + with self._in_progress_lock: + self._in_progress.append(name) + self._send_client_message("backup_started", payload=dict(name=name)) + + def on_backup_done(name, final_path, exclude): + with self._in_progress_lock: + self._in_progress.remove(name) + self._send_client_message("backup_done", payload=dict(name=name)) + + 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,), + kwargs=dict(exclude=exclude, + settings=self._settings, + 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_error=on_backup_error)) + thread.daemon = True + thread.start() + + response = flask.jsonify(started=True, + name=backup_file) + response.status_code = 201 + return response + + @octoprint.plugin.BlueprintPlugin.route("/backup/", methods=["DELETE"]) + @admin_permission.require(403) + @restricted_access + def delete_backup(self, filename): + backup_folder = self.get_plugin_data_folder() + full_path = os.path.realpath(os.path.join(backup_folder, filename)) + if full_path.startswith(backup_folder) \ + and os.path.exists(full_path) \ + and not is_hidden_path(full_path): + try: + os.remove(full_path) + except: + self._logger.exception(u"Could not delete {}".format(filename)) + raise + return NO_CONTENT + + @octoprint.plugin.BlueprintPlugin.route("/restore", methods=["POST"]) + @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"]) + + if input_upload_path in flask.request.values: + # file to restore was uploaded + path = flask.request.values[input_upload_path] + + elif flask.request.json and "path" in flask.request.json: + # existing backup is supposed to be restored + backup_folder = self.get_plugin_data_folder() + path = os.path.realpath(os.path.join(backup_folder, flask.request.json["path"])) + if not path.startswith(backup_folder) \ + or not os.path.exists(path) \ + or is_hidden_path(path): + return flask.abort(404) + + else: + return flask.make_response(u"Invalid request, neither a file nor a path of a file to restore provided", 400) + + def on_install_plugins(plugins): + force_user = self._settings.global_get_boolean(["plugins", "pluginmanager", "pip_force_user"]) + pip_args = self._settings.global_get(["plugins", "pluginmanager", "pip_args"]) + + def on_log(line): + self._logger.info(line) + self._send_client_message("logline", dict(line=line, type="stdout")) + + for plugin in plugins: + 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: + self._logger.warn(u"Cannot install plugin {}, it is incompatible to this version " + u"of OctoPrint and the underlying operating system".format(plugin["id"])) + elif not octoprint_compatible: + self._logger.warn(u"Cannot install plugin {}, it is incompatible to this version " + u"of OctoPrint".format(plugin["id"])) + elif not os_compatible: + self._logger.warn(u"Cannot install plugin {}, it is incompatible to the underlying " + u"operating system".format(plugin["id"])) + self._send_client_message("plugin_incompatible", dict(plugin=plugin["id"], + octoprint_compatible=octoprint_compatible, + os_compatible=os_compatible)) + continue + + self._logger.info(u"Installing plugin {}".format(plugin["id"])) + self._send_client_message("installing_plugin", dict(plugin=plugin["id"])) + self.__class__._install_plugin(plugin, + force_user=force_user, + pip_args=pip_args, + on_log=on_log) + + def on_report_unknown_plugins(plugins): + self._send_client_message("unknown_plugins", payload=dict(plugins=plugins)) + + def on_log_progress(line): + self._logger.info(line) + self._send_client_message("logline", payload=dict(line=line, stream="stdout")) + + def on_log_error(line, exc_info=None): + self._logger.error(line, exc_info=exc_info) + self._send_client_message("logline", payload=dict(line=line, stream="stderr")) + + if exc_info is not None: + exc_type, exc_value, exc_tb = exc_info + output = traceback.format_exception(exc_type, exc_value, exc_tb) + for line in output: + self._send_client_message("logline", payload=dict(line=line.rstrip(), stream="stderr")) + + def on_restore_start(path): + self._send_client_message("restore_started") + + def on_restore_done(path): + self._send_client_message("restore_done") + + 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) + path = archive.name + + # noinspection PyTypeChecker + thread = threading.Thread(target=self._restore_backup, + args=(path,), + kwargs=dict(settings=self._settings, + plugin_manager=self._plugin_manager, + 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, + on_restore_done=on_restore_done, + on_restore_failed=on_restore_failed)) + thread.daemon = True + thread.start() + + return flask.jsonify(started=True) + + ##~~ tornado hook + + def route_hook(self, *args, **kwargs): + from octoprint.server.util.tornado import LargeResponseHandler, path_validation_factory + from octoprint.util import is_hidden_path + from octoprint.server import app + from octoprint.server.util.tornado import access_validation_factory + from octoprint.server.util.flask import admin_validator + + return [ + (r"/download/(.*)", LargeResponseHandler, dict(path=self.get_plugin_data_folder(), + as_attachment=True, + path_validation=path_validation_factory(lambda path: not is_hidden_path(path), + status_code=404), + access_validation=access_validation_factory(app, admin_validator))) + ] + + def bodysize_hook(self, current_max_body_sizes, *args, **kwargs): + # max upload size of 1GB for the restore endpoint + return [("POST", r"/restore", 1024 * 1024 * 1024)] + + ##~~ CLI hook + + def cli_commands_hook(self, cli_group, pass_octoprint_ctx, *args, **kwargs): + import click + + @click.command("backup") + @click.option("--exclude", multiple=True, + help="Identifiers of data folders to exclude, e.g. 'uploads' to exclude uploads or " + "'timelapse' to exclude timelapses.") + def backup_command(exclude): + """ + Creates a new backup. + """ + + backup_file = "backup-{}.zip".format(time.strftime("%Y%m%d-%H%M%S")) + settings = octoprint.plugin.plugin_settings_for_settings_plugin("backup", self, settings=cli_group.settings) + + datafolder = os.path.join(settings.getBaseFolder("data"), "backup") + if not os.path.isdir(datafolder): + os.makedirs(datafolder) + + click.echo("Creating backup at {}, please wait...".format(backup_file)) + self._create_backup(backup_file, + exclude=exclude, + settings=settings, + plugin_manager=cli_group.plugin_manager, + datafolder=datafolder) + click.echo("Done.") + + @click.command("restore") + @click.argument("path") + def restore_command(path): + """ + Restores an existing backup from the backup zip provided as argument. + + OctoPrint does not need to run for this to proceed. + """ + settings = octoprint.plugin.plugin_settings_for_settings_plugin("backup", self, settings=cli_group.settings) + plugin_manager = cli_group.plugin_manager + + datafolder = os.path.join(settings.getBaseFolder("data"), "backup") + if not os.path.isdir(datafolder): + os.makedirs(datafolder) + + # register plugin manager plugin setting overlays + plugin_info = plugin_manager.get_plugin_info("pluginmanager") + if plugin_info and plugin_info.implementation: + default_settings_overlay = dict(plugins=dict()) + default_settings_overlay["plugins"]["pluginmanager"] = plugin_info.implementation.get_settings_defaults() + settings.add_overlay(default_settings_overlay, at_end=True) + + if not os.path.isabs(path): + datafolder = os.path.join(settings.getBaseFolder("data"), "backup") + if not os.path.isdir(datafolder): + os.makedirs(datafolder) + path = os.path.join(datafolder, path) + + if not os.path.exists(path): + click.echo(u"Backup {} does not exist".format(path), err=True) + sys.exit(-1) + + archive = tempfile.NamedTemporaryFile(delete=False) + archive.close() + shutil.copy(path, archive.name) + path = archive.name + + def on_install_plugins(plugins): + if not plugins: + return + + force_user = settings.global_get_boolean(["plugins", "pluginmanager", "pip_force_user"]) + pip_args = settings.global_get(["plugins", "pluginmanager", "pip_args"]) + + def log(line): + click.echo(u"\t{}".format(line)) + + for plugin in plugins: + 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: + click.echo(u"Cannot install plugin {}, it is incompatible to this version of " + u"OctoPrint and the underlying operating system".format(plugin["id"])) + elif not octoprint_compatible: + click.echo(u"Cannot install plugin {}, it is incompatible to this version of " + u"OctoPrint".format(plugin["id"])) + elif not os_compatible: + click.echo(u"Cannot install plugin {}, it is incompatible to the underlying " + u"operating system".format(plugin["id"])) + continue + + click.echo(u"Installing plugin {}".format(plugin["id"])) + self.__class__._install_plugin(plugin, + force_user=force_user, + pip_args=pip_args, + on_log=log) + + def on_report_unknown_plugins(plugins): + if not plugins: + return + + click.echo(u"The following plugins were not found in the plugin repository. You'll need to install them manually.") + for plugin in plugins: + click.echo(u"\t{} (Homepage: {})".format(plugin["name"], plugin["url"] if plugin["url"] else "?")) + + def on_log_progress(line): + click.echo(line) + + def on_log_error(line, exc_info=None): + click.echo(line, err=True) + + if exc_info is not None: + exc_type, exc_value, exc_tb = exc_info + output = traceback.format_exception(exc_type, exc_value, exc_tb) + for line in output: + click.echo(line.rstrip(), err=True) + + if self._restore_backup(path, + settings=settings, + plugin_manager=plugin_manager, + datafolder=datafolder, + 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_invalid_backup=on_log_error): + click.echo(u"Restored from {}".format(path)) + else: + click.echo(u"Restoring from {} failed".format(path), err=True) + + return [backup_command, restore_command] + + ##~~ helpers + + def _get_backups(self): + backups = [] + for entry in scandir(self.get_plugin_data_folder()): + if is_hidden_path(entry.path): + continue + if not entry.is_file(): + continue + if not entry.name.endswith(".zip"): + continue + + backups.append(dict(name=entry.name, + date=entry.stat().st_mtime, + size=entry.stat().st_size, + url=flask.url_for("index") + "plugin/backup/download/" + entry.name)) + return backups + + def _get_unknown_plugins(self): + data_file = os.path.join(self.get_plugin_data_folder(), UNKNOWN_PLUGINS_FILE) + if os.path.exists(data_file): + try: + with codecs.open(data_file, mode="r", encoding="utf-8") as f: + unknown_plugins = json.load(f) + + assert isinstance(unknown_plugins, list) + assert all(map(lambda x: isinstance(x, dict) and "key" in x and "name" in x and "url" in x, unknown_plugins)) + + installed_plugins = self._plugin_manager.plugins + unknown_plugins = filter(lambda x: x["key"] not in installed_plugins, unknown_plugins) + if not unknown_plugins: + # no plugins left uninstalled, delete data file + try: + os.remove(data_file) + except: + self._logger.exception(u"Error while deleting list of unknown plugins at {}".format(data_file)) + + return unknown_plugins + except: + self._logger.exception(u"Error while reading list of unknown plugins from {}".format(data_file)) + try: + os.remove(data_file) + except: + self._logger.exception(u"Error while deleting list of unknown plugins at {}".format(data_file)) + + return [] + + @classmethod + def _clean_dir_backup(cls, basedir, + on_log_progress=None): + basedir_backup = basedir + ".bck" + + if os.path.exists(basedir_backup): + def remove_bck(): + if callable(on_log_progress): + on_log_progress(u"Found config folder backup from prior restore, deleting it...") + shutil.rmtree(basedir_backup) + if callable(on_log_progress): + on_log_progress(u"... deleted.") + + thread = threading.Thread(target=remove_bck) + thread.daemon = True + thread.start() + + @classmethod + def _get_disk_size(cls, path): + total = 0 + for entry in scandir(path): + if entry.is_dir(): + total += cls._get_disk_size(entry.path) + elif entry.is_file(): + total += entry.stat().st_size + return total + + @classmethod + def _free_space(cls, path, size): + from psutil import disk_usage + return disk_usage(path).free > size + + @classmethod + def _get_plugin_repository_data(cls, url, logger=None): + if logger is None: + logger = logging.getLogger(__name__) + + try: + r = requests.get(url, timeout=30) + r.raise_for_status() + except: + logger.exception(u"Error while fetching the plugin repository data from {}".format(url)) + return dict() + + from octoprint.plugins.pluginmanager import map_repository_entry + return dict((plugin["id"], plugin) for plugin in map(map_repository_entry, r.json())) + + @classmethod + def _install_plugin(cls, plugin, force_user=False, pip_args=None, on_log=None): + if pip_args is None: + pip_args = [] + + if on_log is None: + on_log = logging.getLogger(__name__).info + + # prepare pip caller + def log(prefix, *lines): + for line in lines: + on_log(u"{} {}".format(prefix, line.rstrip())) + + def log_call(*lines): + log(u">", *lines) + + def log_stdout(*lines): + log(u"<", *lines) + + def log_stderr(*lines): + log(u"!", *lines) + + if cls._pip_caller is None: + cls._pip_caller = LocalPipCaller(force_user=force_user) + + cls._pip_caller.on_log_call = log_call + cls._pip_caller.on_log_stdout = log_stdout + cls._pip_caller.on_log_stderr = log_stderr + + # install plugin + pip = ["install", sarge.shell_quote(plugin["archive"]), '--no-cache-dir'] + + if plugin.get("follow_dependency_links"): + pip.append("--process-dependency-links") + + if force_user: + pip.append("--user") + + if pip_args: + pip += pip_args + + cls._pip_caller.execute(*pip) + + @classmethod + def _create_backup(cls, name, + exclude=None, + settings=None, + plugin_manager=None, + datafolder=None, + on_backup_start=None, + on_backup_done=None, + on_backup_error=None): + try: + if exclude is None: + exclude = [] + + configfile = settings._configfile + basedir = settings._basedir + + 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() + + 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 + + if callable(on_backup_start): + on_backup_start(name, temporary_path, exclude) + + 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 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)) + + # 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 + + if folder in ("generated", "logs", "watched",): + continue + + add_to_zip(settings.global_get_basefolder(folder), + "basedir/" + folder.replace("_", "/"), + ignored=[own_folder,]) + + # backup anything else that might be lying around in our basedir + add_to_zip(basedir, "basedir", ignored=defaults + [own_folder, ]) + + # 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 + + plugins.append(dict(key=plugin.key, + name=plugin.name, + url=plugin.url)) + + 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, + settings=None, + plugin_manager=None, + datafolder=None, + on_install_plugins=None, + on_report_unknown_plugins=None, + on_invalid_backup=None, + on_log_progress=None, + on_log_error=None, + 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 + cls._clean_dir_backup(basedir, + on_log_progress=on_log_progress) + + plugin_repo = dict() + repo_url = settings.global_get(["plugins", "pluginmanager", "repository"]) + if repo_url: + plugin_repo = cls._get_plugin_repository_data(repo_url) + + if callable(on_restore_start): + on_restore_start(path) + + try: + + with zipfile.ZipFile(path, "r") as zip: + # read metadata + try: + metadata_zipinfo = zip.getinfo("metadata.json") + 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"], 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 + temp = tempfile.mkdtemp() + try: + if callable(on_log_progress): + on_log_progress(u"Unpacking backup to {}...".format(temp)) + abstemp = os.path.abspath(temp) + for member in zip.infolist(): + abspath = os.path.abspath(os.path.join(temp, member.filename)) + if abspath.startswith(abstemp): + zip.extract(member, temp) + + # sanity check + configfile = os.path.join(temp, "basedir", "config.yaml") + 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 + + with codecs.open(configfile) as f: + configdata = yaml.safe_load(f) + + if configdata.get("accessControl", dict()).get("enabled", True): + userfile = os.path.join(temp, "basedir", "users.yaml") + 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): + on_log_progress(u"Unpacked") + + # install available plugins + with codecs.open(os.path.join(temp, "plugin_list.json"), "r") as f: + plugins = json.load(f) + + known_plugins = [] + unknown_plugins = [] + if plugins: + if plugin_repo: + for plugin in plugins: + if plugin["key"] in plugin_manager.plugins: + # already installed + continue + + if plugin["key"] in plugin_repo: + # not installed, can be installed from repository url + known_plugins.append(plugin_repo[plugin["key"]]) + else: + # not installed, not installable + unknown_plugins.append(plugin) + + else: + # no repo, all plugins are not installable + unknown_plugins = plugins + + if callable(on_log_progress): + if known_plugins: + on_log_progress(u"Known and installable plugins: {}".format(u", ".join(map(lambda x: x["id"], known_plugins)))) + if unknown_plugins: + on_log_progress(u"Unknown plugins: {}".format(u", ".join(map(lambda x: x["key"], unknown_plugins)))) + + if callable(on_install_plugins): + on_install_plugins(known_plugins) + + if callable(on_report_unknown_plugins): + on_report_unknown_plugins(unknown_plugins) + + # move config data + basedir_backup = basedir + ".bck" + basedir_extracted = os.path.join(temp, "basedir") + + if callable(on_log_progress): + on_log_progress(u"Renaming {} to {}...".format(basedir, basedir_backup)) + os.rename(basedir, basedir_backup) + + try: + if callable(on_log_progress): + on_log_progress(u"Moving {} to {}...".format(basedir_extracted, basedir)) + os.rename(basedir_extracted, basedir) + except: + if callable(on_log_error): + on_log_error(u"Error while restoring config data", exc_info=sys.exc_info()) + on_log_error(u"Rolling back old config data") + + os.rename(basedir_backup, basedir) + + if callable(on_restore_failed): + on_restore_failed(path) + return False + + if unknown_plugins: + if callable(on_log_progress): + on_log_progress(u"Writing info file about unknown plugins") + + if not os.path.isdir(datafolder): + os.makedirs(datafolder) + + unknown_plugins_path = os.path.join(datafolder, UNKNOWN_PLUGINS_FILE) + try: + with codecs.open(unknown_plugins_path, mode="w", encoding="utf-8") as f: + json.dump(unknown_plugins, f) + except: + if callable(on_log_error): + on_log_error(u"Could not persist list of unknown plugins to {}".format(unknown_plugins_path), + exc_info = sys.exc_info()) + + finally: + if callable(on_log_progress): + on_log_progress(u"Removing temporary unpacked folder") + shutil.rmtree(temp) + + except: + 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: + # remove zip + if callable(on_log_progress): + on_log_progress(u"Removing temporary zip") + os.remove(path) + + # restart server + if restart_command: + import sarge + + 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: + if callable(on_log_error): + on_log_error(u"Error while restarting via command {}".format(restart_command), + exc_info=sys.exc_info()) + on_log_error(u"Please restart OctoPrint manually") + return False + + else: + if callable(on_restore_done): + on_restore_done(path) + + return True + + + def _send_client_message(self, message, payload=None): + if payload is None: + payload = dict() + payload["type"] = message + self._plugin_manager.send_plugin_message(self._identifier, payload) + + + +class InsufficientSpace(Exception): + pass + +__plugin_name__ = gettext(u"Backup & Restore") +__plugin_author__ = u"Gina Häußge" +__plugin_description__ = u"Backup & restore your OctoPrint settings and data" +__plugin_disabling_discouraged__ = gettext(u"Without this plugin you will no longer be able to backup " + u"& restore your OctoPrint settings and data.") +__plugin_license__ = u"AGPLv3" +__plugin_implementation__ = BackupPlugin() +__plugin_hooks__ = { + "octoprint.server.http.routes": __plugin_implementation__.route_hook, + "octoprint.server.http.bodysize": __plugin_implementation__.bodysize_hook, + "octoprint.cli.commands": __plugin_implementation__.cli_commands_hook +} diff --git a/src/octoprint/plugins/backup/static/clientjs/backup.js b/src/octoprint/plugins/backup/static/clientjs/backup.js new file mode 100644 index 000000000..5f2ee6e62 --- /dev/null +++ b/src/octoprint/plugins/backup/static/clientjs/backup.js @@ -0,0 +1,52 @@ +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define(["OctoPrintClient"], factory); + } else { + factory(global.OctoPrintClient); + } +})(this, function(OctoPrintClient) { + var OctoPrintBackupClient = function(base) { + this.base = base; + this.url = this.base.getBlueprintUrl("backup"); + }; + + OctoPrintBackupClient.prototype.get = function(refresh, opts) { + return this.base.get(this.url, opts); + }; + + OctoPrintBackupClient.prototype.createBackup = function(exclude, opts) { + exclude = exclude || []; + + var data = { + exclude: exclude + }; + + return this.base.postJson(this.url + "backup", data, opts); + }; + + OctoPrintBackupClient.prototype.deleteBackup = function(backup, opts) { + return this.base.delete(this.url + "backup/" + backup, opts); + }; + + OctoPrintBackupClient.prototype.restoreBackup = function(backup, opts) { + var data = { + path: backup + }; + + return this.base.postJson(this.url + "restore", data, opts); + }; + + OctoPrintBackupClient.prototype.restoreBackupFromUpload = function (file, data) { + data = data || {}; + + var filename = data.filename || undefined; + return this.base.upload(this.url + "restore", file, filename, data); + }; + + OctoPrintBackupClient.prototype.deleteUnknownPlugins = function (opts) { + return this.base.delete(this.url + "unknown_plugins", opts); + }; + + OctoPrintClient.registerPluginComponent("backup", OctoPrintBackupClient); + return OctoPrintBackupClient; +}); diff --git a/src/octoprint/plugins/backup/static/css/backup.css b/src/octoprint/plugins/backup/static/css/backup.css new file mode 100644 index 000000000..f3561ce93 --- /dev/null +++ b/src/octoprint/plugins/backup/static/css/backup.css @@ -0,0 +1 @@ +#settings_plugin_backup_backup_table .settings_plugin_backup_actions{width:75px;text-align:center}#settings_plugin_backup_backup_table .settings_plugin_backup_actions a{color:#000}#settings_plugin_backup_backup_table .settings_plugin_backup_date{width:200px;text-align:right}#settings_plugin_backup_backup_table .settings_plugin_backup_size{width:100px;text-align:right}#settings_plugin_backup_backup_table .settings_plugin_backup_checkbox{text-align:center;width:10px}#settings_plugin_backup_backup_table .settings_plugin_backup_checkbox input[type=checkbox]{margin-top:0}#settings_plugin_backup_restoredialog_output .message{font-weight:700}#settings_plugin_backup_restoredialog_output .error{font-weight:700;color:#900}#settings_plugin_backup_restoredialog_output .stdout{color:#333}#settings_plugin_backup_restoredialog_output .stderr{color:#900}#settings_plugin_backup_restoredialog_output .call{color:#009} \ No newline at end of file diff --git a/src/octoprint/plugins/backup/static/js/backup.js b/src/octoprint/plugins/backup/static/js/backup.js new file mode 100644 index 000000000..26929ec57 --- /dev/null +++ b/src/octoprint/plugins/backup/static/js/backup.js @@ -0,0 +1,289 @@ +$(function() { + function BackupViewModel(parameters) { + var self = this; + + self.loginState = parameters[0]; + self.settings = parameters[1]; + + self.backups = new ItemListHelper( + "plugin.backup.backups", + { + "date": function (a, b) { + // sorts descending + if (a["date"] > b["date"]) return -1; + if (a["date"] < b["date"]) return 1; + return 0; + } + }, + { + }, + "date", + [], + [], + 10 + ); + + self.markedForBackupDeletion = ko.observableArray([]); + + self.excludeFromBackup = ko.observableArray([]); + self.backupInProgress = ko.observable(false); + self.restoreSupported = ko.observable(true); + + self.backupUploadButton = $("#settings-backup-upload"); + self.backupUploadData = undefined; + self.backupUploadButton.fileupload({ + dataType: "json", + maxNumberOfFiles: 1, + autoUpload: false, + headers: OctoPrint.getRequestHeaders(), + add: function(e, data) { + if (data.files.length === 0) { + // no files? ignore + return false; + } + + self.backupUploadName(data.files[0].name); + self.backupUploadData = data; + }, + done: function(e, data) { + self.backupUploadName(undefined); + self.backupUploadData = undefined; + } + }); + self.backupUploadName = ko.observable(); + self.restoreInProgress = ko.observable(false); + self.restoreTitle = ko.observable(); + self.restoreDialog = undefined; + self.restoreOutput = undefined; + self.unknownPlugins = ko.observableArray([]); + + self.loglines = ko.observableArray([]); + + self.requestData = function() { + OctoPrint.plugins.backup.get() + .done(self.fromResponse); + }; + + self.fromResponse = function(response) { + self.backups.updateItems(response.backups); + self.unknownPlugins(response.unknown_plugins); + self.restoreSupported(response.restore_supported); + }; + + self.createBackup = function() { + var excluded = self.excludeFromBackup(); + OctoPrint.plugins.backup.createBackup(excluded) + .done(function() { + self.excludeFromBackup([]); + }) + }; + + self.removeBackup = function(backup) { + var perform = function() { + OctoPrint.plugins.backup.deleteBackup(backup) + .done(function() { + self.requestData(); + }); + }; + showConfirmationDialog(_.sprintf(gettext("You are about to delete backup file \"%(name)s\"."), {name: backup}), + perform); + }; + + 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}), + perform); + }; + + self.performRestoreFromUpload = 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()}), + perform); + }; + + self.deleteUnknownPluginRecord = function() { + var perform = function() { + OctoPrint.plugins.backup.deleteUnknownPlugins() + .done(function() { + self.requestData(); + }); + }; + showConfirmationDialog(gettext("You are about to delete the record of plugins unknown during the last restore."), + perform); + }; + + self.markFilesOnPage = function() { + self.markedForBackupDeletion(_.uniq(self.markedForBackupDeletion().concat(_.map(self.backups.paginatedItems(), "name")))); + }; + + self.markAllFiles = function() { + self.markedForBackupDeletion(_.map(self.backups.allItems, "name")); + }; + + self.clearMarkedFiles = function() { + self.markedForBackupDeletion.removeAll(); + }; + + self.removeMarkedFiles = function() { + var perform = function() { + self._bulkRemove(self.markedForBackupDeletion()) + .done(function() { + self.markedForBackupDeletion.removeAll(); + }); + }; + + showConfirmationDialog(_.sprintf(gettext("You are about to delete %(count)d backups."), {count: self.markedForBackupDeletion().length}), + perform); + }; + + self.onStartup = function() { + self.restoreDialog = $("#settings_plugin_backup_restoredialog"); + self.restoreOutput = $("#settings_plugin_backup_restoredialog_output"); + }; + + self.onSettingsShown = function() { + self.requestData(); + }; + + self.onDataUpdaterPluginMessage = function(plugin, data) { + if (plugin !== "backup") return; + + 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 octoprint.log for details. Error: %(error)s"), {error:data.error}), + type: "error", + hide: false + }); + } else if (data.type === "restore_started") { + self.loglines.push({line: gettext("Restoring from backup..."), stream: "message"}); + self.loglines.push({line: " ", stream: "message"}); + } 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"}); + self.restoreInProgress(false); + } else if (data.type === "restore_done") { + self.loglines.push({line: " ", stream: "message"}); + self.loglines.push({line: gettext("Restore successful! The server will now be restarted!"), stream: "message"}); + self.restoreInProgress(false); + } else if (data.type === "install_plugin") { + self.loglines.push({line: " ", stream: "message"}); + self.loglines.push({ + line: _.sprintf(gettext("Installing plugin \"%(plugin)s}\"..."), {plugin: data.plugin.name}), + stream: "message" + }); + } else if (data.type === "plugin_incompatible") { + self.loglines.push({line: " ", stream: "message"}); + self.loglines.push({ + line: _.sprintf(gettext("Cannot install plugin \"%(plugin)s\" due to it being incompatible to this OctoPrint version and/or underlying operating system"), {plugin: data.plugin.key}), + stream: "stderr" + }); + } else if (data.type === "unknown_plugins") { + if (data.plugins.length > 0) { + self.loglines.push({line: " ", stream: "message"}); + self.loglines.push({line: _.sprintf(gettext("There are %(count)d plugins you'll need to install manually since they aren't registered on the repository:"), {count: data.plugins.length}), stream: "message"}); + _.each(data.plugins, function(plugin) { + self.loglines.push({line: plugin.name + ": " + plugin.url, stream: "message"}); + }); + self.loglines.push({line: " ", stream: "message"}); + self.unknownPlugins(data.plugins); + } + } else if (data.type === "logline") { + self.loglines.push(self._preprocessLine({line: data.line, stream: data.stream})); + self._scrollRestoreOutputToEnd(); + } + }; + + self._scrollRestoreOutputToEnd = function() { + self.restoreOutput.scrollTop(self.restoreOutput[0].scrollHeight - self.restoreOutput.height()); + }; + + self._forcedStdoutLine = /You are using pip version .*?, however version .*? is available\.|You should consider upgrading via the '.*?' command\./; + self._preprocessLine = function(line) { + if (line.stream === "stderr" && line.line.match(self._forcedStdoutLine)) { + line.stream = "stdout"; + } + return line; + }; + + self._bulkRemove = function(files) { + var title, message, handler; + + title = gettext("Deleting backups"); + message = _.sprintf(gettext("Deleting %(count)d backups..."), {count: files.length}); + handler = function(filename) { + return OctoPrint.plugins.backup.deleteBackup(filename) + .done(function() { + deferred.notify(_.sprintf(gettext("Deleted %(filename)s..."), {filename: filename}), true); + }) + .fail(function(jqXHR) { + var short = _.sprintf(gettext("Deletion of %(filename)s failed, continuing..."), {filename: filename}); + var long = _.sprintf(gettext("Deletion of %(filename)s failed: %(error)s"), {filename: filename, error: jqXHR.responseText}); + deferred.notify(short, long, false); + }); + }; + + var deferred = $.Deferred(); + + var promise = deferred.promise(); + + var options = { + title: title, + message: message, + max: files.length, + output: true + }; + showProgressModal(options, promise); + + var requests = []; + _.each(files, function(filename) { + var request = handler(filename); + requests.push(request) + }); + $.when.apply($, _.map(requests, wrapPromiseWithAlways)) + .done(function() { + deferred.resolve(); + self.requestData(); + }); + + return promise; + }; + } + + OCTOPRINT_VIEWMODELS.push({ + construct: BackupViewModel, + dependencies: ["loginStateViewModel", "settingsViewModel"], + elements: ["#settings_plugin_backup"] + }); +}); diff --git a/src/octoprint/plugins/backup/static/less/backup.less b/src/octoprint/plugins/backup/static/less/backup.less new file mode 100644 index 000000000..6f90681ff --- /dev/null +++ b/src/octoprint/plugins/backup/static/less/backup.less @@ -0,0 +1,52 @@ +#settings_plugin_backup_backup_table { + .settings_plugin_backup_name { + } + .settings_plugin_backup_actions { + width: 75px; + text-align: center; + + a { + color: black; + } + } + .settings_plugin_backup_date { + width: 200px; + text-align: right; + } + .settings_plugin_backup_size { + width: 100px; + text-align: right; + } + + .settings_plugin_backup_checkbox { + text-align: center; + width: 10px; + + input[type="checkbox"] { + margin-top: 0; + } + } +} + +#settings_plugin_backup_restoredialog_output { + .message { + font-weight: bold; + } + + .error { + font-weight: bold; + color: #990000; + } + + .stdout { + color: #333333; + } + + .stderr { + color: #990000; + } + + .call { + color: #000099; + } +} diff --git a/src/octoprint/plugins/backup/templates/backup_settings.jinja2 b/src/octoprint/plugins/backup/templates/backup_settings.jinja2 new file mode 100644 index 000000000..e9546adb2 --- /dev/null +++ b/src/octoprint/plugins/backup/templates/backup_settings.jinja2 @@ -0,0 +1,135 @@ +
+ {% trans %} + Some plugins during the last restore could not be identified and hence not automatically installed. + Please install them manually, they are listed below including their stated homepages: + {% endtrans %} +
    +
  • :
  • +
+ {{ _('Delete record of unknown plugins') }} +
+ + +

{{ _('Existing backups') }}

+ +
+

{{ _('There are no backups. Maybe create one below?') }}

+
+
+

{{ _('These are the backups of your settings and files that already exist on this OctoPrint instance. You may delete, download or restore them.') }}

+ + + + + + + + + + + + + + + + + + + + + +
{{ _('Name') }}{{ _('Date') }}{{ _('Size') }}{{ _('Action') }}
 |  | 
+ +
+ +

{{ _('Create backup') }}

+ +

{{ _('Create a new backup of the current state.') }}

+ +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+

{{ _('Restore from uploaded backup') }}

+ +

{{ _('Restore settings & files from an uploaded backup archive.') }}

+ +
+
+ +
+
+ + {{ _('Browse...') }} + + + +
+
+
+ +
+
+ +
+
+
+
+ +
+ {{ _('Please note that the operating system that this OctoPrint server is running on does not support automatically restoring backups. You will have to restore your backups manually for now.', url='https://faq.octoprint.org/manual-restore') }} +
+ + diff --git a/src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2 b/src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2 index 58cd4bfa7..823e65212 100644 --- a/src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2 +++ b/src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2 @@ -1,14 +1,22 @@

{{ _('Access Control') }}

-{% trans %}

+{% trans safe_remote_url='https://octoprint.org/blog/2018/09/03/safe-remote-access/' %}

Please read the following, it is very important for your printer's health!

OctoPrint by default ships with Access Control enabled, meaning you won't be able to do anything with the printer unless you login first as a configured user. This is to prevent strangers - possibly with - malicious intent - to gain access to your printer via the internet or another untrustworthy network + malicious intent - to gain access to your printer via an untrustworthy network and using it in such a way that it is damaged or worse (i.e. causes a fire).

+

+ If you plan on accessing OctoPrint remotely over the internet, you should not only rely on the built-in + Access Control mechanisms however - + take additional precautions. + Your OctoPrint enabled printer is a critical home appliance you really should not give anyone who happens to be + connected to the internet access to - even read-only! An instance available publicly on the internet + will be found, and people will try to break it open. +

It looks like you haven't configured access control yet. Please set up a username and password for the initial administrator account who will have full access to both the printer and OctoPrint's settings, then click @@ -36,12 +44,12 @@ {% trans %}

- Note: In case that your OctoPrint installation is only accessible from within a trustworthy network and you don't + Note: In case that your OctoPrint installation is only accessible from within a trustworthy local network and you don't need Access Control for other reasons, you may alternatively disable Access Control. You should only do this if you are absolutely certain that only people you know and trust will be able to connect to it.

- Do NOT underestimate the risk of an unsecured access from the internet to your printer! + Do NOT underestimate the risk of access from the internet to your printer and OctoPrint instance!

{% endtrans %}
diff --git a/src/octoprint/plugins/cura/__init__.py b/src/octoprint/plugins/cura/__init__.py index 79bcd31c9..c78cfc0d0 100644 --- a/src/octoprint/plugins/cura/__init__.py +++ b/src/octoprint/plugins/cura/__init__.py @@ -312,7 +312,7 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin, working_dir)) import sarge - p = sarge.run(args, cwd=working_dir, async=True, stdout=sarge.Capture(), stderr=sarge.Capture()) + p = sarge.run(args, cwd=working_dir, async_=True, stdout=sarge.Capture(), stderr=sarge.Capture()) p.wait_events() self._slicing_commands[machinecode_path] = p.commands[0] diff --git a/src/octoprint/plugins/cura/profile.py b/src/octoprint/plugins/cura/profile.py index 7b74fcdde..ac60d7074 100644 --- a/src/octoprint/plugins/cura/profile.py +++ b/src/octoprint/plugins/cura/profile.py @@ -359,6 +359,8 @@ class Profile(object): regex_print_temperature = re.compile("print_temperature(\d?)") regex_strip_comments = re.compile(";.*$", flags=re.MULTILINE) + regex_broken_replacements = re.compile("\?([a-zA-Z0-9_]*)\?") + @classmethod def from_cura_ini(cls, path): import logging @@ -685,9 +687,9 @@ class Profile(object): gcode = defaults[key] if key in ("start_gcode", "end_gcode"): - return gcode[extruder_count-1] + return self.regex_broken_replacements.sub("{\\1}", gcode[extruder_count-1]) else: - return gcode + return self.regex_broken_replacements.sub("{\\1}", gcode) def get_profile_string(self): import base64 @@ -749,17 +751,16 @@ class Profile(object): if key == "start_gcode": contents = self.get_gcode_template("start_gcode", extruder_count=extruder_count) - prefix += self.get_start_gcode_prefix(contents) + prefix += self.get_start_gcode_prefix(contents, extruder_count=extruder_count) else: contents = self.get_gcode_template(key, extruder_count=extruder_count) return unicode(prefix + re.sub("(.)\{([^\}]*)\}", self.replaceTagMatch, contents).rstrip() + '\n' + postfix).strip().encode('utf-8') + '\n' - def get_start_gcode_prefix(self, contents): - extruder_count = self.get_int("extruder_amount") - + def get_start_gcode_prefix(self, contents, extruder_count=1): prefix = "" + without_comments = Profile.regex_strip_comments.sub("", contents) gcode_parameter_key = "S" if self.get("gcode_flavor") == GcodeFlavors.MACH3: @@ -773,12 +774,12 @@ class Profile(object): bed_temp = 0 if self.get_boolean("has_heated_bed"): bed_temp = self.get_float("print_bed_temperature") - include_bed_temp = bed_temp > 0 and not "{print_bed_temperature}" in Profile.regex_strip_comments.sub("", contents) + include_bed_temp = bed_temp > 0 and not "{print_bed_temperature}" in without_comments if include_bed_temp: prefix += "M140 {param}{bed_temp}\n".format(param=gcode_parameter_key, bed_temp=bed_temp) - if temp > 0 and not "{print_temperature}" in Profile.regex_strip_comments.sub("", contents): + if temp > 0 and not "{print_temperature}" in without_comments: if extruder_count > 0: def temp_line(temp, extruder, param, template): t = temp diff --git a/src/octoprint/plugins/cura/static/js/cura.js b/src/octoprint/plugins/cura/static/js/cura.js index a435065cb..9909b3b0a 100644 --- a/src/octoprint/plugins/cura/static/js/cura.js +++ b/src/octoprint/plugins/cura/static/js/cura.js @@ -181,6 +181,15 @@ $(function() { self.uploadDialog.modal("hide"); self.requestData(); self.slicingViewModel.requestData(); + }, + error: function(jqXHR, textStatus, errorThrown) { + self.uploadBusy(false); + new PNotify({ + title: gettext("Profile import failed"), + text: gettext("Could not import the provided profile, it might be invalid. Check octoprint.log for details"), + type: "error", + hide: false + }); } }); diff --git a/src/octoprint/plugins/discovery/__init__.py b/src/octoprint/plugins/discovery/__init__.py index 604e6337e..d5fb2fb41 100644 --- a/src/octoprint/plugins/discovery/__init__.py +++ b/src/octoprint/plugins/discovery/__init__.py @@ -194,8 +194,20 @@ class DiscoveryPlugin(octoprint.plugin.StartupPlugin, params["txtRecord"] = pybonjour.TXTRecord(txt_record) key = (reg_type, port) - self._sd_refs[key] = pybonjour.DNSServiceRegister(**params) - self._logger.info(u"Registered {name} for {reg_type}".format(**locals())) + + counter = 1 + while True: + try: + self._sd_refs[key] = pybonjour.DNSServiceRegister(**params) + self._logger.info(u"Registered '{name}' for {regtype}".format(**params)) + return True + except pybonjour.BonjourError as be: + if be.errorCode == pybonjour.kDNSServiceErr_NameConflict: + # Name already registered by different service, let's try a counter postfix. See #2852 + counter += 1 + params["name"] = u"{} ({})".format(name, counter) + else: + raise def zeroconf_unregister(self, reg_type, port=None): """ @@ -601,8 +613,14 @@ class DiscoveryPlugin(octoprint.plugin.StartupPlugin, alive message """ - from BaseHTTPServer import BaseHTTPRequestHandler - from StringIO import StringIO + try: + # noinspection PyCompatibility + from http.server import BaseHTTPRequestHandler + except ImportError: + # noinspection PyCompatibility + from BaseHTTPServer import BaseHTTPRequestHandler + + from io import BytesIO import socket socket.setdefaulttimeout(timeout) @@ -617,8 +635,9 @@ class DiscoveryPlugin(octoprint.plugin.StartupPlugin, class Request(BaseHTTPRequestHandler): + # noinspection PyMissingConstructor def __init__(self, request_text): - self.rfile = StringIO(request_text) + self.rfile = BytesIO(request_text) self.raw_requestline = self.rfile.readline() self.error_code = self.error_message = None self.parse_request() diff --git a/src/octoprint/plugins/forcelogin/__init__.py b/src/octoprint/plugins/forcelogin/__init__.py new file mode 100644 index 000000000..0f6ea9cdd --- /dev/null +++ b/src/octoprint/plugins/forcelogin/__init__.py @@ -0,0 +1,183 @@ +# coding=utf-8 +from __future__ import absolute_import, division, print_function, unicode_literals + +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2018 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import octoprint.plugin + +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( + js=["js/viewmodel.js"] + ) + + def will_handle_ui(self, request): + if self._user_manager.enabled and not self._user_manager.hasBeenCustomized(): + # ACL hasn't been configured yet, make an exception + return False + + from octoprint.server.util.flask import passive_login + + result = passive_login() + if hasattr(result, "status_code") and result.status_code == 200: + # passive login successful, no need to handle that + return False + else: + return True + + def on_ui_render(self, now, request, render_kwargs): + from flask import render_template, make_response + + """ + Support theming of the login dialog, just in case the core UI is themed as well. + + Example usage by a plugin: + + def forcelogin_theming(): + from flask import url_for + return [url_for("plugin.myplugin.static", filename="css/forcelogin_theme.css")] + + __plugin_hooks__ = { + "octoprint.plugin.forcelogin.theming": forcelogin_theming + } + + Only a list of ready-made URLs to CSS files is supported, neither LESS nor JS. Best use + url_for like in the example above to be prepared for any configured prefix URLs. + """ + additional_assets = [] + for name, hook in self._plugin_manager.get_hooks("octoprint.plugin.forcelogin.theming").items(): + try: + assets = hook() + if isinstance(assets, (tuple, list)): + additional_assets += assets + except: + self._logger.exception("Error fetching theming CSS to include from plugin {}".format(name)) + + render_kwargs.update(dict(forcelogin_theming=additional_assets)) + return make_response(render_template("forcelogin_index.jinja2", **render_kwargs)) + + def get_ui_custom_tracked_files(self): + from os.path import join as opj + + paths = [opj("static", "css", "forcelogin.css"), + opj("static", "js", "main.js"), + opj("static", "js", "viewmodel.js"), + opj("static", "less", "forcelogin.less"), + opj("templates", "parts", "forcelogin_css.jinja2"), + opj("templates", "parts", "forcelogin_javascripts.jinja2"), + opj("templates", "forcelogin_index.jinja2")] + + return [opj(self._basefolder, path) for path in paths] + + def get_ui_preemptive_caching_enabled(self): + return False + + def get_before_request_handlers(self): + def check_login_required(): + 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 + + user = flask_login.current_user + if user is None or user.is_anonymous() or not user.is_active(): + return flask.make_response("Forbidden", 403) + + return [check_login_required] + + def access_validator(self, request): + 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 + + user = get_flask_user_from_request(request) + if user is None or not user.is_authenticated(): + raise tornado.web.HTTPError(403) + + def socket_register_validator(self, socket, user): + 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() + + 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 + return True + elif not self._user_manager.enabled: + # ACL isn't enabled + return True + + if message in ("connected", "reauthRequired"): + return True + + 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" +__plugin_author__ = "Gina Häußge" +__plugin_description__ = "Forces users to login, disables read-only mode." +__plugin_disabling_discouraged__ = gettext("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!") + +__plugin_implementation__ = ForceLoginPlugin() +__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 +} diff --git a/src/octoprint/plugins/forcelogin/static/css/forcelogin.css b/src/octoprint/plugins/forcelogin/static/css/forcelogin.css new file mode 100644 index 000000000..73e8fe2af --- /dev/null +++ b/src/octoprint/plugins/forcelogin/static/css/forcelogin.css @@ -0,0 +1 @@ +body{padding-top:40px;padding-bottom:40px;background-color:#f5f5f5}.form-signin{max-width:300px;padding:19px 29px 29px;margin:0 auto 20px;background-color:#fff;border:1px solid #e5e5e5;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.form-signin .form-signin-heading,.form-signin .checkbox{margin-bottom:10px}.form-signin input[type=text],.form-signin input[type=password]{font-size:16px;height:auto;margin-bottom:15px;padding:7px 9px}#login-error,#login-offline{display:none}#login-error.in,#login-offline.in{display:block}#login-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:none}#login-overlay.in{display:block}#login-overlay .background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}#login-overlay .wrapper{position:absolute;top:0;bottom:0;left:0;right:0}#login-overlay .wrapper .outer{display:table;width:100%;height:100%}#login-overlay .wrapper .outer .inner{display:table-cell;vertical-align:middle}#login-overlay .wrapper .outer .inner .content{text-align:center;color:#fff} \ No newline at end of file diff --git a/src/octoprint/plugins/forcelogin/static/js/main.js b/src/octoprint/plugins/forcelogin/static/js/main.js new file mode 100644 index 000000000..e46bdf840 --- /dev/null +++ b/src/octoprint/plugins/forcelogin/static/js/main.js @@ -0,0 +1,72 @@ +/* + * Will get included into the login dialog, NOT into the regular OctoPrint + * web application. + */ + +$(function() { + var overlayElement = $("#login-overlay"); + var errorElement = $("#login-error"); + var offlineElement = $("#login-offline"); + var buttonElement = $("#login-button"); + var reconnectElement = $("#login-reconnect"); + + buttonElement.click(function() { + var usernameElement = $("#login-user"); + var passwordElement = $("#login-password"); + var rememberElement = $("#login-remember"); + + var username = usernameElement.val(); + var password = passwordElement.val(); + var remember = rememberElement.checked; + + overlayElement.addClass("in"); + errorElement.removeClass("in"); + + OctoPrint.browser.login(username, password, remember) + .done(function() { + location.reload(); + }) + .fail(function() { + usernameElement.val(""); + passwordElement.val(""); + + overlayElement.removeClass("in"); + errorElement.addClass("in"); + }); + + return false; + }); + + var OctoPrint = window.OctoPrint; + + OctoPrint.options.baseurl = BASE_URL; + + OctoPrint.socket.onMessage("connected", function(data) { + var payload = data.data; + OctoPrint.options.apikey = payload.apikey; + + // update the API key directly in jquery's ajax options too, + // to ensure the fileupload plugin and any plugins still using + // $.ajax directly still work fine too + UI_API_KEY = payload["apikey"]; + $.ajaxSetup({ + headers: {"X-Api-Key": UI_API_KEY} + }); + }); + + OctoPrint.socket.onConnected = function() { + buttonElement.prop("disabled", false); + offlineElement.removeClass("in"); + }; + + OctoPrint.socket.onDisconnected = function() { + buttonElement.prop("disabled", true); + offlineElement.addClass("in"); + }; + + reconnectElement.click(function() { + OctoPrint.socket.reconnect(); + }); + + OctoPrint.socket.connect(); +}); diff --git a/src/octoprint/plugins/forcelogin/static/js/viewmodel.js b/src/octoprint/plugins/forcelogin/static/js/viewmodel.js new file mode 100644 index 000000000..9d33e09f3 --- /dev/null +++ b/src/octoprint/plugins/forcelogin/static/js/viewmodel.js @@ -0,0 +1,17 @@ +/* + * View model that takes care to redirect to / on logout in the regular + * OctoPrint web application. + */ + +$(function() { + function ForceLoginViewModel(parameters) { + var self = this; + + self.onUserLoggedOut = function() { + location.reload(); + } + } + + // view model class, parameters for constructor, container to bind to + ADDITIONAL_VIEWMODELS.push([ForceLoginViewModel, [], []]); +}); diff --git a/src/octoprint/plugins/forcelogin/static/less/forcelogin.less b/src/octoprint/plugins/forcelogin/static/less/forcelogin.less new file mode 100644 index 000000000..615f51202 --- /dev/null +++ b/src/octoprint/plugins/forcelogin/static/less/forcelogin.less @@ -0,0 +1,90 @@ +body { + padding-top: 40px; + padding-bottom: 40px; + background-color: #f5f5f5; +} + +.form-signin { + max-width: 300px; + padding: 19px 29px 29px; + margin: 0 auto 20px; + background-color: #fff; + border: 1px solid #e5e5e5; + -webkit-border-radius: 5px; + -moz-border-radius: 5px; + border-radius: 5px; + -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05); + -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05); + box-shadow: 0 1px 2px rgba(0,0,0,.05); + + .form-signin-heading, .checkbox { + margin-bottom: 10px; + } + + input[type="text"], input[type="password"] { + font-size: 16px; + height: auto; + margin-bottom: 15px; + padding: 7px 9px; + } +} + +#login-error, +#login-offline { + display: none; + + &.in { + display: block; + } +} + +#login-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: 10000; + display: none; + + &.in { + display: block; + } + + .background { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: #000000; + filter:alpha(opacity=50); + -moz-opacity:0.5; + -khtml-opacity: 0.5; + opacity: 0.5; + } + + .wrapper { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + + .outer { + display: table; + width: 100%; + height: 100%; + + .inner { + display: table-cell; + vertical-align: middle; + + .content { + text-align: center; + color: white; + } + } + } + } +} diff --git a/src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2 b/src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2 new file mode 100644 index 000000000..3b8b36ce4 --- /dev/null +++ b/src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2 @@ -0,0 +1,39 @@ + + + OctoPrint Login + + {% include "parts/forcelogin_css.jinja2" %} + + {% include "parts/forcelogin_javascripts.jinja2" %} + + +
+ +
+ +
+
+
+
+
+
+ +
+
+
+
+
+ + diff --git a/src/octoprint/plugins/forcelogin/templates/parts/forcelogin_css.jinja2 b/src/octoprint/plugins/forcelogin/templates/parts/forcelogin_css.jinja2 new file mode 100644 index 000000000..f0df93c78 --- /dev/null +++ b/src/octoprint/plugins/forcelogin/templates/parts/forcelogin_css.jinja2 @@ -0,0 +1,10 @@ + + + + + + + +{% for url in forcelogin_theming %} + +{% endfor %} diff --git a/src/octoprint/plugins/forcelogin/templates/parts/forcelogin_javascripts.jinja2 b/src/octoprint/plugins/forcelogin/templates/parts/forcelogin_javascripts.jinja2 new file mode 100644 index 000000000..962955914 --- /dev/null +++ b/src/octoprint/plugins/forcelogin/templates/parts/forcelogin_javascripts.jinja2 @@ -0,0 +1,15 @@ + + + + + + + + +{% assets "js_client" %} + +{% endassets %} + + diff --git a/src/octoprint/plugins/logging/__init__.py b/src/octoprint/plugins/logging/__init__.py index ed11c1c28..9b7c9bd74 100644 --- a/src/octoprint/plugins/logging/__init__.py +++ b/src/octoprint/plugins/logging/__init__.py @@ -195,6 +195,7 @@ class LoggingPlugin(octoprint.plugin.AssetPlugin, def get_assets(self): return dict(js=["js/logging.js"], + clientjs=["clientjs/logging.js"], less=["less/logging.less"], css=["css/logging.css"]) diff --git a/src/octoprint/plugins/logging/static/clientjs/logging.js b/src/octoprint/plugins/logging/static/clientjs/logging.js new file mode 100644 index 000000000..23b90f85d --- /dev/null +++ b/src/octoprint/plugins/logging/static/clientjs/logging.js @@ -0,0 +1,68 @@ +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define(["OctoPrintClient"], factory); + } else { + factory(global.OctoPrintClient); + } +})(this, function(OctoPrintClient) { + + var OctoPrintLoggingClient = function(base) { + this.base = base; + + this.baseUrl = this.base.getBlueprintUrl("logging"); + this.logsUrl = this.baseUrl + "logs"; + this.setupUrl = this.baseUrl + "setup"; + }; + + OctoPrintLoggingClient.prototype.get = function(opts) { + return this.base.get(this.baseUrl, opts); + }; + + OctoPrintLoggingClient.prototype.listLogs = function(opts) { + return this.base.get(this.logsUrl, opts); + }; + + OctoPrintLoggingClient.prototype.deleteLog = function(file, opts) { + var fileUrl = this.logsUrl + "/" + file; + return this.base.delete(fileUrl, opts); + }; + + OctoPrintLoggingClient.prototype.downloadLog = function(file, opts) { + var fileUrl = this.logsUrl + "/" + file; + return this.base.download(fileUrl, opts); + }; + + OctoPrintLoggingClient.prototype.updateLevels = function(config, opts) { + return this.base.putJson(this.setupUrl + "/levels", config, opts); + }; + + //~~ wrapper for backwards compatibility + + var DeprecatedOctoPrintLogsClient = function(base) { + this.base = base; + this.wrapped = this.base.plugins.logging; + }; + + DeprecatedOctoPrintLogsClient.prototype.list = function(opts) { + log.warn("OctoPrintClient.logs.list has been deprecated as of OctoPrint 1.3.7, use OctoPrintClient.plugins.logging.listLogs instead"); + return this.wrapped.listLogs(opts); + }; + + DeprecatedOctoPrintLogsClient.prototype.delete = function(file, opts) { + log.warn("OctoPrintClient.logs.delete has been deprecated as of OctoPrint 1.3.7, use OctoPrintClient.plugins.logging.deleteLog instead"); + return this.wrapped.deleteLog(file, opts); + }; + + DeprecatedOctoPrintLogsClient.prototype.download = function(file, opts) { + log.warn("OctoPrintClient.logs.download has been deprecated as of OctoPrint 1.3.7, use OctoPrintClient.plugins.logging.downloadLog instead"); + return this.wrapped.downloadLog(file, opts); + }; + + // register plugin component + OctoPrintClient.registerPluginComponent("logging", OctoPrintLoggingClient); + + // also register deprecated client under old endpoint + OctoPrintClient.registerComponent("logs", DeprecatedOctoPrintLogsClient); + + return OctoPrintLoggingClient; +}); diff --git a/src/octoprint/plugins/logging/static/js/logging.js b/src/octoprint/plugins/logging/static/js/logging.js index c4131debb..2f0f16988 100644 --- a/src/octoprint/plugins/logging/static/js/logging.js +++ b/src/octoprint/plugins/logging/static/js/logging.js @@ -1,72 +1,3 @@ -(function (global, factory) { - if (typeof define === "function" && define.amd) { - define(["OctoPrintClient"], factory); - } else { - factory(global.OctoPrintClient); - } -})(this, function(OctoPrintClient) { - - var OctoPrintLoggingClient = function(base) { - this.base = base; - - this.baseUrl = this.base.getBlueprintUrl("logging"); - this.logsUrl = this.baseUrl + "logs"; - this.setupUrl = this.baseUrl + "setup"; - }; - - OctoPrintLoggingClient.prototype.get = function(opts) { - return this.base.get(this.baseUrl, opts); - }; - - OctoPrintLoggingClient.prototype.listLogs = function(opts) { - return this.base.get(this.logsUrl, opts); - }; - - OctoPrintLoggingClient.prototype.deleteLog = function(file, opts) { - var fileUrl = this.logsUrl + "/" + file; - return this.base.delete(fileUrl, opts); - }; - - OctoPrintLoggingClient.prototype.downloadLog = function(file, opts) { - var fileUrl = this.logsUrl + "/" + file; - return this.base.download(fileUrl, opts); - }; - - OctoPrintLoggingClient.prototype.updateLevels = function(config, opts) { - return this.base.putJson(this.setupUrl + "/levels", config, opts); - }; - - //~~ wrapper for backwards compatibility - - var DeprecatedOctoPrintLogsClient = function(base) { - this.base = base; - this.wrapped = this.base.plugins.logging; - }; - - DeprecatedOctoPrintLogsClient.prototype.list = function(opts) { - log.warn("OctoPrintClient.logs.list has been deprecated as of OctoPrint 1.3.7, use OctoPrintClient.plugins.logging.listLogs instead"); - return this.wrapped.listLogs(opts); - }; - - DeprecatedOctoPrintLogsClient.prototype.delete = function(file, opts) { - log.warn("OctoPrintClient.logs.delete has been deprecated as of OctoPrint 1.3.7, use OctoPrintClient.plugins.logging.deleteLog instead"); - return this.wrapped.deleteLog(file, opts); - }; - - DeprecatedOctoPrintLogsClient.prototype.download = function(file, opts) { - log.warn("OctoPrintClient.logs.download has been deprecated as of OctoPrint 1.3.7, use OctoPrintClient.plugins.logging.downloadLog instead"); - return this.wrapped.downloadLog(file, opts); - }; - - // register plugin component - OctoPrintClient.registerPluginComponent("logging", OctoPrintLoggingClient); - - // also register deprecated client under old endpoint - OctoPrintClient.registerComponent("logs", DeprecatedOctoPrintLogsClient); - - return OctoPrintLoggingClient; -}); - $(function() { function LoggingViewModel(parameters) { var self = this; diff --git a/src/octoprint/plugins/octopi_support/__init__.py b/src/octoprint/plugins/octopi_support/__init__.py deleted file mode 100644 index 3885b6525..000000000 --- a/src/octoprint/plugins/octopi_support/__init__.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding=utf-8 -from __future__ import absolute_import, division, print_function - -__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' -__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License" - -import flask -import os - -from flask_babel import gettext - -import octoprint.plugin - -_OCTOPI_VERSION_PATH = "/etc/octopi_version" -_CPUINFO_PATH = "/proc/cpuinfo" - -# based on https://elinux.org/RPi_HardwareHistory#Which_Pi_have_I_got.3F -_RPI_REVISION_MAP = { - "Beta": "1B (Beta)", - "0002": "1B", - "0003": "1B", - "0004": "1B", - "0005": "1B", - "0006": "1B", - "0007": "1A", - "0008": "1A", - "0009": "1A", - "000d": "1B", - "000e": "1B", - "000f": "1B", - "0010": "B+", - "0011": "CM1", - "0012": "A+", - "0013": "B+", - "0014": "CM1", - "0015": "A+", - "a01040": "2B", - "a01041": "2B", - "a21041": "2B", - "a22042": "2B", - "900021": "A+", - "900032": "B+", - "900092": "Zero", - "900093": "Zero", - "920093": "Zero", - "9000c1": "Zero W", - "a02082": "3B", - "a020a0": "CM3", - "a22082": "3B", - "a32082": "3B", -} - - -def get_octopi_version(): - with open(_OCTOPI_VERSION_PATH, "r") as f: - version_line = f.readline() - return version_line.strip() - - -def get_pi_cpuinfo(): - fields = dict(revision="Revision", - hardware="Hardware", - serial="Serial") - - result = dict() - with open(_CPUINFO_PATH) as f: - for line in f: - if not line: - continue - - for key, prefix in fields.items(): - if line.startswith(prefix): - result[key] = line[line.index(":") + 1:].strip() - - return result - - -def get_pi_model(hardware, revision): - if hardware not in ("BCM2835",): - return "unknown" - - if revision.startswith("1000"): - # strip flag for over-volted (https://elinux.org/RPi_HardwareHistory#Which_Pi_have_I_got.3F) - revision = revision[4:] - - return _RPI_REVISION_MAP.get(revision.lower(), "unknown") - - -class OctoPiSupportPlugin(octoprint.plugin.EnvironmentDetectionPlugin, - octoprint.plugin.SimpleApiPlugin, - octoprint.plugin.AssetPlugin, - octoprint.plugin.TemplatePlugin): - - # noinspection PyMissingConstructor - def __init__(self): - self._version = None - self._cpuinfo = None - self._model = None - - #~~ EnvironmentDetectionPlugin - - def get_additional_environment(self): - return dict(version=self._get_version(), - revision=self._get_cpuinfo().get("revision", "unknown"), - model=self._get_model()) - - #~~ SimpleApiPlugin - - def on_api_get(self, request): - return flask.jsonify(version=self._get_version()) - - #~~ AssetPlugin - - def get_assets(self): - return dict( - js=["js/octopi_support.js"], - css=["css/octopi_support.css"] - ) - - #~~ TemplatePlugin - - def get_template_configs(self): - return [ - dict(type="about", name="About OctoPi", template="octopi_support_about.jinja2") - ] - - def get_template_vars(self): - return dict(version=self._get_version()) - - #~~ Helpers - - def _get_version(self): - if self._version is None: - try: - self._version = get_octopi_version() - except: - self._logger.exception("Error while reading OctoPi version from file {}".format(_OCTOPI_VERSION_PATH)) - self._version = "unknown" - return self._version - - def _get_model(self): - if self._model is None: - try: - cpuinfo = self._get_cpuinfo() - self._model = get_pi_model(cpuinfo.get("hardware", "unknown"), - cpuinfo.get("revision", "unknown")) - except: - self._logger.exception("Error while detecting RPi model") - self._model = "unknown" - return self._model - - def _get_cpuinfo(self): - if self._cpuinfo is None: - try: - self._cpuinfo = get_pi_cpuinfo() - except: - self._logger.exception("Error while fetching cpu info") - self._cpuinfo = dict() - return self._cpuinfo - -__plugin_name__ = "OctoPi Support Plugin" -__plugin_author__ = "Gina Häußge" -__plugin_description__ = "Provides additional information about your OctoPi instance in the UI." -__plugin_disabling_discouraged__ = gettext("Without this plugin OctoPrint will no longer be able to " - "provide additional information about your OctoPi instance," - "which will make it more tricky to help you if you need support.") -__plugin_license__ = "AGPLv3" - -def __plugin_check__(): - from octoprint.util.platform import get_os - return get_os() == "linux" and os.path.exists(_OCTOPI_VERSION_PATH) - -def __plugin_load__(): - global __plugin_implementation__ - __plugin_implementation__ = OctoPiSupportPlugin() diff --git a/src/octoprint/plugins/octopi_support/static/css/octopi_support.css b/src/octoprint/plugins/octopi_support/static/css/octopi_support.css deleted file mode 100644 index 61b3a10ef..000000000 --- a/src/octoprint/plugins/octopi_support/static/css/octopi_support.css +++ /dev/null @@ -1,3 +0,0 @@ -#octopi_support_footer { - white-space: nowrap; -} diff --git a/src/octoprint/plugins/octopi_support/static/js/octopi_support.js b/src/octoprint/plugins/octopi_support/static/js/octopi_support.js deleted file mode 100644 index b27e32c96..000000000 --- a/src/octoprint/plugins/octopi_support/static/js/octopi_support.js +++ /dev/null @@ -1,50 +0,0 @@ -(function (global, factory) { - if (typeof define === "function" && define.amd) { - define(["OctoPrintClient"], factory); - } else { - factory(global.OctoPrintClient); - } -})(this, function(OctoPrintClient) { - var OctoPrintOctoPiSupportClient = function(base) { - this.base = base; - }; - - OctoPrintOctoPiSupportClient.prototype.get = function(opts) { - return this.base.get(this.base.getSimpleApiUrl("octopi_support")); - }; - - OctoPrintClient.registerPluginComponent("octopi_support", OctoPrintOctoPiSupportClient); - return OctoPrintOctoPiSupportClient; -}); - -$(function() { - - function OctoPiSupportViewModel(parameters) { - var self = this; - - self.requestData = function() { - OctoPrint.plugins.octopi_support.get() - .done(function(response) { - $("#octopi_support_footer").remove(); - if (!response.version) return; - - var octoPrintVersion = $(".footer span.version"); - var octoPiVersion = $(" " + gettext("running on") + " " + gettext("OctoPi") - + " " + response.version + "") - $(octoPiVersion).insertAfter(octoPrintVersion); - }) - }; - - self.onStartup = function() { - self.requestData(); - }; - - self.onServerReconnect = function() { - self.requestData(); - }; - } - - OCTOPRINT_VIEWMODELS.push({ - construct: OctoPiSupportViewModel - }); -}); diff --git a/src/octoprint/plugins/pi_support/__init__.py b/src/octoprint/plugins/pi_support/__init__.py new file mode 100644 index 000000000..8ea0af7be --- /dev/null +++ b/src/octoprint/plugins/pi_support/__init__.py @@ -0,0 +1,320 @@ +# coding=utf-8 +from __future__ import absolute_import, division, print_function + +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import flask +import os +import sarge + +from flask_babel import gettext +from octoprint.util import RepeatedTimer + +import octoprint.plugin + +_PROC_DT_MODEL_PATH = "/proc/device-tree/model" +_OCTOPI_VERSION_PATH = "/etc/octopi_version" +_VCGENCMD_THROTTLE = "/usr/bin/vcgencmd get_throttled" + +### uncomment for local debugging +#import sys +#base = os.path.realpath(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "tests", "plugins", "pi_support", "fakes")) +#_PROC_DT_MODEL_PATH = os.path.join(base, "fake_model.txt") +#_OCTOPI_VERSION_PATH = os.path.join(base, "fake_octopi.txt") +#_VCGENCMD_THROTTLE = "{} {}".format(sys.executable, os.path.join(base, "fake_vcgencmd.py")) +#import itertools +#_VCGENCMD_OUTPUT = itertools.chain(iter(("0x0", "0x0", "0x50005", "0x50000", "0x70007")), itertools.repeat("0x70000")) + + +# see https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=147781&start=50#p972790 +_FLAG_UNDERVOLTAGE = 1 << 0 +_FLAG_FREQ_CAPPED = 1 << 1 +_FLAG_THROTTLED = 1 << 2 +_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=0): + if value == 0: + return ThrottleState() + + kwargs = dict(undervoltage=_FLAG_UNDERVOLTAGE & value == _FLAG_UNDERVOLTAGE, + freq_capped=_FLAG_FREQ_CAPPED & value == _FLAG_FREQ_CAPPED, + 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, + 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 + self._past_undervoltage = False + self._past_freq_capped = False + self._past_throttled = False + + for key, value in kwargs.items(): + local_key = "_{}".format(key) + if hasattr(self, local_key) and isinstance(value, bool): + setattr(self, local_key, value) + + @property + def undervoltage(self): + return self.current_undervoltage or self.past_undervoltage + + @property + def current_undervoltage(self): + return self._undervoltage + + @property + def past_undervoltage(self): + return self._past_undervoltage + + @property + def overheat(self): + return self.current_overheat or self.past_overheat + + @property + def current_overheat(self): + return self._freq_capped + + @property + def past_overheat(self): + return self._past_freq_capped + + @property + def issue(self): + return self.current_issue or self.past_issue + + @property + def current_issue(self): + return self._undervoltage or self._freq_capped or self._throttled + + @property + def past_issue(self): + return self._past_undervoltage or self._past_freq_capped or self._past_throttled + + def __eq__(self, other): + if not isinstance(other, ThrottleState): + return False + + return self._undervoltage == other._undervoltage \ + and self._freq_capped == other._freq_capped \ + and self._throttled == other._throttled \ + and self._past_undervoltage == other._past_undervoltage \ + and self._past_freq_capped == other._past_freq_capped \ + and self._past_throttled == other._past_throttled + + def as_dict(self): + 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, + current_issue=self.current_issue, + past_issue=self.past_issue) + + +_proc_dt_model = None +def get_proc_dt_model(): + global _proc_dt_model + + if _proc_dt_model is None: + with open(_PROC_DT_MODEL_PATH, "r") as f: + _proc_dt_model = f.readline().strip(" \t\r\n\0") + + return _proc_dt_model + + +def get_vcgencmd_throttled_state(command): + output = sarge.get_stdout(command) + #output = "throttled={}".format(next(_VCGENCMD_OUTPUT)) # for local debugging + if not "throttled=0x" in output: + raise ValueError("cannot parse \"{}\" output: {}".format(command, output)) + + value = output[len("throttled="):].strip(" \t\r\n\0") + value = int(value, 0) + return ThrottleState.from_value(value) + + +def is_octopi(): + return os.path.exists(_OCTOPI_VERSION_PATH) + + +_octopi_version = None +def get_octopi_version(): + global _octopi_version + + if _octopi_version is None: + with open(_OCTOPI_VERSION_PATH, "r") as f: + _octopi_version = f.readline().strip(" \t\r\n\0") + + return _octopi_version + + +class PiSupportPlugin(octoprint.plugin.EnvironmentDetectionPlugin, + octoprint.plugin.SimpleApiPlugin, + octoprint.plugin.AssetPlugin, + octoprint.plugin.TemplatePlugin, + octoprint.plugin.StartupPlugin, + octoprint.plugin.SettingsPlugin): + + # noinspection PyMissingConstructor + def __init__(self): + self._throttle_state = ThrottleState() + self._throttle_check = None + self._throttle_undervoltage = False + self._throttle_overheat = False + self._throttle_functional = True + + #~~ EnvironmentDetectionPlugin + + def get_additional_environment(self): + result = dict(model=get_proc_dt_model()) + + if is_octopi(): + result.update(dict(octopi_version=get_octopi_version())) + + return result + + #~~ SimpleApiPlugin + + def on_api_get(self, request): + result = dict(throttle_state=self._throttle_state.as_dict()) + result.update(self.get_additional_environment()) + return flask.jsonify(**result) + + #~~ AssetPlugin + + def get_assets(self): + return dict( + js=["js/pi_support.js"], + clientjs=["clientjs/pi_support.js"], + css=["css/pi_support.css"] + ) + + #~~ TemplatePlugin + + def get_template_configs(self): + configs = [dict(type="settings", name=gettext("Pi Support"), template="pi_support_settings.jinja2", custom_bindings=False)] + + if is_octopi(): + configs.append(dict(type="about", name="About OctoPi", template="pi_support_about_octopi.jinja2")) + + return configs + + def get_template_vars(self): + return self.get_additional_environment() + + #~~ StartupPlugin + + def on_startup(self, *args, **kwargs): + if self._settings.get_boolean(["vcgencmd_throttle_check_enabled"]): + self._check_throttled_state() + self._throttle_check = RepeatedTimer(self._check_throttled_state_interval, + self._check_throttled_state, + condition=self._check_throttled_state_condition) + self._throttle_check.start() + + #~~ SettingsPlugin + + def get_settings_defaults(self): + return dict(vcgencmd_throttle_check_enabled=True, + vcgencmd_throttle_check_command=_VCGENCMD_THROTTLE) + + def get_settings_restricted_paths(self): + return dict(admin=[["vcgencmd_throttle_check_enabled"], ["vcgencmd_throttle_check_command"]]) + + #~~ Helpers + + def _check_throttled_state_interval(self): + if self._throttle_state.current_issue: + # check state every 30s if something's currently amiss + return 30 + else: + # check state every 5min if nothing's currently amiss + return 300 + + 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"]) + + self._logger.debug("Retrieving throttle state via \"{}\"".format(command)) + try: + state = get_vcgencmd_throttled_state(command) + except: + self._logger.exception("Got an error while trying to fetch the current throttle state via \"{}\"".format(command)) + self._throttle_functional = False + return + + if self._throttle_state == state: + # no change + return + + self._throttle_state = state + + if (not self._throttle_undervoltage and self._throttle_state.undervoltage) \ + or (not self._throttle_overheat and self._throttle_state.overheat): + message = "This Raspberry Pi is reporting problems that might lead to bad performance or errors caused " \ + "by overheating or insufficient power." + + if self._throttle_state.undervoltage: + self._throttle_undervoltage = True + message += "\n!!! UNDERVOLTAGE REPORTED !!! Make sure that the power supply and power cable are " \ + "capable of supplying enough voltage and current to your Pi." + + if self._throttle_state.overheat: + self._throttle_overheat = True + message += "\n!!! FREQUENCY CAPPING DUE TO OVERHEATING REPORTED !!! Improve cooling on the Pi's " \ + "CPU and GPU." + + self._logger.warn(message) + + 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" +__plugin_author__ = "Gina Häußge" +__plugin_description__ = "Provides additional information about your Pi in the UI." +__plugin_disabling_discouraged__ = gettext("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.") +__plugin_license__ = "AGPLv3" + +def __plugin_check__(): + try: + proc_dt_model = get_proc_dt_model() + if proc_dt_model is None: + return False + except: + return False + + return "raspberry pi" in proc_dt_model.lower() + +def __plugin_load__(): + plugin = PiSupportPlugin() + global __plugin_implementation__ + __plugin_implementation__ = plugin + + global __plugin_helpers__ + __plugin_helpers__ = dict(get_throttled=plugin.get_throttle_state) diff --git a/src/octoprint/plugins/pi_support/static/clientjs/pi_support.js b/src/octoprint/plugins/pi_support/static/clientjs/pi_support.js new file mode 100644 index 000000000..7c216aa0f --- /dev/null +++ b/src/octoprint/plugins/pi_support/static/clientjs/pi_support.js @@ -0,0 +1,19 @@ +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define(["OctoPrintClient"], factory); + } else { + factory(global.OctoPrintClient); + } +})(this, function(OctoPrintClient) { + var OctoPrintPiSupportClient = function(base) { + this.base = base; + }; + + OctoPrintPiSupportClient.prototype.get = function(opts) { + return this.base.get(this.base.getSimpleApiUrl("pi_support")); + }; + + OctoPrintClient.registerPluginComponent("pi_support", OctoPrintPiSupportClient); + return OctoPrintPiSupportClient; +}); + diff --git a/src/octoprint/plugins/pi_support/static/css/pi_support.css b/src/octoprint/plugins/pi_support/static/css/pi_support.css new file mode 100644 index 000000000..c6065b7ed --- /dev/null +++ b/src/octoprint/plugins/pi_support/static/css/pi_support.css @@ -0,0 +1,8 @@ +#octopi_support_footer { + white-space: nowrap; +} + +.pi_support_state_pulsate { + animation: pulsate 1s ease-out; + animation-iteration-count: infinite; +} diff --git a/src/octoprint/plugins/pi_support/static/js/pi_support.js b/src/octoprint/plugins/pi_support/static/js/pi_support.js new file mode 100644 index 000000000..e4b08b8e5 --- /dev/null +++ b/src/octoprint/plugins/pi_support/static/js/pi_support.js @@ -0,0 +1,94 @@ +$(function() { + + function PiSupportViewModel(parameters) { + var self = this; + + self.model = ko.observable(); + + self.currentUndervoltage = ko.observable(false); + self.currentOverheat = ko.observable(false); + self.pastUndervoltage = ko.observable(false); + self.pastOverheat = ko.observable(false); + self.currentIssue = ko.observable(false); + self.pastIssue = ko.observable(false); + + self.requestData = function() { + OctoPrint.plugins.pi_support.get() + .done(function(response) { + // Raspberry Pi model + self.model(response.model); + + // Throttle state + self.fromThrottleState(response.throttle_state); + + // OctoPi version + $("#octopi_support_footer").remove(); + if (!response.octopi_version) return; + + var octoPrintVersion = $(".footer span.version"); + var octoPiVersion = $(" " + gettext("running on") + " " + gettext("OctoPi") + + " " + response.octopi_version + ""); + $(octoPiVersion).insertAfter(octoPrintVersion); + }) + }; + + self.fromThrottleState = function(state) { + self.currentUndervoltage(state.current_undervoltage); + self.pastUndervoltage(state.past_undervoltage); + self.currentOverheat(state.current_overheat); + self.pastOverheat(state.past_overheat); + self.currentIssue(state.current_issue); + self.pastIssue(state.past_issue); + }; + + 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 "

- " + gettext("Undervoltage. Make sure your power supply and cabling are providing enough power to the Pi.") + "

" + + "

- " + gettext("Frequency capping due to overheating. Improve cooling of the CPU and GPU.") + "

" + + "

" + gettext("A blinking symbol indicates a current issue, a non blinking symbol one that was observed some time since the Pi booted up.") + "

" + + "

" + gettext("Click the symbol in the navbar for more information.") + "

"; + }); + + self.onStartup = function() { + self.requestData(); + }; + + self.onServerReconnect = function() { + self.requestData(); + }; + + self.onDataUpdaterPluginMessage = function(plugin, data) { + if (plugin !== "pi_support") return; + if (!data.hasOwnProperty("state") || !data.hasOwnProperty("type")) return; + if (data.type !== "throttle_state") return; + + self.fromThrottleState(data.state); + } + } + + OCTOPRINT_VIEWMODELS.push({ + construct: PiSupportViewModel, + elements: ["#navbar_plugin_pi_support"] + }); +}); diff --git a/src/octoprint/plugins/octopi_support/templates/octopi_support_about.jinja2 b/src/octoprint/plugins/pi_support/templates/pi_support_about_octopi.jinja2 similarity index 81% rename from src/octoprint/plugins/octopi_support/templates/octopi_support_about.jinja2 rename to src/octoprint/plugins/pi_support/templates/pi_support_about_octopi.jinja2 index 6dcb2d674..b3a43aaaa 100644 --- a/src/octoprint/plugins/octopi_support/templates/octopi_support_about.jinja2 +++ b/src/octoprint/plugins/pi_support/templates/pi_support_about_octopi.jinja2 @@ -2,10 +2,10 @@

The ready-to-go Raspberry Pi image with OctoPrint

-

Version {{ plugin_octopi_support_version }}

+

Version {{ plugin_pi_support_octopi_version }}, running on {{ plugin_pi_support_model }}

diff --git a/src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2 b/src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2 new file mode 100644 index 000000000..6349f9180 --- /dev/null +++ b/src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2 @@ -0,0 +1,4 @@ + + + + diff --git a/src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2 b/src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2 new file mode 100644 index 000000000..83cd07fea --- /dev/null +++ b/src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2 @@ -0,0 +1,31 @@ +

{{ _('Pi Support') }}

+ +

{{ _('Please restart OctoPrint after changing any of this plugin\'s settings.') }}

+ +
+
+
+ + {{ _('This will regularly check with the Pi if something is amiss either with power regulation or CPU/GPU temperature.') }} +
+
+ +
+ +
+ +
+ +
+ + {{ _('Defaults to /usr/bin/vcgencmd get_throttled. You usually shouldn\'t have to change this.') }} +
+
+ +
+
+ + + diff --git a/src/octoprint/plugins/pluginmanager/__init__.py b/src/octoprint/plugins/pluginmanager/__init__.py index 06d4cfe80..c085c032e 100644 --- a/src/octoprint/plugins/pluginmanager/__init__.py +++ b/src/octoprint/plugins/pluginmanager/__init__.py @@ -15,7 +15,7 @@ from octoprint.server.util.flask import restricted_access, with_revalidation_che from octoprint.server import admin_permission from octoprint.util.pip import LocalPipCaller from octoprint.util.version import get_octoprint_version_string, get_octoprint_version, is_octoprint_compatible -from octoprint.util.platform import get_os +from octoprint.util.platform import get_os, is_os_compatible from flask import jsonify, make_response from flask_babel import gettext @@ -33,6 +33,35 @@ import threading _DATA_FORMAT_VERSION = "v2" + +def map_repository_entry(entry): + result = copy.deepcopy(entry) + + if not "follow_dependency_links" in result: + result["follow_dependency_links"] = False + + result["is_compatible"] = dict( + octoprint=True, + os=True + ) + + if "compatibility" in entry: + if "octoprint" in entry["compatibility"] and entry["compatibility"]["octoprint"] is not None and isinstance( + entry["compatibility"]["octoprint"], (list, tuple)) and len(entry["compatibility"]["octoprint"]): + result["is_compatible"]["octoprint"] = is_octoprint_compatible(*entry["compatibility"]["octoprint"]) + + if "os" in entry["compatibility"] and entry["compatibility"]["os"] is not None and isinstance( + entry["compatibility"]["os"], (list, tuple)) and len(entry["compatibility"]["os"]): + result["is_compatible"]["os"] = is_os_compatible(entry["compatibility"]["os"]) + + return result + + +already_installed_string = "Requirement already satisfied (use --upgrade to upgrade)" +success_string = "Successfully installed" +failure_string = "Could not install" + + class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, octoprint.plugin.TemplatePlugin, octoprint.plugin.AssetPlugin, @@ -111,7 +140,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._console_logger.propagate = False # decouple repository fetching from server startup - self._fetch_all_data(async=True) + self._fetch_all_data(do_async=True) ##~~ SettingsPlugin @@ -139,6 +168,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, def get_assets(self): return dict( js=["js/pluginmanager.js"], + clientjs=["clientjs/pluginmanager.js"], css=["css/pluginmanager.css"], less=["less/pluginmanager.less"] ) @@ -208,7 +238,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, from octoprint.events import Events if event != Events.CONNECTIVITY_CHANGED or not payload or not payload.get("new", False): return - self._fetch_all_data(async=True) + self._fetch_all_data(do_async=True) ##~~ SimpleApiPlugin @@ -340,10 +370,6 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, all_plugins_before = self._plugin_manager.find_plugins(existing=dict()) - already_installed_string = "Requirement already satisfied (use --upgrade to upgrade)" - success_string = "Successfully installed" - failure_string = "Could not install" - try: returncode, stdout, stderr = self._call_pip(pip_args) @@ -459,6 +485,11 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._plugin_manager.log_all_plugins() self._logger.info("The plugin was installed successfully: {}, version {}".format(new_plugin.name, new_plugin.version)) + self._event_bus.fire("plugin_pluginmanager_installplugin", dict(id=new_plugin.key, + version=new_plugin.version, + source=source, + source_type=source_type)) + result = dict(result=True, source=source, source_type=source_type, @@ -549,6 +580,9 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._plugin_manager.reload_plugins() + self._event_bus.fire("plugin_pluginmanager_uninstallplugin", dict(id=plugin.key, + version=plugin.version)) + result = dict(result=True, needs_restart=needs_restart, needs_refresh=needs_refresh, @@ -667,7 +701,8 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, if strip: lines = map(lambda x: x.strip(), lines) - self._plugin_manager.send_plugin_message(self._identifier, dict(type="loglines", loglines=[dict(line=line, stream=stream) for line in lines])) + self._plugin_manager.send_plugin_message(self._identifier, dict(type="loglines", + loglines=[dict(line=line, stream=stream) for line in lines])) for line in lines: self._console_logger.debug(u"{prefix} {line}".format(**locals())) @@ -688,6 +723,9 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, elif not plugin.enabled and plugin.key not in self._pending_enable: self._pending_enable.add(plugin.key) + self._event_bus.fire("plugin_pluginmanager_enableplugin", dict(id=plugin.key, + version=plugin.version)) + def _mark_plugin_disabled(self, plugin, needs_restart=False): disabled_list = list(self._settings.global_get(["plugins", "_disabled"], validator=lambda x: isinstance(x, list), @@ -705,12 +743,15 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, elif (plugin.enabled or plugin.forced_disabled or getattr(plugin, "safe_mode_victim", False)) and plugin.key not in self._pending_disable: self._pending_disable.add(plugin.key) - def _fetch_all_data(self, async=False): + self._event_bus.fire("plugin_pluginmanager_disableplugin", dict(id=plugin.key, + version=plugin.version)) + + def _fetch_all_data(self, do_async=False): def run(): self._repository_available = self._fetch_repository_from_disk() self._notices_available = self._fetch_notices_from_disk() - if async: + if do_async: thread = threading.Thread(target=run) thread.daemon = True thread.start() @@ -764,30 +805,6 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, if repo_data is None: return False - current_os = get_os() - octoprint_version = get_octoprint_version(base=True) - - def map_repository_entry(entry): - result = copy.deepcopy(entry) - - if not "follow_dependency_links" in result: - result["follow_dependency_links"] = False - - result["is_compatible"] = dict( - octoprint=True, - os=True - ) - - if "compatibility" in entry: - if "octoprint" in entry["compatibility"] and entry["compatibility"]["octoprint"] is not None and isinstance(entry["compatibility"]["octoprint"], (list, tuple)) and len(entry["compatibility"]["octoprint"]): - result["is_compatible"]["octoprint"] = is_octoprint_compatible(*entry["compatibility"]["octoprint"], - octoprint_version=octoprint_version) - - if "os" in entry["compatibility"] and entry["compatibility"]["os"] is not None and isinstance(entry["compatibility"]["os"], (list, tuple)) and len(entry["compatibility"]["os"]): - result["is_compatible"]["os"] = self._is_os_compatible(current_os, entry["compatibility"]["os"]) - - return result - self._repository_plugins = map(map_repository_entry, repo_data) return True @@ -859,30 +876,6 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._notices = notices return True - @staticmethod - def _is_os_compatible(current_os, compatibility_entries): - """ - Tests if the ``current_os`` or ``sys.platform`` are blacklisted or whitelisted in ``compatibility_entries`` - """ - if len(compatibility_entries) == 0: - # shortcut - no compatibility info means we are compatible - return True - - negative_entries = map(lambda x: x[1:], filter(lambda x: x.startswith("!"), compatibility_entries)) - positive_entries = filter(lambda x: not x.startswith("!"), compatibility_entries) - - negative_match = False - if negative_entries: - # check if we are blacklisted - negative_match = current_os in negative_entries or any(map(lambda x: sys.platform.startswith(x), negative_entries)) - - positive_match = True - if positive_entries: - # check if we are whitelisted - positive_match = current_os in positive_entries or any(map(lambda x: sys.platform.startswith(x), positive_entries)) - - return positive_match and not negative_match - @property def _reconnect_hooks(self): reconnect_hooks = self.__class__.RECONNECT_HOOKS diff --git a/src/octoprint/plugins/pluginmanager/static/clientjs/pluginmanager.js b/src/octoprint/plugins/pluginmanager/static/clientjs/pluginmanager.js new file mode 100644 index 000000000..acaaf3590 --- /dev/null +++ b/src/octoprint/plugins/pluginmanager/static/clientjs/pluginmanager.js @@ -0,0 +1,82 @@ +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define(["OctoPrintClient"], factory); + } else { + factory(global.OctoPrintClient); + } +})(this, function(OctoPrintClient) { + var OctoPrintPluginManagerClient = function(base) { + this.base = base; + }; + + OctoPrintPluginManagerClient.prototype.get = function(refresh, opts) { + var refresh_repo, refresh_notices; + if (_.isPlainObject(refresh)) { + refresh_repo = refresh.repo || false; + refresh_notices = refresh.notices || false; + } else { + refresh_repo = refresh; + refresh_notices = false; + } + + var query = []; + if (refresh_repo) query.push("refresh_repository=true"); + if (refresh_notices) query.push("refresh_notices=true"); + + return this.base.get(this.base.getSimpleApiUrl("pluginmanager") + ((query.length) ? "?" + query.join("&") : ""), opts); + }; + + OctoPrintPluginManagerClient.prototype.getWithRefresh = function(opts) { + return this.get(true, opts); + }; + + OctoPrintPluginManagerClient.prototype.getWithoutRefresh = function(opts) { + return this.get(false, opts); + }; + + OctoPrintPluginManagerClient.prototype.install = function(pluginUrl, dependencyLinks, opts) { + var data = { + url: pluginUrl, + dependency_links: !!dependencyLinks + }; + return this.base.simpleApiCommand("pluginmanager", "install", data, opts); + }; + + OctoPrintPluginManagerClient.prototype.reinstall = function(plugin, pluginUrl, dependencyLinks, opts) { + var data = { + url: pluginUrl, + dependency_links: !!dependencyLinks, + reinstall: plugin, + force: true + }; + return this.base.simpleApiCommand("pluginmanager", "install", data, opts); + }; + + OctoPrintPluginManagerClient.prototype.uninstall = function(plugin, opts) { + var data = { + plugin: plugin + }; + return this.base.simpleApiCommand("pluginmanager", "uninstall", data, opts); + }; + + OctoPrintPluginManagerClient.prototype.enable = function(plugin, opts) { + var data = { + plugin: plugin + }; + return this.base.simpleApiCommand("pluginmanager", "enable", data, opts); + }; + + OctoPrintPluginManagerClient.prototype.disable = function(plugin, opts) { + var data = { + plugin: plugin + }; + return this.base.simpleApiCommand("pluginmanager", "disable", data, opts); + }; + + OctoPrintPluginManagerClient.prototype.upload = function(file) { + return this.base.upload(this.base.getBlueprintUrl("pluginmanager") + "upload_archive", file); + }; + + OctoPrintClient.registerPluginComponent("pluginmanager", OctoPrintPluginManagerClient); + return OctoPrintPluginManagerClient; +}); diff --git a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js index 5bf20baef..403aae500 100644 --- a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js +++ b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js @@ -1,86 +1,3 @@ -(function (global, factory) { - if (typeof define === "function" && define.amd) { - define(["OctoPrintClient"], factory); - } else { - factory(global.OctoPrintClient); - } -})(this, function(OctoPrintClient) { - var OctoPrintPluginManagerClient = function(base) { - this.base = base; - }; - - OctoPrintPluginManagerClient.prototype.get = function(refresh, opts) { - var refresh_repo, refresh_notices; - if (_.isPlainObject(refresh)) { - refresh_repo = refresh.repo || false; - refresh_notices = refresh.notices || false; - } else { - refresh_repo = refresh; - refresh_notices = false; - } - - var query = []; - if (refresh_repo) query.push("refresh_repository=true"); - if (refresh_notices) query.push("refresh_notices=true"); - - return this.base.get(this.base.getSimpleApiUrl("pluginmanager") + ((query.length) ? "?" + query.join("&") : ""), opts); - }; - - OctoPrintPluginManagerClient.prototype.getWithRefresh = function(opts) { - return this.get(true, opts); - }; - - OctoPrintPluginManagerClient.prototype.getWithoutRefresh = function(opts) { - return this.get(false, opts); - }; - - OctoPrintPluginManagerClient.prototype.install = function(pluginUrl, dependencyLinks, opts) { - var data = { - url: pluginUrl, - dependency_links: !!dependencyLinks - }; - return this.base.simpleApiCommand("pluginmanager", "install", data, opts); - }; - - OctoPrintPluginManagerClient.prototype.reinstall = function(plugin, pluginUrl, dependencyLinks, opts) { - var data = { - url: pluginUrl, - dependency_links: !!dependencyLinks, - reinstall: plugin, - force: true - }; - return this.base.simpleApiCommand("pluginmanager", "install", data, opts); - }; - - OctoPrintPluginManagerClient.prototype.uninstall = function(plugin, opts) { - var data = { - plugin: plugin - }; - return this.base.simpleApiCommand("pluginmanager", "uninstall", data, opts); - }; - - OctoPrintPluginManagerClient.prototype.enable = function(plugin, opts) { - var data = { - plugin: plugin - }; - return this.base.simpleApiCommand("pluginmanager", "enable", data, opts); - }; - - OctoPrintPluginManagerClient.prototype.disable = function(plugin, opts) { - var data = { - plugin: plugin - }; - return this.base.simpleApiCommand("pluginmanager", "disable", data, opts); - }; - - OctoPrintPluginManagerClient.prototype.upload = function(file) { - return this.base.upload(this.base.getBlueprintUrl("pluginmanager") + "upload_archive", file); - }; - - OctoPrintClient.registerPluginComponent("pluginmanager", OctoPrintPluginManagerClient); - return OctoPrintPluginManagerClient; -}); - $(function() { function PluginManagerViewModel(parameters) { var self = this; diff --git a/src/octoprint/plugins/printer_safety_check/__init__.py b/src/octoprint/plugins/printer_safety_check/__init__.py index 182f61a3e..38a09533d 100644 --- a/src/octoprint/plugins/printer_safety_check/__init__.py +++ b/src/octoprint/plugins/printer_safety_check/__init__.py @@ -36,9 +36,19 @@ 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() + +# 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") @@ -46,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), - received=(ANYCUBIC_RECEIVED_TEST, CR10S_RECEIVED_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): @@ -90,6 +101,7 @@ class PrinterSafetyCheckPlugin(octoprint.plugin.AssetPlugin, def get_assets(self): return dict(js=("js/printer_safety_check.js",), + clientjs=("clientjs/printer_safety_check.js",), css=("css/printer_safety_check.css",), less=("less/printer_safety_check.less",)) diff --git a/src/octoprint/plugins/printer_safety_check/static/clientjs/printer_safety_check.js b/src/octoprint/plugins/printer_safety_check/static/clientjs/printer_safety_check.js new file mode 100644 index 000000000..5a52fc4f9 --- /dev/null +++ b/src/octoprint/plugins/printer_safety_check/static/clientjs/printer_safety_check.js @@ -0,0 +1,18 @@ +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define(["OctoPrintClient"], factory); + } else { + factory(global.OctoPrintClient); + } +})(this, function(OctoPrintClient) { + var OctoPrintPrinterSafetyCheckClient = function(base) { + this.base = base; + }; + + OctoPrintPrinterSafetyCheckClient.prototype.get = function(opts) { + return this.base.get(this.base.getSimpleApiUrl("printer_safety_check"), opts); + }; + + OctoPrintClient.registerPluginComponent("printer_safety_check", OctoPrintPrinterSafetyCheckClient); + return OctoPrintPrinterSafetyCheckClient; +}); diff --git a/src/octoprint/plugins/printer_safety_check/static/js/printer_safety_check.js b/src/octoprint/plugins/printer_safety_check/static/js/printer_safety_check.js index c69bf8eb6..64a7cb855 100644 --- a/src/octoprint/plugins/printer_safety_check/static/js/printer_safety_check.js +++ b/src/octoprint/plugins/printer_safety_check/static/js/printer_safety_check.js @@ -1,22 +1,3 @@ -(function (global, factory) { - if (typeof define === "function" && define.amd) { - define(["OctoPrintClient"], factory); - } else { - factory(global.OctoPrintClient); - } -})(this, function(OctoPrintClient) { - var OctoPrintPrinterSafetyCheckClient = function(base) { - this.base = base; - }; - - OctoPrintPrinterSafetyCheckClient.prototype.get = function(opts) { - return this.base.get(this.base.getSimpleApiUrl("printer_safety_check"), opts); - }; - - OctoPrintClient.registerPluginComponent("printer_safety_check", OctoPrintPrinterSafetyCheckClient); - return OctoPrintPrinterSafetyCheckClient; -}); - $(function() { function PrinterSafetyCheckViewModel(parameters) { var self = this; @@ -42,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); }; diff --git a/src/octoprint/plugins/softwareupdate/__init__.py b/src/octoprint/plugins/softwareupdate/__init__.py index b395d0db4..863c67b0b 100644 --- a/src/octoprint/plugins/softwareupdate/__init__.py +++ b/src/octoprint/plugins/softwareupdate/__init__.py @@ -8,6 +8,7 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms import octoprint.plugin +import copy import flask import os import threading @@ -26,9 +27,16 @@ from flask_babel import gettext from octoprint.server.util.flask import restricted_access, with_revalidation_checking, check_etag from octoprint.server import admin_permission, VERSION, REVISION, BRANCH from octoprint.util import dict_merge, to_unicode +from octoprint.util.version import get_comparable_version +from octoprint.util.pip import LocalPipCaller import octoprint.settings +MINIMUM_PYTHON = "2.7.9" +MINIMUM_SETUPTOOLS = "5.5.1" +MINIMUM_PIP = "9.0.1" + + ##~~ Plugin @@ -42,7 +50,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, COMMIT_TRACKING_TYPES = ("github_commit", "bitbucket_commit") - DATA_FORMAT_VERSION = "v3" + DATA_FORMAT_VERSION = "v4" # noinspection PyMissingConstructor def __init__(self): @@ -61,6 +69,10 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, self._version_cache_dirty = False self._version_cache_timestamp = None + self._environment_supported = True + self._environment_versions = dict() + self._environment_ready = threading.Event() + self._console_logger = None def initialize(self): @@ -87,14 +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() - - 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: @@ -104,6 +110,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(): @@ -164,6 +173,24 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, return self._configured_checks + def _check_environment(self): + from platform import python_version + import pkg_resources + + local_pip = LocalPipCaller() + + # check python and setuptools version + versions = dict(python=python_version(), + setuptools=pkg_resources.get_distribution("setuptools").version, + pip=local_pip.version_string) + supported = get_comparable_version(versions["python"]) >= get_comparable_version(MINIMUM_PYTHON) \ + and get_comparable_version(versions["setuptools"]) >= get_comparable_version(MINIMUM_SETUPTOOLS) \ + and get_comparable_version(versions["pip"]) >= get_comparable_version(MINIMUM_PIP) + + self._environment_supported = supported + self._environment_versions = versions + self._environment_ready.set() + def _load_version_cache(self): if not os.path.isfile(self._version_cache_path): return @@ -482,11 +509,17 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, force = flask.request.values.get("force", "false") in octoprint.settings.valid_boolean_trues def view(): + self._environment_ready.wait(timeout=30.0) + try: information, update_available, update_possible = self.get_current_versions(check_targets=check_targets, force=force) - return flask.jsonify(dict(status="inProgress" if self._update_in_progress else "updatePossible" if update_available and update_possible else "updateAvailable" if update_available else "current", + return flask.jsonify(dict(status="inProgress" if self._update_in_progress else "updatePossible" if update_available and update_possible and self._environment_supported else "updateAvailable" if update_available else "current", information=information, - timestamp=self._version_cache_timestamp)) + timestamp=self._version_cache_timestamp, + environment=dict(supported=self._environment_supported, + versions=[dict(name=gettext("Python"), current=self._environment_versions.get("python", "unknown"), minimum=MINIMUM_PYTHON), + dict(name=gettext("pip"), current=self._environment_versions.get("pip", "unknown"), minimum=MINIMUM_PIP), + dict(name=gettext("setuptools"), current=self._environment_versions.get("setuptools", "unknown"), minimum=MINIMUM_SETUPTOOLS)]))) except exceptions.ConfigurationInvalid as e: return flask.make_response("Update not properly configured, can't proceed: %s" % e.message, 500) @@ -513,6 +546,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, hash.update(str(data.get("online", None))) hash.update(",".join(targets)) + + hash.update(str(self._environment_supported)) hash.update(str(self._version_cache_timestamp)) hash.update(str(self._connectivity_checker.online)) hash.update(str(self._update_in_progress)) @@ -535,6 +570,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, # do not update while a print job is running return flask.make_response("Printer is currently printing or paused", 409) + if not self._environment_supported: + return flask.make_response("Direct updates are not supported in this Python environment", 409) + if not "application/json" in flask.request.headers["Content-Type"]: return flask.make_response("Expected content-type JSON", 400) @@ -559,6 +597,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, return dict( css=["css/softwareupdate.css"], js=["js/softwareupdate.js"], + clientjs=["clientjs/softwareupdate.js"], less=["less/softwareupdate.less"] ) @@ -645,6 +684,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, continue target_information, target_update_available, target_update_possible, target_online, target_error = future.result() + target_update_possible = target_update_possible and self._environment_supported target_information = dict_merge(dict(local=dict(name="?", value="?"), remote=dict(name="?", value="?", @@ -778,6 +818,10 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, :param targets: an iterable defining the targets to update, if not supplied defaults to all targets """ + if not self._environment_supported: + self._logger.error("Direct updates are unsupported in this environment") + return [], dict() + targets = kwargs.get("targets", kwargs.get("check_targets", None)) checks = self._get_configured_checks() @@ -897,6 +941,20 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, # determine the target version to update to target_version = information["remote"]["value"] target_error = False + target_result = None + + def trigger_event(success, **additional_payload): + if success: + event = "update_succeeded" + else: + event = "update_failed" + + payload = copy.copy(additional_payload) + payload.update(dict(target=target, + from_version=information["local"]["value"], + to_version=target_version)) + + self._event_bus.fire("plugin_softwareupdate_{}".format(event), payload=payload) ### The actual update procedure starts here... @@ -911,6 +969,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, update_result = updater.perform_update(target, populated_check, target_version, log_cb=self._log, online=online) target_result = ("success", update_result) self._logger.info("Update of %s to %s successful!" % (target, target_version)) + trigger_event(True) except exceptions.UnknownUpdateType: self._logger.warn("Update of %s can not be performed, unknown update type" % target) @@ -923,6 +982,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, except Exception as e: self._logger.exception("Update of %s can not be performed, please also check plugin_softwareupdate_console.log for possible causes of this" % target) + trigger_event(False) + if not "ignorable" in populated_check or not populated_check["ignorable"]: target_error = True @@ -960,7 +1021,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, self._logger.info("Restarting...") try: - util.execute(restart_command, evaluate_returncode=False, async=True) + util.execute(restart_command, evaluate_returncode=False, do_async=True) except exceptions.ScriptError as e: self._logger.exception("Error while restarting via command {}".format(restart_command)) self._logger.warn("Restart stdout:\n{}".format(e.stdout)) diff --git a/src/octoprint/plugins/softwareupdate/cli.py b/src/octoprint/plugins/softwareupdate/cli.py index 42e7629b9..fbb3e2618 100644 --- a/src/octoprint/plugins/softwareupdate/cli.py +++ b/src/octoprint/plugins/softwareupdate/cli.py @@ -124,7 +124,8 @@ def commands(cli_group, pass_octoprint_ctx, *args, **kwargs): if targets: data["check"] = targets - client = create_client(apikey=apikey, + client = create_client(settings=cli_group.settings, + apikey=apikey, host=host, port=port, httpuser=httpuser, @@ -149,7 +150,7 @@ def commands(cli_group, pass_octoprint_ctx, *args, **kwargs): plugin_message_data = plugin_message["data"] if plugin_message_type == "updating": - click.echo("Updating {} to {}...".format(plugin_message_data["name"], plugin_message_data["target"])) + click.echo("Updating {} to {}...".format(plugin_message_data.get("name", "unknown"), plugin_message_data.get("version", "n/a"))) elif plugin_message_type == "update_failed": click.echo("\t... failed :(") @@ -191,9 +192,9 @@ def commands(cli_group, pass_octoprint_ctx, *args, **kwargs): flags["seen_close"] = True click.echo("Disconnected from server...") - socket = client.connect_socket(on_message=on_message, - on_open=on_open, - on_close=on_close) + socket = client.create_socket(on_message=on_message, + on_open=on_open, + on_close=on_close) r = client.post_json("plugin/softwareupdate/update", data=data) try: diff --git a/src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py b/src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py index 14574f45b..2f143e4a6 100644 --- a/src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py +++ b/src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py @@ -59,7 +59,9 @@ def _execute(command, **kwargs): joined_command = command _log_call(joined_command) - kwargs.update(dict(async=True, stdout=sarge.Capture(), stderr=sarge.Capture())) + kwargs.update(dict(async_=True, + stdout=sarge.Capture(), + stderr=sarge.Capture())) try: p = sarge.run(command, **kwargs) diff --git a/src/octoprint/plugins/softwareupdate/static/clientjs/softwareupdate.js b/src/octoprint/plugins/softwareupdate/static/clientjs/softwareupdate.js new file mode 100644 index 000000000..932dcf8ce --- /dev/null +++ b/src/octoprint/plugins/softwareupdate/static/clientjs/softwareupdate.js @@ -0,0 +1,84 @@ +(function (global, factory) { + if (typeof define === "function" && define.amd) { + define(["OctoPrintClient"], factory); + } else { + factory(global.OctoPrintClient); + } +})(this, function(OctoPrintClient) { + var OctoPrintSoftwareUpdateClient = function(base) { + this.base = base; + + var url = this.base.getBlueprintUrl("softwareupdate"); + this.checkUrl = url + "check"; + this.updateUrl = url + "update"; + }; + + OctoPrintSoftwareUpdateClient.prototype.checkEntries = function(entries, force, opts) { + if (arguments.length == 1 && _.isObject(arguments[0])) { + var params = arguments[0]; + entries = params.entries; + force = params.force; + opts = params.opts; + } + + entries = entries || []; + if (typeof entries == "string") { + entries = [entries]; + } + + var data = {}; + if (!!force) { + data.force = true; + } + if (entries && entries.length) { + data.check = entries.join(","); + } + return this.base.getWithQuery(this.checkUrl, data, opts); + }; + + OctoPrintSoftwareUpdateClient.prototype.check = function(force, opts) { + if (arguments.length === 1 && _.isObject(arguments[0])) { + var params = arguments[0]; + force = params.force; + opts = params.opts; + } + + return this.checkEntries({entries: [], force: force, opts: opts}); + }; + + OctoPrintSoftwareUpdateClient.prototype.update = function(targets, force, opts) { + if (arguments.length === 1 && _.isObject(arguments[0])) { + var params = arguments[0]; + targets = params.targets; + force = params.force; + opts = params.opts; + } + + targets = targets || []; + if (typeof targets === "string") { + targets = [targets]; + } + + var data = { + targets: targets, + force: !!force + }; + return this.base.postJson(this.updateUrl, data, opts); + }; + + OctoPrintSoftwareUpdateClient.prototype.updateAll = function(force, opts) { + if (arguments.length === 1 && _.isObject(arguments[0])) { + var params = arguments[0]; + force = params.force; + opts = params.opts; + } + + var data = { + force: !!force + }; + return this.base.postJson(this.updateUrl, data, opts); + }; + + OctoPrintClient.registerPluginComponent("softwareupdate", OctoPrintSoftwareUpdateClient); + return OctoPrintSoftwareUpdateClient; +}); diff --git a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js index d0484a5b8..c3125ef82 100644 --- a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js +++ b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js @@ -1,88 +1,3 @@ -(function (global, factory) { - if (typeof define === "function" && define.amd) { - define(["OctoPrintClient"], factory); - } else { - factory(global.OctoPrintClient); - } -})(this, function(OctoPrintClient) { - var OctoPrintSoftwareUpdateClient = function(base) { - this.base = base; - - var url = this.base.getBlueprintUrl("softwareupdate"); - this.checkUrl = url + "check"; - this.updateUrl = url + "update"; - }; - - OctoPrintSoftwareUpdateClient.prototype.checkEntries = function(entries, force, opts) { - if (arguments.length == 1 && _.isObject(arguments[0])) { - var params = arguments[0]; - entries = params.entries; - force = params.force; - opts = params.opts; - } - - entries = entries || []; - if (typeof entries == "string") { - entries = [entries]; - } - - var data = {}; - if (!!force) { - data.force = true; - } - if (entries && entries.length) { - data.check = entries.join(","); - } - return this.base.getWithQuery(this.checkUrl, data, opts); - }; - - OctoPrintSoftwareUpdateClient.prototype.check = function(force, opts) { - if (arguments.length === 1 && _.isObject(arguments[0])) { - var params = arguments[0]; - force = params.force; - opts = params.opts; - } - - return this.checkEntries({entries: [], force: force, opts: opts}); - }; - - OctoPrintSoftwareUpdateClient.prototype.update = function(targets, force, opts) { - if (arguments.length === 1 && _.isObject(arguments[0])) { - var params = arguments[0]; - targets = params.targets; - force = params.force; - opts = params.opts; - } - - targets = targets || []; - if (typeof targets === "string") { - targets = [targets]; - } - - var data = { - targets: targets, - force: !!force - }; - return this.base.postJson(this.updateUrl, data, opts); - }; - - OctoPrintSoftwareUpdateClient.prototype.updateAll = function(force, opts) { - if (arguments.length === 1 && _.isObject(arguments[0])) { - var params = arguments[0]; - force = params.force; - opts = params.opts; - } - - var data = { - force: !!force - }; - return this.base.postJson(this.updateUrl, data, opts); - }; - - OctoPrintClient.registerPluginComponent("softwareupdate", OctoPrintSoftwareUpdateClient); - return OctoPrintSoftwareUpdateClient; -}); - $(function() { function SoftwareUpdateViewModel(parameters) { var self = this; @@ -116,6 +31,9 @@ $(function() { && !self.octoprintReleasedVersion(); }); + self.environmentSupported = ko.observable(true); + self.environmentVersions = ko.observableArray([]); + self.cacheTimestamp = ko.observable(); self.cacheTimestampText = ko.pureComputed(function() { return formatDate(self.cacheTimestamp()); @@ -132,6 +50,10 @@ $(function() { && (!self.config_checkoutFolder() || self.config_checkoutFolder().trim() === ''); }); + self.enableUpdate = ko.pureComputed(function() { + return !self.updateInProgress && self.environmentSupported(); + }); + self.enable_configSave = ko.pureComputed(function() { return self.config_checkType() === "github_release" || (self.config_checkType() === "git_commit" && !self.error_checkoutFolder()); @@ -300,6 +222,9 @@ $(function() { var octoprint = data.information["octoprint"]; self.octoprintReleasedVersion(!octoprint || octoprint.released_version); + self.environmentSupported(data.environment.supported); + self.environmentVersions(data.environment.versions); + if (data.status === "inProgress") { self._markWorking(gettext("Updating..."), gettext("Updating, please wait.")); return; @@ -314,7 +239,7 @@ $(function() { _.each(self.versions.items(), function(update_info) { if (update_info.updateAvailable) { text += "
  • " - + "" + + "" + "" + update_info.fullNameRemote + "" + (update_info.releaseNotes ? "" + gettext("Release Notes") + "" : "") + "
  • "; @@ -322,7 +247,11 @@ $(function() { }); text += ""; - text += "

    " + gettext("Those components marked with can be updated directly.") + "

    "; + if (!self.environmentSupported()) { + text += "

    " + gettext("This version of the Python environment is not supported for direct updates.") + "

    "; + } else { + text += "

    " + gettext("Those components marked with can be updated directly.") + "

    "; + } if (!self.loginState.isAdmin()) { text += "

    " + gettext("To have updates applied, get in touch with an administrator of this OctoPrint instance.") + "

    "; diff --git a/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 b/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 index 106d64bc5..13b5c5313 100644 --- a/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 +++ b/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 @@ -15,6 +15,23 @@ Documentation.

    {% endtrans %}
    +
    {% trans %} +

    + This version of the Python environment is not supported for direct updates. +

    +

    + To reduce the likelihood of running into update problems in outdated environments, the following minimal + versions are required to use this updater to update OctoPrint or any installed plugins: +

    +{% endtrans %} +
      +
    • : ({{ _('you have') }}: )
    • +
    +{% trans %} +

    + Please take a look at this FAQ entry on how to proceed. +

    +{% endtrans %}
    @@ -29,7 +46,7 @@ - {{ _('Update') }} + {{ _('Update') }} :
    {{ _('Installed:') }} @@ -59,7 +76,7 @@
    - +
    diff --git a/src/octoprint/plugins/softwareupdate/updaters/pip.py b/src/octoprint/plugins/softwareupdate/updaters/pip.py index 08dfed097..fb970144f 100644 --- a/src/octoprint/plugins/softwareupdate/updaters/pip.py +++ b/src/octoprint/plugins/softwareupdate/updaters/pip.py @@ -10,6 +10,7 @@ import logging import pkg_resources from octoprint.util.pip import PipCaller, UnknownPip +from octoprint.util.version import get_comparable_version from .. import exceptions logger = logging.getLogger("octoprint.plugins.softwareupdate.updaters.pip") @@ -23,8 +24,13 @@ _pip_callers = dict() _pip_version_dependency_links = pkg_resources.parse_version("1.5") def can_perform_update(target, check, online=True): + from .. import MINIMUM_PIP pip_caller = _get_pip_caller(command=check["pip_command"] if "pip_command" in check else None) - return "pip" in check and pip_caller is not None and pip_caller.available and (online or check.get("offline", False)) + return "pip" in check \ + and pip_caller is not None \ + and pip_caller.available \ + and pip_caller.version >= get_comparable_version(MINIMUM_PIP) \ + and (online or check.get("offline", False)) def _get_pip_caller(command=None): key = command diff --git a/src/octoprint/plugins/softwareupdate/util.py b/src/octoprint/plugins/softwareupdate/util.py index 020fce3df..0adf55ba0 100644 --- a/src/octoprint/plugins/softwareupdate/util.py +++ b/src/octoprint/plugins/softwareupdate/util.py @@ -9,12 +9,14 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms from .exceptions import ScriptError -def execute(command, cwd=None, evaluate_returncode=True, async=False): +def execute(command, cwd=None, evaluate_returncode=True, **kwargs): + do_async = kwargs.get("do_async", kwargs.get("async", False)) + import sarge p = None try: - p = sarge.run(command, cwd=cwd, stdout=sarge.Capture(), stderr=sarge.Capture(), async=async) + p = sarge.run(command, cwd=cwd, stdout=sarge.Capture(), stderr=sarge.Capture(), async_=do_async) except: returncode = p.returncode if p is not None else None stdout = p.stdout.text if p is not None and p.stdout is not None else "" diff --git a/src/octoprint/plugins/tracking/__init__.py b/src/octoprint/plugins/tracking/__init__.py new file mode 100644 index 000000000..577999f98 --- /dev/null +++ b/src/octoprint/plugins/tracking/__init__.py @@ -0,0 +1,322 @@ +# coding=utf-8 +from __future__ import absolute_import, division, print_function, unicode_literals + +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2018 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import octoprint.plugin + +from flask_babel import gettext + +import requests +import hashlib +import logging + +try: + # noinspection PyCompatibility + from urllib.parse import urlencode +except ImportError: + from urllib import urlencode + +# noinspection PyCompatibility +import concurrent.futures + +from octoprint.util import RepeatedTimer +from octoprint.util.version import get_octoprint_version_string +from octoprint.events import Events + +TRACKING_URL = "https://tracking.octoprint.org/track/{id}/{event}/" + +# noinspection PyMissingConstructor +class TrackingPlugin(octoprint.plugin.SettingsPlugin, + octoprint.plugin.EnvironmentDetectionPlugin, + octoprint.plugin.StartupPlugin, + octoprint.plugin.ShutdownPlugin, + octoprint.plugin.TemplatePlugin, + octoprint.plugin.AssetPlugin, + octoprint.plugin.WizardPlugin, + octoprint.plugin.EventHandlerPlugin): + + 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 + self._executor = concurrent.futures.ThreadPoolExecutor(max_workers=1) + + self._record_next_firmware_info = False + + def initialize(self): + self._init_tracking() + + ##~~ SettingsPlugin + + def get_settings_defaults(self): + return dict(enabled=None, + unique_id=None, + server=TRACKING_URL, + ping=15*60, + events=dict(startup=True, + printjob=True, + plugin=True, + update=True, + printer=True, + throttled=True)) + + def get_settings_restricted_paths(self): + return dict(admin=[["enabled"], ["unique_id"], ["events"]], + never=[["server"], ["ping"]]) + + def on_settings_save(self, data): + enabled = self._settings.get([b"enabled"]) + + octoprint.plugin.SettingsPlugin.on_settings_save(self, data) + + if enabled is None and self._settings.get([b"enabled"]): + # tracking was just enabled, let's init it and send a startup event + self._init_tracking() + self._track_startup() + + ##~~ EnvironmentDetectionPlugin + + def on_environment_detected(self, environment, *args, **kwargs): + self._environment = environment + + ##~~ StartupPlugin + + def on_after_startup(self): + 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): + self._track_shutdown() + + ##~~ EventHandlerPlugin + + def on_event(self, event, payload): + if event.startswith("plugin_pluginmanager_"): + self._track_plugin_event(event, payload) + 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,): + self._printer_connection_parameters = dict(port=payload["port"], + baudrate=payload["baudrate"]) + self._record_next_firmware_info = True + elif event in (Events.FIRMWARE_DATA,) and self._record_next_firmware_info: + self._record_next_firmware_info = False + self._track_printer_event(event, payload) + + ##~~ TemplatePlugin + + def get_template_configs(self): + return [ + dict(type="settings", name=gettext("Anonymous Usage Tracking"), template="tracking_settings.jinja2", custom_bindings=False), + dict(type="wizard", name=gettext("Anonymous Usage Tracking"), template="tracking_wizard.jinja2", custom_bindings=True, mandatory=True) + ] + + ##~~ AssetPlugin + + def get_assets(self): + return dict(js=["js/usage.js"]) + + ##~~ WizardPlugin + + def is_wizard_required(self): + return self._settings.get([b"enabled"]) is None + + ##~~ helpers + + def _init_tracking(self): + if not self._settings.get_boolean([b"enabled"]): + return + self._init_id() + self._logger.info("Initialized anonymous tracking") + + def _init_id(self): + if self._settings.get_boolean([b"enabled"]) and not self._settings.get([b"unique_id"]): + import uuid + self._settings.set([b"unique_id"], str(uuid.uuid4())) + self._settings.save() + + def _track_ping(self): + self._track("ping") + + def _track_startup(self): + if not self._settings.get_boolean(["events", "startup"]): + return + + payload = dict(version=get_octoprint_version_string(), + os=self._environment[b"os"][b"id"], + python=self._environment[b"python"][b"version"], + pip=self._environment[b"python"][b"pip"], + cores=self._environment[b"hardware"][b"cores"], + freq=self._environment[b"hardware"][b"freq"], + ram=self._environment[b"hardware"][b"ram"]) + + 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"] + + self._track("startup", **payload) + + def _track_shutdown(self): + if not self._settings.get_boolean(["events", "startup"]): + return + + self._track("shutdown") + + def _track_plugin_event(self, event, payload): + if not self._settings.get_boolean(["events", "plugin"]): + return + + if event.endswith("_installplugin"): + self._track("install_plugin", plugin=payload.get(b"id"), plugin_version=payload.get(b"version")) + elif event.endswith("_uninstallplugin"): + self._track("uninstall_plugin", plugin=payload.get(b"id"), plugin_version=payload.get(b"version")) + elif event.endswith("_enableplugin"): + self._track("enable_plugin", plugin=payload.get(b"id"), plugin_version=payload.get(b"version")) + elif event.endswith("_disableplugin"): + self._track("disable_plugin", plugin=payload.get(b"id"), plugin_version=payload.get(b"version")) + + def _track_update_event(self, event, payload): + if not self._settings.get_boolean(["events", "update"]): + return + + if event.endswith("_update_succeeded"): + self._track("update_successful", target=payload.get("target"), from_version=payload.get("from_version"), to_version=payload.get("to_version")) + 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 + + sha = hashlib.sha1() + sha.update(payload.get("path")) + sha.update(self._settings.get([b"unique_id"])) + + track_event = None + args = dict(origin=payload.get(b"origin"), file=sha.hexdigest()) + + if event == Events.PRINT_STARTED: + track_event = "print_started" + elif event == Events.PRINT_DONE: + try: + elapsed = int(payload.get(b"time")) + except ValueError: + elapsed = "unknown" + 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) + + def _track_printer_event(self, event, payload): + if not self._settings.get_boolean(["events", "printer"]): + return + + if event in (Events.FIRMWARE_DATA,): + args = dict(firmware_name=payload["name"]) + if self._printer_connection_parameters: + args["printer_port"] = self._printer_connection_parameters["port"] + args["printer_baudrate"] = self._printer_connection_parameters["baudrate"] + self._track("printer_connected", **args) + + def _track(self, event, **kwargs): + if not self._settings.get_boolean([b"enabled"]): + return + + self._executor.submit(self._do_track, event, **kwargs) + + def _do_track(self, event, **kwargs): + if not self._connectivity_checker.online: + return + + 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.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)) + else: + pass + +__plugin_name__ = "Anonymous Usage Tracking" +__plugin_description__ = "Anonymous version and usage tracking, see homepage for details on what gets tracked" +__plugin_url__ = "https://tracking.octoprint.org" +__plugin_author__ = "Gina Häußge" + +__plugin_implementation__ = TrackingPlugin() diff --git a/src/octoprint/plugins/tracking/static/js/usage.js b/src/octoprint/plugins/tracking/static/js/usage.js new file mode 100644 index 000000000..1a8517313 --- /dev/null +++ b/src/octoprint/plugins/tracking/static/js/usage.js @@ -0,0 +1,101 @@ +$(function() { + function UsageViewModel(parameters) { + var self = this; + + self.settingsViewModel = parameters[0]; + + self.setup = ko.observable(false); + + self.decision = ko.observable(); + self.active = ko.observable(); + self.required = false; + + self.enableUsage = function() { + self.settingsViewModel.settings.plugins.tracking.enabled(true); + self.decision(true); + self._sendData(); + }; + + self.disableUsage = function() { + self.settingsViewModel.settings.plugins.tracking.enabled(false); + self.decision(false); + self._sendData(); + }; + + self.onBeforeWizardTabChange = function(next, current) { + if (!self.required) return true; + + if (!current || !_.startsWith(current, "wizard_plugin_tracking") || self.setup()) { + return true; + } + + self._showDecisionNeededDialog(); + return false; + }; + + self.onBeforeWizardFinish = function() { + if (!self.required) return true; + + if (self.setup()) { + return true; + } + + self._showDecisionNeededDialog(); + return false; + }; + + self.onWizardPreventSettingsRefreshDialog = function() { + return self.active(); + }; + + self.onWizardDetails = function(response) { + self.required = response && response.tracking && response.tracking.required; + }; + + self._showDecisionNeededDialog = function() { + showMessageDialog({ + title: gettext("Please set up anonymous usage tracking"), + message: gettext("You haven't yet decided on whether to enable or disable anonymous usage tracking. You need to either enable or disable it before continuing.") + }); + }; + + self._sendData = function() { + var data = { + plugins: { + tracking: { + enabled: self.settingsViewModel.settings.plugins.tracking.enabled() + } + } + }; + + self.active(true); + self.settingsViewModel.saveData(data) + .done(function() { + self.setup(true); + self.active(false); + }) + .fail(function() { + self.decision(false); + self.setup(true); + self.active(false); + + var message = gettext("Please open a " + + "bug report on this. Make sure to include all requested information, including your " + + "JS console and " + + "octoprint.log."); + 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([ + UsageViewModel, + ["settingsViewModel"], + "#wizard_plugin_tracking" + ]); +}); diff --git a/src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDescription.jinja2 b/src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDescription.jinja2 new file mode 100644 index 000000000..524a6f4f2 --- /dev/null +++ b/src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDescription.jinja2 @@ -0,0 +1,10 @@ +{% trans %} +

    + Anonymous usage tracking provides valuable insights into how many instances running what versions of OctoPrint are out there, + whether they are successfully completing print jobs and various other metrics. +

    +

    + By enabling it you help to identify problems with new releases and release candidates early on, and to better + tailor OctoPrint's future development to actual use. +

    +{% endtrans %} diff --git a/src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDetails.jinja2 b/src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDetails.jinja2 new file mode 100644 index 000000000..d1fc0d990 --- /dev/null +++ b/src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDetails.jinja2 @@ -0,0 +1,4 @@ +

    {% trans %} + For details on what gets tracked, please refer to tracking.octoprint.org + and also the Privacy Policy at tracking.octoprint.org. +{% endtrans %}

    diff --git a/src/octoprint/plugins/tracking/templates/tracking_settings.jinja2 b/src/octoprint/plugins/tracking/templates/tracking_settings.jinja2 new file mode 100644 index 000000000..217bc26c6 --- /dev/null +++ b/src/octoprint/plugins/tracking/templates/tracking_settings.jinja2 @@ -0,0 +1,47 @@ +

    {{ _('Anonymous Usage Tracking') }}

    + +{% include "snippets/plugins/tracking/trackingDescription.jinja2" %} + +
    +
    +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + + + + + + + +
    +
    +
    + +{% include "snippets/plugins/tracking/trackingDetails.jinja2" %} diff --git a/src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2 b/src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2 new file mode 100644 index 000000000..2a0b5645f --- /dev/null +++ b/src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2 @@ -0,0 +1,23 @@ +

    {{ _('Configure Anonymous Usage Tracking') }}

    + +{% include "snippets/plugins/tracking/trackingDescription.jinja2" %} + +{% include "snippets/plugins/tracking/trackingDetails.jinja2" %} + +

    + {{ _('Note: You can always change your decision and also access more granular controls via Settings > Anonymous Usage Tracking.') }} +

    + + + + diff --git a/src/octoprint/plugins/virtual_printer/virtual.py b/src/octoprint/plugins/virtual_printer/virtual.py index 3d9ada889..bed0a65b7 100644 --- a/src/octoprint/plugins/virtual_printer/virtual.py +++ b/src/octoprint/plugins/virtual_printer/virtual.py @@ -647,6 +647,19 @@ class VirtualPrinter(object): else: time.sleep(_timeout) + def _gcode_G33(self, data): + self._send("G33 Auto Calibrate") + self._send("Will take ~60s") + timeout = 60 + + if self._sendBusy and self._busyInterval > 0: + until = time.time() + timeout + while time.time() < until: + time.sleep(self._busyInterval) + self._send("busy:processing") + else: + time.sleep(timeout) + ##~~ further helpers def _calculate_checksum(self, line): @@ -719,6 +732,10 @@ class VirtualPrinter(object): | Triggers a resend error with a missing checksum trigger_missing_lineno | Triggers a "no line number with checksum" error w/o resend request + trigger_fatal_error_marlin + | Triggers a fatal error/simulated heater fail, Marlin style + trigger_fatal_error_repetier + | Triggers a fatal error/simulated heater fail, Repetier style drop_connection | Drops the serial connection prepare_ok @@ -769,6 +786,11 @@ class VirtualPrinter(object): self._prepared_errors.append(lambda cur, last, line: self._triggerResend(expected=last, checksum=False)) elif data == "trigger_missing_lineno": self._prepared_errors.append(lambda cur, last, line: self._send(self._error("lineno_missing", last))) + elif data == "trigger_fatal_error_marlin": + self._send("Error:Thermal Runaway, system stopped! Heater_ID: bed") + self._send("Error:Printer halted. kill() called!") + elif data == "trigger_fatal_error_repetier": + self._send("fatal: Heater/sensor error - Printer stopped and heaters disabled due to this error. Fix error and restart with M999.") elif data == "drop_connection": self._debug_drop_connection = True elif data == "reset": diff --git a/src/octoprint/printer/__init__.py b/src/octoprint/printer/__init__.py index 67150b1b1..4ae7222e9 100644 --- a/src/octoprint/printer/__init__.py +++ b/src/octoprint/printer/__init__.py @@ -231,12 +231,14 @@ class PrinterInterface(object): """ raise NotImplementedError() - def extrude(self, amount, tags=None, *args, **kwargs): + def extrude(self, amount, speed=None, tags=None, *args, **kwargs): """ Extrude ``amount`` millimeters of material from the tool. Arguments: amount (int, float): The amount of material to extrude in mm + speed (int, None): Speed at which to extrude (F parameter). If set to ``None`` (or left out) + the maximum speed of E axis from the printer profile will be used. tags (set of str): An optional set of tags to attach to the command(s) throughout their lifecycle """ raise NotImplementedError() diff --git a/src/octoprint/printer/standard.py b/src/octoprint/printer/standard.py index 989b6095e..a3c589048 100644 --- a/src/octoprint/printer/standard.py +++ b/src/octoprint/printer/standard.py @@ -361,12 +361,22 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback): self.commands(["G91", "G28 %s" % " ".join(map(lambda x: "%s0" % x.upper(), validated_axes)), "G90"], tags=kwargs.get("tags", set) | {"trigger:printer.home"}) - def extrude(self, amount, *args, **kwargs): + def extrude(self, amount, speed=None, *args, **kwargs): if not isinstance(amount, (int, long, float)): raise ValueError("amount must be a valid number: {amount}".format(amount=amount)) printer_profile = self._printerProfileManager.get_current_or_default() - extrusion_speed = printer_profile["axes"]["e"]["speed"] + + # Use specified speed (if any) + max_e_speed = printer_profile["axes"]["e"]["speed"] + + if speed is None: + # No speed was specified so default to value configured in printer profile + extrusion_speed = max_e_speed + else: + # Make sure that specified value is not greater than maximum as defined in printer profile + extrusion_speed = min([speed, max_e_speed]) + self.commands(["G91", "G1 E%s F%d" % (amount, extrusion_speed), "G90"], tags=kwargs.get("tags", set()) | {"trigger:printer.extrude"}) @@ -963,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"], @@ -1093,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) @@ -1112,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: diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 66bfeb0b5..c751b59dd 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -473,6 +473,7 @@ class Server(object): self._setup_assets() # configure timelapse + octoprint.timelapse.valid_timelapse("test") octoprint.timelapse.configure_timelapse() # setup command triggers @@ -512,11 +513,24 @@ class Server(object): additional_mime_types=dict(mime_type_guesser=mime_type_guesser) - admin_validator = dict(access_validation=util.tornado.access_validation_factory(app, loginManager, util.flask.admin_validator)) - user_validator = dict(access_validation=util.tornado.access_validation_factory(app, loginManager, util.flask.user_validator)) + access_validators_from_plugins = [] + for plugin, hook in pluginManager.get_hooks("octoprint.server.http.access_validator").items(): + try: + access_validators_from_plugins.append(util.tornado.access_validation_factory(app, hook)) + except: + self._logger.exception("Error while adding tornado access validator from plugin {}".format(plugin)) + + admin_validators = [util.tornado.access_validation_factory(app, util.flask.admin_validator),] + access_validators_from_plugins + user_validators = [util.tornado.access_validation_factory(app, util.flask.user_validator),] + access_validators_from_plugins + + admin_validator = dict(access_validation=util.tornado.validation_chain(*admin_validators)) + user_validator = dict(access_validation=util.tornado.validation_chain(*user_validators)) + access_validator = dict(access_validation=util.tornado.validation_chain(*access_validators_from_plugins)) no_hidden_files_validator = dict(path_validation=util.tornado.path_validation_factory(lambda path: not octoprint.util.is_hidden_path(path), status_code=404)) + timelapse_validator = dict(path_validation=util.tornado.path_validation_factory(lambda path: not octoprint.util.is_hidden_path(path) and octoprint.timelapse.valid_timelapse(path), + status_code=404)) def joined_dict(*dicts): if not len(dicts): @@ -532,15 +546,17 @@ class Server(object): server_routes = self._router.urls + [ # various downloads # .mpg and .mp4 timelapses: - (r"/downloads/timelapse/([^/]*\.m(.*))", util.tornado.LargeResponseHandler, joined_dict(dict(path=self._settings.getBaseFolder("timelapse")), - download_handler_kwargs, - no_hidden_files_validator)), + (r"/downloads/timelapse/(.*)", util.tornado.LargeResponseHandler, joined_dict(dict(path=self._settings.getBaseFolder("timelapse")), + download_handler_kwargs, + timelapse_validator, + access_validator)), (r"/downloads/files/local/(.*)", util.tornado.LargeResponseHandler, joined_dict(dict(path=self._settings.getBaseFolder("uploads"), as_attachment=True, name_generator=download_name_generator), download_handler_kwargs, no_hidden_files_validator, - additional_mime_types)), + additional_mime_types, + access_validator)), (r"/downloads/logs/([^/]*)", util.tornado.LargeResponseHandler, joined_dict(dict(path=self._settings.getBaseFolder("logs"), mime_type_guesser=lambda *args, **kwargs: "text/plain"), download_handler_kwargs, @@ -1076,16 +1092,25 @@ class Server(object): def _setup_blueprints(self): from octoprint.server.api import api from octoprint.server.apps import apps, clear_registered_app - import octoprint.server.views - app.register_blueprint(api, url_prefix="/api") - app.register_blueprint(apps, url_prefix="/apps") + import octoprint.server.views # do not remove or the index view won't be found + + blueprints = OrderedDict() + blueprints["/api"] = api + blueprints["/apps"] = apps # also register any blueprints defined in BlueprintPlugins - self._register_blueprint_plugins() + blueprints.update(self._prepare_blueprint_plugins()) # and register a blueprint for serving the static files of asset plugins which are not blueprint plugins themselves - self._register_asset_plugins() + blueprints.update(self._prepare_asset_plugins()) + + # make sure all before/after_request hook results are attached as well + self._add_plugin_request_handlers_to_blueprints(*blueprints.values()) + + # register everything with the system + for url_prefix, blueprint in blueprints.items(): + app.register_blueprint(blueprint, url_prefix=url_prefix) global pluginLifecycleManager def clear_apps(name, plugin): @@ -1093,27 +1118,37 @@ class Server(object): pluginLifecycleManager.add_callback("enabled", clear_apps) pluginLifecycleManager.add_callback("disabled", clear_apps) - def _register_blueprint_plugins(self): + def _prepare_blueprint_plugins(self): + blueprints = OrderedDict() + blueprint_plugins = octoprint.plugin.plugin_manager().get_implementations(octoprint.plugin.BlueprintPlugin) for plugin in blueprint_plugins: try: - self._register_blueprint_plugin(plugin) + blueprint, prefix = self._prepare_blueprint_plugin(plugin) + blueprints[prefix] = blueprint except: self._logger.exception("Error while registering blueprint of plugin {}, ignoring it".format(plugin._identifier)) continue - def _register_asset_plugins(self): + return blueprints + + def _prepare_asset_plugins(self): + blueprints = OrderedDict() + asset_plugins = octoprint.plugin.plugin_manager().get_implementations(octoprint.plugin.AssetPlugin) for plugin in asset_plugins: if isinstance(plugin, octoprint.plugin.BlueprintPlugin): continue try: - self._register_asset_plugin(plugin) + blueprint, prefix = self._prepare_asset_plugin(plugin) + blueprints[prefix] = blueprint except: self._logger.exception("Error while registering assets of plugin {}, ignoring it".format(plugin._identifier)) continue - def _register_blueprint_plugin(self, plugin): + return blueprints + + def _prepare_blueprint_plugin(self, plugin): name = plugin._identifier blueprint = plugin.get_blueprint() if blueprint is None: @@ -1135,7 +1170,9 @@ class Server(object): if self._logger: self._logger.debug("Registered API of plugin {name} under URL prefix {url_prefix}".format(name=name, url_prefix=url_prefix)) - def _register_asset_plugin(self, plugin): + return blueprint, url_prefix + + def _prepare_asset_plugin(self, plugin): name = plugin._identifier url_prefix = "/plugin/{name}".format(name=name) @@ -1145,6 +1182,32 @@ class Server(object): if self._logger: self._logger.debug("Registered assets of plugin {name} under URL prefix {url_prefix}".format(name=name, url_prefix=url_prefix)) + return blueprint, url_prefix + + def _add_plugin_request_handlers_to_blueprints(self, *blueprints): + before_hooks = octoprint.plugin.plugin_manager().get_hooks("octoprint.server.api.before_request") + after_hooks = octoprint.plugin.plugin_manager().get_hooks("octoprint.server.api.after_request") + + for plugin, hook in before_hooks.items(): + for blueprint in blueprints: + try: + result = hook() + if isinstance(result, (list, tuple)): + for h in result: + blueprint.before_request(h) + except: + self._logger.exception("Error processing before_request hooks from plugin {}".format(plugin)) + + for plugin, hook in after_hooks.items(): + for blueprint in blueprints: + try: + result = hook() + if isinstance(result, (list, tuple)): + for h in result: + blueprint.after_request(h) + except: + self._logger.exception("Error processing after_request hooks from plugin {}".format(plugin)) + def _setup_assets(self): global app global assets @@ -1285,25 +1348,6 @@ class Server(object): "js/lib/loglevel.min.js", "js/lib/sockjs.js" ] - js_client = [ - "js/app/client/base.js", - "js/app/client/socket.js", - "js/app/client/browser.js", - "js/app/client/connection.js", - "js/app/client/control.js", - "js/app/client/files.js", - "js/app/client/job.js", - "js/app/client/languages.js", - "js/app/client/printer.js", - "js/app/client/printerprofiles.js", - "js/app/client/settings.js", - "js/app/client/slicing.js", - "js/app/client/system.js", - "js/app/client/timelapse.js", - "js/app/client/users.js", - "js/app/client/util.js", - "js/app/client/wizard.js" - ] css_libs = [ "css/bootstrap.min.css", @@ -1356,13 +1400,15 @@ class Server(object): js_plugins = js_bundles_for_plugins(dynamic_plugin_assets["external"]["js"], filters="js_delimiter_bundler") + clientjs_core = dynamic_core_assets["clientjs"] + \ + all_assets_for_plugins(dynamic_plugin_assets["bundled"]["clientjs"]) + clientjs_plugins = js_bundles_for_plugins(dynamic_plugin_assets["external"]["clientjs"], + filters="js_delimiter_bundler") + js_libs_bundle = Bundle(*js_libs, output="webassets/packed_libs.js", filters=",".join(js_filters)) - js_client_bundle = Bundle(*js_client, - output="webassets/packed_client.js", - filters=",".join(js_filters)) js_core_bundle = Bundle(*js_core, output="webassets/packed_core.js", filters=",".join(js_filters)) @@ -1378,6 +1424,21 @@ class Server(object): output="webassets/packed_app.js", filters=",".join(js_filters)) + js_client_core_bundle = Bundle(*clientjs_core, + output="webassets/packed_client_core.js", + filters=",".join(js_filters)) + + if len(clientjs_plugins) == 0: + js_client_plugins_bundle = Bundle(*[]) + else: + js_client_plugins_bundle = Bundle(*clientjs_plugins.values(), + output="webassets/packed_client_plugins.js", + filters=",".join(js_plugin_filters)) + + js_client_bundle = Bundle(js_client_core_bundle, js_client_plugins_bundle, + output="webassets/packed_client.js", + filters=",".join(js_filters)) + # -- CSS ------------------------------------------------------------------------------------------------------- css_filters = ["cssrewrite"] @@ -1437,6 +1498,11 @@ class Server(object): # -- asset registration ---------------------------------------------------------------------------------------- assets.register("js_libs", js_libs_bundle) + assets.register("js_client_core", js_client_core_bundle) + for plugin, bundle in clientjs_plugins.items(): + # register our collected clientjs plugin bundles so that they are bound to the environment + assets.register("js_client_plugin_{}".format(plugin), bundle) + assets.register("js_client_plugins", js_client_plugins_bundle) assets.register("js_client", js_client_bundle) assets.register("js_core", js_core_bundle) for plugin, bundle in js_plugins.items(): diff --git a/src/octoprint/server/api/__init__.py b/src/octoprint/server/api/__init__.py index 89945c661..ed4cc7cee 100644 --- a/src/octoprint/server/api/__init__.py +++ b/src/octoprint/server/api/__init__.py @@ -7,20 +7,20 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms import logging import netaddr -import sarge from flask import Blueprint, request, jsonify, abort, current_app, session, make_response, g from flask_login import login_user, logout_user, current_user from flask_principal import Identity, identity_changed, AnonymousIdentity import octoprint.util as util +import octoprint.util.net as util_net import octoprint.users import octoprint.server import octoprint.plugin from octoprint.server import admin_permission, NO_CONTENT from octoprint.settings import settings as s, valid_boolean_trues from octoprint.server.util import noCachingExceptGetResponseHandler, enforceApiKeyRequestHandler, loginFromApiKeyRequestHandler, loginFromAuthorizationHeaderRequestHandler, corsRequestHandler, corsResponseHandler -from octoprint.server.util.flask import restricted_access, get_json_command_from_request, passive_login +from octoprint.server.util.flask import restricted_access, get_json_command_from_request, passive_login, get_remote_address #~~ init api blueprint, including sub modules @@ -214,7 +214,16 @@ def login(): g.user = user login_user(user, remember=remember) identity_changed.send(current_app._get_current_object(), identity=Identity(user.get_id())) - return jsonify(user.asDict()) + + remote_addr = get_remote_address(request) + logging.getLogger(__name__).info("Actively logging in user {} from {}".format(user.get_id(), remote_addr)) + + response = user.asDict() + response["_is_external_client"] = s().getBoolean(["server", "ipCheck", "enabled"]) \ + and not util_net.is_lan_address(remote_addr, + additional_private=s().get(["server", "ipCheck", "trustedSubnets"])) + return jsonify(response) + return make_response(("User unknown or password incorrect", 401, [])) elif "passive" in data: diff --git a/src/octoprint/server/api/files.py b/src/octoprint/server/api/files.py index 8338957b6..c3586e69c 100644 --- a/src/octoprint/server/api/files.py +++ b/src/octoprint/server/api/files.py @@ -18,6 +18,7 @@ import octoprint.filemanager.util import octoprint.filemanager.storage import octoprint.slicing +import os import psutil import hashlib import logging @@ -132,7 +133,7 @@ def readGcodeFilesForOrigin(origin): def _getFileDetails(origin, path, recursive=True): - parent, path = fileManager.split_path(origin, path) + parent, path = os.path.split(path) files = _getFileList(origin, path=parent, recursive=recursive) for f in files: diff --git a/src/octoprint/server/api/printer.py b/src/octoprint/server/api/printer.py index 0452e9e03..561efcfde 100644 --- a/src/octoprint/server/api/printer.py +++ b/src/octoprint/server/api/printer.py @@ -129,9 +129,10 @@ def printerToolCommand(): return make_response("Printer is currently printing", 409) amount = data["amount"] + speed = data.get("speed", None) if not isinstance(amount, (int, long, float)): return make_response("Not a number for extrusion amount: %r" % amount, 400) - printer.extrude(amount, tags=tags) + printer.extrude(amount, speed=speed, tags=tags) elif command == "flowrate": factor = data["factor"] diff --git a/src/octoprint/server/api/settings.py b/src/octoprint/server/api/settings.py index 6cdcfe0be..4da866326 100644 --- a/src/octoprint/server/api/settings.py +++ b/src/octoprint/server/api/settings.py @@ -90,6 +90,7 @@ def getSettings(): "name": s.get(["appearance", "name"]), "color": s.get(["appearance", "color"]), "colorTransparent": s.getBoolean(["appearance", "colorTransparent"]), + "colorIcon": s.getBoolean(["appearance", "colorIcon"]), "defaultLanguage": s.get(["appearance", "defaultLanguage"]), "showFahrenheitAlso": s.getBoolean(["appearance", "showFahrenheitAlso"]) }, @@ -153,6 +154,7 @@ def getSettings(): "blockM0M1": s.getBoolean(["serial", "blockM0M1"]), "logPositionOnPause": s.getBoolean(["serial", "logPositionOnPause"]), "logPositionOnCancel": s.getBoolean(["serial", "logPositionOnCancel"]), + "abortHeatupOnCancel": s.getBoolean(["serial", "abortHeatupOnCancel"]), "supportResendsWithoutOk": s.get(["serial", "supportResendsWithoutOk"]), "waitForStart": s.getBoolean(["serial", "waitForStartOnConnect"]), "alwaysSendChecksum": s.getBoolean(["serial", "alwaysSendChecksum"]), @@ -170,7 +172,8 @@ def getSettings(): "maxTimeoutsLong": s.getInt(["serial", "maxCommunicationTimeouts", "long"]), "capAutoreportTemp": s.getBoolean(["serial", "capabilities", "autoreport_temp"]), "capAutoreportSdStatus": s.getBoolean(["serial", "capabilities", "autoreport_sdstatus"]), - "capBusyProtocol": s.getBoolean(["serial", "capabilities", "busy_protocol"]) + "capBusyProtocol": s.getBoolean(["serial", "capabilities", "busy_protocol"]), + "capEmergencyParser": s.getBoolean(["serial", "capabilities", "emergency_parser"]) }, "folder": { "uploads": s.getBaseFolder("uploads"), @@ -371,6 +374,7 @@ def _saveSettings(data): if "name" in data["appearance"]: s.set(["appearance", "name"], data["appearance"]["name"]) if "color" in data["appearance"]: s.set(["appearance", "color"], data["appearance"]["color"]) if "colorTransparent" in data["appearance"]: s.setBoolean(["appearance", "colorTransparent"], data["appearance"]["colorTransparent"]) + if "colorIcon" in data["appearance"]: s.setBoolean(["appearance", "colorIcon"], data["appearance"]["colorIcon"]) if "defaultLanguage" in data["appearance"]: s.set(["appearance", "defaultLanguage"], data["appearance"]["defaultLanguage"]) if "showFahrenheitAlso" in data["appearance"]: s.setBoolean(["appearance", "showFahrenheitAlso"], data["appearance"]["showFahrenheitAlso"]) @@ -409,17 +413,17 @@ def _saveSettings(data): if "autoconnect" in data["serial"]: s.setBoolean(["serial", "autoconnect"], data["serial"]["autoconnect"]) if "port" in data["serial"]: s.set(["serial", "port"], data["serial"]["port"]) if "baudrate" in data["serial"]: s.setInt(["serial", "baudrate"], data["serial"]["baudrate"]) - if "timeoutConnection" in data["serial"]: s.setFloat(["serial", "timeout", "connection"], data["serial"]["timeoutConnection"], minimum=1.0) - if "timeoutDetection" in data["serial"]: s.setFloat(["serial", "timeout", "detection"], data["serial"]["timeoutDetection"], minimum=1.0) - if "timeoutCommunication" in data["serial"]: s.setFloat(["serial", "timeout", "communication"], data["serial"]["timeoutCommunication"], minimum=1.0) - if "timeoutCommunicationBusy" in data["serial"]: s.setFloat(["serial", "timeout", "communicationBusy"], data["serial"]["timeoutCommunicationBusy"], minimum=1.0) - if "timeoutTemperature" in data["serial"]: s.setFloat(["serial", "timeout", "temperature"], data["serial"]["timeoutTemperature"], minimum=1.0) - if "timeoutTemperatureTargetSet" in data["serial"]: s.setFloat(["serial", "timeout", "temperatureTargetSet"], data["serial"]["timeoutTemperatureTargetSet"], minimum=1.0) - if "timeoutTemperatureAutoreport" in data["serial"]: s.setFloat(["serial", "timeout", "temperatureAutoreport"], data["serial"]["timeoutTemperatureAutoreport"], minimum=0.0) - if "timeoutSdStatus" in data["serial"]: s.setFloat(["serial", "timeout", "sdStatus"], data["serial"]["timeoutSdStatus"], minimum=1.0) - if "timeoutSdStatusAutoreport" in data["serial"]: s.setFloat(["serial", "timeout", "sdStatusAutoreport"], data["serial"]["timeoutSdStatusAutoreport"], minimum=0.0) - if "timeoutBaudrateDetectionPause" in data["serial"]: s.setFloat(["serial", "timeout", "baudrateDetectionPause"], data["serial"]["timeoutBaudrateDetectionPause"], minimum=0.0) - if "timeoutPositionLogWait" in data["serial"]: s.setFloat(["serial", "timeout", "positionLogWait"], data["serial"]["timeoutPositionLogWait"], minimum=1.0) + if "timeoutConnection" in data["serial"]: s.setFloat(["serial", "timeout", "connection"], data["serial"]["timeoutConnection"], min=1.0) + if "timeoutDetection" in data["serial"]: s.setFloat(["serial", "timeout", "detection"], data["serial"]["timeoutDetection"], min=1.0) + if "timeoutCommunication" in data["serial"]: s.setFloat(["serial", "timeout", "communication"], data["serial"]["timeoutCommunication"], min=1.0) + if "timeoutCommunicationBusy" in data["serial"]: s.setFloat(["serial", "timeout", "communicationBusy"], data["serial"]["timeoutCommunicationBusy"], min=1.0) + if "timeoutTemperature" in data["serial"]: s.setFloat(["serial", "timeout", "temperature"], data["serial"]["timeoutTemperature"], min=1.0) + if "timeoutTemperatureTargetSet" in data["serial"]: s.setFloat(["serial", "timeout", "temperatureTargetSet"], data["serial"]["timeoutTemperatureTargetSet"], min=1.0) + if "timeoutTemperatureAutoreport" in data["serial"]: s.setFloat(["serial", "timeout", "temperatureAutoreport"], data["serial"]["timeoutTemperatureAutoreport"], min=0.0) + if "timeoutSdStatus" in data["serial"]: s.setFloat(["serial", "timeout", "sdStatus"], data["serial"]["timeoutSdStatus"], min=1.0) + if "timeoutSdStatusAutoreport" in data["serial"]: s.setFloat(["serial", "timeout", "sdStatusAutoreport"], data["serial"]["timeoutSdStatusAutoreport"], min=0.0) + if "timeoutBaudrateDetectionPause" in data["serial"]: s.setFloat(["serial", "timeout", "baudrateDetectionPause"], data["serial"]["timeoutBaudrateDetectionPause"], min=0.0) + if "timeoutPositionLogWait" in data["serial"]: s.setFloat(["serial", "timeout", "positionLogWait"], data["serial"]["timeoutPositionLogWait"], min=1.0) if "additionalPorts" in data["serial"] and isinstance(data["serial"]["additionalPorts"], (list, tuple)): s.set(["serial", "additionalPorts"], data["serial"]["additionalPorts"]) if "additionalBaudrates" in data["serial"] and isinstance(data["serial"]["additionalBaudrates"], (list, tuple)): s.set(["serial", "additionalBaudrates"], data["serial"]["additionalBaudrates"]) if "longRunningCommands" in data["serial"] and isinstance(data["serial"]["longRunningCommands"], (list, tuple)): s.set(["serial", "longRunningCommands"], data["serial"]["longRunningCommands"]) @@ -446,12 +450,14 @@ def _saveSettings(data): if "blockWhileDwelling" in data["serial"]: s.setBoolean(["serial", "blockWhileDwelling"], data["serial"]["blockWhileDwelling"]) if "logPositionOnPause" in data["serial"]: s.setBoolean(["serial", "logPositionOnPause"], data["serial"]["logPositionOnPause"]) if "logPositionOnCancel" in data["serial"]: s.setBoolean(["serial", "logPositionOnCancel"], data["serial"]["logPositionOnCancel"]) + if "abortHeatupOnCancel" in data["serial"]: s.setBoolean(["serial", "abortHeatupOnCancel"], data["serial"]["abortHeatupOnCancel"]) if "maxTimeoutsIdle" in data["serial"]: s.setInt(["serial", "maxCommunicationTimeouts", "idle"], data["serial"]["maxTimeoutsIdle"]) if "maxTimeoutsPrinting" in data["serial"]: s.setInt(["serial", "maxCommunicationTimeouts", "printing"], data["serial"]["maxTimeoutsPrinting"]) if "maxTimeoutsLong" in data["serial"]: s.setInt(["serial", "maxCommunicationTimeouts", "long"], data["serial"]["maxTimeoutsLong"]) if "capAutoreportTemp" in data["serial"]: s.setBoolean(["serial", "capabilities", "autoreport_temp"], data["serial"]["capAutoreportTemp"]) if "capAutoreportSdStatus" in data["serial"]: s.setBoolean(["serial", "capabilities", "autoreport_sdstatus"], data["serial"]["capAutoreportSdStatus"]) if "capBusyProtocol" in data["serial"]: s.setBoolean(["serial", "capabilities", "busy_protocol"], data["serial"]["capBusyProtocol"]) + if "capEmergencyParser" in data["serial"]: s.setBoolean(["serial", "capabilities", "emergency_parser"], data["serial"]["capEmergencyParser"]) oldLog = s.getBoolean(["serial", "log"]) if "log" in data["serial"]: s.setBoolean(["serial", "log"], data["serial"]["log"]) diff --git a/src/octoprint/server/api/timelapse.py b/src/octoprint/server/api/timelapse.py index 2c54a5c86..98fa5dc43 100644 --- a/src/octoprint/server/api/timelapse.py +++ b/src/octoprint/server/api/timelapse.py @@ -127,15 +127,17 @@ def downloadTimelapse(filename): @api.route("/timelapse/", methods=["DELETE"]) @restricted_access def deleteTimelapse(filename): - if util.is_allowed_file(filename, ["mpg", "mpeg", "mp4", "m4v", "mkv"]): - timelapse_folder = settings().getBaseFolder("timelapse") - full_path = os.path.realpath(os.path.join(timelapse_folder, filename)) - if full_path.startswith(timelapse_folder) and os.path.exists(full_path): - try: - os.remove(full_path) - except Exception as ex: - logging.getLogger(__file__).exception("Error deleting timelapse file {}".format(full_path)) - return make_response("Unexpected error: {}".format(ex), 500) + timelapse_folder = settings().getBaseFolder("timelapse") + full_path = os.path.realpath(os.path.join(timelapse_folder, filename)) + if octoprint.timelapse.valid_timelapse(full_path) \ + and full_path.startswith(timelapse_folder) \ + and os.path.exists(full_path) \ + and not util.is_hidden_path(full_path): + try: + os.remove(full_path) + except Exception as ex: + logging.getLogger(__file__).exception("Error deleting timelapse file {}".format(full_path)) + return make_response("Unexpected error: {}".format(ex), 500) return getTimelapseData() diff --git a/src/octoprint/server/util/__init__.py b/src/octoprint/server/util/__init__.py index 5770bc0c9..c2df7ea30 100644 --- a/src/octoprint/server/util/__init__.py +++ b/src/octoprint/server/util/__init__.py @@ -43,7 +43,7 @@ def enforceApiKeyRequestHandler(): apikey = get_api_key(_flask.request) - if apikey is None: + if not apikey: return _flask.make_response("No API key provided", 403) if apikey != octoprint.server.UI_API_KEY and not settings().getBoolean(["api", "enabled"]): diff --git a/src/octoprint/server/util/flask.py b/src/octoprint/server/util/flask.py index 2ab536e36..51ca17048 100644 --- a/src/octoprint/server/util/flask.py +++ b/src/octoprint/server/util/flask.py @@ -31,6 +31,7 @@ import octoprint.plugin from octoprint.util import DefaultOrderedDict from octoprint.util.json import JsonEncoding +from octoprint.util.net import is_lan_address from werkzeug.contrib.cache import BaseCache @@ -514,13 +515,24 @@ def passive_login(): else: user = flask_login.current_user + remoteAddr = get_remote_address(flask.request) + ipCheckEnabled = settings().getBoolean(["server", "ipCheck", "enabled"]) + ipCheckTrusted = settings().get(["server", "ipCheck", "trustedSubnets"]) + if user is not None and not user.is_anonymous() and user.is_active(): flask_principal.identity_changed.send(flask.current_app._get_current_object(), identity=flask_principal.Identity(user.get_id())) if hasattr(user, "session"): flask.session["usersession.id"] = user.session flask.g.user = user - return flask.jsonify(user.asDict()) + + logging.getLogger(__name__).info("Passively logging in user {} from {}".format(user.get_id(), remoteAddr)) + + response = user.asDict() + response["_is_external_client"] = ipCheckEnabled and not is_lan_address(remoteAddr, + additional_private=ipCheckTrusted) + return flask.jsonify(response) + elif settings().getBoolean(["accessControl", "autologinLocal"]) \ and settings().get(["accessControl", "autologinAs"]) is not None \ and settings().get(["accessControl", "localNetworks"]) is not None: @@ -531,7 +543,6 @@ def passive_login(): localNetworks.add(ip) try: - remoteAddr = get_remote_address(flask.request) if netaddr.IPAddress(remoteAddr) in localNetworks: user = octoprint.server.userManager.findUser(autologinAs) if user is not None and user.is_active(): @@ -541,7 +552,14 @@ def passive_login(): flask_login.login_user(user) flask_principal.identity_changed.send(flask.current_app._get_current_object(), identity=flask_principal.Identity(user.get_id())) - return flask.jsonify(user.asDict()) + + logging.getLogger(__name__).info("Passively logging in user {} from {} via autologin".format(user.get_id(), + remoteAddr)) + + response = user.asDict() + response["_is_external_client"] = ipCheckEnabled and not is_lan_address(remoteAddr, + additional_private=ipCheckTrusted) + return flask.jsonify(response) except: logger = logging.getLogger(__name__) logger.exception("Could not autologin user %s for networks %r" % (autologinAs, localNetworks)) @@ -1056,7 +1074,7 @@ def admin_validator(request): :param request: The Flask request object """ - user = _get_flask_user_from_request(request) + user = get_flask_user_from_request(request) if user is None or not user.is_authenticated() or not user.is_admin(): raise tornado.web.HTTPError(403) @@ -1071,12 +1089,12 @@ def user_validator(request): :param request: The Flask request object """ - user = _get_flask_user_from_request(request) + user = get_flask_user_from_request(request) if user is None or not user.is_authenticated(): raise tornado.web.HTTPError(403) -def _get_flask_user_from_request(request): +def get_flask_user_from_request(request): """ Retrieves the current flask user from the request context. Uses API key if available, otherwise the current user session if available. @@ -1088,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 @@ -1120,28 +1141,34 @@ def redirect_to_tornado(request, target, code=302): def restricted_access(func): + """ + This combines :py:func:`no_firstrun_access` and ``login_required``. + """ + @functools.wraps(func) + def decorated_view(*args, **kwargs): + return no_firstrun_access(flask_login.login_required(func))(*args, **kwargs) + return decorated_view + +def no_firstrun_access(func): """ If you decorate a view with this, it will ensure that first setup has been - done for OctoPrint's Access Control plus that any conditions of the - login_required decorator are met (possibly through a session already created - by octoprint.server.util.apiKeyRequestHandler earlier in the request processing). + done for OctoPrint's Access Control. If OctoPrint's Access Control has not been setup yet (indicated by the "firstRun" flag from the settings being set to True and the userManager not indicating that it's user database has been customized from default), the decorator will cause a HTTP 403 status code to be returned by the decorated resource. """ + @functools.wraps(func) def decorated_view(*args, **kwargs): # if OctoPrint hasn't been set up yet, abort if settings().getBoolean(["server", "firstRun"]) and settings().getBoolean(["accessControl", "enabled"]) and (octoprint.server.userManager is None or not octoprint.server.userManager.hasBeenCustomized()): return flask.make_response("OctoPrint isn't setup yet", 403) - - return flask_login.login_required(func)(*args, **kwargs) + return func(*args, **kwargs) return decorated_view - def firstrun_only_access(func): """ If you decorate a view with this, it will ensure that first setup has _not_ been @@ -1321,6 +1348,7 @@ class SettingsCheckUpdater(webassets.updater.BaseUpdater): def collect_core_assets(enable_gcodeviewer=True, preferred_stylesheet="css"): assets = dict( js=[], + clientjs=[], css=[], less=[] ) @@ -1362,6 +1390,26 @@ def collect_core_assets(enable_gcodeviewer=True, preferred_stylesheet="css"): 'gcodeviewer/js/renderer.js' ] + assets["clientjs"] = [ + "js/app/client/base.js", + "js/app/client/socket.js", + "js/app/client/browser.js", + "js/app/client/connection.js", + "js/app/client/control.js", + "js/app/client/files.js", + "js/app/client/job.js", + "js/app/client/languages.js", + "js/app/client/printer.js", + "js/app/client/printerprofiles.js", + "js/app/client/settings.js", + "js/app/client/slicing.js", + "js/app/client/system.js", + "js/app/client/timelapse.js", + "js/app/client/users.js", + "js/app/client/util.js", + "js/app/client/wizard.js" + ] + if preferred_stylesheet == "less": assets["less"].append('less/octoprint.less') elif preferred_stylesheet == "css": @@ -1376,9 +1424,11 @@ def collect_plugin_assets(enable_gcodeviewer=True, preferred_stylesheet="css"): supported_stylesheets = ("css", "less") assets = dict(bundled=dict(js=DefaultOrderedDict(list), + clientjs=DefaultOrderedDict(list), css=DefaultOrderedDict(list), less=DefaultOrderedDict(list)), external=dict(js=DefaultOrderedDict(list), + clientjs=DefaultOrderedDict(list), css=DefaultOrderedDict(list), less=DefaultOrderedDict(list))) @@ -1408,6 +1458,12 @@ def collect_plugin_assets(enable_gcodeviewer=True, preferred_stylesheet="css"): continue assets[asset_key]["js"][name].append('plugin/{name}/{asset}'.format(**locals())) + if "clientjs" in all_assets: + for asset in all_assets["clientjs"]: + if not asset_exists("clientjs", asset): + continue + assets[asset_key]["clientjs"][name].append("plugin/{name}/{asset}".format(**locals())) + if preferred_stylesheet in all_assets: for asset in all_assets[preferred_stylesheet]: if not asset_exists(preferred_stylesheet, asset): diff --git a/src/octoprint/server/util/sockjs.py b/src/octoprint/server/util/sockjs.py index 7debafa0e..9aaad5bdb 100644 --- a/src/octoprint/server/util/sockjs.py +++ b/src/octoprint/server/util/sockjs.py @@ -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,12 +88,21 @@ 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 self._throttleFactor = 1 self._lastCurrent = 0 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 + def _getRemoteAddress(self, info): forwardedFor = info.headers.get("X-Forwarded-For") if forwardedFor is not None: @@ -106,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) @@ -132,40 +143,16 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o safe_mode=octoprint.server.safe_mode )) - 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(): - self._eventManager.subscribe(event, self._onEvent) - - octoprint.timelapse.notify_callbacks(octoprint.timelapse.current) - - # This is a horrible hack for now to allow displaying a notification that a render job is still - # active in the backend on a fresh connect of a client. This needs to be substituted with a proper - # job management for timelapse rendering, analysis stuff etc that also gets cancelled when prints - # start and so on. - # - # For now this is the easiest way though to at least inform the user that a timelapse is still ongoing. - # - # TODO remove when central job management becomes available and takes care of this for us - if octoprint.timelapse.current_render_job is not None: - self._emit("event", {"type": Events.MOVIE_RENDERING, "payload": octoprint.timelapse.current_render_job}) + self._register() def on_close(self): - 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(): - self._eventManager.unsubscribe(event, self._onEvent) + self._unregister() self._logger.info("Client connection closed: %s" % self._remoteAddress) + + self._on_logout() self._remoteAddress = None + self._pluginManager.unregister_message_receiver(self.on_plugin_message) def on_message(self, message): try: @@ -175,7 +162,27 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o self._logger.warn("Invalid JSON received from client {}, ignoring: {!r}".format(self._remoteAddress, message)) return - if "throttle" in message: + if "auth" in message: + try: + parts = message["auth"].split(":") + if not len(parts) == 2: + raise ValueError() + except ValueError: + self._logger.warn("Got invalid auth message from client {}, ignoring: {!r]".format(self._remoteAddress, + message["auth"])) + else: + user_id, user_session = parts + user = self._userManager.findUser(userid=user_id, session=user_session) + + if user is not None: + self._on_login(user) + else: + self._logger.warn("Unknown user/session combo: {}:{}".format(user_id, user_session)) + self._on_logout() + + self._register() + + elif "throttle" in message: try: throttle = int(message["throttle"]) if throttle < 1: @@ -257,6 +264,19 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o self.sendEvent(event, payload) def _emit(self, type, payload): + proceed = True + for name, hook in self._emit_hooks.items(): + try: + proceed = proceed and hook(self, self._user, type, payload) + except: + self._logger.exception("Error processing emit hook handler from plugin {}".format(name)) + + if not proceed: + return + + self._do_emit(type, payload) + + def _do_emit(self, type, payload): try: self.send({type: payload}) except Exception as e: @@ -264,3 +284,89 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o self._logger.exception("Could not send message to client {}".format(self._remoteAddress)) else: self._logger.warn("Could not send message to client {}: {}".format(self._remoteAddress, e)) + + def _register(self): + proceed = True + for name, hook in self._register_hooks.items(): + try: + proceed = proceed and hook(self, self._user) + except: + self._logger.exception("Error processing register hook handler for plugin {}".format(name)) + + if not proceed: + return + + if self._registered: + return + + self._printer.register_callback(self) + self._fileManager.register_slicingprogress_callback(self) + octoprint.timelapse.register_callback(self) + + self._eventManager.fire(Events.CLIENT_OPENED, {"remoteAddress": self._remoteAddress}) + for event in octoprint.events.all_events(): + self._eventManager.subscribe(event, self._onEvent) + + octoprint.timelapse.notify_callbacks(octoprint.timelapse.current) + + # This is a horrible hack for now to allow displaying a notification that a render job is still + # active in the backend on a fresh connect of a client. This needs to be substituted with a proper + # job management for timelapse rendering, analysis stuff etc that also gets cancelled when prints + # start and so on. + # + # For now this is the easiest way though to at least inform the user that a timelapse is still ongoing. + # + # TODO remove when central job management becomes available and takes care of this for us + if octoprint.timelapse.current_render_job is not None: + self._emit("event", {"type": Events.MOVIE_RENDERING, "payload": octoprint.timelapse.current_render_job}) + + self._registered = True + + def _unregister(self): + self._printer.unregister_callback(self) + self._fileManager.unregister_slicingprogress_callback(self) + octoprint.timelapse.unregister_callback(self) + + self._eventManager.fire(Events.CLIENT_CLOSED, {"remoteAddress": self._remoteAddress}) + for event in octoprint.events.all_events(): + self._eventManager.unsubscribe(event, self._onEvent) + + 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)) + diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py index 3ec1624a2..e40fbb2b9 100644 --- a/src/octoprint/server/util/tornado.py +++ b/src/octoprint/server/util/tornado.py @@ -1127,13 +1127,19 @@ class GlobalHeaderTransform(tornado.web.OutputTransform): #~~ Factory method for creating Flask access validation wrappers from the Tornado request context -def access_validation_factory(app, login_manager, validator): +def access_validation_factory(app, validator, *args): """ Creates an access validation wrapper using the supplied validator. :param validator: the access validator to use inside the validation wrapper :return: an access validator taking a request as parameter and performing the request validation """ + + # TODO remove in 1.4.0 + if len(args): + # old parameters incl. login_manager + validator = args[0] + def f(request): """ Creates a custom wsgi and Flask request context in order to be able to process user information @@ -1146,7 +1152,7 @@ def access_validation_factory(app, login_manager, validator): wsgi_environ = WsgiInputContainer.environ(request) with app.request_context(wsgi_environ): app.session_interface.open_session(app, flask.request) - login_manager.reload_user() + app.login_manager.reload_user() validator(flask.request) return f @@ -1162,3 +1168,9 @@ def path_validation_factory(path_filter, status_code=404): if not path_filter(path): raise tornado.web.HTTPError(status_code) return f + +def validation_chain(*validators): + def f(request): + for validator in validators: + validator(request) + return f diff --git a/src/octoprint/settings.py b/src/octoprint/settings.py index 7f99d617a..e3f4e18ed 100644 --- a/src/octoprint/settings.py +++ b/src/octoprint/settings.py @@ -121,6 +121,7 @@ default_settings = { "supportResendsWithoutOk": "detect", "logPositionOnPause": True, "logPositionOnCancel": False, + "abortHeatupOnCancel": True, "waitForStartOnConnect": False, "alwaysSendChecksum": False, "neverSendChecksum": False, @@ -141,7 +142,8 @@ default_settings = { "capabilities": { "autoreport_temp": True, "autoreport_sdstatus": True, - "busy_protocol": True + "busy_protocol": True, + "emergency_parser": True }, # command specific flags @@ -198,6 +200,10 @@ default_settings = { "preemptiveCache": { "exceptions": [], "until": 7 + }, + "ipCheck": { + "enabled": True, + "trustedSubnets": [] } }, "webcam": { @@ -278,21 +284,23 @@ default_settings = { "name": "", "color": "default", "colorTransparent": False, + "colorIcon": True, "defaultLanguage": "_default", "showFahrenheitAlso": False, "components": { "order": { - "navbar": ["settings", "systemmenu", "plugin_announcements", "login"], + "navbar": ["settings", "systemmenu", "plugin_announcements", "plugin_pi_support", "login"], "sidebar": ["plugin_printer_safety_check", "connection", "state", "files"], "tab": ["temperature", "control", "gcodeviewer", "terminal", "timelapse"], "settings": [ "section_printer", "serial", "printerprofiles", "temperatures", "terminalfilters", "gcodescripts", - "section_features", "features", "webcam", "accesscontrol", "gcodevisualizer", "api", - "section_octoprint", "server", "folders", "appearance", "plugin_logging", "plugin_pluginmanager", "plugin_softwareupdate", "plugin_announcements" + "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_tracking", "plugin_pi_support" ], "usersettings": ["access", "interface"], "wizard": ["access"], - "about": ["about", "plugin_octopi_support", "supporters", "authors", "changelog", "license", "thirdparty", "plugin_pluginmanager"], + "about": ["about", "plugin_pi_support", "supporters", "authors", "changelog", "license", "thirdparty", "plugin_pluginmanager"], "generic": [] }, "disabled": { @@ -336,7 +344,7 @@ default_settings = { "apps": {} }, "terminalFilters": [ - { "name": "Suppress temperature messages", "regex": "(Send: (N\d+\s+)?M105)|(Recv:\s+(ok\s+)?(B|T\d*):)" }, + { "name": "Suppress temperature messages", "regex": "(Send: (N\d+\s+)?M105)|(Recv:\s+(ok\s+)?.*(B|T\d*):\d+)" }, { "name": "Suppress SD status messages", "regex": "(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)|(Recv: Not SD printing)" }, { "name": "Suppress wait responses", "regex": "Recv: wait"} ], @@ -347,7 +355,7 @@ default_settings = { "gcode": { "afterPrintCancelled": "; disable motors\nM84\n\n;disable all heaters\n{% snippet 'disable_hotends' %}\n{% snippet 'disable_bed' %}\n;disable fan\nM106 S0", "snippets": { - "disable_hotends": "{% for tool in range(printer_profile.extruder.count) %}M104 T{{ tool }} S0\n{% endfor %}", + "disable_hotends": "{% if printer_profile.extruder.sharedNozzle %}M104 T0 S0\n{% else %}{% for tool in range(printer_profile.extruder.count) %}M104 T{{ tool }} S0\n{% endfor %}{% endif %}", "disable_bed": "{% if printer_profile.heatedBed %}M140 S0\n{% endif %}" } } @@ -405,10 +413,11 @@ default_settings = { "preparedOks": [], "okFormatString": "ok", "m115FormatString": "FIRMWARE_NAME:{firmware_name} PROTOCOL_VERSION:1.0", - "m115ReportCapabilities": False, + "m115ReportCapabilities": True, "capabilities": { "AUTOREPORT_TEMP": True, - "AUTOREPORT_SD_STATUS": True + "AUTOREPORT_SD_STATUS": True, + "EMERGENCY_PARSER": True }, "m114FormatString": "X:{x} Y:{y} Z:{z} E:{e[current]} Count: A:{a} B:{b} C:{c}", "ambientTemperature": 21.3, @@ -595,6 +604,8 @@ class Settings(object): self._basedir = None + assert(isinstance(default_settings, dict)) + self._map = HierarchicalChainMap(dict(), default_settings) self._config = None @@ -865,6 +876,7 @@ class Settings(object): try: self._config = yaml.safe_load(f) self._mtime = self.last_modified + except yaml.YAMLError as e: details = e.message @@ -879,10 +891,12 @@ class Settings(object): details=details, line=line, column=column) + except: raise + # changed from else to handle cases where the file exists, but is empty / 0 bytes - if not self._config: + if not self._config or not isinstance(self._config, dict): self._config = dict() if migrate: @@ -1581,7 +1595,7 @@ class Settings(object): #~~ setter - def set(self, path, value, force=False, defaults=None, config=None, preprocessors=None, error_on_path=False): + def set(self, path, value, force=False, defaults=None, config=None, preprocessors=None, error_on_path=False, *args, **kwargs): if not path: if error_on_path: raise NoSuchSettingsPath() diff --git a/src/octoprint/static/gcodeviewer/js/renderer.js b/src/octoprint/static/gcodeviewer/js/renderer.js index 24d104ee6..f63412b42 100644 --- a/src/octoprint/static/gcodeviewer/js/renderer.js +++ b/src/octoprint/static/gcodeviewer/js/renderer.js @@ -10,7 +10,11 @@ GCODE.renderer = (function(){ // ***** PRIVATE ****** var canvas; var ctx; - var zoomFactor= 2.8, zoomFactorDelta = 0.4; + + var viewportChanged = true; + var lineWidthFactor = 1 / 2.8; + + var zoomFactorDelta = 0.4; var gridStep=10; var ctxHeight, ctxWidth; var prevX=0, prevY=0; @@ -18,7 +22,7 @@ GCODE.renderer = (function(){ var layerNumStore, progressStore={from: 0, to: -1}; var lastX, lastY; - var dragStart, dragged; + var dragStart; var scaleFactor = 1.1; var model = undefined; var modelInfo = undefined; @@ -56,7 +60,12 @@ GCODE.renderer = (function(){ bed: {x: 200, y: 200}, container: undefined, - onInternalOptionChange: undefined + onInternalOptionChange: undefined, + + onViewportChange: undefined, + onDragStart: undefined, // Cancellable (return false) + onDrag: undefined, // Cancellable (return false) + onDragStop: undefined }; var offsetModelX = 0, offsetModelY = 0; @@ -66,19 +75,37 @@ GCODE.renderer = (function(){ var speedsByLayer = {}; var currentInvertX = false, currentInvertY = false; + function notifyIfViewportChanged() { + if (viewportChanged) { + if (renderOptions["onViewportChange"]) { + renderOptions["onViewportChange"](ctx.getTransform()); + } + viewportChanged = false; + } + } + var reRender = function(){ + notifyIfViewportChanged(); + var p1 = ctx.transformedPoint(0,0); var p2 = ctx.transformedPoint(canvas.width,canvas.height); ctx.clearRect(p1.x,p1.y,p2.x-p1.x,p2.y-p1.y); + drawGrid(); drawBoundingBox(); - if (renderOptions['showNextLayer'] && model && model.length && layerNumStore < model.length - 1) { - drawLayer(layerNumStore + 1, 0, GCODE.renderer.getLayerNumSegments(layerNumStore + 1), true); + if (model && model.length) { + if (layerNumStore < model.length) { + if (renderOptions['showNextLayer'] && layerNumStore < model.length - 1) { + drawLayer(layerNumStore + 1, 0, GCODE.renderer.getLayerNumSegments(layerNumStore + 1), true); + } + if (renderOptions['showPreviousLayer'] && layerNumStore > 0) { + drawLayer(layerNumStore - 1, 0, GCODE.renderer.getLayerNumSegments(layerNumStore - 1), true); + } + drawLayer(layerNumStore, progressStore.from, progressStore.to); + } else { + console.log("Got request to render non-existent layer"); + } } - if (renderOptions['showPreviousLayer'] && layerNumStore > 0) { - drawLayer(layerNumStore - 1, 0, GCODE.renderer.getLayerNumSegments(layerNumStore - 1), true); - } - drawLayer(layerNumStore, progressStore.from, progressStore.to); }; function trackTransforms(ctx){ @@ -95,22 +122,26 @@ GCODE.renderer = (function(){ var restore = ctx.restore; ctx.restore = function(){ xform = savedTransforms.pop(); + viewportChanged = true; return restore.call(ctx); }; var scale = ctx.scale; ctx.scale = function(sx,sy){ xform = xform.scaleNonUniform(sx,sy); + viewportChanged = true; return scale.call(ctx,sx,sy); }; var rotate = ctx.rotate; ctx.rotate = function(radians){ xform = xform.rotate(radians*180/Math.PI); + viewportChanged = true; return rotate.call(ctx,radians); }; var translate = ctx.translate; ctx.translate = function(dx,dy){ xform = xform.translate(dx,dy); + viewportChanged = true; return translate.call(ctx,dx,dy); }; var transform = ctx.transform; @@ -118,6 +149,7 @@ GCODE.renderer = (function(){ var m2 = svg.createSVGMatrix(); m2.a=a; m2.b=b; m2.c=c; m2.d=d; m2.e=e; m2.f=f; xform = xform.multiply(m2); + viewportChanged = true; return transform.call(ctx,a,b,c,d,e,f); }; var setTransform = ctx.setTransform; @@ -128,6 +160,7 @@ GCODE.renderer = (function(){ xform.d = d; xform.e = e; xform.f = f; + viewportChanged = true; return setTransform.call(ctx,a,b,c,d,e,f); }; var pt = svg.createSVGPoint(); @@ -152,10 +185,12 @@ GCODE.renderer = (function(){ ctxWidth = canvas.width; lastX = ctxWidth/2; lastY = ctxHeight/2; - ctx.lineWidth = 2; + ctx.lineWidth = 2 * lineWidthFactor; ctx.lineCap = 'round'; trackTransforms(ctx); + ctx.scale(1,-1); // Invert y-axis + // dragging => translating canvas.addEventListener('mousedown', function(event){ document.body.style.mozUserSelect = document.body.style.webkitUserSelect = document.body.style.userSelect = 'none'; @@ -163,10 +198,10 @@ GCODE.renderer = (function(){ // remember starting point of dragging gesture lastX = (event.offsetX || (event.pageX - canvas.offsetLeft)) * pixelRatio; lastY = (event.offsetY || (event.pageY - canvas.offsetTop)) * pixelRatio; - dragStart = ctx.transformedPoint(lastX, lastY); - // not yet dragged anything - dragged = false; + var pt = ctx.transformedPoint(lastX, lastY); + if (!renderOptions["onDragStart"] || (renderOptions["onDragStart"](pt) !== false)) + dragStart = pt; }, false); canvas.addEventListener('mousemove', function(event){ @@ -175,11 +210,13 @@ GCODE.renderer = (function(){ lastY = (event.offsetY || (event.pageY - canvas.offsetTop)) * pixelRatio; // mouse movement => dragged - dragged = true; - - if (dragStart !== undefined){ + if (dragStart !== undefined) { // translate var pt = ctx.transformedPoint(lastX,lastY); + + if (renderOptions["onDrag"] && (renderOptions["onDrag"](pt) === false)) + return; + ctx.translate(pt.x - dragStart.x, pt.y - dragStart.y); reRender(); @@ -207,6 +244,12 @@ GCODE.renderer = (function(){ canvas.addEventListener('mouseup', function(event){ // reset dragStart dragStart = undefined; + + if (renderOptions["onDragStop"]) { + var x = (event.offsetX || (event.pageX - canvas.offsetLeft)) * pixelRatio; + var y = (event.offsetY || (event.pageY - canvas.offsetTop)) * pixelRatio; + renderOptions["onDragStop"](ctx.transformedPoint(x,y)); + } }, false); // mouse wheel => zooming @@ -294,45 +337,45 @@ GCODE.renderer = (function(){ ctx.beginPath(); ctx.strokeStyle = renderOptions["colorGrid"]; ctx.fillStyle = "#ffffff"; - ctx.lineWidth = 2; + ctx.lineWidth = 2 * lineWidthFactor; // outline - ctx.rect(minX * zoomFactor, -1 * minY * zoomFactor, width * zoomFactor, -1 * height * zoomFactor); + ctx.rect(minX, minY, width, height); // origin - ctx.moveTo(minX * zoomFactor, 0); - ctx.lineTo(maxX * zoomFactor, 0); - ctx.moveTo(0, -1 * minY * zoomFactor); - ctx.lineTo(0, -1 * maxY * zoomFactor); + ctx.moveTo(minX, 0); + ctx.lineTo(maxX, 0); + ctx.moveTo(0, minY); + ctx.lineTo(0, maxY); // draw ctx.fill(); ctx.stroke(); ctx.strokeStyle = renderOptions["colorGrid"]; - ctx.lineWidth = 1; + ctx.lineWidth = lineWidthFactor; //~~ grid starting from origin ctx.beginPath(); for (x = 0; x <= maxX; x += gridStep) { - ctx.moveTo(x * zoomFactor, -1 * minY * zoomFactor); - ctx.lineTo(x * zoomFactor, -1 * maxY * zoomFactor); + ctx.moveTo(x, minY); + ctx.lineTo(x, maxY); if (renderOptions["bed"]["centeredOrigin"]) { - ctx.moveTo(-1 * x * zoomFactor, -1 * minY * zoomFactor); - ctx.lineTo(-1 * x * zoomFactor, -1 * maxY * zoomFactor); + ctx.moveTo(-1 * x, minY); + ctx.lineTo(-1 * x, maxY); } } ctx.stroke(); ctx.beginPath(); for (y = 0; y <= maxY; y += gridStep) { - ctx.moveTo(minX * zoomFactor, -1 * y * zoomFactor); - ctx.lineTo(maxX * zoomFactor, -1 * y * zoomFactor); + ctx.moveTo(minX, y); + ctx.lineTo(maxX, y); if (renderOptions["bed"]["centeredOrigin"]) { - ctx.moveTo(minX * zoomFactor, y * zoomFactor); - ctx.lineTo(maxX * zoomFactor, y * zoomFactor); + ctx.moveTo(minX, -1 * y); + ctx.lineTo(maxX, -1 * y); } } ctx.stroke(); @@ -343,44 +386,45 @@ GCODE.renderer = (function(){ ctx.strokeStyle = renderOptions["colorGrid"]; ctx.fillStyle = "#ffffff"; - ctx.lineWidth = 2; + ctx.lineWidth = 2 * lineWidthFactor; //~~ bed outline & origin ctx.beginPath(); // outline - ctx.arc(0, 0, renderOptions["bed"]["r"] * zoomFactor, 0, Math.PI * 2, true); + var r = renderOptions["bed"]["r"]; + ctx.arc(0, 0, r, 0, Math.PI * 2, true); // origin - ctx.moveTo(-1 * renderOptions["bed"]["r"] * zoomFactor, 0); - ctx.lineTo(renderOptions["bed"]["r"] * zoomFactor, 0); - ctx.moveTo(0, -1 * renderOptions["bed"]["r"] * zoomFactor); - ctx.lineTo(0, renderOptions["bed"]["r"] * zoomFactor); + ctx.moveTo(-1 * r, 0); + ctx.lineTo(r, 0); + ctx.moveTo(0, r); + ctx.lineTo(0, -1 * r); // draw ctx.fill(); ctx.stroke(); ctx.strokeStyle = renderOptions["colorGrid"]; - ctx.lineWidth = 1; + ctx.lineWidth = lineWidthFactor; //~~ grid starting from origin ctx.beginPath(); - for (i = 0; i <= renderOptions["bed"]["r"]; i += gridStep) { + for (i = 0; i <= r; i += gridStep) { var x = i; - var y = Math.sqrt(Math.pow(renderOptions["bed"]["r"], 2) - Math.pow(x, 2)); + var y = Math.sqrt(r*r - x*x); - ctx.moveTo(x * zoomFactor, y * zoomFactor); - ctx.lineTo(x * zoomFactor, -1 * y * zoomFactor); + ctx.moveTo(x, -1 * y); + ctx.lineTo(x, y); - ctx.moveTo(y * zoomFactor, x * zoomFactor); - ctx.lineTo(-1 * y * zoomFactor, x * zoomFactor); + ctx.moveTo(y, -1 * x); + ctx.lineTo(-1 * y, -1 * x); - ctx.moveTo(-1 * x * zoomFactor, y * zoomFactor); - ctx.lineTo(-1 * x * zoomFactor, -1 * y * zoomFactor); + ctx.moveTo(-1 * x, -1 * y); + ctx.lineTo(-1 * x, y); - ctx.moveTo(y * zoomFactor, -1 * x * zoomFactor); - ctx.lineTo(-1 * y * zoomFactor, -1 * x * zoomFactor); + ctx.moveTo(y, x); + ctx.lineTo(-1 * y, x); } ctx.stroke(); }; @@ -391,31 +435,31 @@ GCODE.renderer = (function(){ var minX, minY, width, height; if (renderOptions["showFullSize"]) { - minX = modelInfo.min.x * zoomFactor; - minY = modelInfo.min.y * zoomFactor; - width = modelInfo.modelSize.x * zoomFactor; - height = modelInfo.modelSize.y * zoomFactor; + minX = modelInfo.min.x; + minY = modelInfo.min.y; + width = modelInfo.modelSize.x; + height = modelInfo.modelSize.y; ctx.beginPath(); ctx.strokeStyle = "#0000ff"; ctx.setLineDash([2, 5]); - ctx.rect(minX, minY * -1, width, height * -1); + ctx.rect(minX, minY, width, height); ctx.stroke(); } if (renderOptions["showBoundingBox"]) { - minX = modelInfo.boundingBox.minX * zoomFactor; - minY = modelInfo.boundingBox.minY * zoomFactor; - width = modelInfo.boundingBox.maxX * zoomFactor - minX; - height = modelInfo.boundingBox.maxY * zoomFactor - minY; + minX = modelInfo.boundingBox.minX; + minY = modelInfo.boundingBox.minY; + width = modelInfo.boundingBox.maxX - minX; + height = modelInfo.boundingBox.maxY - minY; ctx.beginPath(); ctx.strokeStyle = "#ff0000"; ctx.setLineDash([2, 5]); - ctx.rect(minX, minY * -1, width, height * -1); + ctx.rect(minX, minY, width, height); ctx.stroke(); } @@ -439,29 +483,35 @@ GCODE.renderer = (function(){ */ var ax, bx, cx, ay, by, cy; - var h = Math.sqrt(0.75 * length * length); + var h = Math.sqrt(0.75 * length * length) / 2; ax = centerX - length / 2; - bx = centerX + length / 2; + bx = ax + length; cx = centerX; if (up) { - ay = centerY + h / 2; - by = centerY + h / 2; - cy = centerY - h / 2; + ay = centerY - h; + by = centerY - h; + cy = centerY + h; } else { - ay = centerY - h / 2; - by = centerY - h / 2; - cy = centerY + h / 2; + ay = centerY + h; + by = centerY + h; + cy = centerY - h; } + var origLineJoin = ctx.lineJoin; + ctx.lineJoin = "miter"; + ctx.beginPath(); ctx.moveTo(ax, ay); ctx.lineTo(bx, by); + ctx.moveTo(bx, by); ctx.lineTo(cx, cy); ctx.lineTo(ax, ay); ctx.stroke(); ctx.fill(); + + ctx.lineJoin = origLineJoin; }; var drawLayer = function(layerNum, fromProgress, toProgress, isNotCurrentLayer){ @@ -472,11 +522,6 @@ GCODE.renderer = (function(){ //~~ store current layer values isNotCurrentLayer = isNotCurrentLayer !== undefined ? isNotCurrentLayer : false; - if (!isNotCurrentLayer) { - // not not current layer == current layer => store layer number and from/to progress - layerNumStore = layerNum; - progressStore = {from: fromProgress, to: toProgress}; - } if (!model || !model[layerNum]) return; @@ -487,19 +532,28 @@ GCODE.renderer = (function(){ if (cmds[0].prevX !== undefined && cmds[0].prevY !== undefined) { // command contains prevX/prevY values, use those - prevX = cmds[0].prevX * zoomFactor; - prevY = -1 * cmds[0].prevY * zoomFactor; + prevX = cmds[0].prevX; + prevY = cmds[0].prevY; } else if (fromProgress > 0) { // previous command in same layer exists, use x/y as prevX/prevY - prevX = cmds[fromProgress - 1].x * zoomFactor; - prevY = -cmds[fromProgress - 1].y * zoomFactor; + prevX = cmds[fromProgress - 1].x; + prevY = cmds[fromProgress - 1].y; } else if (model[layerNum - 1]) { // previous layer exists, use last x/y as prevX/prevY prevX = undefined; prevY = undefined; - for (i = model[layerNum-1].length-1; i >= 0; i--) { - if (prevX === undefined && model[layerNum - 1][i].x !== undefined) prevX = model[layerNum - 1][i].x * zoomFactor; - if (prevY === undefined && model[layerNum - 1][i].y !== undefined) prevY =- model[layerNum - 1][i].y * zoomFactor; + var prevModelLayer = model[layerNum-1]; + for (i = prevModelLayer.length-1; i >= 0; i--) { + if (prevX === undefined && prevModelLayer[i].x !== undefined) { + prevX = prevModelLayer[i].x; + if (prevY !== undefined) + break; + } + if (prevY === undefined && prevModelLayer[i].y !== undefined) { + prevY = prevModelLayer[i].y; + if (prevX !== undefined) + break; + } } } @@ -510,106 +564,160 @@ GCODE.renderer = (function(){ //~~ render this layer's commands + var sizeRetractSpot = renderOptions["sizeRetractSpot"] * lineWidthFactor * 2; + + // alpha value (100% if current layer is being rendered, 30% otherwise) + var alpha = (renderOptions['showNextLayer'] || renderOptions['showPreviousLayer']) && isNotCurrentLayer ? 0.3 : 1.0; + + var colorLine = {}; + var colorMove = {}; + var colorRetract = {}; + var colorRestart = {}; + + function getColorLineForTool(tool) { + var rv = colorLine[tool]; + if (rv === undefined) { + var lineColor = renderOptions["colorLine"][tool]; + if (lineColor === undefined) lineColor = renderOptions["colorLine"][0]; + var shade = tool * 0.15; + rv = colorLine[tool] = pusher.color(lineColor).shade(shade).alpha(alpha).html(); + } + return rv; + } + + function getColorMoveForTool(tool) { + var rv = colorMove[tool]; + if (rv === undefined) { + var shade = tool * 0.15; + rv = colorMove[tool] = pusher.color(renderOptions["colorMove"]).shade(shade).alpha(alpha).html(); + } + return rv; + } + + function getColorRetractForTool(tool) { + var rv = colorRetract[tool]; + if (rv === undefined) { + var shade = tool * 0.15; + rv = colorRetract[tool] = pusher.color(renderOptions["colorRetract"]).shade(shade).alpha(alpha).html(); + } + return rv; + } + + function getColorRestartForTool(tool) { + var rv = colorRestart[tool]; + if (rv === undefined) { + var shade = tool * 0.15; + rv = colorRestart[tool] = pusher.color(renderOptions["colorRestart"]).shade(shade).alpha(alpha).html(); + } + return rv; + } + + var prevPathType = "fill"; + function strokePathIfNeeded(newPathType, strokeStyle) { + if ((newPathType != prevPathType) || (newPathType == "fill")) { + if (prevPathType != "fill") { + ctx.stroke(); + } + prevPathType = newPathType; + + ctx.beginPath(); + if (newPathType != "fill") { + ctx.strokeStyle = strokeStyle; + ctx.moveTo(prevX, prevY); + } + } + } + + ctx.lineJoin = "round"; + for (i = fromProgress; i <= toProgress; i++) { - ctx.lineWidth = 1; - if (typeof(cmds[i]) === 'undefined') continue; + var cmd = cmds[i]; - if (typeof(cmds[i].prevX) !== 'undefined' && typeof(cmds[i].prevY) !== 'undefined') { + if (cmd.prevX !== undefined && cmd.prevY !== undefined) { // override new (prevX, prevY) - prevX = cmds[i].prevX * zoomFactor; - prevY = -1 * cmds[i].prevY * zoomFactor; + prevX = cmd.prevX; + prevY = cmd.prevY; } // new x - if (typeof(cmds[i].x) === 'undefined' || isNaN(cmds[i].x)) { - x = prevX / zoomFactor; + if (cmd.x === undefined || isNaN(cmd.x)) { + x = prevX; } else { - x = cmds[i].x; + x = cmd.x; } // new y - if (typeof(cmds[i].y) === 'undefined' || isNaN(cmds[i].y)) { - y = prevY / zoomFactor; + if (cmd.y === undefined || isNaN(cmd.y)) { + y = prevY; } else { - y = -cmds[i].y; + y = cmd.y; } // current tool - var tool = cmds[i].tool; - if (tool === undefined) tool = 0; + var tool = cmd.tool || 0; - // line color based on tool - var lineColor = renderOptions["colorLine"][tool]; - if (lineColor === undefined) lineColor = renderOptions["colorLine"][0]; - - // alpha value (100% if current layer is being rendered, 30% otherwise) - var alpha = (renderOptions['showNextLayer'] || renderOptions['showPreviousLayer']) && isNotCurrentLayer ? 0.3 : 1.0; - var shade = tool * 0.15; - - if (!cmds[i].extrude && !cmds[i].noMove) { + if (!cmd.extrude && !cmd.noMove) { // neither extrusion nor move - if (cmds[i].retract === -1) { + if (cmd.retract == -1) { // retract => draw dot if configured to do so if (renderOptions["showRetracts"]) { - ctx.strokeStyle = pusher.color(renderOptions["colorRetract"]).shade(shade).alpha(alpha).html(); - ctx.fillStyle = pusher.color(renderOptions["colorRetract"]).shade(shade).alpha(alpha).html(); - drawTriangle(prevX, prevY, renderOptions["sizeRetractSpot"] * 2, true); + strokePathIfNeeded("fill"); + ctx.fillStyle = getColorRetractForTool(tool); + ctx.strokeStyle = ctx.fillStyle; + drawTriangle(prevX, prevY, sizeRetractSpot, true); } } + strokePathIfNeeded("move", getColorMoveForTool(tool)); if(renderOptions["showMoves"]){ // move => draw line from (prevX, prevY) to (x, y) in move color - ctx.strokeStyle = pusher.color(renderOptions["colorMove"]).shade(shade).alpha(alpha).html(); - ctx.beginPath(); - ctx.moveTo(prevX, prevY); - ctx.lineTo(x*zoomFactor,y*zoomFactor); - ctx.stroke(); + ctx.lineWidth = lineWidthFactor; + ctx.lineTo(x,y); } - } else if(cmds[i].extrude) { - if (cmds[i].retract === 0) { + } else if(cmd.extrude) { + if (cmd.retract == 0) { // no retraction => real extrusion move, use tool color to draw line - ctx.strokeStyle = pusher.color(renderOptions["colorLine"][tool]).shade(shade).alpha(alpha).html(); - ctx.lineWidth = renderOptions['extrusionWidth']; - ctx.beginPath(); - ctx.moveTo(prevX, prevY); - if (cmds[i].direction !== undefined && cmds[i].direction !== 0){ - var cmd = cmds[i]; - var di = cmd.i*zoomFactor; - var dj = -1*cmd.j*zoomFactor; // Y-coordinate is inverted + strokePathIfNeeded("extrude", getColorLineForTool(tool)); + ctx.lineWidth = renderOptions['extrusionWidth'] * lineWidthFactor; + if (cmd.direction !== undefined && cmd.direction != 0){ + var di = cmd.i; + var dj = cmd.j; var centerX = prevX+di; var centerY = prevY+dj; var startAngle = Math.atan2(prevY-centerY, prevX - centerX); - var endAngle = Math.atan2(y*zoomFactor-centerY, x*zoomFactor - centerX); + var endAngle = Math.atan2(y - centerY, x - centerX); var radius=Math.sqrt(di*di+dj*dj); - ctx.arc(centerX,centerY,radius,startAngle,endAngle,cmd.direction<0); // Y-coordinate is inverted so direction is also inverted + ctx.arc(centerX,centerY,radius,startAngle,endAngle,cmd.direction<0); // Y-axis is inverted so direction is also inverted } else { - ctx.lineTo(x*zoomFactor,y*zoomFactor); + ctx.lineTo(x,y); } - ctx.stroke(); } else { // we were previously retracting, now we are restarting => draw dot if configured to do so if (renderOptions["showRetracts"]) { - ctx.strokeStyle = pusher.color(renderOptions["colorRestart"]).shade(shade).alpha(alpha).html(); - ctx.fillStyle = pusher.color(renderOptions["colorRestart"]).shade(shade).alpha(alpha).html(); - drawTriangle(prevX, prevY, renderOptions["sizeRetractSpot"] * 2, false); + strokePathIfNeeded("fill"); + ctx.fillStyle = getColorRestartForTool(tool); + ctx.strokeStyle = ctx.fillStyle; + drawTriangle(prevX, prevY, sizeRetractSpot, false); } } } // set new (prevX, prevY) - prevX = x * zoomFactor; - prevY = y * zoomFactor; + prevX = x; + prevY = y; + } + + if (prevPathType != "fill") { + ctx.stroke(); } - ctx.stroke(); - if (renderOptions["showHead"]) { - ctx.strokeStyle = pusher.color(renderOptions["colorHead"]).shade(shade).alpha(alpha).html(); + var sizeHeadSpot = renderOptions["sizeHeadSpot"] * lineWidthFactor + lineWidthFactor / 2; + var shade = tool * 0.15; ctx.fillStyle = pusher.color(renderOptions["colorHead"]).shade(shade).alpha(alpha).html(); ctx.beginPath(); - ctx.arc(prevX, prevY, renderOptions["sizeHeadSpot"], 0, Math.PI*2, true); - ctx.stroke(); + ctx.arc(prevX, prevY, sizeHeadSpot, 0, Math.PI*2, true); ctx.fill(); } }; @@ -622,8 +730,8 @@ GCODE.renderer = (function(){ if (renderOptions["centerViewport"] || renderOptions["zoomInOnModel"]) { canvasCenter = ctx.transformedPoint(canvas.width / 2, canvas.height / 2); if (modelInfo) { - offsetModelX = canvasCenter.x - (modelInfo.boundingBox.minX + modelInfo.boundingBox.maxX) * zoomFactor / 2; - offsetModelY = canvasCenter.y + (modelInfo.boundingBox.minY + modelInfo.boundingBox.maxY) * zoomFactor / 2; + offsetModelX = canvasCenter.x - (modelInfo.boundingBox.minX + modelInfo.boundingBox.maxX) / 2; + offsetModelY = canvasCenter.y - (modelInfo.boundingBox.minY + modelInfo.boundingBox.maxY) / 2; } else { offsetModelX = 0; offsetModelY = 0; @@ -631,10 +739,10 @@ GCODE.renderer = (function(){ offsetBedX = 0; offsetBedY = 0; } else if (modelInfo && renderOptions["moveModel"]) { - offsetModelX = (renderOptions["bed"]["x"] / 2 - (modelInfo.boundingBox.minX + modelInfo.boundingBox.maxX) / 2) * zoomFactor; - offsetModelY = -1 * (renderOptions["bed"]["y"] / 2 - (modelInfo.boundingBox.minY + modelInfo.boundingBox.maxY) / 2) * zoomFactor; - offsetBedX = -1 * (renderOptions["bed"]["x"] / 2 - (modelInfo.boundingBox.minX + modelInfo.boundingBox.maxX) / 2) * zoomFactor; - offsetBedY = (renderOptions["bed"]["y"] / 2 - (modelInfo.boundingBox.minY + modelInfo.boundingBox.maxY) / 2) * zoomFactor; + offsetModelX = (renderOptions["bed"]["x"] / 2 - (modelInfo.boundingBox.minX + modelInfo.boundingBox.maxX) / 2); + offsetModelY = (renderOptions["bed"]["y"] / 2 - (modelInfo.boundingBox.minY + modelInfo.boundingBox.maxY) / 2); + offsetBedX = -1 * (renderOptions["bed"]["x"] / 2 - (modelInfo.boundingBox.minX + modelInfo.boundingBox.maxX) / 2); + offsetBedY = -1 * (renderOptions["bed"]["y"] / 2 - (modelInfo.boundingBox.minY + modelInfo.boundingBox.maxY) / 2); } else if (renderOptions["bed"]["circular"] || renderOptions["bed"]["centeredOrigin"]) { canvasCenter = ctx.transformedPoint(canvas.width / 2, canvas.height / 2); offsetModelX = canvasCenter.x; @@ -671,10 +779,9 @@ GCODE.renderer = (function(){ var length = modelInfo.boundingBox.maxY - modelInfo.boundingBox.minY; var scaleF = width > length ? (canvas.width - 10) / width : (canvas.height - 10) / length; - scaleF /= zoomFactor; if (transform.a && transform.d) { scaleX = scaleF / transform.a * (renderOptions["invertAxes"]["x"] ? -1 : 1); - scaleY = scaleF / transform.d * (renderOptions["invertAxes"]["y"] ? -1 : 1); + scaleY = scaleF / transform.d * (renderOptions["invertAxes"]["y"] ? 1 : -1); ctx.translate(pt.x,pt.y); ctx.scale(scaleX, scaleY); ctx.translate(-pt.x, -pt.y); @@ -721,22 +828,30 @@ GCODE.renderer = (function(){ if(renderOptions["bed"]["circular"]) { bedWidth = bedHeight = renderOptions["bed"]["r"] * 2; } - zoomFactor = Math.min((canvas.width - 10) / bedWidth, (canvas.height - 10) / bedHeight); + // Ratio of bed to canvas viewport + var viewportRatio = Math.min((canvas.width - 10) / bedWidth, (canvas.height - 10) / bedHeight); + + // Apply initial translation to center the bed in the viewport var translationX, translationY; if (renderOptions["bed"]["circular"]) { translationX = canvas.width / 2; translationY = canvas.height / 2; } else { - translationX = (canvas.width - bedWidth * zoomFactor) / 2; - translationY = bedHeight * zoomFactor + (canvas.height - bedHeight * zoomFactor) / 2; + translationX = (canvas.width - bedWidth * viewportRatio) / 2; + translationY = bedHeight * viewportRatio + (canvas.height - bedHeight * viewportRatio) / 2; } - ctx.translate(translationX, translationY); + ctx.translate(translationX, -translationY); + ctx.scale(viewportRatio, viewportRatio); + offsetModelX = 0; offsetModelY = 0; offsetBedX = 0; offsetBedY = 0; + + // Scaling to apply to move lines and extrusion/retraction markers + lineWidthFactor = 1 / viewportRatio; }, setOption: function(options){ var mustRefresh = false; @@ -748,7 +863,7 @@ GCODE.renderer = (function(){ dirty = true; renderOptions[opt] = options[opt]; - if ($.inArray(opt, ["moveModel", "centerViewport", "zoomInOnModel", "bed", "invertAxes"]) > -1) { + if ($.inArray(opt, ["moveModel", "centerViewport", "zoomInOnModel", "bed", "invertAxes", "onViewportChange"]) > -1) { mustRefresh = true; } } @@ -770,25 +885,12 @@ GCODE.renderer = (function(){ }, render: function(layerNum, fromProgress, toProgress){ if (!initialized) this.init(); + + layerNumStore = layerNum; + progressStore.from = fromProgress; + progressStore.to = toProgress; - var p1 = ctx.transformedPoint(0, 0); - var p2 = ctx.transformedPoint(canvas.width, canvas.height); - ctx.clearRect(p1.x, p1.y, p2.x - p1.x, p2.y - p1.y); - drawGrid(); - drawBoundingBox(); - if (model && model.length) { - if (layerNum < model.length) { - if (renderOptions['showNextLayer'] && layerNum < model.length - 1) { - drawLayer(layerNum + 1, 0, this.getLayerNumSegments(layerNum + 1), true); - } - if (renderOptions['showPreviousLayer'] && layerNum > 0) { - drawLayer(layerNum - 1, 0, this.getLayerNumSegments(layerNum - 1), true); - } - drawLayer(layerNum, fromProgress, toProgress); - } else { - console.log("Got request to render non-existent layer"); - } - } + reRender(); }, getModelNumLayers: function(){ return model ? model.length : 1; @@ -838,7 +940,7 @@ GCODE.renderer = (function(){ this.render(layerNum, 0, toProgress); }, refresh: function(layerNum) { - if (!layerNum) layerNum = layerNumStore; + if (layerNum === undefined) layerNum = layerNumStore; this.doRender(model, layerNum); }, getZ: function(layerNum){ diff --git a/src/octoprint/static/img/mask-theme.svg b/src/octoprint/static/img/mask-theme.svg new file mode 100644 index 000000000..dd8350b79 --- /dev/null +++ b/src/octoprint/static/img/mask-theme.svg @@ -0,0 +1,30 @@ + + + + +mask-theme + + + + + + + + + diff --git a/src/octoprint/static/img/favicon.svg b/src/octoprint/static/img/mask.svg similarity index 100% rename from src/octoprint/static/img/favicon.svg rename to src/octoprint/static/img/mask.svg diff --git a/src/octoprint/static/js/app/bindings/popover.js b/src/octoprint/static/js/app/bindings/popover.js index 0571b128a..7bd4a2e15 100644 --- a/src/octoprint/static/js/app/bindings/popover.js +++ b/src/octoprint/static/js/app/bindings/popover.js @@ -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; + }); } }; diff --git a/src/octoprint/static/js/app/client/base.js b/src/octoprint/static/js/app/client/base.js index 2eb51d4d9..f8e6b3ae0 100644 --- a/src/octoprint/static/js/app/client/base.js +++ b/src/octoprint/static/js/app/client/base.js @@ -111,7 +111,9 @@ additional = additional || {}; var headers = $.extend({}, additional); - headers["X-Api-Key"] = this.options.apikey; + if (this.options.apikey) { + headers["X-Api-Key"] = this.options.apikey; + } if (this.options.locale !== undefined) { headers["X-Locale"] = this.options.locale; diff --git a/src/octoprint/static/js/app/client/socket.js b/src/octoprint/static/js/app/client/socket.js index b1d70b7a4..9562ed017 100644 --- a/src/octoprint/static/js/app/client/socket.js +++ b/src/octoprint/static/js/app/client/socket.js @@ -85,6 +85,10 @@ this.sendMessage("throttle", this.rateThrottleFactor); }; + OctoPrintSocketClient.prototype.sendAuth = function(userId, session) { + this.sendMessage("auth", userId + ":" + session); + }; + OctoPrintSocketClient.prototype.sendMessage = function(type, payload) { var data = {}; data[type] = payload; diff --git a/src/octoprint/static/js/app/dataupdater.js b/src/octoprint/static/js/app/dataupdater.js index e33367740..098eb0aa7 100644 --- a/src/octoprint/static/js/app/dataupdater.js +++ b/src/octoprint/static/js/app/dataupdater.js @@ -342,6 +342,12 @@ function DataUpdater(allViewModels, connectCallback, disconnectCallback) { }) }; + self._onReauthMessage = function(event) { + self._ifInitialized(function() { + callViewModels(self.allViewModels, "onDataUpdaterReauthRequired", [event.data.reason]); + }) + }; + self._onIncreaseRate = function(measurement, minimum) { log.debug("We are fast (" + measurement + " < " + minimum + "), increasing refresh rate"); OctoPrint.socket.increaseRate(); @@ -372,5 +378,6 @@ function DataUpdater(allViewModels, connectCallback, disconnectCallback) { .onMessage("slicingProgress", self._onSlicingProgress) .onMessage("event", self._onEvent) .onMessage("timelapse", self._onTimelapse) - .onMessage("plugin", self._onPluginMessage); + .onMessage("plugin", self._onPluginMessage) + .onMessage("reauthRequired", self._onReauthMessage); } diff --git a/src/octoprint/static/js/app/helpers.js b/src/octoprint/static/js/app/helpers.js index 1eb161d05..7df9e46af 100644 --- a/src/octoprint/static/js/app/helpers.js +++ b/src/octoprint/static/js/app/helpers.js @@ -708,11 +708,19 @@ function showConfirmationDialog(msg, onacknowledge, options) { var proceed = options.proceed || gettext("Proceed"); var proceedClass = options.proceedClass || "danger"; var onproceed = options.onproceed || undefined; + var oncancel = options.oncancel || undefined; var onclose = options.onclose || undefined; var dialogClass = options.dialogClass || ""; var nofade = options.nofade || false; + var noclose = options.noclose || false; + + var modalHeader; + if (noclose) { + modalHeader = $('

    ' + title + '

    '); + } else { + modalHeader = $('

    ' + title + '

    '); + } - var modalHeader = $('

    ' + title + '

    '); var modalBody; if (html) { modalBody = $(html); @@ -740,7 +748,13 @@ function showConfirmationDialog(msg, onacknowledge, options) { onclose(event); } }); - modal.modal("show"); + + var modalOptions = {}; + if (noclose) { + modalOptions.backdrop = "static"; + modalOptions.keyboard = false; + } + modal.modal(modalOptions); proceedButton.click(function(e) { e.preventDefault(); @@ -749,6 +763,11 @@ function showConfirmationDialog(msg, onacknowledge, options) { } modal.modal("hide"); }); + cancelButton.click(function(e) { + if (oncancel && _.isFunction(oncancel)) { + oncancel(e); + } + }); return modal; } diff --git a/src/octoprint/static/js/app/viewmodels/appearance.js b/src/octoprint/static/js/app/viewmodels/appearance.js index 75c1c527a..81282ba78 100644 --- a/src/octoprint/static/js/app/viewmodels/appearance.js +++ b/src/octoprint/static/js/app/viewmodels/appearance.js @@ -1,10 +1,96 @@ $(function() { + var save = {}; + + // Using the theme color (for the top bar), also recolor the favicon tentacle. + function themeFavicon(colorname) { + save.colorName = colorname; + + // the following is from an Apache licensed snippet: + // http://blog.roomanna.com/09-24-2011/dynamically-coloring-a-favicon + var link = document.querySelector("link[rel='shortcut icon']"); + if (!link) { + link = document.createElement("link"); + link.setAttribute("rel", "shortcut icon"); + document.head.appendChild(link); + } + + // try to get the best quality ico possible; prefer svg, the apple-touch pngs are more difficult, + // but all three of the others give a high-quality ico. + var faviconUrl = document.querySelector("link[rel~='mask-icon-theme']").href + || link.href + || window.location.origin + "/favicon.ico"; + + function onImageLoaded() { + var icosize = 256; + + var canvas = document.createElement("canvas"); + canvas.width = icosize; + canvas.height = icosize; + + var context = canvas.getContext("2d"); + + function grayscale() { + var imageData = context.getImageData(0, 0, canvas.width, canvas.height), + pixels = imageData.data, + i, l, r, g, b, a, luma; + + for (i = 0, l = pixels.length; i < l; i += 4) { + a = pixels[i + 3]; + if (a === 0) { continue; } + + r = pixels[i]; + g = pixels[i + 1]; + b = pixels[i + 2]; + + luma = r * 0.2126 + g * 0.7152 + b * 0.0722; + + pixels[i] = pixels[i + 1] = pixels[i + 2] = luma; + } + + context.putImageData(imageData, 0, 0); + } + + function colorize(color, alpha) { + context.globalCompositeOperation = "source-atop"; + context.globalAlpha = alpha; + context.fillStyle = color; + context.fillRect(0, 0, canvas.width, canvas.height); + context.globalCompositeOperation = "source-over"; + context.globalAlpha = 1.0; + } + + context.drawImage(img, 0, 0, canvas.width, canvas.height); + if (save.colorName !== "default") { + grayscale(); + colorize(save.colorName, .3); + } + link.type = "image/x-icon"; + link.href = canvas.toDataURL(); + } + + var img = document.createElement("img"); + img.addEventListener("load", onImageLoaded); + img.src = faviconUrl; + } + function AppearanceViewModel(parameters) { var self = this; self.name = parameters[0].appearance_name; self.color = parameters[0].appearance_color; self.colorTransparent = parameters[0].appearance_colorTransparent; + self.colorIcon = parameters[0].appearance_colorIcon; + + function updateIcon() { + if (self.colorIcon()) { + themeFavicon(self.color()); + } else { + themeFavicon("default"); + } + } + self.color.subscribe(updateIcon); + self.colorIcon.subscribe(updateIcon); + updateIcon(); self.brand = ko.pureComputed(function() { if (self.name()) diff --git a/src/octoprint/static/js/app/viewmodels/connection.js b/src/octoprint/static/js/app/viewmodels/connection.js index 1110b6c28..63615747b 100644 --- a/src/octoprint/static/js/app/viewmodels/connection.js +++ b/src/octoprint/static/js/app/viewmodels/connection.js @@ -56,6 +56,9 @@ $(function() { self.fromResponse = function(response) { var ports = response.options.ports; var baudrates = response.options.baudrates; + var currentPort = response.current.port; + var currentBaudrate = response.current.baudrate; + var currentPrinterProfile = response.current.printerProfile; var portPreference = response.options.portPreference; var baudratePreference = response.options.baudratePreference; var printerPreference = response.options.printerProfilePreference; @@ -64,12 +67,27 @@ $(function() { self.portOptions(ports); self.baudrateOptions(baudrates); - if (!self.selectedPort() && ports && ports.indexOf(portPreference) >= 0) - self.selectedPort(portPreference); - if (!self.selectedBaudrate() && baudrates && baudrates.indexOf(baudratePreference) >= 0) - self.selectedBaudrate(baudratePreference); - if (!self.selectedPrinter() && printerProfiles && printerProfiles.indexOf(printerPreference) >= 0) - self.selectedPrinter(printerPreference); + if (!self.selectedPort() && ports) { + if (ports.indexOf(currentPort) >= 0) { + self.selectedPort(currentPort); + } else if (ports.indexOf(portPreference) >= 0) { + self.selectedPort(portPreference); + } + } + if (!self.selectedBaudrate() && baudrates) { + if (baudrates.indexOf(currentBaudrate) >= 0) { + self.selectedBaudrate(currentBaudrate); + } else if (baudrates.indexOf(baudratePreference) >= 0) { + self.selectedBaudrate(baudratePreference); + } + } + if (!self.selectedPrinter() && printerProfiles) { + if (printerProfiles.indexOf(currentPrinterProfile) >= 0) { + self.selectedPrinter(currentPrinterProfile); + } else if (printerProfiles.indexOf(printerPreference) >= 0) { + self.selectedPrinter(printerPreference); + } + } self.saveSettings(false); }; @@ -153,7 +171,11 @@ $(function() { self.onEventSettingsUpdated = function() { self.requestData(); - } + }; + + self.onEventConnected = function() { + self.requestData(); + }; self.onStartup = function() { var connectionTab = $("#connection"); diff --git a/src/octoprint/static/js/app/viewmodels/gcode.js b/src/octoprint/static/js/app/viewmodels/gcode.js index d2a77e8cc..522659f97 100644 --- a/src/octoprint/static/js/app/viewmodels/gcode.js +++ b/src/octoprint/static/js/app/viewmodels/gcode.js @@ -197,7 +197,7 @@ $(function() { }); self._retrieveBedDimensions = function(currentProfileData) { - if (currentProfileData == undefined) { + if (currentProfileData === undefined) { currentProfileData = self.settings.printerProfiles.currentProfileData(); } @@ -205,7 +205,7 @@ $(function() { var x = undefined, y = undefined, r = undefined, circular = false, centeredOrigin = false; var formFactor = currentProfileData.volume.formFactor(); - if (formFactor == "circular") { + if (formFactor === "circular") { r = currentProfileData.volume.width() / 2; circular = true; centeredOrigin = true; @@ -213,7 +213,7 @@ $(function() { x = currentProfileData.volume.width(); y = currentProfileData.volume.depth(); if (currentProfileData.volume.origin) { - centeredOrigin = currentProfileData.volume.origin() == "center"; + centeredOrigin = currentProfileData.volume.origin() === "center"; } } @@ -384,7 +384,7 @@ $(function() { self.loadFile = function(path, date){ self.enableReload(false); self.needsLoad = false; - if (self.status == "idle" && self.errorCount < 3) { + if (self.status === "idle" && self.errorCount < 3) { self.status = "request"; OctoPrint.files.download("local", path) .done(function(response, rstatus) { @@ -412,10 +412,10 @@ $(function() { GCODE.renderer.clear(); GCODE.gCodeReader.loadFile(par); - if (self.layerSlider != undefined) { + if (self.layerSlider !== undefined) { self.layerSlider.slider("disable"); } - if (self.layerCommandSlider != undefined) { + if (self.layerCommandSlider !== undefined) { self.layerCommandSlider.slider("disable"); } }; @@ -440,10 +440,10 @@ $(function() { GCODE.renderer.render(cmdIndex.layer, 0, cmdIndex.cmd); GCODE.ui.updateLayerInfo(cmdIndex.layer); - if (self.layerSlider != undefined) { + if (self.layerSlider !== undefined) { self.layerSlider.slider("setValue", cmdIndex.layer); } - if (self.layerCommandSlider != undefined) { + if (self.layerCommandSlider !== undefined) { self.layerCommandSlider.slider("setValue", [0, cmdIndex.cmd]); } }; @@ -465,17 +465,17 @@ $(function() { self.currentlyPrinting = data.state.flags && (data.state.flags.printing || data.state.flags.paused); if(self.loadedFilepath - && self.loadedFilepath == data.job.file.path - && self.loadedFileDate == data.job.file.date) { + && self.loadedFilepath === data.job.file.path + && self.loadedFileDate === data.job.file.date) { if (OctoPrint.coreui.browserTabVisible && self.tabActive && self.currentlyPrinting && self.renderer_syncProgress() && !self.waitForApproval()) { self._renderPercentage(data.progress.completion); } self.errorCount = 0 } else { self.clear(); - if (data.job.file.path && data.job.file.origin != "sdcard" - && self.status != "request" - && (!self.waitForApproval() || self.selectedFile.path() != data.job.file.path || self.selectedFile.date() != data.job.file.date)) { + if (data.job.file.path && data.job.file.origin !== "sdcard" + && self.status !== "request" + && (!self.waitForApproval() || self.selectedFile.path() !== data.job.file.path || self.selectedFile.date() !== data.job.file.date)) { self.selectedFile.path(data.job.file.path); self.selectedFile.date(data.job.file.date); self.selectedFile.size(data.job.file.size); @@ -515,7 +515,7 @@ $(function() { self._onModelLoaded = function(model) { if (!model) { self.ui_modelInfo(""); - if (self.layerSlider != undefined) { + if (self.layerSlider !== undefined) { self.layerSlider.slider("disable"); self.layerSlider.slider("setMax", 1); self.layerSlider.slider("setValue", 0); @@ -528,14 +528,13 @@ $(function() { } else { var output = []; output.push(gettext("Model size") + ": " + model.width.toFixed(2) + "mm × " + model.depth.toFixed(2) + "mm × " + model.height.toFixed(2) + "mm"); - output.push(gettext("Estimated total print time") + ": " + formatFuzzyPrintTime(model.printTime)); output.push(gettext("Estimated layer height") + ": " + model.layerHeight.toFixed(2) + gettext("mm")); - output.push(gettext("Layer count") + ": " + model.layersPrinted.toFixed(0) + " " + gettext("printed") + ", " + model.layersTotal.toFixed(0) + " " + gettext("visited")); + output.push(gettext("Estimated total print time") + ": " + formatFuzzyPrintTime(model.printTime)); self.ui_modelInfo(output.join("
    ")); self.maxLayer = model.layersPrinted - 1; - if (self.layerSlider != undefined) { + if (self.layerSlider !== undefined) { self.layerSlider.slider("enable"); self.layerSlider.slider("setMax", self.maxLayer); self.layerSlider.slider("setValue", 0); @@ -549,7 +548,7 @@ $(function() { self._onLayerSelected = function(layer) { if (!layer) { self.ui_layerInfo(""); - if (self.layerCommandSlider != undefined) { + if (self.layerCommandSlider !== undefined) { self.layerCommandSlider.slider("disable"); self.layerCommandSlider.slider("setMax", 1); self.layerCommandSlider.slider("setValue", [0, 1]); @@ -563,8 +562,8 @@ $(function() { output.push(gettext("Layer number") + ": " + (layer.number + 1)); output.push(gettext("Layer height") + " (mm): " + layer.height); output.push(gettext("GCODE commands") + ": " + layer.commands); - if (layer.filament != undefined) { - if (layer.filament.length == 1) { + if (layer.filament !== undefined) { + if (layer.filament.length === 1) { output.push(gettext("Filament") + ": " + layer.filament[0].toFixed(2) + "mm"); } else { for (var i = 0; i < layer.filament.length; i++) { @@ -576,7 +575,7 @@ $(function() { self.ui_layerInfo(output.join("
    ")); - if (self.layerCommandSlider != undefined) { + if (self.layerCommandSlider !== undefined) { self.layerCommandSlider.slider("enable"); self.layerCommandSlider.slider("setMax", layer.commands - 1); self.layerCommandSlider.slider("setValue", [0, layer.commands - 1]); @@ -591,11 +590,12 @@ $(function() { if (!options) return; for (var opt in options) { - if (opt == "zoomInOnModel" && options[opt] != self.renderer_zoomOnModel()) { + if (!options.hasOwnProperty(opt)) continue; + if (opt === "zoomInOnModel" && options[opt] !== self.renderer_zoomOnModel()) { self.renderer_zoomOnModel(false); - } else if (opt == "centerViewport" && options[opt] != self.renderer_centerViewport()) { + } else if (opt === "centerViewport" && options[opt] !== self.renderer_centerViewport()) { self.renderer_centerViewport(false); - } else if (opt == "moveModel" && options[opt] != self.renderer_centerModel()) { + } else if (opt === "moveModel" && options[opt] !== self.renderer_centerModel()) { self.renderer_centerModel(false); } } @@ -605,7 +605,7 @@ $(function() { if (self.currentlyPrinting && self.renderer_syncProgress()) self.renderer_syncProgress(false); var value = event.value; - if (self.currentLayer !== undefined && self.currentLayer == value) return; + if (self.currentLayer !== undefined && self.currentLayer === value) return; self.currentLayer = value; GCODE.ui.changeSelectedLayer(value); @@ -645,7 +645,7 @@ $(function() { if (self.currentlyPrinting && self.renderer_syncProgress()) self.renderer_syncProgress(false); var tuple = event.value; - if (self.currentCommand !== undefined && self.currentCommand[0] == tuple[0] && self.currentCommand[1] == tuple[1]) return; + if (self.currentCommand !== undefined && self.currentCommand[0] === tuple[0] && self.currentCommand[1] === tuple[1]) return; self.currentCommand = tuple; GCODE.ui.changeSelectedCommands(self.layerSlider.slider("getValue"), tuple[0], tuple[1]); @@ -660,14 +660,14 @@ $(function() { }; self.onTabChange = function(current, previous) { - self.tabActive = current == "#gcode"; + self.tabActive = current === "#gcode"; if (self.tabActive && self.needsLoad) { self.loadFile(self.selectedFile.path(), self.selectedFile.date()); } }; self.shiftLayer = function(value){ - if (value != self.currentLayer) { + if (value !== self.currentLayer) { self.layerSlider.slider('setValue', value); value = self.layerSlider.slider('getValue'); //This sets the scroll bar to the appropriate position. diff --git a/src/octoprint/static/js/app/viewmodels/loginstate.js b/src/octoprint/static/js/app/viewmodels/loginstate.js index 556bb8aa8..d00e7f804 100644 --- a/src/octoprint/static/js/app/viewmodels/loginstate.js +++ b/src/octoprint/static/js/app/viewmodels/loginstate.js @@ -20,6 +20,8 @@ $(function() { self.elementPasswordInput = undefined; self.elementLoginButton = undefined; + self.externalAddressNotification = undefined; + self.userMenuText = ko.pureComputed(function() { if (self.loggedIn()) { return self.username(); @@ -60,6 +62,62 @@ $(function() { callViewModels(self.allViewModels, "onUserLoggedIn", [response]); log.info("User " + response.name + " logged in") } + + if (response.session) { + OctoPrint.socket.sendAuth(response.name, response.session); + } + + // Show warning if connecting from what seems to be an external IP address, unless ignored + var ignorePublicAddressWarning = localStorage["loginState.ignorePublicAddressWarning"]; + if (ignorePublicAddressWarning === undefined) { + ignorePublicAddressWarning = false; + } else { + ignorePublicAddressWarning = JSON.parse(ignorePublicAddressWarning); + } + + if (response._is_external_client && !ignorePublicAddressWarning) { + var text = gettext("

    It seems that you are connecting to OctoPrint over the public internet.

    " + + "

    This is strongly discouraged unless you have taken proper network security precautions. " + + "Your printer is an appliance you really should not be giving access to " + + "everyone with an internet connection.

    Please see " + + "this blog post for " + + "ways to safely access your OctoPrint instance from remote.

    " + + "

    If you know what you are doing or you are sure this message is " + + "mistaken since you are in an isolated LAN, feel free to ignore it.

    "); + text = _.sprintf(text, {url: "https://octoprint.org/blog/2018/09/03/safe-remote-access/"}); + + if (self.externalAddressNotification !== undefined) { + self.externalAddressNotification.remove(); + } + + self.externalAddressNotification = new PNotify({ + title: gettext("Possible external access detected"), + text: text, + hide: false, + type: "error", + confirm: { + confirm: true, + buttons: [{ + text: gettext("Ignore"), + addClass: "btn btn-danger", + click: function(notice) { + notice.remove(); + localStorage["loginState.ignorePublicAddressWarning"] = JSON.stringify(true); + } + }, { + text: gettext("Later"), + addClass: "btn btn-primary", + click: function(notice) { + notice.remove(); + } + }] + }, + buttons: { + sticker: false + } + + }) + } } else { self.loggedIn(false); self.resetCurrentUserData(); @@ -141,7 +199,7 @@ $(function() { new PNotify({title: gettext("Logout successful"), text: gettext("You are now logged out"), type: "success"}); self.fromResponse(response); }) - .error(function(error) { + .fail(function(error) { if (error && error.status === 401) { self.fromResponse(false); } @@ -155,6 +213,14 @@ $(function() { self.login(); }; + self.onDataUpdaterReauthRequired = function(reason) { + if (reason === "logout" || reason === "removed") { + self.logout(); + } else { + self.requestData(); + } + }; + self.onAllBound = function(allViewModels) { self.allViewModels = allViewModels; self.startupDeferred.resolve(); diff --git a/src/octoprint/static/js/app/viewmodels/settings.js b/src/octoprint/static/js/app/viewmodels/settings.js index 9f45e6174..397c00a46 100644 --- a/src/octoprint/static/js/app/viewmodels/settings.js +++ b/src/octoprint/static/js/app/viewmodels/settings.js @@ -111,6 +111,7 @@ $(function() { self.appearance_name = ko.observable(undefined); self.appearance_color = ko.observable(undefined); self.appearance_colorTransparent = ko.observable(); + self.appearance_colorIcon = ko.observable(); self.appearance_defaultLanguage = ko.observable(); self.appearance_showFahrenheitAlso = ko.observable(undefined); @@ -182,12 +183,14 @@ $(function() { self.serial_supportResendsWithoutOk = ko.observable(undefined); self.serial_logPositionOnPause = ko.observable(undefined); self.serial_logPositionOnCancel = ko.observable(undefined); + self.serial_abortHeatupOnCancel = ko.observable(undefined); self.serial_maxTimeoutsIdle = ko.observable(undefined); self.serial_maxTimeoutsPrinting = ko.observable(undefined); self.serial_maxTimeoutsLong = ko.observable(undefined); self.serial_capAutoreportTemp = ko.observable(undefined); self.serial_capAutoreportSdStatus = ko.observable(undefined); self.serial_capBusyProtocol = ko.observable(undefined); + self.serial_capEmergencyParser = ko.observable(undefined); self.folder_uploads = ko.observable(undefined); self.folder_timelapse = ko.observable(undefined); @@ -298,7 +301,7 @@ $(function() { }; self.addTerminalFilter = function() { - self.terminalFilters.push({name: "New", regex: "(Send: M105)|(Recv: ok T:)"}) + self.terminalFilters.push({name: "New", regex: "(Send: (N\d+\s+)?M105)|(Recv:\s+(ok\s+)?.*(B|T\d*):\d+)"}) }; self.removeTerminalFilter = function(filter) { diff --git a/src/octoprint/static/js/app/viewmodels/terminal.js b/src/octoprint/static/js/app/viewmodels/terminal.js index 6d4dd3ea3..cd853fe25 100644 --- a/src/octoprint/static/js/app/viewmodels/terminal.js +++ b/src/octoprint/static/js/app/viewmodels/terminal.js @@ -6,6 +6,7 @@ $(function() { self.settings = parameters[1]; self.tabActive = false; + self.previousScroll = undefined; self.log = ko.observableArray([]); self.log.extend({ throttle: 500 }); @@ -278,14 +279,19 @@ $(function() { }; self.terminalScrollEvent = _.throttle(function () { - if (self.autoscrollEnabled()) { - var container = self.fancyFunctionality() ? $("#terminal-output") : $("#terminal-output-lowfi"); + var container = self.fancyFunctionality() ? $("#terminal-output") : $("#terminal-output-lowfi"); + var pos = container.scrollTop(); + var scrollingUp = self.previousScroll !== undefined && pos < self.previousScroll; + + if (self.autoscrollEnabled() && scrollingUp) { var maxScroll = container[0].scrollHeight - container[0].offsetHeight; - if (container.scrollTop() <= maxScroll ) { + if (pos <= maxScroll ) { self.autoscrollEnabled(false); } } + + self.previousScroll = pos; }, 250); self.gotoTerminalCommand = function() { @@ -414,6 +420,10 @@ $(function() { self.updateOutput(); }; + self.onBrowserTabVisibilityChange = function(status) { + self.updateOutput(); + }; + } OCTOPRINT_VIEWMODELS.push({ diff --git a/src/octoprint/templates/dialogs/settings/appearance.jinja2 b/src/octoprint/templates/dialogs/settings/appearance.jinja2 index b50a93735..b20a91573 100644 --- a/src/octoprint/templates/dialogs/settings/appearance.jinja2 +++ b/src/octoprint/templates/dialogs/settings/appearance.jinja2 @@ -15,7 +15,14 @@
    +
    +
    +
    +
    +
    diff --git a/src/octoprint/templates/dialogs/settings/serialconnection.jinja2 b/src/octoprint/templates/dialogs/settings/serialconnection.jinja2 index cdf39635d..2d7cca2a0 100644 --- a/src/octoprint/templates/dialogs/settings/serialconnection.jinja2 +++ b/src/octoprint/templates/dialogs/settings/serialconnection.jinja2 @@ -280,6 +280,13 @@
    +
    +
    + +
    +
    - {{ _('Event based position logging') }} + {{ _('Pausing') }}
    +
    +
    + {{ _('Cancelling') }}
    +
    + +
    diff --git a/src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2 b/src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2 index 53b71622a..33aeb89be 100644 --- a/src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2 +++ b/src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2 @@ -4,7 +4,7 @@ Your OctoPrint installation is now all set up and ready to go. {% endtrans %}

    -

    {{ _('On your printer\'s safety') }}

    +

    {{ _('For your printer\'s safety') }}

    {% trans %} @@ -13,12 +13,18 @@ sometimes sadly do catch fire, so stay or have someone else stay close enough to physically intervene in case of such catastrophic failure. {% endtrans %}

    +

    {% trans url='https://octoprint.org/blog/2018/09/03/safe-remote-access/' %} + You also should never make your OctoPrint instance available for everyone on the + public internet, even with Access Control enabled. Your instance will be found, and bad people + will try to abuse it. Don't put yourself at risk, + use a safe way to access your instance remotely. +{% endtrans %}

    {{ _('If you enjoy OctoPrint...') }}

    {% trans url='https://octoprint.org/support-octoprint/?utm_source=octoprint&utm_medium=first_run_wizard' %} - Please consider to support OctoPrint's ongoing development, + Please consider supporting OctoPrint's ongoing development, which can only continue with funding by users like you! You can also find this link in the "About" dialog.
    Thank you! {% endtrans %}

    diff --git a/src/octoprint/templates/index.jinja2 b/src/octoprint/templates/index.jinja2 index d25076b5e..d18a41fca 100644 --- a/src/octoprint/templates/index.jinja2 +++ b/src/octoprint/templates/index.jinja2 @@ -4,7 +4,8 @@ OctoPrint - + + diff --git a/src/octoprint/timelapse.py b/src/octoprint/timelapse.py index 83be0bf9a..221c898f9 100644 --- a/src/octoprint/timelapse.py +++ b/src/octoprint/timelapse.py @@ -21,6 +21,7 @@ import octoprint.util as util from octoprint.settings import settings from octoprint.events import eventManager, Events +from octoprint.plugin import plugin_manager from octoprint.util import monotonic_time import sarge @@ -60,6 +61,30 @@ _cleanup_lock = threading.RLock() # lock for timelapse job _job_lock = threading.RLock() +# cached valid timelapse extensions +_extensions = None + +def valid_timelapse(path): + global _extensions + + if _extensions is None: + # create list of extensions + extensions = ["mpg", "mpeg", "mp4", "m4v", "mkv"] + + hooks = plugin_manager().get_hooks("octoprint.timelapse.extensions") + for name, hook in hooks.items(): + try: + result = hook() + if result is None or not isinstance(result, list): + continue + extensions += result + except: + logging.getLogger(__name__).exception("Exception while retrieving additional timelapse extensions from hook {name}".format(name=name)) + + _extensions = list(set(extensions)) + + return util.is_allowed_file(path, _extensions) + def _extract_prefix(filename): """ @@ -86,7 +111,7 @@ def get_finished_timelapses(): files = [] basedir = settings().getBaseFolder("timelapse", check_writable=False) for entry in scandir(basedir): - if not fnmatch.fnmatch(entry.name, "*.m*"): + if util.is_hidden_path(entry.path) or not valid_timelapse(entry.path): continue files.append({ "name": entry.name, diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.mo b/src/octoprint/translations/de/LC_MESSAGES/messages.mo index ab9e63b2f..aa71a9b7a 100644 Binary files a/src/octoprint/translations/de/LC_MESSAGES/messages.mo and b/src/octoprint/translations/de/LC_MESSAGES/messages.mo differ diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.po b/src/octoprint/translations/de/LC_MESSAGES/messages.po index 365acd3fc..01176e729 100644 --- a/src/octoprint/translations/de/LC_MESSAGES/messages.po +++ b/src/octoprint/translations/de/LC_MESSAGES/messages.po @@ -5,33 +5,29 @@ # msgid "" msgstr "" -"Project-Id-Version: OctoPrint\n" +"Project-Id-Version: OctoPrint\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2018-07-25 13:37+0200\n" -"PO-Revision-Date: 2018-06-19 15:43+0200\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 \n" "Language: de\n" -"Language-Team: German " -"(http://www.transifex.com/projects/p/octoprint/language/de/)\n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.5.1\n" +"Generated-By: Babel 2.6.0\n" +"X-Generator: Poedit 2.0.4\n" -#: src/octoprint/plugins/action_command_prompt/__init__.py:93 +#: src/octoprint/plugins/action_command_prompt/__init__.py:94 msgid "Action Command Prompt" msgstr "Action Command Prompt" -#: src/octoprint/plugins/action_command_prompt/__init__.py:160 -msgid "" -"Without this plugin your printer will no longer be able to " -"triggerconfirmation or selection prompts in OctoPrint" -msgstr "" -"Ohne dieses Plugin wird dein Drucker nicht mehr in der Lage sein, " -"Bestätigungs- oder Auswahldialoge in OctoPrint auszulösen" +#: src/octoprint/plugins/action_command_prompt/__init__.py:161 +msgid "Without this plugin your printer will no longer be able to triggerconfirmation or selection prompts in OctoPrint" +msgstr "Ohne dieses Plugin wird dein Drucker nicht mehr in der Lage sein, Bestätigungs- oder Auswahldialoge in OctoPrint auszulösen" -#: src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js:50 +#: src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js:24 msgid "Message from your printer" msgstr "Nachricht von deinem Drucker" @@ -44,16 +40,8 @@ msgid "Selection Command" msgstr "Auswahlbefehl" #: src/octoprint/plugins/action_command_prompt/templates/action_command_prompt_settings.jinja2:8 -msgid "" -"Use this to define the command to tell the printer about the selection. " -"OctoPrint will replace {choice} with the index of the " -"selected choice. E.g. M876 S{choice} will become M123 " -"S1" -msgstr "" -"Hiermit kannst du den Befehl definieren, mit dem dem Drucker deine " -"Auswahl mitgeteilt wird. OctoPrint wird {choice} durch den " -"Index der gewählten Option ersetzen. So wird z.B. M876 " -"S{choice} zu M876 S1" +msgid "Use this to define the command to tell the printer about the selection. OctoPrint will replace {choice} with the index of the selected choice. E.g. M876 S{choice} will become M123 S1" +msgstr "Hiermit kannst du den Befehl definieren, mit dem dem Drucker deine Auswahl mitgeteilt wird. OctoPrint wird {choice} durch den Index der gewählten Option ersetzen. So wird z.B. M876 S{choice} zu M876 S1" #: src/octoprint/plugins/announcements/__init__.py:129 #: src/octoprint/plugins/announcements/templates/announcements.jinja2:4 @@ -61,13 +49,9 @@ msgstr "" msgid "Announcements" msgstr "Ankündigungen" -#: src/octoprint/plugins/announcements/__init__.py:494 -msgid "" -"Without this plugin you might miss important announcements regarding " -"security or other critical issues concerning OctoPrint." -msgstr "" -"Ohne dieses Plugin könntest du wichtige Benachrichtigung hinsichtlich " -"Security oder kritischer Fehler in OctoPrint verpassen." +#: src/octoprint/plugins/announcements/__init__.py:503 +msgid "Without this plugin you might miss important announcements regarding security or other critical issues concerning OctoPrint." +msgstr "Ohne dieses Plugin könntest du wichtige Benachrichtigung hinsichtlich Security oder kritischer Fehler in OctoPrint verpassen." #: src/octoprint/plugins/announcements/static/js/announcements.js:50 msgid "Cannot be toggled" @@ -82,20 +66,17 @@ msgid "Enable Channel" msgstr "Kanal aktivieren" #: src/octoprint/plugins/announcements/static/js/announcements.js:266 -msgid "" -"You can edit your announcement subscriptions under Settings > " -"Announcements." -msgstr "" -"Du kannst deine Benachrichtigungsabonnements unter Einstellungen > " -"Benachrichtigungen konfigurieren." +msgid "You can edit your announcement subscriptions under Settings > Announcements." +msgstr "Du kannst deine Benachrichtigungsabonnements unter Einstellungen > Benachrichtigungen konfigurieren." #: src/octoprint/plugins/announcements/static/js/announcements.js:275 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:973 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:890 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:108 msgid "Later" msgstr "Später" #: src/octoprint/plugins/announcements/static/js/announcements.js:281 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:980 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:897 msgid "Mark read" msgstr "Gelesen" @@ -108,12 +89,13 @@ msgid "Mark as last read" msgstr "Zuletzt gelesen" #: src/octoprint/plugins/announcements/templates/announcements.jinja2:44 +#: 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:119 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:136 #: src/octoprint/static/js/app/helpers.js:649 -#: src/octoprint/static/js/app/helpers.js:905 -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:110 +#: src/octoprint/static/js/app/helpers.js:924 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:117 msgid "Close" msgstr "Schließen" @@ -122,6 +104,7 @@ msgid "Configured Channels" msgstr "Konfigurierte Kanäle" #: src/octoprint/plugins/announcements/templates/announcements_settings.jinja2:6 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:37 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:27 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:3 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:9 @@ -148,14 +131,378 @@ msgstr "Aktionen" msgid "Refresh Announcements" msgstr "Ankündigungen aktualisieren" +#: src/octoprint/plugins/appkeys/__init__.py:101 +#: src/octoprint/plugins/appkeys/__init__.py:102 +msgid "Application Keys" +msgstr "Application Keys" + +#: 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." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:55 +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:213 +#, python-format +msgid "You are about to revoke the application key \"%(key)s\"." +msgstr "Du bist im Begriff, den Application Key \"%(key)s\" zu löschen." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:70 +#, python-format +msgid "\"%(app)s\" has requested access to control OctoPrint through the API." +msgstr "\"%(app)s\" möchte Zugriff auf OctoPrint über die API haben." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:72 +msgid "Do you want to allow access to this application with your user account?" +msgstr "Möchtest du dieser Applikation Zugriff mit deinem Nutzerkonto erlauben?" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:74 +msgid "Access Request" +msgstr "Zugriffsanfrage" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:81 +msgid "Allow" +msgstr "Erlauben" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:87 +msgid "Deny" +msgstr "Ablehnen" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:225 +#, python-format +msgid "You are about to revoke %(count)d application keys." +msgstr "Du bist im Begriff, %(count)d Application Keys zu löschen." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:256 +msgid "Revoking application keys" +msgstr "Lösche Application Keys" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:257 +#, python-format +msgid "Revoking %(count)d application keys..." +msgstr "Lösche %(count)d Application Keys..." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:261 +#, python-format +msgid "Revoked %(key)s..." +msgstr "%(key)s gelöscht..." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:264 +#, python-format +msgid "Revocation of %(key)s failed, continuing..." +msgstr "Löschen von %(key)s fehlgeschlagen, fahre fort..." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:265 +#, python-format +msgid "Deletion of %(key)s failed: %(error)s" +msgstr "Löschen von %(key)s fehlgeschlagen: %(error)s" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:2 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:4 +msgid "There are no application keys registered yet." +msgstr "Es sind noch keine Application Keys registriert." + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:9 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:25 +#: src/octoprint/templates/tabs/timelapse.jinja2:109 +#: src/octoprint/templates/tabs/timelapse.jinja2:154 +msgid "Select all on this page" +msgstr "Alles auf dieser Seite auswählen" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:10 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:26 +#: src/octoprint/templates/tabs/timelapse.jinja2:110 +#: src/octoprint/templates/tabs/timelapse.jinja2:155 +msgid "Select all" +msgstr "Alles auswählen" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:13 +msgid "Select all by user..." +msgstr "Alle von Nutzer wählen..." + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:19 +msgid "Select all by app..." +msgstr "Alle von Applikation auswählen..." + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:25 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:28 +#: src/octoprint/templates/tabs/timelapse.jinja2:112 +#: src/octoprint/templates/tabs/timelapse.jinja2:157 +msgid "Clear selection" +msgstr "Auswahl aufheben" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:28 +msgid "Revoke selected" +msgstr "Ausgewählte löschen" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:34 +#: src/octoprint/templates/sidebar/state.jinja2:5 +msgid "User" +msgstr "Nutzer" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:35 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:10 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:38 +msgid "Application identifier" +msgstr "Applikationsidentifier" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:36 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:11 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:40 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:14 +#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:7 +#: src/octoprint/templates/snippets/settings/printerprofiles/profiles.jinja2:6 +#: src/octoprint/templates/tabs/timelapse.jinja2:123 +#: src/octoprint/templates/tabs/timelapse.jinja2:169 +msgid "Action" +msgstr "Aktion" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:43 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:16 +#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 +#: src/octoprint/templates/dialogs/settings/api.jinja2:17 +#: src/octoprint/templates/dialogs/usersettings/access.jinja2:22 +msgid "API Key" +msgstr "API Key" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:43 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:16 +#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 +msgid "Copy API Key to clipboard" +msgstr "API Key in die Zwischenablage kopieren" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:44 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:17 +msgid "Revoke" +msgstr "Löschen" + +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:1 +msgid "Registered application keys" +msgstr "Registrierte Application Keys" + +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:34 +msgid "Manually generate an application key" +msgstr "Generiere einen Application Key manuell" + +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:46 +msgid "Generate" +msgstr "Erzeugen" + +#: src/octoprint/plugins/backup/__init__.py:914 +msgid "Backup & Restore" +msgstr "Sicherung & Wiederherstellung" + +#: 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: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: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: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: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: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: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 octoprint.log for details. Error: %(error)s" +msgstr "OctoPrint konnte dein Backup nicht erstellen. Bitte konsultiere octoprint.log 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: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: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:203 +#, python-format +msgid "Installing plugin \"%(plugin)s}\"..." +msgstr "Installiere Plugin \"%(plugin)s\"..." + +#: 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: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:243 +msgid "Deleting backups" +msgstr "Lösche Sicherungen" + +#: 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: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: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:252 +#: src/octoprint/static/js/app/viewmodels/timelapse.js:317 +#, python-format +msgid "Deletion of %(filename)s failed: %(error)s" +msgstr "Löschen von %(filename)s fehlgeschlagen: %(error)s" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:2 +msgid "\n" +" Some plugins during the last restore could not be identified and hence not automatically installed.\n" +" Please install them manually, they are listed below including their stated homepages:\n" +" " +msgstr "\n" +" Einige Plugins konnten während der letzten Wiederherstellung nicht identifiziert und somit nicht automatisch installiert werden.\n" +" Bitte installiere sie manuell, sie sind nachfolgend zusammen mit ihrer Homepage gelistet:\n" +" " + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:9 +msgid "Delete record of unknown plugins" +msgstr "Lösche Liste unbekannter Plugins" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:13 +msgid "Existing backups" +msgstr "Vorhandene Sicherungen" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:16 +msgid "There are no backups. Maybe create one below?" +msgstr "Es gibt keine Sicherungen. Erstelle vielleicht eine weiter unten?" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:19 +msgid "These are the backups of your settings and files that already exist on this OctoPrint instance. You may delete, download or restore them." +msgstr "Dies sind die Sicherungen deiner Einstelungen und Dateien, die bereits auf dieser OctoPrint Instanz existieren. Du kannst sie löschen, herunterladen oder wiederherstellen." + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:31 +#: src/octoprint/templates/tabs/timelapse.jinja2:115 +#: src/octoprint/templates/tabs/timelapse.jinja2:160 +msgid "Delete selected" +msgstr "Ausgewählte Elemente löschen" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:38 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:13 +msgid "Date" +msgstr "Datum" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:39 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:5 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:12 +#: src/octoprint/templates/sidebar/files.jinja2:18 +#: src/octoprint/templates/sidebar/files.jinja2:33 +#: src/octoprint/templates/sidebar/files.jinja2:44 +#: src/octoprint/templates/tabs/timelapse.jinja2:122 +#: src/octoprint/templates/tabs/timelapse.jinja2:168 +msgid "Size" +msgstr "Größe" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:82 +msgid "Delete" +msgstr "Löschen" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49 +#: src/octoprint/templates/sidebar/files.jinja2:22 +#: src/octoprint/templates/sidebar/files.jinja2:35 +msgid "Download" +msgstr "Download" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49 +msgid "Restore" +msgstr "Wiederherstellen" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:66 +msgid "Create backup" +msgstr "Sicherung erstellen" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:68 +msgid "Create a new backup of the current state." +msgstr "Erstelle eine neue Sicherung des aktuellen Stands." + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:74 +msgid "Exclude uploaded files & metadata from backup" +msgstr "Uploads & metadata nicht sichern" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:82 +msgid "Exclude timelapses from backup" +msgstr "Zeitrafferaufnahmen nicht sichern" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:89 +msgid "Create backup now" +msgstr "Sicherung jetzt erstellen" + +#: 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: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:101 +msgid "Backup file" +msgstr "Sicherungsdatei" + +#: 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: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 restore your backups manually for now." +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 manuell wiederherstellen." + #: 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." +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." #: src/octoprint/plugins/corewizard/subwizards.py:30 #: src/octoprint/plugins/corewizard/templates/corewizard_servercommands_wizard.jinja2:1 @@ -186,114 +533,90 @@ msgid "Default Printer Profile" msgstr "Default Druckerprofil" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:45 -msgid "" -"If you disable Access Control and your OctoPrint " -"installation is accessible from the internet, your printer will " -"be accessible by everyone - that also includes the bad guys!" -msgstr "" -"Wenn Du die Zugangsbeschränkung deaktivierst und Deine " -"OctoPrint Installation vom Internet aus erreichbar ist, kann " -"jeder auf Deinen Drucker zugreifen - auch die bösen " -"Jungs!" +msgid "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!" +msgstr "Wenn Du die Zugangsbeschränkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die bösen Jungs!" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:83 msgid "Please set up Access Control" msgstr "Bitte konfiguriere die Zugangsbeschränkung" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:84 -msgid "" -"You haven't yet set up access control. You need to either setup a " -"username and password and click \"Keep Access Control Enabled\" or click " -"\"Disable Access Control\" before continuing" -msgstr "" -"Du hast noch keine Zugriffsbeschränkung konfiguriert. Du musst entweder " -"einen Nutzernamen und ein Passwort festlegen und auf " -"\"Zugriffsbeschränkung aktivieren\" klicken oder auf " -"\"Zugriffsbeschränkung deaktivieren\" klicken bevor du fortfahren kannst." +msgid "You haven't yet set up access control. You need to either setup a username and password and click \"Keep Access Control Enabled\" or click \"Disable Access Control\" before continuing" +msgstr "Du hast noch keine Zugriffsbeschränkung konfiguriert. Du musst entweder einen Nutzernamen und ein Passwort festlegen und auf \"Zugriffsbeschränkung aktivieren\" klicken oder auf \"Zugriffsbeschränkung deaktivieren\" klicken bevor du fortfahren kannst" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:183 msgid "Please set up the online connectivity check" msgstr "Bitte konfiguriere die Onlineprüfung" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:184 -msgid "" -"You haven't yet decided on whether to enable or disable the online " -"connectivity check. You need to either enable or disable it before " -"continuing." -msgstr "" -"Du hast noch nicht entschieden, ob die Onlineprüfung aktiviert werden " -"soll. Du musst sie entweder aktivieren oder deaktivieren bevor du " -"fortfahren kannst." +msgid "You haven't yet decided on whether to enable or disable the online connectivity check. You need to either enable or disable it before continuing." +msgstr "Du hast noch nicht entschieden, ob die Onlineprüfung aktiviert werden soll. Du musst sie entweder aktivieren oder deaktivieren bevor du fortfahren kannst." #: src/octoprint/plugins/corewizard/static/js/corewizard.js:265 msgid "Please set up the plugin blacklist processing" msgstr "Bitte konfiguriere die Plugin Blackliste" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:266 -msgid "" -"You haven't yet decided on whether to enable or disable the plugin " -"blacklist processing. You need to either enable or disable it before " -"continuing." -msgstr "" -"Du hast noch nicht entschieden, ob die Plugin Blackliste aktiviert werden" -" soll. Du musst sie entweder aktivieren oder deaktivieren bevor du " -"fortfahren kannst." +msgid "You haven't yet decided on whether to enable or disable the plugin blacklist processing. You need to either enable or disable it before continuing." +msgstr "Du hast noch nicht entschieden, ob die Plugin Blackliste aktiviert werden soll. Du musst sie entweder aktivieren oder deaktivieren bevor du fortfahren kannst." #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:3 -msgid "" -"

    \n" -" Please read the following, it is very important for your " -"printer's health!\n" +#, python-format +msgid "

    \n" +" Please read the following, it is very important for your printer's health!\n" "

    \n" "

    \n" -" OctoPrint by default ships with Access Control enabled, meaning you " -"won't be able to do anything with the\n" -" printer unless you login first as a configured user. This is to " -"prevent strangers - possibly with\n" -" malicious intent - to gain access to your printer via the " -"internet or another untrustworthy network\n" -" and using it in such a way that it is damaged or worse (i.e. causes a" -" fire).\n" +" OctoPrint by default ships with Access Control enabled, meaning you won't be able to do anything with the\n" +" printer unless you login first as a configured user. This is to prevent strangers - possibly with\n" +" malicious intent - to gain access to your printer via an untrustworthy network\n" +" and using it in such a way that it is damaged or worse (i.e. causes a fire).\n" "

    \n" "

    \n" -" It looks like you haven't configured access control yet. Please " -"set up a username and password for the\n" -" initial administrator account who will have full access to both the " -"printer and OctoPrint's settings, then click\n" +" If you plan on accessing OctoPrint remotely over the internet, you should not only rely on the built-in\n" +" Access Control mechanisms however -\n" +" take additional precautions.\n" +" Your OctoPrint enabled printer is a critical home appliance you really should not give anyone who happens to be\n" +" connected to the internet access to - even read-only! An instance available publicly on the internet\n" +" will be found, and people will try to break it open.\n" +"

    \n" +"

    \n" +" It looks like you haven't configured access control yet. Please set up a username and password for the\n" +" initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n" " on \"Keep Access Control Enabled\":\n" "

    " -msgstr "" -"

    \n" -" Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr" -" wichtig fĂĽr die Gesundheit Deines Druckers!\n" +msgstr "

    \n" +" Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig fĂĽr die Gesundheit Deines Druckers!\n" "

    \n" "

    \n" -" OctoPrint wird standardmässig mit aktivierter Zugangsbeschränkung " -"ausgeliefert, das heißt, dass Du mit dem Drucker nichts\n" -" anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer " -"eingeloggt bist. Das dient dem Zweck, Fremde mit\n" -" möglicherweise böswilligen Absichten davon abzuhalten, auf " -"Deinen Drucker über das Internet oder ein anderes\n" -" unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die " -"ihn beschädigt oder schlimmeres (z.B. ein Feuer verursacht).\n" +" OctoPrint wird standardmäßig mit aktivierter Zugangsbeschränkung ausgeliefert, das heißt, dass Du mit dem Drucker nichts\n" +" anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n" +" möglicherweise böswilligen Absichten davon abzuhalten, auf Deinen Drucker über ein\n" +" unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn beschädigt oder schlimmeres (z.B. ein Feuer verursacht).\n" "

    \n" "

    \n" -" Es sieht so aus, als hättest Du die Zugriffsbeschränkung noch nicht " -"konfiguriert. Bitte konfiguriere einen Usernamen\n" -" und ein Passwort für das initiale Administratorkonto, das " -"vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n" -" Einstellungen haben wird, und klicke dann auf \"Zugangsbeschränkung " -"aktivieren\".\n" +" Falls du vor hast, auf OctoPrint über das Internet zuzugreifen, solltest du dich nicht nur auf die eingebaute Zugriffsbeschränkung<\n" +">\n" +" verlassen - triff weitere Maßnahmen.\n" +" Dein mit OctoPrint erweiterter Drucker ist ein kritisches Haushaltsgerät, auf das du wirklich nicht jedem, der Zugriff auf das Internet hat, auch\n" +" nur einen reinen Lesezugriff geben solltest! Eine Instanz, die öffentlich über das Internet erreichbar ist, wird gefunden werden, \n" +" und Menschen werden versuchen, in sie einzubrechen.\n" +"

    \n" +"

    \n" +" Es sieht so aus, als hättest Du die Zugriffsbeschränkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n" +" und ein Passwort für das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n" +" Einstellungen haben wird, und klicke dann auf \"Zugangsbeschränkung aktivieren\".\n" "

    " -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:19 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:27 +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:17 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:45 #: src/octoprint/templates/navbar/login.jinja2:7 #: src/octoprint/templates/navbar/login.jinja2:8 msgid "Username" msgstr "Username" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:33 +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:18 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:3 #: src/octoprint/templates/navbar/login.jinja2:10 @@ -301,70 +624,58 @@ msgstr "Username" msgid "Password" msgstr "Passwort" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:31 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:39 msgid "Confirm Password" msgstr "Passwort bestätigen" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:34 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:42 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:60 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:131 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:17 msgid "Passwords do not match" msgstr "Passwörter nicht identisch" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:38 -msgid "" -"

    \n" -" Note: In case that your OctoPrint installation is " -"only accessible from within a trustworthy network and you don't\n" -" need Access Control for other reasons, you may alternatively disable " -"Access Control. You should only\n" -" do this if you are absolutely certain that only people you know and " -"trust will be able to connect to it.\n" +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:46 +msgid "

    \n" +" Note: In case that your OctoPrint installation is only accessible from within a trustworthy local network and you don't\n" +" need Access Control for other reasons, you may alternatively disable Access Control. You should only\n" +" do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n" "

    \n" "

    \n" -" Do NOT underestimate the risk of an unsecured access from the" -" internet to your printer!\n" +" Do NOT underestimate the risk of access from the internet to your printer and OctoPrint instance!\n" "

    " -msgstr "" -"

    \n" -" Beachte: Falls Deine OctoPrint Installation " -"ausschließlich innerhalb eines vertrauenswürdigen Netzwerks\n" -" erreicht werden kann und Du die Zugangsbeschränkung nicht für andere " -"Zwecke benötigst, kannst Du sie alternativ auch\n" -" deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher " -"bist, dass nur Leute darauf zugreifen können, die du kennst\n" +msgstr "

    \n" +" Beachte: Falls Deine OctoPrint Installation ausschließlich innerhalb eines vertrauenswürdigen Netzwerks\n" +" erreicht werden kann und Du die Zugangsbeschränkung nicht für andere Zwecke benötigst, kannst Du sie alternativ auch\n" +" deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen können, die du kennst\n" " und denen du vertraust\n" "

    \n" "

    \n" -" UNTERSCHÄTZE NICHT das Risiko eines ungesicherten Zugriffs " -"aus dem Internet auf Deinen Drucker!\n" +" UNTERSCHÄTZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n" "

    " -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:48 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:56 msgid "Disable Access Control" msgstr "Zugangsbeschränkung deaktivieren" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:49 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:57 msgid "Keep Access Control Enabled" msgstr "Zugangsbeschränkung aktiviert lassen" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:53 -msgid "" -"\n" -" Access control is enabled.\n" +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:61 +msgid "\n" +" Access control is enabled.\n" +" " +msgstr "\n" +" Zugriffsbeschränkung aktiviert.\n" " " -msgstr "Zugriffsbeschränkung aktiviert." -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:56 -msgid "" -"\n" -" Access control is disabled.\n" +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:64 +msgid "\n" +" Access control is disabled.\n" " " -msgstr "" -"Zugriffsbeschränkung deaktiviert." +msgstr "\n" +" Zugriffsbeschränkung deaktiviert.\n" " " #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:1 @@ -372,52 +683,35 @@ msgid "Configure the connectivity check" msgstr "Konfiguriere die Onlineprüfung" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:5 -msgid "" -"\n" -" If it is disabled OctoPrint will always assume to have a working " -"connection to the internet.\n" -" If that should not actually be the case, server startups, update " -"checks and the like might take longer.\n" -msgstr "" -"Falls der Onlineverbindungscheck deaktiviert ist, wird OctoPrint stets " -"annehmen, mit dem Internet verbunden zu sein. Ist das nicht tatsächlich " -"der Fall so können Serverstartups, Updatechecks und dergleichen länger " -"dauern." +msgid "\n" +" If it is disabled OctoPrint will always assume to have a working connection to the internet.\n" +" If that should not actually be the case, server startups, update checks and the like might take longer.\n" +msgstr "\n" +" Falls der Onlineverbindungscheck deaktiviert ist, wird OctoPrint stets annehmen, mit dem Internet verbunden zu sein.\n" +" Ist das nicht tatsächlich der Fall so können Serverstartups, Updatechecks und dergleichen länger dauern.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:10 -msgid "" -"\n" -" OctoPrint comes preconfigured to perform the connectivity check every" -" 15 minutes. You may change the value here.\n" -msgstr "" -"OctoPrint führt die Onlineprüfung standardmäßig alle 15 Minuten durch. Du" -" kannst diesen Wert hier ändern." +msgid "\n" +" OctoPrint comes preconfigured to perform the connectivity check every 15 minutes. You may change the value here.\n" +msgstr "\n" +" OctoPrint führt die Onlineprüfung standardmäßig alle 15 Minuten durch. Du kannst diesen Wert hier ändern.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:18 -msgid "" -"\n" -" OctoPrint comes preconfigured to utilize Google's DNS server " -"8.8.8.8, port 53 for the connectivity check (if\n" -" it's enabled). If you have concerns about using that, define the IP " -"and port of a different online server that you\n" +msgid "\n" +" OctoPrint comes preconfigured to utilize Google's DNS server 8.8.8.8, port 53 for the connectivity check (if\n" +" it's enabled). If you have concerns about using that, define the IP and port of a different online server that you\n" " trust and that has a high availability.\n" -msgstr "" -"OctoPrint nutzt standardmäßig Googles DNS server 8.8.8.8 auf" -" Port 53 für die Onlineprüfung (wenn diese aktiviert ist). Falls du " -"diesbezüglich Bedenken hast, konfiguriere IP und Port eines anderen " -"Servers im Netz dem du vertraust und der hoch verfügbar ist." +msgstr "\n" +" OctoPrint nutzt standardmäßig Googles DNS server 8.8.8.8 auf Port 53 für die Onlineprüfung (wenn diese aktiviert ist).\n" +" Falls du diesbezüglich Bedenken hast, konfiguriere IP und Port eines anderen Servers im Netz dem du vertraust und der hoch verfügbar ist.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:30 -msgid "" -"\n" -" Finally, please decide on whether to enable or disable the " -"connectivity check. You may change the configuration at\n" -" any time to a later date through Settings > Server right from within " -"OctoPrint.\n" -msgstr "" -"Zum Schluss entscheide noch, ob die Onlineprüfung aktiviert oder " -"deaktiviert werden soll. Du kannst diese Entscheidung auch jederzeit " -"unter Einstellungen > Server später noch ändern." +msgid "\n" +" Finally, please decide on whether to enable or disable the connectivity check. You may change the configuration at\n" +" any time to a later date through Settings > Server right from within OctoPrint.\n" +msgstr "\n" +" Zum Schluss entscheide noch, ob die Onlineprüfung aktiviert oder deaktiviert werden soll. \n" +" Du kannst diese Entscheidung auch jederzeit unter Einstellungen > Server später noch ändern.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:36 msgid "Disable Connectivity Check" @@ -428,68 +722,53 @@ msgid "Enable Connectivity Check" msgstr "Onlineprüfung aktivieren" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:41 -msgid "" -"\n" -" Connectivity check is enabled.\n" +msgid "\n" +" Connectivity check is enabled.\n" +" " +msgstr "\n" +" Onlineprüfung aktiviert.\n" " " -msgstr "Onlineprüfung aktiviert." #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:44 -msgid "" -"\n" -" Connectivity check is disabled.\n" +msgid "\n" +" Connectivity check is disabled.\n" +" " +msgstr "\n" +" Onlineprüfung deaktiviert.\n" " " -msgstr "Onlineprüfung deaktiviert. " #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:1 msgid "Configure plugin blacklist processing" msgstr "Pluginblackliste konfigurieren" #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:3 -msgid "" -"\n" -" To protect against known severe issues with certain versions of third" -" party plugins, OctoPrint supports the use\n" -" of a centralized plugin version blacklist to automatically disable " -"such plugin versions before they can interfere with\n" -" normal operation, allowing you to uninstall or update them to a newer" -" version.\n" -msgstr "" -"Um vor bekannten schweren Fehler mit bestimmten Third-Party-Plugins zu " -"schützen, unterstützt OctoPrint die Verwendung einer zentralen " -"Pluginblackliste um automatisiert solche Pluginversionen zu deaktivieren " -"bevor sie mit dem normalen Betrieb von OctoPrint interferieren können. Du" -" kannst solche Plugins dann deinstallieren oder auf eine neue Version " -"aktualisieren.\n" +msgid "\n" +" To protect against known severe issues with certain versions of third party plugins, OctoPrint supports the use\n" +" of a centralized plugin version blacklist to automatically disable such plugin versions before they can interfere with\n" +" normal operation, allowing you to uninstall or update them to a newer version.\n" +msgstr "\n" +" Um vor bekannten schweren Fehler mit bestimmten Third-Party-Plugins zu schützen, unterstützt OctoPrint \n" +" die Verwendung einer zentralen Pluginblackliste um automatisiert solche Pluginversionen zu deaktivieren \n" +" bevor sie mit dem normalen Betrieb von OctoPrint interferieren können. Du kannst solche Plugins dann \n" +" deinstallieren oder auf eine neue Version aktualisieren.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:9 #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistDescription.jinja2:7 #, python-format -msgid "" -"\n" -" By default, OctoPrint will use the blacklist hosted at " -"plugins.octoprint.org/blacklist.json which you\n" -" can also take a look at in a more human readable format here.\n" -msgstr "" -"Standardmässig wird OctoPrint die Blackliste von " -"plugins.octoprint.org/blacklist.json verwenden, auf die du " -"hier auch einen Blick in " -"menschenlesbarer Form werfen kannst.\n" +msgid "\n" +" By default, OctoPrint will use the blacklist hosted at plugins.octoprint.org/blacklist.json which you\n" +" can also take a look at in a more human readable format here.\n" +msgstr "\n" +" Standardmäßig wird OctoPrint die Blackliste von plugins.octoprint.org/blacklist.json verwenden, \n" +" auf die du hier auch einen Blick in menschenlesbarer Form werfen kannst.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:14 -msgid "" -"\n" -" Please decide whether to allow fetch and use of this centralized " -"blacklist starting with the next server start.\n" -" You may also change your decision at any time through Settings > " -"Server right from within OctoPrint.\n" -msgstr "" -"Bitte entscheide, ob die zentrale Pluginblackliste ab dem nächsten " -"Serverstart genutzt werden soll. Du kannst diese Entscheidung auch " -"jederzeit unter Einstellungen > Server später noch ändern.\n" +msgid "\n" +" Please decide whether to allow fetch and use of this centralized blacklist starting with the next server start.\n" +" You may also change your decision at any time through Settings > Server right from within OctoPrint.\n" +msgstr "\n" +" Bitte entscheide, ob die zentrale Pluginblackliste ab dem nächsten Serverstart genutzt werden soll. \n" +" Du kannst diese Entscheidung auch jederzeit unter Einstellungen > Server später noch ändern.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:20 msgid "Disable Plugin Blacklist Processing" @@ -500,36 +779,30 @@ msgid "Enable Plugin Blacklist Processing" msgstr "Pluginblackliste aktivieren" #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:25 -msgid "" -"\n" -" Plugin blacklist processing is enabled.\n" +msgid "\n" +" Plugin blacklist processing is enabled.\n" +" " +msgstr "\n" +" Pluginblackliste aktiviert.\n" " " -msgstr "Pluginblackliste aktiviert." #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:28 -msgid "" -"\n" -" Plugin blacklist processing is disabled.\n" +msgid "\n" +" Plugin blacklist processing is disabled.\n" +" " +msgstr "\n" +" Pluginblackliste deaktiviert.\n" " " -msgstr "Pluginblackliste deaktiviert. " #: src/octoprint/plugins/corewizard/templates/corewizard_printerprofile_wizard.jinja2:1 msgid "Set up your printer profile" msgstr "Konfiguriere dein Druckerprofil" #: src/octoprint/plugins/corewizard/templates/corewizard_printerprofile_wizard.jinja2:2 -msgid "" -"Please make sure the settings below match your printer. If you plan on " -"connecting more than one printer\n" -"to OctoPrint, you can also configure additional printer profiles under " -"Settings > Printer Profiles" -msgstr "" -"Bitte stelle sicher, dass die folgenden Einstellungen deinem Drucker " -"entsprechen. Falls du planst, mehr als einen Drucker mit OctoPrint zu " -"verbinden, kannst du weitere Druckerprofile unter Einstellungen > " -"Druckerprofile konfigurieren." +msgid "Please make sure the settings below match your printer. If you plan on connecting more than one printer\n" +"to OctoPrint, you can also configure additional printer profiles under Settings > Printer Profiles" +msgstr "Bitte stelle sicher, dass die folgenden Einstellungen deinem Drucker entsprechen. Falls du planst, mehr als \n" +"einen Drucker mit OctoPrint zu verbinden, kannst du weitere Druckerprofile unter Einstellungen > Druckerprofile konfigurieren" #: src/octoprint/plugins/corewizard/templates/corewizard_printerprofile_wizard.jinja2:7 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:1 @@ -555,16 +828,11 @@ msgid "Hotend & extruder" msgstr "Hotend & Extruder" #: src/octoprint/plugins/corewizard/templates/corewizard_servercommands_wizard.jinja2:3 -msgid "" -"

    \n" -" OctoPrint supports calling external commands in order to restart " -"itself or restarting and/or shutting\n" +msgid "

    \n" +" OctoPrint supports calling external commands in order to restart itself or restarting and/or shutting\n" " down the system it is running on. You may configure those here.\n" "

    " -msgstr "" -"

    OctoPrint kann externe Befehle aufrufen, um sich selbst neu zu starten" -" oder das System, auf dem es läuft, neu zu starten und/oder " -"herunterzufahren. Du kannst diese Befehle hier konfigurieren.

    " +msgstr "

    OctoPrint kann externe Befehle aufrufen, um sich selbst neu zu starten oder das System, auf dem es läuft, neu zu starten und/oder herunterzufahren. Du kannst diese Befehle hier konfigurieren.

    " #: src/octoprint/plugins/corewizard/templates/corewizard_servercommands_wizard.jinja2:8 msgid "OctoPrint related commands" @@ -579,8 +847,7 @@ msgid "Webcam & Timelapse Recordings" msgstr "Webcam & Zeitrafferaufnahmen" #: src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2:3 -msgid "" -"

    \n" +msgid "

    \n" " If you have a webcam, you may now configure it here.\n" "

    " msgstr "

    Falls du eine Webcam hast kannst du diese nun hier konfigurieren.

    " @@ -591,48 +858,25 @@ msgid "Webcam" msgstr "Webcam" #: src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2:9 -msgid "" -"

    \n" -" The Stream URL is the URL OctoPrint uses to embed " -"the\n" +msgid "

    \n" +" The Stream URL is the URL OctoPrint uses to embed the\n" " actual webcam stream (which should be an MJPG stream) into the web\n" -" interface. This needs to be reachable from your " -"browser.\n" +" interface. This needs to be reachable from your browser.\n" "

    \n" " It may be\n" "

      \n" -"
    • a fully qualified URL " -"(http://host:port/path),
    • \n" +"
    • a fully qualified URL (http://host:port/path),
    • \n" "
    • a URL defaulting to the protocol used for accessing the web\n" " interface (e.g. //host:port/path),
    • \n" -"
    • an absolute path on the same host as OctoPrint (e.g. " -"/absolute/path) or
    • \n" -"
    • a relative path on the same host as OctoPrint (e.g. " -"relative/path)
    • \n" +"
    • an absolute path on the same host as OctoPrint (e.g. /absolute/path) or
    • \n" +"
    • a relative path on the same host as OctoPrint (e.g. relative/path)
    • \n" "
    \n" "

    \n" -" The Snapshot URL is the URL OctoPrint uses to fetch " -"single\n" -" images from the webcam for creating timelapse recordings. This needs " -"to be\n" -" a fully qualified URL reachable from the OctoPrint " -"server.\n" +" The Snapshot URL is the URL OctoPrint uses to fetch single\n" +" images from the webcam for creating timelapse recordings. This needs to be\n" +" a fully qualified URL reachable from the OctoPrint server.\n" "

    " -msgstr "" -"

    Die Stream-URL ist eine URL, die OctoPrint verwendet " -"um den eigentlichen Webcamstream (der ein MJPG Stream sein sollte) in das" -" Webinterface einzubetten. Diese URL muss aus deinem " -"Browser erreichbar sein.

    Mögliche Formen sind:

    • eine" -" voll definierte URL (http://host:port/path)
    • eine " -"URL relative zum Protokoll, ĂĽber das auf das Webinterface zugegriffen " -"wird (z.B. //host:port/path),
    • ein absoluter Pfad auf" -" dem selben Host wie OctoPrint (z.B. /absolute/path) " -"oder
    • ein relativer Pfad auf dem selben Host wie OctoPrint (z.B. " -"relative/path)

    Die Snapshot-" -"URL ist eine URL, die OctoPrint verwendet um einzelne Bilder von" -" der Webcam fĂĽr die Erstellung von Zeitrafferaufnahmen zu beziehen. Das " -"muss eine voll definierte URL sein, die vom OctoPrint " -"Server erreichbar ist.

    " +msgstr "

    Die Stream-URL ist eine URL, die OctoPrint verwendet um den eigentlichen Webcamstream (der ein MJPG Stream sein sollte) in das Webinterface einzubetten. Diese URL muss aus deinem Browser erreichbar sein.

    Mögliche Formen sind:

    • eine voll definierte URL (http://host:port/path)
    • eine URL relative zum Protokoll, ĂĽber das auf das Webinterface zugegriffen wird (z.B. //host:port/path),
    • ein absoluter Pfad auf dem selben Host wie OctoPrint (z.B. /absolute/path) oder
    • ein relativer Pfad auf dem selben Host wie OctoPrint (z.B. relative/path)

    Die Snapshot-URL ist eine URL, die OctoPrint verwendet um einzelne Bilder von der Webcam fĂĽr die Erstellung von Zeitrafferaufnahmen zu beziehen. Das muss eine voll definierte URL sein, die vom OctoPrint Server erreichbar ist.

    " #: src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2:33 #: src/octoprint/templates/dialogs/settings/webcam.jinja2:16 @@ -640,49 +884,50 @@ msgid "Timelapse Recordings" msgstr "Zeitrafferaufnahmen" #: src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2:35 -msgid "" -"

    \n" -" To render the snapshots into timelapse recordings, OctoPrint also " -"needs to\n" +msgid "

    \n" +" To render the snapshots into timelapse recordings, OctoPrint also needs to\n" " know the correct path to FFMPEG.\n" "

    " -msgstr "" -"

    Um Snapshots zu Zeitrafferaufnahmen zu rendern muss OctoPrint auch den" -" korrekten Pfad zu FFMPEG wissen.

    " +msgstr "

    Um Snapshots zu Zeitrafferaufnahmen zu rendern muss OctoPrint auch den korrekten Pfad zu FFMPEG wissen.

    " -#: src/octoprint/plugins/cura/static/js/cura.js:234 -#: src/octoprint/static/js/app/viewmodels/settings.js:419 +#: src/octoprint/plugins/cura/static/js/cura.js:188 +msgid "Profile import failed" +msgstr "Profilimport fehlgeschlagen" + +#: src/octoprint/plugins/cura/static/js/cura.js:189 +msgid "Could not import the provided profile, it might be invalid. Check octoprint.log for details" +msgstr "Konnte das Profil nicht importieren, es könnte invalide sein. Für weitere Details siehe octoprint.log" + +#: src/octoprint/plugins/cura/static/js/cura.js:243 +#: src/octoprint/static/js/app/viewmodels/settings.js:422 msgid "The path doesn't exist" msgstr "Der Pfad existiert nicht" -#: src/octoprint/plugins/cura/static/js/cura.js:236 -#: src/octoprint/static/js/app/viewmodels/settings.js:421 +#: src/octoprint/plugins/cura/static/js/cura.js:245 +#: src/octoprint/static/js/app/viewmodels/settings.js:424 msgid "The path is not a file" msgstr "Der Pfad ist keine Datei" -#: src/octoprint/plugins/cura/static/js/cura.js:238 -#: src/octoprint/static/js/app/viewmodels/settings.js:423 +#: src/octoprint/plugins/cura/static/js/cura.js:247 +#: src/octoprint/static/js/app/viewmodels/settings.js:426 msgid "The path is not an executable" msgstr "Der Pfad ist nicht ausführbar" -#: src/octoprint/plugins/cura/static/js/cura.js:241 -#: src/octoprint/static/js/app/viewmodels/settings.js:426 -#: src/octoprint/static/js/app/viewmodels/settings.js:486 +#: src/octoprint/plugins/cura/static/js/cura.js:250 +#: src/octoprint/static/js/app/viewmodels/settings.js:429 +#: src/octoprint/static/js/app/viewmodels/settings.js:489 msgid "The path is valid" msgstr "Der Pfad ist valide" #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:3 -msgid "" -"\n" +msgid "\n" " Specify the path to the CuraEngine binary. Note that only\n" " versions up to and including 15.04 are supported.\n" " CuraEngine version 15.06 or newer is not\n" " compatible with this plugin.\n" -msgstr "" -"\n" +msgstr "\n" " Gib den Pfad zum CuraEngine Binary an. Beachte, dass nur\n" -" Versionen bis einschließlich 15.04 unterstützt sind." -"\n" +" Versionen bis einschließlich 15.04 unterstützt sind.\n" " CuraEngine Version 15.06 oder neuere sind nicht\n" " kompatibel mit diesem Plugin.\n" @@ -697,65 +942,47 @@ msgstr "Profil importieren..." #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22 #, python-format -msgid "" -"For more information on configuration and usage please see the Plugin's " -"homepage." -msgstr "" -"Für weitere Informationen zu Konfiguration and Verwendung schaue bitte " -"auf die Homepage " -"des Plugins." +msgid "For more information on configuration and usage please see the Plugin's homepage." +msgstr "Für weitere Informationen zu Konfiguration and Verwendung schaue bitte auf die Homepage des Plugins." #: src/octoprint/plugins/cura/templates/cura_wizard.jinja2:2 msgid "Configure CuraEngine" msgstr "Konfigurierte CuraEngine" #: src/octoprint/plugins/cura/templates/cura_wizard.jinja2:3 -msgid "" -"\n" -" The path to CuraEngine has not yet been set up, in order to be " -"able to use\n" +msgid "\n" +" The path to CuraEngine has not yet been set up, in order to be able to use\n" " CuraEngine for slicing it needs to be specified.\n" " " -msgstr "Der Pfad zu CuraEngine wurde noch nicht konfiguriert. " +msgstr "\n" +" Der Pfad zu CuraEngine wurde noch nicht konfiguriert.\n" +" " #: src/octoprint/plugins/cura/templates/cura_wizard.jinja2:16 msgid "Set up a slicing profile" msgstr "Konfiguriere ein Slicingprofil" #: src/octoprint/plugins/cura/templates/cura_wizard.jinja2:17 -msgid "" -"You haven't imported a slicing profile to use for slicing with CuraEngine" -"\n" -" yet. If you plan on slicing from within OctoPrint then you should do " -"this now.\n" +msgid "You haven't imported a slicing profile to use for slicing with CuraEngine\n" +" yet. If you plan on slicing from within OctoPrint then you should do this now.\n" " Otherwise just skip this step." -msgstr "" -"Du hast noch kein Slicingprofile zum Slicen mit CuraEngine importiert. " -"Falls Du vor hast, aus OctoPrint heraus zu slicen, dann solltest Du das " -"jetzt tun. Andernfalls überspringe diesen Schritt einfach." +msgstr "Du hast noch kein Slicingprofile zum Slicen mit CuraEngine importiert. Falls Du vor hast, aus OctoPrint heraus zu slicen, dann solltest Du das jetzt tun. Andernfalls überspringe diesen Schritt einfach." #: src/octoprint/plugins/cura/templates/cura_wizard.jinja2:28 -msgid "" -"\n" -" Don't know where to get a profile? In order " -"to export\n" -" a slicing profile from the Cura desktop UI up to and " -"including version 15.04.06 (not versions\n" -" 2.1 and later which are actually newer than 15.04), open it, " -"set up your profile, then click\n" -" on \"File\" and there on \"Save Profile\". You can import the" -" .ini file this creates\n" +msgid "\n" +" Don't know where to get a profile? In order to export\n" +" a slicing profile from the Cura desktop UI up to and including version 15.04.06 (not versions\n" +" 2.1 and later which are actually newer than 15.04), open it, set up your profile, then click\n" +" on \"File\" and there on \"Save Profile\". You can import the .ini file this creates\n" " via the \"Import Profile\" button.\n" " " -msgstr "" -"Du weißt nicht, wo du so ein Profil her bekommst? Um ein" -" Slicingprofil aus dem Cura Desktopinterface bis zu Version 15.04.06 zu " -"exportieren (nicht Versionen 2.1 oder neuer, diese sind neuer als 15.04)," -" öffne es, konfiguriere dein Profil, dann klicke auf \"Datei\" und dort " -"auf \"Profil speichern\". Du kannst die resultierende " -".iniDatei dann über den \"Profile importieren\" Button " -"importieren." +msgstr "\n" +" Du weißt nicht, wo du so ein Profil her bekommst? Um ein Slicingprofil aus \n" +" dem Cura Desktopinterface bis zu Version 15.04.06 zu exportieren (nicht Versionen 2.1 oder neuer, \n" +" diese sind neuer als 15.04), öffne es, konfiguriere dein Profil, dann klicke auf \"Datei\" und dort auf \n" +" \"Profil speichern\". Du kannst die resultierende .iniDatei dann über den \"Profile \n" +" importieren\" Button importieren.\n" +" " #: src/octoprint/plugins/cura/templates/snippets/settings/cura/engineLog.jinja2:4 msgid "Log the output of CuraEngine to plugin_cura_engine.log" @@ -780,18 +1007,12 @@ msgstr "Test" #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:4 msgid "Import Existing Cura Profile" -msgstr "Vorhandenes Curaprofile importieren" +msgstr "Vorhandenes Curaprofil importieren" #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:9 msgid "Profile ini file" msgstr "Profil-INI-Datei" -#: 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:97 -msgid "Browse..." -msgstr "Durchsuchen..." - #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:21 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:3 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:8 @@ -812,25 +1033,13 @@ msgid "Overwrite existing file" msgstr "Vorhandene Datei überschreiben" #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:53 -msgid "" -"\n" -" You can import your existing profile .ini files " -"from Cura 15.04.x or older\n" -" here. Anything but those are not supported. " -"That especially means that .json\n" -" profiles from Cura 15.06.x and .curaprofile " -"profiles from Cura 2.x will not work, and neither\n" -" will custom Cura profile formats that third party tools like " -"e.g. Repetier create.\n" +msgid "\n" +" You can import your existing profile .ini files from Cura 15.04.x or older\n" +" here. Anything but those are not supported. That especially means that .json\n" +" profiles from Cura 15.06.x and .curaprofile profiles from Cura 2.x will not work, and neither\n" +" will custom Cura profile formats that third party tools like e.g. Repetier create.\n" " " -msgstr "" -"Du kannst hier deine vorhandenen .ini Profildateien von " -"Cura 15.04.x oder älterAndere Profilformate als diese " -"sind nicht unterstützt. Das beinhaltet insbesondere, " -"dass .json Profile von Cura 15.06.x und " -".curaprofile Profile von Cura 2.x nicht funktionieren " -"werden, ebenso wenig wie Cura-Profildateien, die von Third-Party-Tools " -"wie z.B. Repetier erstellt wurden." +msgstr "Du kannst hier deine vorhandenen .ini Profildateien von Cura 15.04.x oder älterAndere Profilformate als diese sind nicht unterstützt. Das beinhaltet insbesondere, dass .json Profile von Cura 15.06.x und .curaprofile Profile von Cura 2.x nicht funktionieren werden, ebenso wenig wie Cura-Profildateien, die von Third-Party-Tools wie z.B. Repetier erstellt wurden." #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:61 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:80 @@ -870,21 +1079,42 @@ msgstr "Als Standard festlegen" msgid "Delete Profile" msgstr "Profil entfernen" -#: src/octoprint/plugins/discovery/__init__.py:688 -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/discovery/__init__.py:707 +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/logging/__init__.py:204 -msgid "" -"Without this plugin you will no longer be able to retrieve OctoPrint's " -"logs or modify the current logging levels through the web interface." -msgstr "" -"Ohne dieses Plugin kannst du OctoPrints Logfiles nicht mehr über das " -"Webinterface herunterladen und auch die aktuellen Loglevel modifizieren." +#: 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." + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:12 +msgid "Please log in" +msgstr "Bitte einloggen" + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:14 +msgid "Incorrect username or password." +msgstr "Falscher Nutzername oder Passwort." + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:15 +msgid "Server is currently offline." +msgstr "Der Server ist zur Zeit offline." + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:15 +msgid "Reconnect..." +msgstr "Neu verbinden..." + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:20 +#: src/octoprint/templates/navbar/login.jinja2:13 +msgid "Remember me" +msgstr "Login merken" + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:22 +msgid "Log in" +msgstr "Login" + +#: src/octoprint/plugins/logging/__init__.py:205 +msgid "Without this plugin you will no longer be able to retrieve OctoPrint's logs or modify the current logging levels through the web interface." +msgstr "Ohne dieses Plugin kannst du OctoPrints Logfiles nicht mehr über das Webinterface herunterladen und auch die aktuellen Loglevel modifizieren." #: src/octoprint/plugins/logging/templates/logging_settings.jinja2:1 msgid "Logs" @@ -903,28 +1133,6 @@ msgstr "Änderungsdatum" msgid "descending" msgstr "absteigend" -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:5 -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:12 -#: src/octoprint/templates/sidebar/files.jinja2:18 -#: src/octoprint/templates/sidebar/files.jinja2:33 -#: src/octoprint/templates/sidebar/files.jinja2:44 -#: src/octoprint/templates/tabs/timelapse.jinja2:122 -#: src/octoprint/templates/tabs/timelapse.jinja2:168 -msgid "Size" -msgstr "Größe" - -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:13 -msgid "Date" -msgstr "Datum" - -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:14 -#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:7 -#: src/octoprint/templates/snippets/settings/printerprofiles/profiles.jinja2:6 -#: src/octoprint/templates/tabs/timelapse.jinja2:123 -#: src/octoprint/templates/tabs/timelapse.jinja2:169 -msgid "Action" -msgstr "Aktion" - #: src/octoprint/plugins/logging/templates/logging_settings.jinja2:46 msgid "Logging Levels" msgstr "Logginglevel" @@ -944,360 +1152,363 @@ msgstr "Entfernen" msgid "Add" msgstr "Hinzufügen" -#: src/octoprint/plugins/octopi_support/__init__.py:164 -msgid "" -"Without this plugin OctoPrint will no longer be able to provide " -"additional information about your OctoPi instance,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 deine OctoPi Instanz zur Verfügung stellen, was es ggf. schwieriger " -"macht, dir zu helfen, falls du Support brauchst." +#: 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/octopi_support/static/js/octopi_support.js:32 +#: 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." + +#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29 msgid "running on" msgstr "auf" -#: src/octoprint/plugins/octopi_support/static/js/octopi_support.js:32 +#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29 msgid "OctoPi" msgstr "OctoPi" -#: src/octoprint/plugins/octopi_support/templates/octopi_support_about.jinja2:1 +#: 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: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: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/pluginmanager/__init__.py:150 +#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:1 +msgid "What do the symbols mean?" +msgstr "Was bedeuten die Symbole?" + +#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:2 +msgid "Undervoltage" +msgstr "Zu niedrige Spannung" + +#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:3 +msgid "Overheat" +msgstr "Überhitzung" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:3 +msgid "Please restart OctoPrint after changing any of this plugin's settings." +msgstr "Bitte start OctoPrint neu, nachdem du die Einstellungen dieses Plugins geändert hast." + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:9 +msgid "Enable under voltage and overheat detection via vcgencmd get_throttled" +msgstr "Erkennung zu niedriger Spannung und Überhitzung via vcgencmd get_throttled einschalten" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:11 +msgid "This will regularly check with the Pi if something is amiss either with power regulation or CPU/GPU temperature." +msgstr "Es wird regelmässig geprüft, ob etwas mit der Spannungsversorgung oder der CPU/GPU Temperatur des Pis nicht stimmt." + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:16 +#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:220 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:83 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:157 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:267 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:340 +#: src/octoprint/templates/dialogs/settings/webcam.jinja2:9 +#: src/octoprint/templates/dialogs/settings/webcam.jinja2:23 +#: src/octoprint/templates/snippets/settings/server/serverPluginBlacklist.jinja2:5 +#: src/octoprint/templates/tabs/gcodeviewer.jinja2:77 +#: src/octoprint/templates/tabs/terminal.jinja2:34 +msgid "Advanced options" +msgstr "Erweiterte Optionen" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:20 +msgid "Command for under voltage/overheat detection" +msgstr "Befehl für Spannungs-/Überhitzungserkennung" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:23 +msgid "Defaults to /usr/bin/vcgencmd get_throttled. You usually shouldn't have to change this." +msgstr "Standardeinstellung ist /usr/bin/vcgencmd get_throttled. Du solltest das gewöhnlich nicht ändern müssen." + +#: src/octoprint/plugins/pluginmanager/__init__.py:180 msgid "Plugin Manager" msgstr "Pluginmanager" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:221 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:138 msgid "There are no plugin notices. Great!" msgstr "Keine Nachrichten zu deinen Plugins. Super!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:223 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:140 msgid "There is a plugin notice for one of your installed plugins." msgstr "Es gibt eine Nachricht zu einem deiner installierten Plugins." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:225 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:142 #, python-format -msgid "" -"There are %(count)d plugin notices for one or more of your installed " -"plugins." -msgstr "" -"Es gibt %(count)d Nachrichten zu einem oder mehreren deiner installierten" -" Plugins." +msgid "There are %(count)d plugin notices for one or more of your installed plugins." +msgstr "Es gibt %(count)d Nachrichten zu einem oder mehreren deiner installierten Plugins." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:320 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:237 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460 msgid "Installing plugin..." msgstr "Installiere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:320 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:237 msgid "Installing plugin from uploaded archive..." msgstr "Installiere Plugin von hochgeladenem Archiv..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:341 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:467 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:567 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:795 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:258 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:384 +#: 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" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:342 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:468 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:568 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:606 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:259 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:385 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:523 msgid "Please consult octoprint.log for details" msgstr "Bitte konsultiere octoprint.log für Details" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:487 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:404 #, python-format msgid "You are about to disable \"%(name)s\"." msgstr "Du bist im Begriff \"%(name)s\" zu deaktivieren." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:490 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:407 msgid "This is not recommended" msgstr "Das ist nicht empfohlen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:492 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:409 msgid "Do you still want to disable it?" msgstr "Möchtest du es immer noch deaktivieren?" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:493 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:410 msgid "Keep enabled" msgstr "Aktiviert lassen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:494 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:411 msgid "Disable anyway" msgstr "Trotzdem deaktivieren" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:545 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:462 #, python-format msgid "Installing plugin \"%(name)s\" from %(url)s..." msgstr "Installiere Plugin \"%(name)s\" von %(url)s..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:547 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:464 #, python-format msgid "Installing plugin from %(url)s..." msgstr "Installiere Plugin von %(url)s..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:550 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:467 msgid "Reinstalling plugin..." msgstr "Reinstalliere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:468 #, python-format msgid "Reinstalling plugin \"%(name)s\" from %(url)s..." msgstr "Reinstalliere Plugin \"%(name)s\" von %(url)s..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:597 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:514 msgid "Uninstalling plugin..." msgstr "Deinstalliere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:597 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:514 #, python-format msgid "Uninstalling plugin \"%(name)s\"" msgstr "Deinstalliere Plugin \"%(name)s\"" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 msgid "Reinstall" msgstr "Reinstallieren" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:198 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:214 msgid "Install" msgstr "Installieren" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 msgid "Disabled" msgstr "Deaktiviert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 msgid "Incompatible" msgstr "Inkompatibel" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:720 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:637 msgid "Plugin management log" msgstr "Pluginmanagementlog" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:728 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:645 #, python-format msgid "%(count)d earlier actions..." msgstr "%(count)d frühere Aktionen..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:730 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:647 #, python-format msgid "%(count)d earlier action" msgstr "%(count)d earlier Aktion" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:741 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:658 #, python-format msgid "Install %(plugin)s: %(result)s" msgstr "%(plugin)s installiert: %(result)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:745 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:662 #, python-format msgid "Uninstall %(plugin)s: %(result)s" msgstr "%(plugin)s deinstalliert: %(result)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:749 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:666 #, python-format msgid "Enable %(plugin)s: %(result)s" msgstr "%(plugin)s aktiviert: %(result)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:753 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:670 #, python-format msgid "Disable %(plugin)s: %(result)s" msgstr "%(plugin)s deaktiviert: %(result)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:770 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:687 msgid "A restart is needed for the changes to take effect." -msgstr "" -"Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam " -"werden." +msgstr "Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam werden." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:778 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:695 msgid "Restart now" msgstr "Jetzt neu starten" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:783 -msgid "" -"This will restart your OctoPrint server.

    This " -"action may disrupt any ongoing print jobs (depending on your printer's " -"controller and general setup that might also apply to prints run directly" -" from your printer's internal storage)." -msgstr "" -"Dies wird deinen OctoPrint server neu " -"starten

    Diese Aktion wird laufende Druckaufträge " -"unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup " -"gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers" -" laufen lässt)." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:700 +msgid "This will restart your OctoPrint server.

    This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)." +msgstr "Dies wird deinen OctoPrint server neu starten

    Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:789 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:706 msgid "Restart in progress" msgstr "Neustart findet statt" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:790 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:707 msgid "The server is now being restarted in the background" msgstr "Der Server wird nun im Hintergrund neu gestartet" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:796 -msgid "" -"Trying to restart the server produced an error, please check " -"octoprint.log for details. You'll have to restart manually." -msgstr "" -"Beim Versuch, den Server neu zu starten, ist ein Fehler aufgetreten. " -"Bitte konsultiere octoprint.log für Details. Du musst manuell neu " -"starten." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:713 +msgid "Trying to restart the server produced an error, please check octoprint.log for details. You'll have to restart manually." +msgstr "Beim Versuch, den Server neu zu starten, ist ein Fehler aufgetreten. Bitte konsultiere octoprint.log für Details. Du musst manuell neu starten." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:809 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:726 msgid "A refresh is needed for the changes to take effect." -msgstr "" -"Ein Neuladen von OctoPrint ist notwendig, damit die Änderungen wirksam " -"werden." +msgstr "Ein Neuladen von OctoPrint ist notwendig, damit die Änderungen wirksam werden." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:816 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:733 #: src/octoprint/templates/overlays/reloadui.jinja2:14 msgid "Reload now" msgstr "Jetzt neu laden" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:825 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:742 msgid "A reconnect to the printer is needed for the changes to take effect." -msgstr "" -"Ein Reconnect zum Drucker ist notwendig, damit die Änderungen wirksam " -"werden." +msgstr "Ein Reconnect zum Drucker ist notwendig, damit die Änderungen wirksam werden." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:862 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:779 msgid "Error!" msgstr "Fehler!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:865 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:782 msgid "Done!" msgstr "Fertig!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:891 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:808 msgid "Blacklisted" msgstr "Geblacklistet" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:893 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:810 msgid "Disabled due to active safe mode" msgstr "Deaktiviert wegen aktiviertem Safe Mode" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:895 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:812 msgid "Enable Plugin" msgstr "Plugin enablen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:898 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815 msgid "Disable Plugin" msgstr "Plugin disablen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:918 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:835 #, python-format -msgid "" -"There are %(count)d notices (%(important)d marked as important) available" -" regarding this plugin - click to show!" -msgstr "" -"Es gibt %(count)d Nachrichten (%(important)d als wichtig markiert) zu " -"diesem Plugin - hier klicken um sie anzuzeigen!" +msgid "There are %(count)d notices (%(important)d marked as important) available regarding this plugin - click to show!" +msgstr "Es gibt %(count)d Nachrichten (%(important)d als wichtig markiert) zu diesem Plugin - hier klicken um sie anzuzeigen!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:920 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:837 #, python-format -msgid "" -"There are %(count)d notices available regarding this plugin - click to " -"show!" -msgstr "" -"Es gibt %(count)d Nachrichten zu diesem Plugin - hier klicken um sie " -"anzuzeigen!" +msgid "There are %(count)d notices available regarding this plugin - click to show!" +msgstr "Es gibt %(count)d Nachrichten zu diesem Plugin - hier klicken um sie anzuzeigen!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:924 -msgid "" -"There is an important notice available regarding this plugin - click to " -"show!" -msgstr "" -"Es gibt eine wichtige Nachricht zu diesem Plugin - hier klicken um sie " -"anzuzeigen!" +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:841 +msgid "There is an important notice available regarding this plugin - click to show!" +msgstr "Es gibt eine wichtige Nachricht zu diesem Plugin - hier klicken um sie anzuzeigen!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:926 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:843 msgid "There is a notice available regarding this plugin - click to show!" msgstr "Es gibt eine Nachricht zu diesem Plugin - hier klicken um sie anzuzeigen!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:940 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:857 #, python-format msgid "Important notice regarding plugin \"%(name)s\"" msgstr "Wichtige Nachricht zu Plugin \"%(name)s\"" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:942 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:859 #, python-format msgid "Notice regarding plugin \"%(name)s\"" msgstr "Nachricht zu Plugin \"%(name)s\"" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:949 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:866 #, python-format msgid "Affected versions: %(versions)s" msgstr "Betroffene Versionen: %(versions)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:951 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:868 msgid "Affected versions: all" msgstr "Betroffene Versionen: alle" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:956 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:873 msgid "Read more..." msgstr "Mehr..." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:3 -msgid "" -"Take note that all plugin management functionality is disabled while your" -" printer is printing." -msgstr "" -"Bitte beachte dass jegliche Pluginmanagementfunktionen während des " -"Druckens deaktiviert sind." +msgid "Take note that all plugin management functionality is disabled while your printer is printing." +msgstr "Bitte beachte dass jegliche Pluginmanagementfunktionen während des Druckens deaktiviert sind." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:8 -msgid "" -"\n" -" The pip command could not be found or does not work " -"correctly\n" -" for this installation of OctoPrint - please consult the log file for " -"details\n" -" and if necessary configure it manually. No installation and " -"uninstallation of plugin\n" +msgid "\n" +" The pip command could not be found or does not work correctly\n" +" for this installation of OctoPrint - please consult the log file for details\n" +" and if necessary configure it manually. No installation and uninstallation of plugin\n" " packages is possible while pip is unavailable.\n" -msgstr "" -"\n" -" Der pip Befehl konnte nicht gefunden werden oder " -"funktioniert nicht richtig - bitte konsultiere die Logdatei für Details " -"und fall nötig konfiguriere den Befehl manuell. Installation und " -"Deinstallation von Plugins ist nicht möglich, solange pip " -"nicht verfügbar ist.\n" +msgstr "\n" +" Der pip Befehl konnte nicht gefunden werden oder funktioniert nicht richtig - bitte konsultiere die Logdatei für Details und fall nötig konfiguriere den Befehl manuell. Installation und Deinstallation von Plugins ist nicht möglich, solange pip nicht verfügbar ist.\n" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:17 -msgid "" -"\n" -" Safe mode is currently active. All third party plugins are disabled " -"and cannot be\n" +msgid "\n" +" Safe mode is currently active. All third party plugins are disabled and cannot be\n" " enabled. Installation of plugin packages is disabled.\n" -msgstr "" -"Der Safe Mode ist aktuell aktiviert. Alle Third-Party-Plugins sind " -"deaktiviert und könnennicht aktiviert werden. Installation von Plugins " -"ist deaktiviert." +msgstr "Der Safe Mode ist aktuell aktiviert. Alle Third-Party-Plugins sind deaktiviert und könnennicht aktiviert werden. Installation von Plugins ist deaktiviert." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:24 -msgid "" -"\n" -" It looks like OctoPrint has currently no connection to the internet. " -"Due to that it's not possible\n" +msgid "\n" +" It looks like OctoPrint has currently no connection to the internet. Due to that it's not possible\n" " to install new plugins from the plugin repository or archive URLs.\n" -msgstr "" -"OctoPrint scheint zur Zeit keine Verbindung zum Internet zu haben. Daher " -"ist es nicht Möglich, neue Plugins aus dem Pluginrepository oder von URL " -"zu installieren." +msgstr "OctoPrint scheint zur Zeit keine Verbindung zum Internet zu haben. Daher ist es nicht Möglich, neue Plugins aus dem Pluginrepository oder von URL zu installieren." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:35 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:242 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:20 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:77 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:37 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:94 msgid "Plugin Configuration" msgstr "Pluginkonfiguration" @@ -1315,9 +1526,7 @@ msgstr "Kann nicht aus OctoPrint heraus deinstalliert werden" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:50 msgid "Restart of OctoPrint needed for changes to take effect" -msgstr "" -"Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam " -"werden" +msgstr "Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam werden" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:50 msgid "Pending install" @@ -1420,78 +1629,40 @@ msgstr "URL eingeben..." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:200 #, python-format -msgid "" -"This does not look like a valid URL. Expected http, https or any of the " -"supported VCS URLs." -msgstr "" -"Das sieht nicht wie eine valide URL aus. Erwarte http, https oder eine " -"der unterstützten VCS URLs." +msgid "This does not look like a valid URL. Expected http, https or any of the supported VCS URLs." +msgstr "Das sieht nicht wie eine valide URL aus. Erwarte http, https oder eine der unterstützten VCS URLs." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:203 msgid "... from an uploaded archive" msgstr "... von einem hochgeladenen Archiv" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:216 -msgid "" -"This does not look like a valid plugin archive. Valid plugin archives " -"should be either zip files or tarballs and have the extension \".zip\", " -"\".tar.gz\", \".tgz\" or \".tar\"" -msgstr "" -"Das sieht nicht aus wie ein valides Pluginarchiv. Valide Pluginarchive " -"sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension " -"\".zip\", \".tar.gz\", \".tgz\" oder \".tar\" haben" - -#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:220 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:66 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:157 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:267 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:333 -#: src/octoprint/templates/dialogs/settings/webcam.jinja2:9 -#: src/octoprint/templates/dialogs/settings/webcam.jinja2:23 -#: src/octoprint/templates/snippets/settings/server/serverPluginBlacklist.jinja2:5 -#: src/octoprint/templates/tabs/gcodeviewer.jinja2:77 -#: src/octoprint/templates/tabs/terminal.jinja2:34 -msgid "Advanced options" -msgstr "Erweiterte Optionen" +msgid "This does not look like a valid plugin archive. Valid plugin archives should be either zip files or tarballs and have the extension \".zip\", \".tar.gz\", \".tgz\" or \".tar\"" +msgstr "Das sieht nicht aus wie ein valides Pluginarchiv. Valide Pluginarchive sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension \".zip\", \".tar.gz\", \".tgz\" oder \".tar\" haben" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:226 msgid "Use --process-dependency-links with pip install" -msgstr "" -"--process-dependency-link mit pip install " -"verwenden" +msgstr "--process-dependency-link mit pip install verwenden" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:246 -msgid "" -"You should normally not have to change " -"any of the following settings, they are purely provided " -"for convenience here." -msgstr "" -"Du solltest keine der folgenden Einstellungen ändern " -"müssen, sie sind hier nur aus Gründen der Vollständigkeit aufgeführt." +msgid "You should normally not have to change any of the following settings, they are purely provided for convenience here." +msgstr "Du solltest keine der folgenden Einstellungen ändern müssen, sie sind hier nur aus Gründen der Vollständigkeit aufgeführt." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:249 msgid "Plugin repository configuration" msgstr "Pluginrepositorykonfiguration" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:251 -msgid "" -"URL of the Plugin Repository to use. You should normally not have to " -"change this." -msgstr "" -"URL des zu nutzenden Pluginrepositories. Du solltest hier normalerweise " -"nichts ändern müssen." +msgid "URL of the Plugin Repository to use. You should normally not have to change this." +msgstr "URL des zu nutzenden Pluginrepositories. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:252 msgid "Repository URL" msgstr "Repository-URL" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:257 -msgid "" -"How long to cache repository data, in minutes. You should normally not " -"have to change this." -msgstr "" -"Wie lange die Repositorydaten gecached werden sollen, in Minuten. Du " -"solltest hier normalerweise nichts ändern müssen." +msgid "How long to cache repository data, in minutes. You should normally not have to change this." +msgstr "Wie lange die Repositorydaten gecached werden sollen, in Minuten. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:258 msgid "Repository cache TTL" @@ -1502,24 +1673,16 @@ msgid "Notices configuration" msgstr "Nachrichtenkonfiguration" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:271 -msgid "" -"URL of the Notices source to use. You should normally not have to change " -"this." -msgstr "" -"URL der zu nutzenden Nachrichtenquelle. Du solltest hier normalerweise " -"nichts ändern müssen." +msgid "URL of the Notices source to use. You should normally not have to change this." +msgstr "URL der zu nutzenden Nachrichtenquelle. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:272 msgid "Notices URL" msgstr "Nachrichten URL" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:277 -msgid "" -"How long to cache notices, in minutes. You should normally not have to " -"change this." -msgstr "" -"Wie lange Nachrichten gecached werden sollen, in Minuten. Du solltest " -"hier normalerweise nichts ändern müssen." +msgid "How long to cache notices, in minutes. You should normally not have to change this." +msgstr "Wie lange Nachrichten gecached werden sollen, in Minuten. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:278 msgid "Notices cache TTL" @@ -1530,25 +1693,19 @@ msgid "pip configuration" msgstr "pip Konfiguration" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:291 -msgid "" -"Additional arguments for the pip command. You should normally not have to" -" change this." -msgstr "" -"Weitere Argument für den pip Befehl. Du solltest hier normalerweise " -"nichts ändern müssen." +msgid "Additional arguments for the pip command. You should normally not have to change this." +msgstr "Weitere Argument für den pip Befehl. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:292 msgid "Additional arguments" msgstr "Weitere Argumente" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:300 -msgid "" -"Force the use of the --user flag with pip " -"install" +msgid "Force the use of the --user flag with pip install" msgstr "--user mit pip install verwenden" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:309 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:104 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:121 #: src/octoprint/static/js/app/helpers.js:707 #: src/octoprint/templates/dialogs/files.jinja2:18 #: src/octoprint/templates/dialogs/slicing.jinja2:57 @@ -1558,24 +1715,22 @@ msgid "Cancel" msgstr "Abbruch" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:310 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:105 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:122 #: src/octoprint/templates/dialogs/temperature.jinja2:32 msgid "Save" msgstr "Speichern" -#: src/octoprint/plugins/printer_safety_check/__init__.py:83 +#: 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:166 -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." +#: 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." #: src/octoprint/plugins/printer_safety_check/templates/printer_safety_check_sidebar.jinja2:1 msgid "Warning!" @@ -1585,440 +1740,376 @@ msgstr "Warnung!" msgid "Learn more..." msgstr "Mehr erfahren..." -#: src/octoprint/plugins/softwareupdate/__init__.py:570 +#: src/octoprint/plugins/softwareupdate/__init__.py:520 +msgid "Python" +msgstr "Python" + +#: src/octoprint/plugins/softwareupdate/__init__.py:521 +msgid "pip" +msgstr "pip" + +#: src/octoprint/plugins/softwareupdate/__init__.py:522 +msgid "setuptools" +msgstr "setuptools" + +#: 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:984 +#: src/octoprint/plugins/softwareupdate/__init__.py:1045 #: src/octoprint/server/views.py:577 -#: src/octoprint/static/js/app/viewmodels/appearance.js:13 -#: src/octoprint/static/js/app/viewmodels/appearance.js:18 -#: src/octoprint/static/js/app/viewmodels/appearance.js:20 -#: src/octoprint/static/js/app/viewmodels/appearance.js:25 -#: src/octoprint/static/js/app/viewmodels/appearance.js:27 +#: src/octoprint/static/js/app/viewmodels/appearance.js:99 +#: src/octoprint/static/js/app/viewmodels/appearance.js:104 +#: src/octoprint/static/js/app/viewmodels/appearance.js:106 +#: src/octoprint/static/js/app/viewmodels/appearance.js:111 +#: src/octoprint/static/js/app/viewmodels/appearance.js:113 #: src/octoprint/templates/dialogs/about/about.jinja2:1 msgid "OctoPrint" msgstr "OctoPrint" -#: src/octoprint/plugins/softwareupdate/__init__.py:1144 -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." +#: 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." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:247 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:169 msgid "Release" msgstr "Release" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:248 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:170 msgid "Commit" msgstr "Commit" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:287 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:209 #, python-format msgid "%(name)s: %(version)s" msgstr "%(name)s: %(version)s" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:290 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:212 msgid "unknown" msgstr "unbekannt" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:304 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:507 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:521 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:694 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:229 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:436 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:450 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:623 msgid "Updating..." msgstr "Aktualisiere..." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:304 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:521 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:694 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:229 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:450 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:623 msgid "Updating, please wait." msgstr "Aktualisiere gerade, bitte warten." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:311 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:236 msgid "There are updates available for the following components:" msgstr "Es gibt Aktualisierungen für die folgenden Komponenten:" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:319 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:565 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:244 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:494 msgid "Release Notes" msgstr "Release Notes" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:325 -msgid "" -"Those components marked with can be updated" -" directly." -msgstr "" -"Die mit markierten Komponenten können " -"direkt aktualisiert werden." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:251 +msgid "This version of the Python environment is not supported for direct updates." +msgstr "Diese Version der Pythonumgebung unterstützt keine direkten Aktualisierungen." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:328 -msgid "" -"To have updates applied, get in touch with an administrator of this " -"OctoPrint instance." -msgstr "" -"Um Updates durchzuführen wende dich bitte an einen Administrator dieser " -"OctoPrint Instanz." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:253 +msgid "Those components marked with can be updated directly." +msgstr "Die mit markierten Komponenten können direkt aktualisiert werden." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:334 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:257 +msgid "To have updates applied, get in touch with an administrator of this OctoPrint instance." +msgstr "Um Updates durchzuführen wende dich bitte an einen Administrator dieser OctoPrint Instanz." + +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:263 msgid "Update Available" msgstr "Aktualisierung verfügbar" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:346 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:372 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:373 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:275 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:301 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:101 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:380 msgid "Ignore" msgstr "Ignorieren" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:350 -msgid "" -"You can make this message display again via \"Settings\" > \"Software " -"Update\" > \"Check for update now\"" -msgstr "" -"Du kannst diese Nachricht erneut anzeigen lassen mittels " -"\"Einstellungen\" > \"Software Update\" > \"Jetzt nach Aktualisierungen " -"suchen\"" +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:279 +msgid "You can make this message display again via \"Settings\" > \"Software Update\" > \"Check for update now\"" +msgstr "Du kannst diese Nachricht erneut anzeigen lassen mittels \"Einstellungen\" > \"Software Update\" > \"Jetzt nach Aktualisierungen suchen\"" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:354 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:283 msgid "Update now" msgstr "Jetzt aktualisieren" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:392 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:321 msgid "Everything is up-to-date" msgstr "Alles ist auf dem neusten Stand" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:416 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:345 msgid "No internet connection" msgstr "Keine Onlineverbindung" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:420 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:349 msgid "Update not possible" msgstr "Update nicht möglich" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:431 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:360 msgid "Unknown update check, configuration ok?" msgstr "Unbekannter Updatechecktyp, Konfiguration in Ordnung?" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:434 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:363 msgid "Cannot check for update, need online connection" msgstr "Updatecheck ist nicht mögich, benötige Onlineverbindung" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:437 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:366 msgid "Network error while checking for update" msgstr "Netzwerkfehler bei Updatecheck" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:440 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:369 msgid "Unknown error while checking for update, please check the logs" msgstr "Unbekannter Fehler beim Updatecheck, bitte prüfe die Logs" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:508 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:437 msgid "Now updating, please wait." msgstr "Aktualisiere gerade, bitte warten." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:526 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:455 msgid "Update not started!" msgstr "Aktualisierung nicht gestartet!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:527 -msgid "" -"The update could not be started. Is it already active? Please consult " -"octoprint.log for details." -msgstr "" -"Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? " -"Bitte konsultiere octoprint.log für Details." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:456 +msgid "The update could not be started. Is it already active? Please consult octoprint.log for details." +msgstr "Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? Bitte konsultiere octoprint.log für Details." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:553 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:482 msgid "Can't update while printing" msgstr "Aktualisierung nicht möglich während gedruckt wird" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:554 -msgid "" -"A print job is currently in progress. Updating will be prevented until it" -" is done." -msgstr "" -"Ein Druckjob ist zur Zeit aktiv. Aktualisierungen werden unterbunden bis " -"er fertig ist." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:483 +msgid "A print job is currently in progress. Updating will be prevented until it is done." +msgstr "Ein Druckjob ist zur Zeit aktiv. Aktualisierungen werden unterbunden bis er fertig ist." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:559 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:488 msgid "This will update the following components and restart the server:" -msgstr "" -"Das wird die folgenden Komponenten aktualisieren und den Server neu " -"starten." +msgstr "Das wird die folgenden Komponenten aktualisieren und den Server neu starten." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:570 -msgid "" -"Be sure to read through any linked release notes, especially those for " -"OctoPrint since they might contain important information you need to know" -" before upgrading." -msgstr "" -"Bitte lies alle verlinkten Release Notes, insbesondere die von OctoPrint," -" da diese wichtige Informationen behinhalten könnten, die Du " -"vor dem Softwareupdate wissen solltest." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:499 +msgid "Be sure to read through any linked release notes, especially those for OctoPrint since they might contain important information you need to know before upgrading." +msgstr "Bitte lies alle verlinkten Release Notes, insbesondere die von OctoPrint, da diese wichtige Informationen behinhalten könnten, die Du vor dem Softwareupdate wissen solltest." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:571 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:500 msgid "This action may disrupt any ongoing print jobs." msgstr "Das könnte laufende Druckaufträge unterbrechen." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:572 -msgid "" -"Depending on your printer's controller and general setup, restarting " -"OctoPrint may cause your printer to be reset." -msgstr "" -"Abhängig von deinem Druckerkontroller und generellem Setup könnte ein " -"Neustart von OctoPrint auch zum Neustart deines Druckers führen." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:501 +msgid "Depending on your printer's controller and general setup, restarting OctoPrint may cause your printer to be reset." +msgstr "Abhängig von deinem Druckerkontroller und generellem Setup könnte ein Neustart von OctoPrint auch zum Neustart deines Druckers führen." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:573 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:502 #: src/octoprint/static/js/app/helpers.js:703 msgid "Are you sure you want to proceed?" msgstr "Bist Du sicher, dass du fortfahren willst?" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:575 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:504 msgid "Are you sure you want to update now?" msgstr "Bist Du sicher, dass du jetzt aktualisieren willst?" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:577 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:506 #: src/octoprint/static/js/app/helpers.js:708 msgid "Proceed" msgstr "Fortfahren" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:711 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:640 #, python-format msgid "Now updating %(name)s to %(version)s" msgstr "Aktualisiere %(name)s auf %(version)s" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:730 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:659 msgid "Update successful, restarting!" msgstr "Aktualisierung erfolgreich, starte neu!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:731 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:660 msgid "The update finished successfully and the server will now be restarted." -msgstr "" -"Die Aktualisierung wurde erfolgreich durchgeführt und der Server wird " -"jetzt neu gestartet." +msgstr "Die Aktualisierung wurde erfolgreich durchgeführt und der Server wird jetzt neu gestartet." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:748 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:797 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:677 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:726 msgid "Restart failed" msgstr "Neustart fehlgeschlagen" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:749 -msgid "" -"The server apparently did not restart by itself, you'll have to do it " -"manually. Please consult octoprint.log on what went wrong." -msgstr "" -"Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das " -"manuell tun müssen. Bitte konsultiere octoprint.log." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:678 +msgid "The server apparently did not restart by itself, you'll have to do it manually. Please consult octoprint.log on what went wrong." +msgstr "Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das manuell tun müssen. Bitte konsultiere octoprint.log." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:771 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:700 msgid "The update finished successfully, please restart OctoPrint now." -msgstr "" -"Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte " -"OctoPrint jetzt neu." +msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte OctoPrint jetzt neu." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:773 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:702 msgid "The update finished successfully, please reboot the server now." -msgstr "" -"Die Aktualisierung wurde erfolgreich abgeschlossen, bitte reboote den " -"Server jetzt." +msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen, bitte reboote den Server jetzt." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:776 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:705 msgid "Update successful, restart required!" msgstr "Aktualisierung erfolgreich, Neustart notwendig!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:792 -msgid "" -"Restarting OctoPrint failed, please restart it manually. You might also " -"want to consult octoprint.log on what went wrong here." -msgstr "" -"Der Neustart von OctoPrint ist fehlgeschlagen, bitte starte es manuell " -"neu. Du solltest auch octoprint.log konsultieren, um herauszufinden, was " -"hier schief gelaufen ist." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:721 +msgid "Restarting OctoPrint failed, please restart it manually. You might also want to consult octoprint.log on what went wrong here." +msgstr "Der Neustart von OctoPrint ist fehlgeschlagen, bitte starte es manuell neu. Du solltest auch octoprint.log konsultieren, um herauszufinden, was hier schief gelaufen ist." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:794 -msgid "" -"Rebooting the server failed, please reboot it manually. You might also " -"want to consult octoprint.log on what went wrong here." -msgstr "" -"Reboot des Servers fehlgeschlagen, bitte reboote ihn manuell. Du solltest" -" auch octoprint.log konsultieren, um herauszufinden, was hier gerade " -"schief gelaufen ist." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:723 +msgid "Rebooting the server failed, please reboot it manually. You might also want to consult octoprint.log on what went wrong here." +msgstr "Reboot des Servers fehlgeschlagen, bitte reboote ihn manuell. Du solltest auch octoprint.log konsultieren, um herauszufinden, was hier gerade schief gelaufen ist." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:813 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:742 msgid "Update successful!" msgstr "Aktualisierung erfolgreich!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:814 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:743 msgid "The update finished successfully." msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:829 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:758 msgid "Update failed!" msgstr "Aktualisierung fehlgeschlagen!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:830 -msgid "" -"The update did not finish successfully. Please consult " -"octoprint.log and " -"plugin_softwareupdate_console.log for details." -msgstr "" -"Die Aktualisierung wurde nicht erfolgreich abgeschlossen. Bitte " -"konsultiere octoprint.log und " -"plugin_softwareupdate_console.log für Details." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:759 +msgid "The update did not finish successfully. Please consult octoprint.log and plugin_softwareupdate_console.log for details." +msgstr "Die Aktualisierung wurde nicht erfolgreich abgeschlossen. Bitte konsultiere octoprint.log und plugin_softwareupdate_console.log für Details." #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:1 -msgid "" -"\n" -" Please configure the checkout folder of OctoPrint, " -"otherwise\n" -" this plugin won't be able to update it. Click on the button\n" -" to do this. Also refer to the Documentation.\n" -msgstr "" -"Bitte konfiguriere das Checkoutverzeichnis von " -"OctoPrint, andernfalls wird dieses Plugin Deine Installation nicht " -"updaten können. Klicke dazu auf den " -"Button. Siehe des Weiteren auch die Dokumentation." +msgid "\n" +" Please configure the checkout folder of OctoPrint, otherwise\n" +" this plugin won't be able to update it. Click on the button\n" +" to do this. Also refer to the Documentation.\n" +msgstr "Bitte konfiguriere das Checkoutverzeichnis von OctoPrint, andernfalls wird dieses Plugin Deine Installation nicht updaten können. Klicke dazu auf den Button. Siehe des Weiteren auch die Dokumentation." #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:6 -msgid "" -"\n" +msgid "\n" "

    \n" -" You are running a non-release version of OctoPrint but " -"are tracking OctoPrint\n" +" You are running a non-release version of OctoPrint but are tracking OctoPrint\n" " releases.\n" "

    \n" -" You probably want OctoPrint to track the matching development " -"version instead.\n" -" If you have a local OctoPrint checkout folder switched to another" -" branch,\n" -" simply switching over to \"Commit\" tracking " -"will already\n" +" You probably want OctoPrint to track the matching development version instead.\n" +" If you have a local OctoPrint checkout folder switched to another branch,\n" +" simply switching over to \"Commit\" tracking will already\n" " take care of that. Otherwise please take a look at the\n" -" Documentation.\n" +" Documentation.\n" "

    \n" -msgstr "" -"\n" -"

    Du nutzt eine unveröffentlichte Version von OctoPrint, " -"trackst aber OctoPrint Releases.

    Du willst " -"vermutlich, dass OctoPrint stattdessen die entsprechende " -"Entwicklungsversion trackt. Falls Du dein lokales OctoPrint-" -"Checkoutverzeichnis auf einen anderen Branch gewechselt hast, dann " -"wechsle das Tracking einfach auf \"Commit\". Ansonsten " -"wirf einen Blick in die Dokumentation.

    \n" +msgstr "\n" +"

    Du nutzt eine unveröffentlichte Version von OctoPrint, trackst aber OctoPrint Releases.

    Du willst vermutlich, dass OctoPrint stattdessen die entsprechende Entwicklungsversion trackt. Falls Du dein lokales OctoPrint-Checkoutverzeichnis auf einen anderen Branch gewechselt hast, dann wechsle das Tracking einfach auf \"Commit\". Ansonsten wirf einen Blick in die Dokumentation.

    \n" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:23 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:18 +msgid "\n" +"

    \n" +" This version of the Python environment is not supported for direct updates.\n" +"

    \n" +"

    \n" +" To reduce the likelihood of running into update problems in outdated environments, the following minimal\n" +" versions are required to use this updater to update OctoPrint or any installed plugins:\n" +"

    \n" +msgstr "\n" +"

    \n" +" Diese Version der Pythonumgebung wird fĂĽr direkt Aktualisierungen nicht unterstĂĽtzt.\n" +"

    \n" +"

    \n" +" Um die Wahrscheinlichkeit von Aktualisierungsproblemen in veralteten Umgebungen zu reduzieren, werden die folgenden minimalen\n" +" Versionen vorausgesetzt, um diesen Updater zur Aktualisierung von OctoPrint oder installierten Plugins zu nutzen:\n" +"

    \n" + +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:28 +msgid "you have" +msgstr "du hast" + +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:30 +msgid "\n" +"

    \n" +" Please take a look at this FAQ entry on how to proceed.\n" +"

    \n" +msgstr "\n" +"

    \n" +" Bitte schau dir diesen FAQ Eintrag an.\n" +"

    \n" + +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:40 msgid "Current versions" msgstr "Aktuelle Versionen" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:29 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:46 msgid "Update available" msgstr "Aktualisierung verfĂĽgbar" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:32 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:49 msgid "Update" msgstr "Aktualisieren" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:35 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:52 msgid "Installed:" msgstr "Installiert:" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:36 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:53 msgid "Available:" msgstr "VerfĂĽgbar:" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:37 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:54 msgid "Release Notes:" msgstr "Release Notes:" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:62 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:79 msgid "Update all" msgstr "Alle aktualisieren" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:63 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:80 msgid "Check for update now" msgstr "Jetzt nach Aktualisierungen suchen" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:68 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:85 msgid "Last cache refresh:" msgstr "Letzter Cacherefresh:" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:69 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:86 msgid "Force check for update (overrides cache used for update checks)" -msgstr "" -"Suche nach Aktualisierungen forcieren (ignoriert den Cache fĂĽr " -"Aktualisierungsinformationen)" +msgstr "Suche nach Aktualisierungen forcieren (ignoriert den Cache fĂĽr Aktualisierungsinformationen)" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:70 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:87 msgid "Force update now (even if no new versions are available)" msgstr "Aktualisierung forcieren (selbst wenn keine neue Versionen verfĂĽgbar sind)" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:85 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:102 msgid "Version cache TTL" msgstr "TTL des Versionscaches" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:96 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:113 msgid "Show update notifications to users" msgstr "Updatebenachrichtigungen auch Usern anzeigen" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:97 -msgid "" -"If you uncheck this, only logged in admins will see update notifications." -" Update notifications shown to users do not include the \"Update now\" " -"button." -msgstr "" -"Wenn du das deselektierst werden nur eingeloggte Administratoren " -"Updatebenachrichtigungen sehen. Updatebenachrichtigungen, die Usern " -"gezeigt werden, beinhalten keinen \"Jetzt aktualisieren\" Button." +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:114 +msgid "If you uncheck this, only logged in admins will see update notifications. Update notifications shown to users do not include the \"Update now\" button." +msgstr "Wenn du das deselektierst werden nur eingeloggte Administratoren Updatebenachrichtigungen sehen. Updatebenachrichtigungen, die Usern gezeigt werden, beinhalten keinen \"Jetzt aktualisieren\" Button." -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:115 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:132 msgid "Update in progress, please wait." msgstr "Aktualisiere gerade, bitte warten." -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:116 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:133 msgid "Update done, please close this window." msgstr "Update beendet, bitte schlieĂźe diesen Dialog." #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:3 -msgid "" -"

    \n" -" By default, OctoPrint will update itself via pip to " -"published releases. OctoPrint can\n" -" also update itself via git to arbitrary development " -"branches you need to check out manually.\n" -" If you want to do that though it needs to know its checkout folder. " -"You can configure that here.\n" +msgid "

    \n" +" By default, OctoPrint will update itself via pip to published releases. OctoPrint can\n" +" also update itself via git to arbitrary development branches you need to check out manually.\n" +" If you want to do that though it needs to know its checkout folder. You can configure that here.\n" "

    " -msgstr "" -"

    Standardmäßig nutzt OctoPrint pip um sich bei neuen " -"Releases selbst zu aktualisieren. OctoPrint kann sich auch via " -"git von beliebigen manuell ausgecheckten " -"Entwicklungsbranches aktualisieren. Falls du das tun willst muss " -"OctoPrint allerdings auch sein Checkoutfolder kennen. Das kannst du hier " -"konfigurieren.

    " +msgstr "

    Standardmäßig nutzt OctoPrint pip um sich bei neuen Releases selbst zu aktualisieren. OctoPrint kann sich auch via git von beliebigen manuell ausgecheckten Entwicklungsbranches aktualisieren. Falls du das tun willst muss OctoPrint allerdings auch sein Checkoutfolder kennen. Das kannst du hier konfigurieren.

    " #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:14 -msgid "" -"

    \n" -" If you are running a release version of OctoPrint, leave at " -"\"Release\" tracking. If you are running a different\n" +msgid "

    \n" +" If you are running a release version of OctoPrint, leave at \"Release\" tracking. If you are running a different\n" " branch however, you should setup \"Commit\" tracking.\n" "

    " -msgstr "" -"

    Wenn du eine Releaseversion von OctoPrint nutzt, lass hier \"Release\"" -" Tracking eingestellt. Falls du allerdings einen anderen Branch nutzt " -"solltest du auf \"Commit\" tracking umstellen.

    " +msgstr "

    Wenn du eine Releaseversion von OctoPrint nutzt, lass hier \"Release\" Tracking eingestellt. Falls du allerdings einen anderen Branch nutzt solltest du auf \"Commit\" tracking umstellen.

    " #: src/octoprint/plugins/softwareupdate/templates/snippets/plugins/softwareupdate/checkoutFolder.jinja2:2 msgid "OctoPrint checkout folder" @@ -2034,21 +2125,140 @@ msgstr "OctoPrint Release Channel" #: src/octoprint/plugins/softwareupdate/templates/snippets/plugins/softwareupdate/releaseChannel.jinja2:5 #, python-format -msgid "" -"Make sure you have read \"How to use the release channels to help " -"test release candidates\" before switching to a release channel other" -" than \"Stable\"" -msgstr "" -"Stelle sicher, dass du \"How to use the release channels to help " -"test release candidates\" gelesen hast, bevor du einen anderen " -"Release Channel als \"Stable\" auswählst." +msgid "Make sure you have read \"How to use the release channels to help test release candidates\" before switching to a release channel other than \"Stable\"" +msgstr "Stelle sicher, dass du \"How to use the release channels to help test release candidates\" gelesen hast, bevor du einen anderen Release Channel als \"Stable\" auswählst." #: src/octoprint/plugins/softwareupdate/templates/snippets/plugins/softwareupdate/versionTracking.jinja2:2 msgid "OctoPrint version tracking" msgstr "OctoPrint Versionstracking" +#: 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/usage.js:57 +msgid "Please set up anonymous usage tracking" +msgstr "Bitte konfiguriere das Anonymous Usage Tracking" + +#: 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 bug report on this. Make sure to include all requested information, including your JS console and octoprint.log." +msgstr "Bitte eröffne einen Bugreport zu diesem Problem. Stelle sicher, dass du alle erbetenen Daten zur Verfügung stellst, inklusive deiner JS console und octoprint.log." + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:9 +msgid "Enable anonymous usage tracking" +msgstr "Anonymous Usage Tracking aktivieren" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:14 +msgid "Random unique instance ID" +msgstr "Zufällige eindeutige Instanzkennung" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:14 +msgid "Instance ID" +msgstr "Instanzkennung" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:20 +msgid "Events to track. The ping is mandatory." +msgstr "Zu trackende Events. Der Ping ist obligatorisch." + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:20 +msgid "Tracked events" +msgstr "Getrackte Events" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:23 +msgid "Regular ping" +msgstr "Regelmäßiger Ping" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:26 +msgid "Server startup & shutdown" +msgstr "Server Start & Stop" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:29 +msgid "Connected to printer" +msgstr "Mit dem Drucker verbunden" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:32 +msgid "Print started/cancelled/finished" +msgstr "Druck gestartet/abgebrochen/beendet" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:35 +msgid "Plugin installed/uninstalled/enabled/disabled" +msgstr "Plugin installiert/deinstalliert/aktiviert/deaktiviert" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:38 +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" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:8 +msgid "Note: You can always change your decision and also access more granular controls via Settings > Anonymous Usage Tracking." +msgstr "Hinweis: Du kannst unter Einstellungen > Anonymous Usage Tracking deine Entscheidung jederzeit ändern und auch auf feingranularere Einstellungen zugreifen." + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:12 +msgid "Disable Anonymous Usage Tracking" +msgstr "Anonymous Usage Tracking deaktivieren" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:13 +msgid "Enable Anonymous Usage Tracking" +msgstr "Anonymous Usage Tracking aktivieren" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:17 +msgid "\n" +" Anonymous Usage Tracking is enabled.\n" +" " +msgstr "\n" +" Anonymous Usage Tracking aktiviert.\n" +" " + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:20 +msgid "\n" +" Anonymous Usage Tracking is disabled.\n" +" " +msgstr "\n" +" Anonymous Usage Tracking deaktiviert.\n" +" " + +#: src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDescription.jinja2:1 +msgid "\n" +"

    \n" +" Anonymous usage tracking provides valuable insights into how many instances running what versions of OctoPrint are out there,\n" +" whether they are successfully completing print jobs and various other metrics.\n" +"

    \n" +"

    \n" +" By enabling it you help to identify problems with new releases and release candidates early on, and to better\n" +" tailor OctoPrint's future development to actual use.\n" +"

    \n" +msgstr "\n" +"

    \n" +" Anonymous Usage Tracking liefert wertvolle Einblicke, wieviele Instanzen welche Versionen von OctoPrint da drauĂźen laufen haben,\n" +" ob sie erfolgreich Drucke beenden und weitere Metriken.\n" +"

    \n" +"

    \n" +" Wenn du es aktivierst, hilfst du, Probleme mit neuen Releases und Release Candidates frühzeitig zu erkennen und OctoPrints\n" +" Weiterentwicklung besser auf seine tatsächliche Nutzung zuzuschneiden.\n" +"

    \n" + +#: src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDetails.jinja2:1 +msgid "\n" +" For details on what gets tracked, please refer to tracking.octoprint.org\n" +" and also the Privacy Policy at tracking.octoprint.org.\n" +msgstr "\n" +" FĂĽr Details, was genau getrackt wird, schau bitte auf tracking.octoprint.org\n" +" sowie die Privacy Policy auf tracking.octoprint.org.\n" + #: src/octoprint/server/views.py:487 msgid "Plugins" msgstr "Plugins" @@ -2162,32 +2372,16 @@ msgid "Shutdown system" msgstr "System herunterfahren" #: src/octoprint/server/api/system.py:170 -msgid "" -"You are about to shutdown the system.

    This action " -"may disrupt any ongoing print jobs (depending on your printer's " -"controller and general setup that might also apply to prints run directly" -" from your printer's internal storage)." -msgstr "" -"Dies wird dein System herunterfahren.

    Diese Aktion" -" wird laufende Druckaufträge unterbrechen (abhängig von deinem " -"Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, " -"die du direkt von der SD deines Druckers laufen lässt)." +msgid "You are about to shutdown the system.

    This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)." +msgstr "Dies wird dein System herunterfahren.

    Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)." #: src/octoprint/server/api/system.py:173 msgid "Reboot system" msgstr "System neustarten" #: src/octoprint/server/api/system.py:174 -msgid "" -"You are about to reboot the system.

    This action " -"may disrupt any ongoing print jobs (depending on your printer's " -"controller and general setup that might also apply to prints run directly" -" from your printer's internal storage)." -msgstr "" -"Dies wird dein System neu starten.

    Diese Aktion " -"wird laufende Druckaufträge unterbrechen (abhängig von deinem " -"Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, " -"die du direkt von der SD deines Druckers laufen lässt)." +msgid "You are about to reboot the system.

    This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)." +msgstr "Dies wird dein System neu starten.

    Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)." #: src/octoprint/server/api/system.py:177 #: src/octoprint/templates/snippets/settings/server/serverCommandServerRestart.jinja2:2 @@ -2195,34 +2389,16 @@ msgid "Restart OctoPrint" msgstr "OctoPrint neustarten" #: src/octoprint/server/api/system.py:178 -msgid "" -"You are about to restart the OctoPrint " -"server.

    This action may disrupt any ongoing print jobs " -"(depending on your printer's controller and general setup that might also" -" apply to prints run directly from your printer's internal storage)." -msgstr "" -"Dies wird deinen OctoPrint Server neu " -"starten.

    Diese Aktion wird laufende Druckaufträge " -"unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup " -"gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers" -" laufen lässt)." +msgid "You are about to restart the OctoPrint server.

    This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)." +msgstr "Dies wird deinen OctoPrint Server neu starten.

    Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)." #: src/octoprint/server/api/system.py:181 msgid "Restart OctoPrint in safe mode" msgstr "OctoPrint im Sicherheitsmodus neustarten" #: src/octoprint/server/api/system.py:182 -msgid "" -"You are about to restart the OctoPrint server in safe " -"mode.

    This action may disrupt any ongoing print jobs " -"(depending on your printer's controller and general setup that might also" -" apply to prints run directly from your printer's internal storage)." -msgstr "" -"Dies wird deinen OctoPrint Server im Safemode neu " -"starten.

    Diese Aktion wird laufende Druckaufträge " -"unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup " -"gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers" -" laufen lässt)." +msgid "You are about to restart the OctoPrint server in safe mode.

    This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)." +msgstr "Dies wird deinen OctoPrint Server im Safemode neu starten.

    Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)." #: src/octoprint/static/js/app/dataupdater.js:90 #: src/octoprint/static/js/app/dataupdater.js:109 @@ -2232,39 +2408,20 @@ msgid "Server is offline" msgstr "Der Server ist offline" #: src/octoprint/static/js/app/dataupdater.js:91 -msgid "" -"The server appears to be offline, at least I'm not getting any response " -"from it. I'll try to reconnect automatically over the next couple" -" of minutes, however you are welcome to try a manual reconnect " -"anytime using the button below." -msgstr "" -"Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm" -" verbinden. Ich werde in den nächsten Minuten versuchen " -"mich erneut zu verbinden, aber Du kannst mittels des folgenden Buttons " -"auch jederzeit einen manuellen Verbindungsversuch anstoßen." +msgid "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below." +msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde in den nächsten Minuten versuchen mich erneut zu verbinden, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Verbindungsversuch anstoßen." #: src/octoprint/static/js/app/dataupdater.js:110 -msgid "" -"The server appears to be offline, at least I'm not getting any response " -"from it. I could not reconnect automatically, but you " -"may try a manual reconnect using the button below." -msgstr "" -"Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm" -" verbinden. Ich konnte mich nicht automatisch neu " -"verbinden, aber Du kannst mittels des folgenden Buttons einen " -"manuellen Verbindungsversuch anstoßen." +msgid "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below." +msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte mich nicht automatisch neu verbinden, aber Du kannst mittels des folgenden Buttons einen manuellen Verbindungsversuch anstoßen." #: src/octoprint/static/js/app/dataupdater.js:159 msgid "Safe mode is active" msgstr "Sicherheitsmodus ist aktiv" #: src/octoprint/static/js/app/dataupdater.js:160 -msgid "" -"The server is currently running in safe mode. Third party plugins are " -"disabled and cannot be enabled." -msgstr "" -"Der Server ist aktuell im Sicherheitsmodus. Third-Party-Plugins sind " -"deaktiviert und können nicht aktiviert werden." +msgid "The server is currently running in safe mode. Third party plugins are disabled and cannot be enabled." +msgstr "Der Server ist aktuell im Sicherheitsmodus. Third-Party-Plugins sind deaktiviert und können nicht aktiviert werden." #: src/octoprint/static/js/app/dataupdater.js:209 #: src/octoprint/static/js/app/viewmodels/files.js:890 @@ -2280,22 +2437,13 @@ msgstr "Fehler vom Drucker gemeldet" #: src/octoprint/static/js/app/dataupdater.js:237 #, python-format -msgid "" -"Your printer's firmware reported an error. Due to that the ongoing print " -"job will be cancelled. Reported error: %(firmwareError)s" -msgstr "" -"Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. " -"Daher wird der laufende Druckauftrag abgebrochen. Fehler: " -"%(firmwareError)s" +msgid "Your printer's firmware reported an error. Due to that the ongoing print job will be cancelled. Reported error: %(firmwareError)s" +msgstr "Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. Daher wird der laufende Druckauftrag abgebrochen. Fehler: %(firmwareError)s" #: src/octoprint/static/js/app/dataupdater.js:248 #, python-format -msgid "" -"Your printer's firmware reported an error. Due to that OctoPrint will " -"disconnect. Reported error: %(error)s" -msgstr "" -"Die Firmware Deines Druckers hat einen Fehler gemeldet. Darum hat " -"OctoPrint die Verbindung geschlossen. Gemeldeter Fehler: %(error)s" +msgid "Your printer's firmware reported an error. Due to that OctoPrint will disconnect. Reported error: %(error)s" +msgstr "Die Firmware Deines Druckers hat einen Fehler gemeldet. Darum hat OctoPrint die Verbindung geschlossen. Gemeldeter Fehler: %(error)s" #: src/octoprint/static/js/app/dataupdater.js:253 msgid "Communication error" @@ -2303,14 +2451,8 @@ msgstr "Kommunikationsfehler" #: src/octoprint/static/js/app/dataupdater.js:254 #, python-format -msgid "" -"There was a communication error while talking to your printer. Please " -"consult the terminal output and octoprint.log for details. Error: " -"%(error)s" -msgstr "" -"Es gab einen Fehler bei der Kommunikation mit dem Drucker. Bitte " -"konsultiere den Terminaloutput und octoprint.log für Details. Fehler: " -"%(error)s" +msgid "There was a communication error while talking to your printer. Please consult the terminal output and octoprint.log for details. Error: %(error)s" +msgstr "Es gab einen Fehler bei der Kommunikation mit dem Drucker. Bitte konsultiere den Terminaloutput und octoprint.log für Details. Fehler: %(error)s" #: src/octoprint/static/js/app/dataupdater.js:258 msgid "Error connecting to printer" @@ -2318,9 +2460,7 @@ msgstr "Fehler bei der Verbindung zum Drucker" #: src/octoprint/static/js/app/dataupdater.js:259 #, python-format -msgid "" -"There was an error while trying to connect to your printer. Error: " -"%(error)s" +msgid "There was an error while trying to connect to your printer. Error: %(error)s" msgstr "Es gab einen Fehler bei der Verbindung zum Drucker. Fehler: %(error)s" #: src/octoprint/static/js/app/dataupdater.js:263 @@ -2338,40 +2478,16 @@ msgstr "Unbekannter Fehler" #: src/octoprint/static/js/app/dataupdater.js:274 #, python-format -msgid "" -"There was an unknown error while talking to your printer. Please consult " -"the terminal output and octoprint.log for details. Error: %(error)s" -msgstr "" -"Es gab einen unbekannten Fehler bei der Kommunikation mit dem Drucker. " -"Bitte konsultiere den Terminaloutput und octoprint.log für Details. " -"Fehler: %(error)s" +msgid "There was an unknown error while talking to your printer. Please consult the terminal output and octoprint.log for details. Error: %(error)s" +msgstr "Es gab einen unbekannten Fehler bei der Kommunikation mit dem Drucker. Bitte konsultiere den Terminaloutput und octoprint.log für Details. Fehler: %(error)s" #: src/octoprint/static/js/app/dataupdater.js:294 -msgid "" -"It looks like your printer reset while a connection was active. If this " -"was intentional you may safely ignore this message. Otherwise you should " -"investigate why your printer reset itself, since this will interrupt " -"prints and also file transfers to your printer's SD." -msgstr "" -"Es sieht so als hätte sich der Drucker resettet während eine Verbindung " -"offen war. Falls das Absicht war kannst du diese Nachricht ignorieren. " -"Andernfalls solltest du prüfen, warum sich dein Drucker resettet hat, da " -"dies Druckaufträge und Filetransfers zu der SD Karte deines Druckers " -"unterbrechen wird." +msgid "It looks like your printer reset while a connection was active. If this was intentional you may safely ignore this message. Otherwise you should investigate why your printer reset itself, since this will interrupt prints and also file transfers to your printer's SD." +msgstr "Es sieht so als hätte sich der Drucker resettet während eine Verbindung offen war. Falls das Absicht war kannst du diese Nachricht ignorieren. Andernfalls solltest du prüfen, warum sich dein Drucker resettet hat, da dies Druckaufträge und Filetransfers zu der SD Karte deines Druckers unterbrechen wird." #: src/octoprint/static/js/app/dataupdater.js:297 -msgid "" -"It looks like your printer reset while a connection was active. Due to " -"this the ongoing job was aborted. If this was intentional you may safely " -"ignore this message. Otherwise you should investigate why your printer " -"reset itself, since this will interrupt prints and also file transfers to" -" your printer's SD." -msgstr "" -"Es sieht so als hätte sich der Drucker resettet während eine Verbindung " -"offen war. Darum wurde ein laufender Druckauftrag abgebrochen. Falls das " -"Absicht war kannst du diese Nachricht ignorieren. Andernfalls solltest du" -" prüfen, warum sich dein Drucker resettet hat, da dies Druckaufträge und " -"Filetransfers zu der SD Karte deines Druckers unterbrechen wird." +msgid "It looks like your printer reset while a connection was active. Due to this the ongoing job was aborted. If this was intentional you may safely ignore this message. Otherwise you should investigate why your printer reset itself, since this will interrupt prints and also file transfers to your printer's SD." +msgstr "Es sieht so als hätte sich der Drucker resettet während eine Verbindung offen war. Darum wurde ein laufender Druckauftrag abgebrochen. Falls das Absicht war kannst du diese Nachricht ignorieren. Andernfalls solltest du prüfen, warum sich dein Drucker resettet hat, da dies Druckaufträge und Filetransfers zu der SD Karte deines Druckers unterbrechen wird." #: src/octoprint/static/js/app/dataupdater.js:305 msgid "Printer reset detected" @@ -2464,11 +2580,11 @@ msgid "off" msgstr "Aus" #: src/octoprint/static/js/app/helpers.js:700 -#: src/octoprint/static/js/app/viewmodels/connection.js:135 +#: src/octoprint/static/js/app/viewmodels/connection.js:153 msgid "Are you sure?" msgstr "Bist Du sicher?" -#: src/octoprint/static/js/app/helpers.js:903 +#: src/octoprint/static/js/app/helpers.js:922 msgid "Progress" msgstr "Fortschritt" @@ -2526,36 +2642,25 @@ msgid "Connect" msgstr "Verbinden" #: src/octoprint/static/js/app/viewmodels/connection.js:44 -#: src/octoprint/static/js/app/viewmodels/connection.js:144 +#: src/octoprint/static/js/app/viewmodels/connection.js:162 msgid "Disconnect" msgstr "Trennen" -#: src/octoprint/static/js/app/viewmodels/connection.js:136 -msgid "" -"

    You are about to disconnect from the printer while a print is " -"in progress.

    Disconnecting while a print is in progress " -"will prevent OctoPrint from completing the print. If you're printing from" -" an SD card attached directly to the printer, any attempt to restart " -"OctoPrint or reconnect to the printer could interrupt the print.

    " -msgstr "" -"

    Du bist im Begriff, die Verbindung zu deinem Drucker zu " -"trennen während ein Druck läuft.

    Das Trennen der " -"Verbindung während eines Drucks wird OctoPrint daran hindern, diesen zu " -"vollenden. Falls du von der SD deines Druckers druckst, könnte jeglicher " -"Versuch, OctoPrint neuzustarten oder erneut mit dem Drucker zu verbinden " -"den Druck unterbrechen.

    " +#: src/octoprint/static/js/app/viewmodels/connection.js:154 +msgid "

    You are about to disconnect from the printer while a print is in progress.

    Disconnecting while a print is in progress will prevent OctoPrint from completing the print. If you're printing from an SD card attached directly to the printer, any attempt to restart OctoPrint or reconnect to the printer could interrupt the print.

    " +msgstr "

    Du bist im Begriff, die Verbindung zu deinem Drucker zu trennen während ein Druck läuft.

    Das Trennen der Verbindung während eines Drucks wird OctoPrint daran hindern, diesen zu vollenden. Falls du von der SD deines Druckers druckst, könnte jeglicher Versuch, OctoPrint neuzustarten oder erneut mit dem Drucker zu verbinden den Druck unterbrechen.

    " -#: src/octoprint/static/js/app/viewmodels/connection.js:142 +#: src/octoprint/static/js/app/viewmodels/connection.js:160 msgid "Are you sure you want to disconnect from the printer?" msgstr "Bist Du sicher, dass du die Verbindung zum Drucker trennen willst?" -#: src/octoprint/static/js/app/viewmodels/connection.js:143 +#: src/octoprint/static/js/app/viewmodels/connection.js:161 msgid "Stay Connected" msgstr "Verbunden bleiben" #: src/octoprint/static/js/app/viewmodels/control.js:72 #: src/octoprint/static/js/app/viewmodels/files.js:623 -#: src/octoprint/static/js/app/viewmodels/gcode.js:571 +#: src/octoprint/static/js/app/viewmodels/gcode.js:570 #: src/octoprint/static/js/app/viewmodels/printerstate.js:256 #: src/octoprint/static/js/app/viewmodels/temperature.js:115 #: src/octoprint/static/js/app/viewmodels/temperature.js:126 @@ -2580,12 +2685,8 @@ msgstr "Dein aktuell verfügbarer freier Plattenplatz." #: src/octoprint/static/js/app/viewmodels/files.js:415 #, python-format -msgid "" -"You are about to delete the folder \"%(folder)s\" which still contains " -"files and/or sub folders." -msgstr "" -"Du bist im Begriff das Verzeichnis \"%(folder)s\" zu löschen, das noch " -"Dateien und/oder Unterverzeichnisse enthält." +msgid "You are about to delete the folder \"%(folder)s\" which still contains files and/or sub folders." +msgstr "Du bist im Begriff das Verzeichnis \"%(folder)s\" zu löschen, das noch Dateien und/oder Unterverzeichnisse enthält." #: src/octoprint/static/js/app/viewmodels/files.js:613 #: src/octoprint/static/js/app/viewmodels/gcode.js:530 @@ -2594,13 +2695,13 @@ msgstr "Modelgröße" #: src/octoprint/static/js/app/viewmodels/files.js:619 #: src/octoprint/static/js/app/viewmodels/files.js:623 -#: src/octoprint/static/js/app/viewmodels/gcode.js:568 -#: src/octoprint/static/js/app/viewmodels/gcode.js:571 +#: src/octoprint/static/js/app/viewmodels/gcode.js:567 +#: src/octoprint/static/js/app/viewmodels/gcode.js:570 msgid "Filament" msgstr "Filament" #: src/octoprint/static/js/app/viewmodels/files.js:628 -#: src/octoprint/static/js/app/viewmodels/gcode.js:575 +#: src/octoprint/static/js/app/viewmodels/gcode.js:574 msgid "Estimated print time" msgstr "Geschätzte Dauer" @@ -2614,12 +2715,8 @@ msgstr "Letzte Dauer" #: src/octoprint/static/js/app/viewmodels/files.js:693 #, python-format -msgid "" -"Object in %(name)s exceeds the print volume of the currently selected " -"printer profile, be careful when printing this." -msgstr "" -"Objekt in %(name)s überschreitet das Druckvolumen des aktuell gewählten " -"Druckerprofils, sei vorsichtig, das zu drucken." +msgid "Object in %(name)s exceeds the print volume of the currently selected printer profile, be careful when printing this." +msgstr "Objekt in %(name)s überschreitet das Druckvolumen des aktuell gewählten Druckerprofils, sei vorsichtig, das zu drucken." #: src/octoprint/static/js/app/viewmodels/files.js:703 msgid "Object exceeds print volume in width.
    " @@ -2634,23 +2731,12 @@ msgid "Object exceeds print volume in height.
    " msgstr "Objekt überschreitet Druckvolumen in der Höhe.
    " #: src/octoprint/static/js/app/viewmodels/files.js:715 -msgid "" -"Object's bounding box: (%(object.minX).2f, %(object.minY).2f, " -"%(object.minZ).2f) × (%(object.maxX).2f, %(object.maxY).2f, " -"%(object.maxZ).2f)" -msgstr "" -"ObjektmaĂźe: (%(object.minX).2f, %(object.minY).2f, %(object.minZ).2f) " -"× (%(object.maxX).2f, %(object.maxY).2f, %(object.maxZ).2f)" +msgid "Object's bounding box: (%(object.minX).2f, %(object.minY).2f, %(object.minZ).2f) × (%(object.maxX).2f, %(object.maxY).2f, %(object.maxZ).2f)" +msgstr "ObjektmaĂźe: (%(object.minX).2f, %(object.minY).2f, %(object.minZ).2f) × (%(object.maxX).2f, %(object.maxY).2f, %(object.maxZ).2f)" #: src/octoprint/static/js/app/viewmodels/files.js:717 -msgid "" -"Print volume: (%(profile.minX).2f, %(profile.minY).2f, " -"%(profile.minZ).2f) × (%(profile.maxX).2f, %(profile.maxY).2f, " -"%(profile.maxZ).2f)" -msgstr "" -"Druckvolumen: (%(profile.minX).2f, %(profile.minY).2f, " -"%(profile.minZ).2f) × (%(profile.maxX).2f, %(profile.maxY).2f, " -"%(profile.maxZ).2f)" +msgid "Print volume: (%(profile.minX).2f, %(profile.minY).2f, %(profile.minZ).2f) × (%(profile.maxX).2f, %(profile.maxY).2f, %(profile.maxZ).2f)" +msgstr "Druckvolumen: (%(profile.minX).2f, %(profile.minY).2f, %(profile.minZ).2f) × (%(profile.maxX).2f, %(profile.maxY).2f, %(profile.maxZ).2f)" #: src/octoprint/static/js/app/viewmodels/files.js:724 msgid "Object doesn't fit print volume" @@ -2702,12 +2788,8 @@ msgstr "Streaming von %(local)s nach %(remote)s nicht abgeschlossen." #: src/octoprint/static/js/app/viewmodels/files.js:1082 #, python-format -msgid "" -"Could not upload the file. Make sure that it is a valid file with one of " -"these extensions: %(extensions)s" -msgstr "" -"Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um " -"eine valide Datei mit einer dieser Erweiterungen ist: %(extensions)s" +msgid "Could not upload the file. Make sure that it is a valid file with one of these extensions: %(extensions)s" +msgstr "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine valide Datei mit einer dieser Erweiterungen ist: %(extensions)s" #: src/octoprint/static/js/app/viewmodels/files.js:1103 msgid "Saving ..." @@ -2730,81 +2812,78 @@ msgid "Analyzed" msgstr "Analysiert" #: src/octoprint/static/js/app/viewmodels/gcode.js:531 -msgid "Estimated total print time" -msgstr "Geschätzte Gesamtdauer" - -#: src/octoprint/static/js/app/viewmodels/gcode.js:532 msgid "Estimated layer height" msgstr "Geschätzte Schichthöhe" -#: src/octoprint/static/js/app/viewmodels/gcode.js:532 +#: src/octoprint/static/js/app/viewmodels/gcode.js:531 #: src/octoprint/templates/tabs/timelapse.jinja2:68 msgid "mm" msgstr "mm" -#: src/octoprint/static/js/app/viewmodels/gcode.js:533 -msgid "Layer count" -msgstr "Schichtanzahl" +#: src/octoprint/static/js/app/viewmodels/gcode.js:532 +msgid "Estimated total print time" +msgstr "Geschätzte Gesamtdauer" -#: src/octoprint/static/js/app/viewmodels/gcode.js:533 -msgid "printed" -msgstr "gedruckt" - -#: src/octoprint/static/js/app/viewmodels/gcode.js:533 -msgid "visited" -msgstr "besucht" - -#: src/octoprint/static/js/app/viewmodels/gcode.js:563 +#: src/octoprint/static/js/app/viewmodels/gcode.js:562 msgid "Layer number" msgstr "Schichtnummer" -#: src/octoprint/static/js/app/viewmodels/gcode.js:564 +#: src/octoprint/static/js/app/viewmodels/gcode.js:563 msgid "Layer height" msgstr "Schichthöhe" -#: src/octoprint/static/js/app/viewmodels/gcode.js:565 +#: src/octoprint/static/js/app/viewmodels/gcode.js:564 msgid "GCODE commands" msgstr "GCODE Befehle" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:27 -#: src/octoprint/static/js/app/viewmodels/loginstate.js:35 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:29 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:37 #: src/octoprint/templates/navbar/login.jinja2:2 #: src/octoprint/templates/navbar/login.jinja2:15 msgid "Login" msgstr "Login" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:33 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:35 #, python-format msgid "Logged in as %(name)s" msgstr "Eingeloggt als %(name)s" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:105 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:79 +#, python-format +msgid "

    It seems that you are connecting to OctoPrint over the public internet.

    This is strongly discouraged unless you have taken proper network security precautions. Your printer is an appliance you really should not be giving access to everyone with an internet connection.

    Please see this blog post for ways to safely access your OctoPrint instance from remote.

    If you know what you are doing or you are sure this message is mistaken since you are in an isolated LAN, feel free to ignore it.

    " +msgstr "

    Es scheint, dass du auf OctoPrint über das öffentliche Internet zugreifst.

    Davon wird nachdrücklich abgeraten, sofern du nicht weitere Maßnahmen für ordentliche Netzwerkabsicherung getroffen hast. Dein Drucker ist ein Gerät, zu dem du wirklich nicht jedem mit einer Internetverbindung Zugriff geben solltest.

    Bitte lies diesen Blog Post ĂĽber sichere Wege, auf deine OctoPrint Instanz auch von unterwegs zuzugreifen.

    Wenn du dir sicher bist, was du hier tust oder dass diese Meldung ein Fehler ist und du dich tatsächlich in einem isolierten LAN befindest, ignoriere sie einfach.

    " + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:94 +msgid "Possible external access detected" +msgstr "Möglichen externen Zugriff erkannt" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:163 msgid "Login successful" msgstr "Login erfolgreich" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:105 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:163 #, python-format msgid "You are now logged in as \"%(username)s\"" msgstr "Du bist jetzt eingeloggt als \"%(username)s\"" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:120 -#: src/octoprint/static/js/app/viewmodels/loginstate.js:128 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:178 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:186 msgid "Login failed" msgstr "Login fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:121 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:179 msgid "User unknown or wrong password" msgstr "Nutzer unbekannt oder falsches Passwort" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:129 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:187 msgid "Your account is deactivated" msgstr "Dein Account ist deaktiviert" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:141 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:199 msgid "Logout successful" msgstr "Logout erfolgreich" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:141 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:199 msgid "You are now logged out" msgstr "Du bist jetzt ausgeloggt" @@ -2871,9 +2950,7 @@ msgid "Center" msgstr "Mittelpunkt" #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:502 -msgid "" -"There was unexpected error while saving the printer profile, please " -"consult the logs." +msgid "There was unexpected error while saving the printer profile, please consult the logs." msgstr "Unerwarteter Fehler beim Speichern des Profils, bitte konsultiere das Log" #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:503 @@ -2885,9 +2962,7 @@ msgid "Cannot delete the default profile or the currently active profile." msgstr "Kann weder das Defaultprofil noch das aktuell ausgewählte Profil löschen." #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:525 -msgid "" -"There was unexpected error while removing the printer profile, please " -"consult the logs." +msgid "There was unexpected error while removing the printer profile, please consult the logs." msgstr "Unerwarteter Fehler beim Löschen des Profils, bitte konsultiere das Log" #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:527 @@ -2900,12 +2975,8 @@ msgid "You are about to delete the printer profile \"%(name)s\"." msgstr "Du bist im Begriff das Druckerprofil \"%(name)s\" zu löschen." #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:553 -msgid "" -"There was unexpected error while updating the printer profile, please " -"consult the logs." -msgstr "" -"Unerwarteter Fehler beim Aktualisieren des Profils, bitte konsultiere das" -" Log" +msgid "There was unexpected error while updating the printer profile, please consult the logs." +msgstr "Unerwarteter Fehler beim Aktualisieren des Profils, bitte konsultiere das Log" #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:554 msgid "Could not update profile" @@ -2941,12 +3012,8 @@ msgid "Still stabilizing..." msgstr "Noch zu ungenau..." #: src/octoprint/static/js/app/viewmodels/printerstate.js:97 -msgid "" -"Based on a linear approximation (very low accuracy, especially at the " -"beginning of the print)" -msgstr "" -"Basiert auf einer linearen Approximation (sehr geringe Genauigkeit, " -"insbesondere zu Beginn eines Drucks)" +msgid "Based on a linear approximation (very low accuracy, especially at the beginning of the print)" +msgstr "Basiert auf einer linearen Approximation (sehr geringe Genauigkeit, insbesondere zu Beginn eines Drucks)" #: src/octoprint/static/js/app/viewmodels/printerstate.js:100 msgid "Based on the estimate from analysis of file (medium accuracy)" @@ -2954,25 +3021,15 @@ msgstr "Basiert auf der Schätzung der Analyse der Datei (mittlere Genauigkeit)" #: src/octoprint/static/js/app/viewmodels/printerstate.js:103 msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)" -msgstr "" -"Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung " -"(mittlere Genauigkeit)" +msgstr "Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung (mittlere Genauigkeit)" #: src/octoprint/static/js/app/viewmodels/printerstate.js:106 -msgid "" -"Based on the average total of past prints of this model with the same " -"printer profile (usually good accuracy)" -msgstr "" -"Basiert auf der durchschnittlichen Dauer vergangener Druckjobs dieses " -"Modells mit dem selben Druckerprofil (normalerweise gute Genauigkeit)" +msgid "Based on the average total of past prints of this model with the same printer profile (usually good accuracy)" +msgstr "Basiert auf der durchschnittlichen Dauer vergangener Druckjobs dieses Modells mit dem selben Druckerprofil (normalerweise gute Genauigkeit)" #: src/octoprint/static/js/app/viewmodels/printerstate.js:109 -msgid "" -"Based on a mix of average total from past prints and calculation (usually" -" good accuracy)" -msgstr "" -"Basiert auf einem Mix der durschnittlichen Dauer vergangener Druckjobs " -"und der Berechnung (normalerweise gute Genauigkeit)" +msgid "Based on a mix of average total from past prints and calculation (usually good accuracy)" +msgstr "Basiert auf einem Mix der durschnittlichen Dauer vergangener Druckjobs und der Berechnung (normalerweise gute Genauigkeit)" #: src/octoprint/static/js/app/viewmodels/printerstate.js:112 msgid "Based on the calculated estimate (best accuracy)" @@ -3034,76 +3091,63 @@ msgstr "weiß" msgid "Autodetect from browser" msgstr "Automatisch vom Browser erkennen" -#: src/octoprint/static/js/app/viewmodels/settings.js:318 +#: src/octoprint/static/js/app/viewmodels/settings.js:321 msgid "If you see your webcam stream below, the entered stream URL is ok." msgstr "Falls du unten den Webcamstream sehen kannst, ist die Stream-URL ok." -#: src/octoprint/static/js/app/viewmodels/settings.js:326 +#: src/octoprint/static/js/app/viewmodels/settings.js:329 msgid "Stream test" msgstr "Stream Test" -#: src/octoprint/static/js/app/viewmodels/settings.js:344 +#: src/octoprint/static/js/app/viewmodels/settings.js:347 msgid "Could not retrieve snapshot URL, please double check the URL" msgstr "Konnte die Snapshot-URL nicht abgreifen, bitte prüfen" -#: src/octoprint/static/js/app/viewmodels/settings.js:345 +#: src/octoprint/static/js/app/viewmodels/settings.js:348 msgid "Snapshot test failed" msgstr "Snapshot Test fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/settings.js:359 +#: src/octoprint/static/js/app/viewmodels/settings.js:362 #, python-format -msgid "" -"Could retrieve the snapshot URL, but it didn't look like an image. Got " -"this as a content type header: %(content_type)s. Please " -"double check that the URL is returning static images, not multipart data " -"or videos." -msgstr "" -"Konnte die Snapshot URL abrufen, aber die Antwort sah nicht wie ein Bild " -"aus: %(content_type)s. Bitte überprüfe, dass die URL " -"einzelne Bilder zurückliefert, nicht multipart Daten oder Videos." +msgid "Could retrieve the snapshot URL, but it didn't look like an image. Got this as a content type header: %(content_type)s. Please double check that the URL is returning static images, not multipart data or videos." +msgstr "Konnte die Snapshot URL abrufen, aber die Antwort sah nicht wie ein Bild aus: %(content_type)s. Bitte überprüfe, dass die URL einzelne Bilder zurückliefert, nicht multipart Daten oder Videos." -#: src/octoprint/static/js/app/viewmodels/settings.js:384 -msgid "" -"If you see your webcam snapshot picture below, the entered snapshot URL " -"is ok." +#: src/octoprint/static/js/app/viewmodels/settings.js:387 +msgid "If you see your webcam snapshot picture below, the entered snapshot URL is ok." msgstr "Falls du unten dein Snapshotbild sehen kannst, ist die Snapshot-URL ok." -#: src/octoprint/static/js/app/viewmodels/settings.js:386 +#: src/octoprint/static/js/app/viewmodels/settings.js:389 msgid "Snapshot test" msgstr "Snapshot Test" -#: src/octoprint/static/js/app/viewmodels/settings.js:446 +#: src/octoprint/static/js/app/viewmodels/settings.js:449 msgid "The server is not reachable" msgstr "Der Server ist nicht erreichbar" -#: src/octoprint/static/js/app/viewmodels/settings.js:448 +#: src/octoprint/static/js/app/viewmodels/settings.js:451 msgid "The server is reachable" msgstr "Der Server ist errechbar" -#: src/octoprint/static/js/app/viewmodels/settings.js:477 +#: src/octoprint/static/js/app/viewmodels/settings.js:480 msgid "The path is a broken symlink." msgstr "Der Pfad ist ein kaputter Symlink" -#: src/octoprint/static/js/app/viewmodels/settings.js:479 +#: src/octoprint/static/js/app/viewmodels/settings.js:482 msgid "The path does not exist and cannot be created." msgstr "Der Pfad existiert nicht und kann nicht erstellt werden." -#: src/octoprint/static/js/app/viewmodels/settings.js:481 +#: src/octoprint/static/js/app/viewmodels/settings.js:484 msgid "The path is not a folder." msgstr "Der Pfad ist kein Verzeichnis" -#: src/octoprint/static/js/app/viewmodels/settings.js:483 +#: src/octoprint/static/js/app/viewmodels/settings.js:486 msgid "The path is not writable." msgstr "Der Pfad ist nicht beschreibbar" -#: src/octoprint/static/js/app/viewmodels/settings.js:607 +#: src/octoprint/static/js/app/viewmodels/settings.js:610 #: src/octoprint/static/js/app/viewmodels/usersettings.js:99 -msgid "" -"This will generate a new API Key. The old API Key will cease to function " -"immediately." -msgstr "" -"Dies wird einen neuen API-Key generieren. Der alte wird sofort aufhören " -"zu funktionieren." +msgid "This will generate a new API Key. The old API Key will cease to function immediately." +msgstr "Dies wird einen neuen API-Key generieren. Der alte wird sofort aufhören zu funktionieren." #: src/octoprint/static/js/app/viewmodels/slicing.js:123 msgid "Do nothing" @@ -3160,12 +3204,8 @@ msgstr "Ändere Offset von %(name)s" #: src/octoprint/static/js/app/viewmodels/temperature.js:64 #, python-format -msgid "" -"Use the form below to specify a new offset to apply to all temperature " -"commands sent from printed files for \"%(name)s\"" -msgstr "" -"Definiere unten ein neues Offset für alle Temperaturkommandos für " -"\"%(name)s\", die aus zu druckenden Dateien gesendet werden" +msgid "Use the form below to specify a new offset to apply to all temperature commands sent from printed files for \"%(name)s\"" +msgstr "Definiere unten ein neues Offset für alle Temperaturkommandos für \"%(name)s\", die aus zu druckenden Dateien gesendet werden" #: src/octoprint/static/js/app/viewmodels/temperature.js:75 #: src/octoprint/static/js/app/viewmodels/temperature.js:133 @@ -3187,40 +3227,30 @@ msgstr "Ist" msgid "Target" msgstr "Soll" -#: src/octoprint/static/js/app/viewmodels/terminal.js:103 +#: src/octoprint/static/js/app/viewmodels/terminal.js:104 #, python-format -msgid "" -"showing %(displayed)d lines (%(filtered)d of %(total)d total lines " -"filtered, buffer full)" -msgstr "" -"zeige %(displayed)d Zeilen (%(filtered)d von %(total)d Zeilen gefiltert, " -"Buffer voll)" +msgid "showing %(displayed)d lines (%(filtered)d of %(total)d total lines filtered, buffer full)" +msgstr "zeige %(displayed)d Zeilen (%(filtered)d von %(total)d Zeilen gefiltert, Buffer voll)" -#: src/octoprint/static/js/app/viewmodels/terminal.js:105 +#: src/octoprint/static/js/app/viewmodels/terminal.js:106 #, python-format -msgid "" -"showing %(displayed)d lines (%(filtered)d of %(total)d total lines " -"filtered)" +msgid "showing %(displayed)d lines (%(filtered)d of %(total)d total lines filtered)" msgstr "zeige %(displayed)d Zeilen (%(filtered)d von %(total)d Zeilen gefiltert)" -#: src/octoprint/static/js/app/viewmodels/terminal.js:109 +#: src/octoprint/static/js/app/viewmodels/terminal.js:110 #, python-format msgid "showing %(displayed)d lines (buffer full)" msgstr "zeige %(displayed)d Zeilen (Buffer voll)" -#: src/octoprint/static/js/app/viewmodels/terminal.js:111 +#: src/octoprint/static/js/app/viewmodels/terminal.js:112 #, python-format msgid "showing %(displayed)d lines" msgstr "zeige %(displayed)d Zeilen" #: src/octoprint/static/js/app/viewmodels/timelapse.js:240 #, python-format -msgid "" -"Failed to remove timelapse %(name)s.

    Please consult octoprint.log " -"for details.

    " -msgstr "" -"Konnte Zeitrafferaufnahme %(name)s nicht entfernen.

    Bitte " -"konsultiere octoprint.log fĂĽr Details.

    " +msgid "Failed to remove timelapse %(name)s.

    Please consult octoprint.log for details.

    " +msgstr "Konnte Zeitrafferaufnahme %(name)s nicht entfernen.

    Bitte konsultiere octoprint.log fĂĽr Details.

    " #: src/octoprint/static/js/app/viewmodels/timelapse.js:243 msgid "Could not remove timelapse" @@ -3239,9 +3269,7 @@ msgstr "Du bist im Begriff %(count)d Zeitrafferaufnahmen zu löschen." #: src/octoprint/static/js/app/viewmodels/timelapse.js:288 #, python-format msgid "You are about to delete unrendered timelapse \"%(name)s\"." -msgstr "" -"Du bist im Begriff die ungerenderte Zeitrafferaufnahme \"%(name)s\" zu " -"löschen." +msgstr "Du bist im Begriff die ungerenderte Zeitrafferaufnahme \"%(name)s\" zu löschen." #: src/octoprint/static/js/app/viewmodels/timelapse.js:300 #, python-format @@ -3257,23 +3285,6 @@ msgstr "Lösche Zeitrafferaufnahmen" msgid "Deleting %(count)d timelapse files..." msgstr "Lösche %(count)d Zeitrafferaufnahmen" -#: 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/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/static/js/app/viewmodels/timelapse.js:317 -#, python-format -msgid "Deletion of %(filename)s failed: %(error)s" -msgstr "Löschen von %(filename)s fehlgeschlagen: %(error)s" - #: src/octoprint/static/js/app/viewmodels/timelapse.js:322 msgid "Deleting unrendered timelapses" msgstr "Lösche ungerenderte Zeitrafferaufnahmen" @@ -3298,12 +3309,8 @@ msgstr "%(minutes)d Min" #: src/octoprint/static/js/app/viewmodels/timelapse.js:429 #, python-format -msgid "" -"Now capturing timelapse post roll, this will take approximately " -"%(duration)s (so until %(time)s)..." -msgstr "" -"Zeichne jetzt Zeitraffernachlauf auf, dies wird voraussichtlich " -"%(duration)s dauern (also etwa bis %(time)s)..." +msgid "Now capturing timelapse post roll, this will take approximately %(duration)s (so until %(time)s)..." +msgstr "Zeichne jetzt Zeitraffernachlauf auf, dies wird voraussichtlich %(duration)s dauern (also etwa bis %(time)s)..." #: src/octoprint/static/js/app/viewmodels/timelapse.js:431 #, python-format @@ -3312,20 +3319,12 @@ msgstr "%(seconds)d Sek" #: src/octoprint/static/js/app/viewmodels/timelapse.js:432 #, python-format -msgid "" -"Now capturing timelapse post roll, this will take approximately " -"%(duration)s..." -msgstr "" -"Zeichne jetzt Zeitraffernachlauf auf, dies wird voraussichtlich " -"%(duration)s dauern..." +msgid "Now capturing timelapse post roll, this will take approximately %(duration)s..." +msgstr "Zeichne jetzt Zeitraffernachlauf auf, dies wird voraussichtlich %(duration)s dauern..." #: src/octoprint/static/js/app/viewmodels/timelapse.js:462 -msgid "" -"Failed repeatedly to capture timelapse frame from webcam - is the " -"snapshot URL configured correctly and the camera on?" -msgstr "" -"Konnte wiederholt kein Zeitrafferbild von der Webcam beziehen - ist die " -"Snapshot-URL korrekt konfiguriert und die Kamera an?" +msgid "Failed repeatedly to capture timelapse frame from webcam - is the snapshot URL configured correctly and the camera on?" +msgstr "Konnte wiederholt kein Zeitrafferbild von der Webcam beziehen - ist die Snapshot-URL korrekt konfiguriert und die Kamera an?" #: src/octoprint/static/js/app/viewmodels/timelapse.js:465 msgid "Could not capture snapshots" @@ -3337,13 +3336,8 @@ msgstr "Zeitrafferaufnahme wird gerendert" #: src/octoprint/static/js/app/viewmodels/timelapse.js:475 #, python-format -msgid "" -"Now rendering timelapse %(movie_prefix)s. Due to performance reasons it " -"is not recommended to start a print job while a movie is still rendering." -msgstr "" -"Rendere jetzt die Zeitrafferaufnahme %(movie_prefix)s. Aus Gründen der " -"Performance ist es nicht empfehlenswert, einen Druckauftrag zu starten, " -"so lange die Aufnahme noch gerendert wird." +msgid "Now rendering timelapse %(movie_prefix)s. Due to performance reasons it is not recommended to start a print job while a movie is still rendering." +msgstr "Rendere jetzt die Zeitrafferaufnahme %(movie_prefix)s. Aus Gründen der Performance ist es nicht empfehlenswert, einen Druckauftrag zu starten, so lange die Aufnahme noch gerendert wird." #: src/octoprint/static/js/app/viewmodels/timelapse.js:484 msgid "Cannot render timelapse" @@ -3351,12 +3345,8 @@ msgstr "Kann Zeitrafferaufnahme nicht rendern" #: src/octoprint/static/js/app/viewmodels/timelapse.js:485 #, python-format -msgid "" -"Rendering of timelapse %(movie_prefix)s is not possible since no frames " -"were captured. Is the snapshot URL configured correctly?" -msgstr "" -"Rendering des Zeitraffers %(movie_prefix)s ist nicht möglich, da keine " -"Frames gespeichert wurden. Ist die Snapshot-URL korrekt konfiguriert?" +msgid "Rendering of timelapse %(movie_prefix)s is not possible since no frames were captured. Is the snapshot URL configured correctly?" +msgstr "Rendering des Zeitraffers %(movie_prefix)s ist nicht möglich, da keine Frames gespeichert wurden. Ist die Snapshot-URL korrekt konfiguriert?" #: src/octoprint/static/js/app/viewmodels/timelapse.js:487 #: src/octoprint/static/js/app/viewmodels/timelapse.js:491 @@ -3365,21 +3355,13 @@ msgstr "Rendern von Zeitrafferaufnahme fehlgeschlagen" #: src/octoprint/static/js/app/viewmodels/timelapse.js:488 #, python-format -msgid "" -"Rendering of timelapse %(movie_prefix)s failed with return code " -"%(returncode)s" -msgstr "" -"Rendering der Zeitrafferaufnahme %(movie_prefix)s fehlgeschlagen mit " -"Returncode %(returncode)s" +msgid "Rendering of timelapse %(movie_prefix)s failed with return code %(returncode)s" +msgstr "Rendering der Zeitrafferaufnahme %(movie_prefix)s fehlgeschlagen mit Returncode %(returncode)s" #: src/octoprint/static/js/app/viewmodels/timelapse.js:492 #, python-format -msgid "" -"Rendering of timelapse %(movie_prefix)s failed due to an unknown error, " -"please consult the log file" -msgstr "" -"Rendering der Zeitrafferaufnahme %(movie_prefix)s fehlgeschlagen aufgrund" -" eines unbekannten Fehlers, bitte konsultiere die Logdatei" +msgid "Rendering of timelapse %(movie_prefix)s failed due to an unknown error, please consult the log file" +msgstr "Rendering der Zeitrafferaufnahme %(movie_prefix)s fehlgeschlagen aufgrund eines unbekannten Fehlers, bitte konsultiere die Logdatei" #: src/octoprint/static/js/app/viewmodels/timelapse.js:505 msgid "Timelapse ready" @@ -3423,23 +3405,12 @@ msgid "Create" msgstr "Erstellen" #: src/octoprint/templates/dialogs/slicing.jinja2:8 -msgid "" -"Slicing is currently disabled since no slicer has been configured yet. " -"Please configure a slicer under \"Settings\"." -msgstr "" -"Slicing ist aktuell deaktiviert da noch kein Slicer konfiguriert wurde. " -"Bitte konfiguriere einen Slicer unter \"Settings\"." +msgid "Slicing is currently disabled since no slicer has been configured yet. Please configure a slicer under \"Settings\"." +msgstr "Slicing ist aktuell deaktiviert da noch kein Slicer konfiguriert wurde. Bitte konfiguriere einen Slicer unter \"Settings\"." #: src/octoprint/templates/dialogs/slicing.jinja2:11 -msgid "" -"Please configure which slicer and which slicing profile to use and name " -"the GCode file to slice to below, or click \"Cancel\" if you do not wish " -"to slice the file now." -msgstr "" -"Bitte wähle den zu nutzenden Slicer und das zu nutzende Slicerprofile und" -" wie die GCode Datei heißen soll, die erzeugt wird. Alternativ kannst du " -"auch auf \"Abbrechen\" klicken, wenn du die Datei jetzt nicht slicen " -"willst." +msgid "Please configure which slicer and which slicing profile to use and name the GCode file to slice to below, or click \"Cancel\" if you do not wish to slice the file now." +msgstr "Bitte wähle den zu nutzenden Slicer und das zu nutzende Slicerprofile und wie die GCode Datei heißen soll, die erzeugt wird. Alternativ kannst du auch auf \"Abbrechen\" klicken, wenn du die Datei jetzt nicht slicen willst." #: src/octoprint/templates/dialogs/slicing.jinja2:14 msgid "Slicer" @@ -3455,9 +3426,7 @@ msgstr "Gleicher Server" #: src/octoprint/templates/dialogs/slicing.jinja2:23 msgid "For performance reasons locally run slicers are disabled while printing" -msgstr "" -"Aus Gründen der Performanz sind Slicer, die auf dem gleichen Server " -"laufen, während des Druckens deaktiviert" +msgstr "Aus Gründen der Performanz sind Slicer, die auf dem gleichen Server laufen, während des Druckens deaktiviert" #: src/octoprint/templates/dialogs/slicing.jinja2:27 msgid "Slicing Profile" @@ -3511,9 +3480,7 @@ msgid "Delete Offset" msgstr "Offset löschen" #: src/octoprint/templates/dialogs/temperature.jinja2:25 -msgid "" -"Hint: Hitting Enter in the input field will also submit the " -"form" +msgid "Hint: Hitting Enter in the input field will also submit the form" msgstr "Hinweis: Enter im Eingabefeld speichert." #: src/octoprint/templates/dialogs/wizard.jinja2:3 @@ -3521,10 +3488,8 @@ msgid "Setup Wizard" msgstr "Setup Wizard" #: src/octoprint/templates/dialogs/wizard.jinja2:41 -msgid "" -"\n" -" Mandatory " -"Step! You need to fill this out now.\n" +msgid "\n" +" Mandatory Step! You need to fill this out now.\n" " " msgstr "Obligatorischer Schritt! Du musst das jetzt ausfüllen." @@ -3537,12 +3502,8 @@ msgid "Previous" msgstr "Zurück" #: src/octoprint/templates/dialogs/wizard.jinja2:63 -msgid "" -"Unless otherwise noted, you may just skip any wizard page by clicking " -"\"Next\" or \"Finish\"." -msgstr "" -"Falls nicht anders vermerkt, kannst du jede Wizardseite durch Klicken auf" -" \"Weiter\" oder \"Beenden\" überspringen." +msgid "Unless otherwise noted, you may just skip any wizard page by clicking \"Next\" or \"Finish\"." +msgstr "Falls nicht anders vermerkt, kannst du jede Wizardseite durch Klicken auf \"Weiter\" oder \"Beenden\" überspringen." #: src/octoprint/templates/dialogs/about/about.jinja2:3 msgid "The snappy web interface for your 3D printer" @@ -3560,16 +3521,6 @@ msgstr "Aktiv" msgid "Admin" msgstr "Admin" -#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 -#: src/octoprint/templates/dialogs/settings/api.jinja2:17 -#: src/octoprint/templates/dialogs/usersettings/access.jinja2:22 -msgid "API Key" -msgstr "API Key" - -#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 -msgid "Copy API Key to clipboard" -msgstr "API Key in die Zwischenablage kopieren" - #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:16 msgid "Update User" msgstr "Nutzer editieren" @@ -3629,12 +3580,8 @@ msgid "Allow Cross Origin Resource Sharing (CORS)" msgstr "Cross Origin Resource Sharing (CORS) erlauben" #: src/octoprint/templates/dialogs/settings/api.jinja2:24 -msgid "" -"Please note that changes to the API key are applied immediately, without " -"having to \"Save\" first." -msgstr "" -"Bitte beachte, dass Änderungen am API-Key sofort angewandt werden, ohne " -"dass \"Speichern\" geklickt werden muss." +msgid "Please note that changes to the API key are applied immediately, without having to \"Save\" first." +msgstr "Bitte beachte, dass Änderungen am API-Key sofort angewandt werden, ohne dass \"Speichern\" geklickt werden muss." #: src/octoprint/templates/dialogs/settings/api.jinja2:28 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:36 @@ -3642,12 +3589,8 @@ msgid "QR Code" msgstr "QR Code" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:2 -msgid "" -"Name of this OctoPrint instance, will be shown in the navigation bar and " -"broadcast on the network" -msgstr "" -"Name dieser OctoPrint-Instanz, wird in der Navigationsleiste angezeigt " -"und im Netzwerk announced." +msgid "Name of this OctoPrint instance, will be shown in the navigation bar and broadcast on the network" +msgstr "Name dieser OctoPrint-Instanz, wird in der Navigationsleiste angezeigt und im Netzwerk announced." #: src/octoprint/templates/dialogs/settings/appearance.jinja2:3 msgid "Title" @@ -3655,9 +3598,7 @@ msgstr "Titel" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:8 msgid "Personalize the color of the navigation bar - maybe to match your printer?" -msgstr "" -"Personalisiere die Farbe the Navigationsleiste - vielleicht um zum " -"Drucker zu passen?" +msgstr "Personalisiere die Farbe the Navigationsleiste - vielleicht um zum Drucker zu passen?" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:9 msgid "Color" @@ -3668,102 +3609,80 @@ msgid "For acrylic printers ;)" msgstr "Für Drucker mit Acrylrahmen ;)" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:18 -msgid "Transparent Color" +msgid "Transparent color" msgstr "Transparente Farbe" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:23 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:22 +msgid "Also personalize the icon of the browser tab" +msgstr "Personalisiere auch das Icon des Browsertabs" + +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:25 +msgid "Colorize favicon (in supported browsers)" +msgstr "Favicon einfärben (in unterstützten Browsern)" + +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:30 msgid "Language Packs" msgstr "Sprachpakete" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:25 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:32 msgid "Manage..." msgstr "Verwalten..." -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:29 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:36 msgid "Default Language" msgstr "Standardsprache" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:36 -msgid "" -"Changes to the default interface language will only become active after a" -" reload of the page and only be active if not overridden by the users " -"language settings." -msgstr "" -"Änderungen der Standardsprache werden erst nach einem Neuladen der Seite " -"aktiv, und nur dann, wenn sie nicht durch die Nutzereinstellungen " -"überschrieben sind." +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:43 +msgid "Changes to the default interface language will only become active after a reload of the page and only be active if not overridden by the users language settings." +msgstr "Änderungen der Standardsprache werden erst nach einem Neuladen der Seite aktiv, und nur dann, wenn sie nicht durch die Nutzereinstellungen überschrieben sind." -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:42 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:49 msgid "Show temperatures in Fahrenheit as well as Celsius" msgstr "Temperaturen sowohl in Fahrenheit als auch Celsius anzeigen" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:51 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:58 msgid "Manage Language Packs..." msgstr "Sprachpakete verwalten" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:55 -msgid "" -"There is currently no central repository for language packs like there is" -" for plugins - any help to change that is appreciated!" -msgstr "" -"Es gibt aktuell kein zentrales Repository für Sprachpakete wie es eines " -"für Plugins gibt - jede Hilfe um das zu ändern ist gerne willkommen!" +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:62 +msgid "There is currently no central repository for language packs like there is for plugins - any help to change that is appreciated!" +msgstr "Es gibt aktuell kein zentrales Repository für Sprachpakete wie es eines für Plugins gibt - jede Hilfe um das zu ändern ist gerne willkommen!" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:58 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:65 #, python-format -msgid "" -"Until a repository is available, please see the wiki for language packs provided by the " -"community." -msgstr "" -"Bis es ein Repository gibt, schau bitte im Wiki nach von der Community bereitgestellten " -"Sprachpaketen." +msgid "Until a repository is available, please see the wiki for language packs provided by the community." +msgstr "Bis es ein Repository gibt, schau bitte im Wiki nach von der Community bereitgestellten Sprachpaketen." -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:61 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:68 msgid "Available Language Packs" msgstr "Verfügbare Sprachpakete" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:72 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:79 msgid "Last update:" msgstr "Letztes Update:" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:75 -msgid "Delete" -msgstr "Löschen" - -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:86 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:93 msgid "No additional Language Packs are installed at the moment." msgstr "Zur Zeit sind keine zusätzlichen Sprachpakete installiert" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:91 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:98 msgid "Upload additional Language Packs" msgstr "Zusätzliche Sprachepakete hochladen" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:102 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:109 #: src/octoprint/templates/overlays/dragndrop.jinja2:10 #: src/octoprint/templates/sidebar/files.jinja2:63 #: src/octoprint/templates/sidebar/files.jinja2:74 msgid "Upload" msgstr "Upload" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:104 -msgid "" -"This does not look like a valid language pack. Valid language packs " -"should be either zip files or tarballs and have the extension \".zip\", " -"\".tar.gz\", \".tgz\" or \".tar\"" -msgstr "" -"Das sieht nicht aus wie ein valides Sprachpaket. Valide Sprachpakete " -"sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension " -"\".zip\", \".tar.gz\", \".tgz\" oder \".tar\" haben" +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:111 +msgid "This does not look like a valid language pack. Valid language packs should be either zip files or tarballs and have the extension \".zip\", \".tar.gz\", \".tgz\" or \".tar\"" +msgstr "Das sieht nicht aus wie ein valides Sprachpaket. Valide Sprachpakete sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension \".zip\", \".tar.gz\", \".tgz\" oder \".tar\" haben" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:107 -msgid "" -"Please note that you will have to reload the page in order for any newly " -"added language packs to become available." -msgstr "" -"Bitte beachte, dass Du die Seite neuladen musst damit neu hinzugefügte " -"Sprachepakete verfügbar werden." +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:114 +msgid "Please note that you will have to reload the page in order for any newly added language packs to become available." +msgstr "Bitte beachte, dass Du die Seite neuladen musst damit neu hinzugefügte Sprachepakete verfügbar werden." #: src/octoprint/templates/dialogs/settings/features.jinja2:5 msgid "Enable Temperature Graph" @@ -3771,9 +3690,7 @@ msgstr "Temperaturgraph aktivieren" #: src/octoprint/templates/dialogs/settings/features.jinja2:12 msgid "Enable model size detection and warn if model exceeds print bed" -msgstr "" -"Objektgrößenerkennung aktivieren und warnen, falls Objekt das " -"Druckvolumen überschreitet" +msgstr "Objektgrößenerkennung aktivieren und warnen, falls Objekt das Druckvolumen überschreitet" #: src/octoprint/templates/dialogs/settings/features.jinja2:12 msgid "Beta" @@ -3793,41 +3710,27 @@ msgstr "Tastatursteuerung aktivieren" #: src/octoprint/templates/dialogs/settings/features.jinja2:40 msgid "G90/G91 overrides relative extruder mode" -msgstr "" -"G90/G91 überschreibt relativen Modus des " -"Extruders" +msgstr "G90/G91 überschreibt relativen Modus des Extruders" #: src/octoprint/templates/dialogs/settings/features.jinja2:40 msgid "Smoothieware" msgstr "Smoothieware" #: src/octoprint/templates/dialogs/settings/features.jinja2:41 -msgid "" -"This is used by the GCODE analysis in the backend and the viewer in the " -"frontend to interpret your sliced files correctly." -msgstr "" -"Dies wird von der GCODE Analyse im Backend und dem GCODE Viewer im " -"Frontend verwendet, um die gesliceten Dateien korrekt zu interpretieren." +msgid "This is used by the GCODE analysis in the backend and the viewer in the frontend to interpret your sliced files correctly." +msgstr "Dies wird von der GCODE Analyse im Backend und dem GCODE Viewer im Frontend verwendet, um die gesliceten Dateien korrekt zu interpretieren." #: src/octoprint/templates/dialogs/settings/features.jinja2:45 msgid "Commands to not completely auto uppercase in the terminal tab" -msgstr "" -"Befehle, die im Terminaltab nicht vollständig in Großbuchstaben gewandelt" -" werden sollen" +msgstr "Befehle, die im Terminaltab nicht vollständig in Großbuchstaben gewandelt werden sollen" #: src/octoprint/templates/dialogs/settings/features.jinja2:46 msgid "Terminal Auto Uppercase Blacklist" msgstr "Terminal Auto Uppercase Blackliste" #: src/octoprint/templates/dialogs/settings/features.jinja2:49 -msgid "" -"Use this to specify the commands that should not have their parameters " -"automatically uppercased in the terminal tab. Just the G or M code, comma" -" separated." -msgstr "" -"Nutze diese Option um Befehle zu spezifizieren, deren Parameter nicht " -"automatisch im Terminaltab in Großbuchstaben überführt werden sollen. Nur" -" den G oder M code, kommasepariert." +msgid "Use this to specify the commands that should not have their parameters automatically uppercased in the terminal tab. Just the G or M code, comma separated." +msgstr "Nutze diese Option um Befehle zu spezifizieren, deren Parameter nicht automatisch im Terminaltab in Großbuchstaben überführt werden sollen. Nur den G oder M code, kommasepariert." #: src/octoprint/templates/dialogs/settings/folders.jinja2:5 msgid "Upload Folder" @@ -3850,31 +3753,22 @@ msgid "Watched Folder" msgstr "Beobachtetes Verzeichnis" #: src/octoprint/templates/dialogs/settings/folders.jinja2:57 -msgid "" -"Actively poll the watched folder. Check this if files in your watched " -"folder aren't automatically added otherwise." -msgstr "" -"Aktives Pollen des beobachteten Verzeichnisses. Einschalten wenn Dateien " -"in Deinem beobachteten Verzeichnis hinzugefügt werden sonst nicht " -"automatisch hinzugefügt werden." +msgid "Actively poll the watched folder. Check this if files in your watched folder aren't automatically added otherwise." +msgstr "Aktives Pollen des beobachteten Verzeichnisses. Einschalten wenn Dateien in Deinem beobachteten Verzeichnis hinzugefügt werden sonst nicht automatisch hinzugefügt werden." #: src/octoprint/templates/dialogs/settings/folders.jinja2:62 msgid "Disk space thresholds" msgstr "Plattenplatzschwellwerte" #: src/octoprint/templates/dialogs/settings/folders.jinja2:64 -msgid "" -"If the free disk space falls below these thresholds, OctoPrint will warn " -"the user." -msgstr "" -"Falls der freie Plattenplatz unter diese Schwellwerte fallen sollte wird " -"OctoPrint den Nutzer warnen." +msgid "If the free disk space falls below these thresholds, OctoPrint will warn the user." +msgstr "Falls der freie Plattenplatz unter diese Schwellwerte fallen sollte wird OctoPrint den Nutzer warnen." #: src/octoprint/templates/dialogs/settings/folders.jinja2:67 #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:52 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:373 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:383 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:389 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:380 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:399 #: src/octoprint/templates/tabs/gcodeviewer.jinja2:114 msgid "Warning" msgstr "Warnung" @@ -3885,14 +3779,8 @@ msgstr "Kritisch" #: src/octoprint/templates/dialogs/settings/folders.jinja2:79 #: src/octoprint/templates/dialogs/settings/gcodevisualizer.jinja2:25 -msgid "" -"Provide values including size unit. Allowed units are: b, byte, bytes, " -"kb, mb, gb, tb (case insensitive). Example: 5MB, " -"500KB" -msgstr "" -"Wert inklusive Größeneinheit. Erlaubte Einheiten sind: b, byte, bytes, " -"kb, mb, gb, tb (Groß-/Kleinschreibung irrelevant). Beispiel: " -"5MB, 500KB" +msgid "Provide values including size unit. Allowed units are: b, byte, bytes, kb, mb, gb, tb (case insensitive). Example: 5MB, 500KB" +msgstr "Wert inklusive Größeneinheit. Erlaubte Einheiten sind: b, byte, bytes, kb, mb, gb, tb (Groß-/Kleinschreibung irrelevant). Beispiel: 5MB, 500KB" #: src/octoprint/templates/dialogs/settings/gcodescripts.jinja2:3 msgid "Before print job starts" @@ -3931,12 +3819,8 @@ msgid "Before connection to printer is closed" msgstr "Bevor die Verbindung zum Drucker geschlossen wird" #: src/octoprint/templates/dialogs/settings/gcodescripts.jinja2:54 -msgid "" -"This will only be executed when closing the connection actively. If the " -"connection to the printer is suddenly lost nothing will be sent." -msgstr "" -"Das wird nur ausgeführt wenn die Verbindung aktiv geschlossen wird. Falls" -" die Verbindung zum Drucker plötzlich verloren geht wird nichts gesendet." +msgid "This will only be executed when closing the connection actively. If the connection to the printer is suddenly lost nothing will be sent." +msgstr "Das wird nur ausgeführt wenn die Verbindung aktiv geschlossen wird. Falls die Verbindung zum Drucker plötzlich verloren geht wird nichts gesendet." #: src/octoprint/templates/dialogs/settings/gcodevisualizer.jinja2:5 msgid "Enable GCode Visualizer" @@ -3944,9 +3828,7 @@ msgstr "GCode Viewer aktivieren" #: src/octoprint/templates/dialogs/settings/gcodevisualizer.jinja2:9 msgid "Maximum size the GCodeViewer autoloads the file for preview" -msgstr "" -"Maximale Größe für die der GCODE Viewer automatisch das Preview der Datei" -" lädt" +msgstr "Maximale Größe für die der GCODE Viewer automatisch das Preview der Datei lädt" #: src/octoprint/templates/dialogs/settings/gcodevisualizer.jinja2:10 msgid "GCode Visualizer file size threshold" @@ -3977,13 +3859,8 @@ msgid "Behaviour" msgstr "Verhalten" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:13 -msgid "" -"Serial port to connect to, setting this to AUTO will make OctoPrint try " -"to automatically find the right setting" -msgstr "" -"Serieller Port, mit der sich verbunden werden soll. Falls AUTO " -"konfiguriert ist wird OctoPrint versuchen, automatisch den richtigen Port" -" zu finden." +msgid "Serial port to connect to, setting this to AUTO will make OctoPrint try to automatically find the right setting" +msgstr "Serieller Port, mit der sich verbunden werden soll. Falls AUTO konfiguriert ist wird OctoPrint versuchen, automatisch den richtigen Port zu finden." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:14 #: src/octoprint/templates/sidebar/connection.jinja2:1 @@ -3991,12 +3868,8 @@ msgid "Serial Port" msgstr "Serialport" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:19 -msgid "" -"Serial baud rate to connect with, setting this to AUTO will make " -"OctoPrint try to automatically find the right setting" -msgstr "" -"Baudrate mit der sich verbunden werden soll. Falls AUTO konfiguriert ist " -"wird OctoPrint versuchen, automatisch die richtige Baudrate zu finden." +msgid "Serial baud rate to connect with, setting this to AUTO will make OctoPrint try to automatically find the right setting" +msgstr "Baudrate mit der sich verbunden werden soll. Falls AUTO konfiguriert ist wird OctoPrint versuchen, automatisch die richtige Baudrate zu finden." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:20 #: src/octoprint/templates/sidebar/connection.jinja2:3 @@ -4004,12 +3877,8 @@ msgid "Baudrate" msgstr "Baudrate" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:25 -msgid "" -"Makes OctoPrint try to connect to the printer automatically during start " -"up" -msgstr "" -"OctoPrint wird versuchen, sich beim Startup automatisch mit dem Drucker " -"zu verbinden" +msgid "Makes OctoPrint try to connect to the printer automatically during start up" +msgstr "OctoPrint wird versuchen, sich beim Startup automatisch mit dem Drucker zu verbinden" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:28 msgid "Auto-connect to printer on server start" @@ -4021,26 +3890,16 @@ msgstr "Zusätzliche serielle Ports" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:36 #, python-format -msgid "" -"Use this to define additional glob patterns" -" matching serial ports to list for connecting against, e.g. " -"/dev/ttyAMA*. One entry per line." -msgstr "" -"Nutze diese Einstellung um zusätzliche glob " -"patterns zu konfigurieren, die auf serielle Ports deines Druckers " -"matchen, z.B. /dev/ttyAMA*. Ein Eintrag pro Zeile." +msgid "Use this to define additional glob patterns matching serial ports to list for connecting against, e.g. /dev/ttyAMA*. One entry per line." +msgstr "Nutze diese Einstellung um zusätzliche glob patterns zu konfigurieren, die auf serielle Ports deines Druckers matchen, z.B. /dev/ttyAMA*. Ein Eintrag pro Zeile." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:40 msgid "Additional baud rates" msgstr "Weitere Baudraten" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:43 -msgid "" -"Use this to define additional serial port baud rates to list for " -"connecting with, e.g. 123456. Comma separated." -msgstr "" -"Nutze diese Einstellung um zusätzliche Baudraten zur Verbindung zu " -"konfigurieren, 123456. Komma-separiert." +msgid "Use this to define additional serial port baud rates to list for connecting with, e.g. 123456. Comma separated." +msgstr "Nutze diese Einstellung um zusätzliche Baudraten zur Verbindung zu konfigurieren, 123456. Komma-separiert." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:48 msgid "Serial logging" @@ -4051,15 +3910,8 @@ msgid "Log communication to serial.log" msgstr "Kommunikation nach serial.log loggen" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:53 -msgid "" -"While this can negatively impact performance, a serial.log " -"can be incredibly useful for debugging any issues observed in the " -"communication between OctoPrint and your printer." -msgstr "" -"Dies kann zwar die Performance negativ beeinflussen, ein " -"serial.log ist jedoch unglaublich nützlich beim Debugging " -"jeglicher Probleme, die in der Kommunikation zwischen OctoPrint und " -"deinem Drucker auftreten." +msgid "While this can negatively impact performance, a serial.log can be incredibly useful for debugging any issues observed in the communication between OctoPrint and your printer." +msgstr "Dies kann zwar die Performance negativ beeinflussen, ein serial.log ist jedoch unglaublich nützlich beim Debugging jeglicher Probleme, die in der Kommunikation zwischen OctoPrint und deinem Drucker auftreten." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:61 msgid "Query intervals" @@ -4067,9 +3919,7 @@ msgstr "Abfrageintervalle" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:62 msgid "Interval in which to poll for the temperature information from the printer" -msgstr "" -"Intervall in welchem die Temperaturdaten vom Drucker abgerufen werden " -"sollen" +msgstr "Intervall in welchem die Temperaturdaten vom Drucker abgerufen werden sollen" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:63 msgid "Temperature interval (polling)" @@ -4084,13 +3934,8 @@ msgid "When idle and a target temperature is set" msgstr "Wenn im Leerlauf und eine Zieltemperatur eingestellt ist" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:79 -msgid "" -"Temperature report interval to request from autoreport capable firmwares." -" A value of 0 disables autoreporting by the firmware and forces polling." -msgstr "" -"Von der autoreportfähigen Firmware anzuforderndes " -"Temperaturupdateintervall. Ein Wert von 0 deaktiviert Autoreporting der " -"Firmware und forciert Polling." +msgid "Temperature report interval to request from autoreport capable firmwares. A value of 0 disables autoreporting by the firmware and forces polling." +msgstr "Von der autoreportfähigen Firmware anzuforderndes Temperaturupdateintervall. Ein Wert von 0 deaktiviert Autoreporting der Firmware und forciert Polling." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:80 msgid "Temperature interval (autoreport)" @@ -4102,12 +3947,8 @@ msgid "Autoreport interval to request from firmware" msgstr "Anzuforderndes Temperaturupdateintervall" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:89 -msgid "" -"Interval in which to poll for the SD printing status information from the" -" printer while printing" -msgstr "" -"Intervall in welchem die SD-Statusdaten vom Drucker während des Druckens " -"abgerufen werden sollen" +msgid "Interval in which to poll for the SD printing status information from the printer while printing" +msgstr "Intervall in welchem die SD-Statusdaten vom Drucker während des Druckens abgerufen werden sollen" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:90 msgid "SD status interval (polling)" @@ -4118,12 +3959,8 @@ msgid "When printing from the printer's SD" msgstr "Wenn von der SD des Druckers gedruckt wird" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:99 -msgid "" -"SD status interval to request from autoreport capable firmwares. A value " -"of 0 disables autoreporting by the firmware and forces polling." -msgstr "" -"Von der autoreportfähigen Firmware anzuforderndes SD-Statusintervall. Ein" -" Wert von 0 deaktiviert Autoreporting der Firmware und forciert Polling." +msgid "SD status interval to request from autoreport capable firmwares. A value of 0 disables autoreporting by the firmware and forces polling." +msgstr "Von der autoreportfähigen Firmware anzuforderndes SD-Statusintervall. Ein Wert von 0 deaktiviert Autoreporting der Firmware und forciert Polling." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:100 msgid "SD status interval (autoreport)" @@ -4134,17 +3971,8 @@ msgid "Timeouts" msgstr "Timeouts" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:112 -msgid "" -"Time after which the communication with your printer will be considered " -"timed out if nothing was sent by your printer (and an attempt to get it " -"talking again will be done). Increase this if your printer takes longer " -"than this for some moves." -msgstr "" -"Zeit nach der OctoPrint davon ausgehen wird, dass die Kommunikation mit " -"deinem Drucker unterbrochen wurde falls Dein Drucker keine Daten sendet. " -"OctoPrint wird dann einen Versuch unternehmen, die Kommunikation wieder " -"zu reetablieren. Erhöhe diesen Wert falls Dein Drucker für manche " -"Bewegungen länger braucht." +msgid "Time after which the communication with your printer will be considered timed out if nothing was sent by your printer (and an attempt to get it talking again will be done). Increase this if your printer takes longer than this for some moves." +msgstr "Zeit nach der OctoPrint davon ausgehen wird, dass die Kommunikation mit deinem Drucker unterbrochen wurde falls Dein Drucker keine Daten sendet. OctoPrint wird dann einen Versuch unternehmen, die Kommunikation wieder zu reetablieren. Erhöhe diesen Wert falls Dein Drucker für manche Bewegungen länger braucht." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:113 msgid "Communication timeout" @@ -4159,72 +3987,44 @@ msgid "busy protocol support detected" msgstr "busy Protokoll unterstützt" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:129 -msgid "" -"Time after which a connection attempt to the printer will be considered " -"as having failed" -msgstr "" -"Zeit nach der ein unbeantworteter Verbindungsversuch als gescheitert " -"angenommen wird" +msgid "Time after which a connection attempt to the printer will be considered as having failed" +msgstr "Zeit nach der ein unbeantworteter Verbindungsversuch als gescheitert angenommen wird" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:130 msgid "Connection timeout" msgstr "Verbindungstimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:138 -msgid "" -"Time after which to consider an auto detection attempt to have failed if " -"no successful connection is detected" -msgstr "" -"Zeit nach der ein unbeantworteter Autodetektierungsversuch als " -"gescheitert angenommen wird" +msgid "Time after which to consider an auto detection attempt to have failed if no successful connection is detected" +msgstr "Zeit nach der ein unbeantworteter Autodetektierungsversuch als gescheitert angenommen wird" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:139 msgid "Autodetection timeout" msgstr "Autodetectiontimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:147 -msgid "" -"Time after which to consider a position query on pause or cancel to have " -"failed" -msgstr "" -"Zeit nach der OctoPrint annimmt, dass die Positionsabfrage nach Pause " -"oder Abbruch fehlgeschlagen ist." +msgid "Time after which to consider a position query on pause or cancel to have failed" +msgstr "Zeit nach der OctoPrint annimmt, dass die Positionsabfrage nach Pause oder Abbruch fehlgeschlagen ist." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:148 msgid "Position query timeout" msgstr "Positionsabfragetimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:159 -msgid "" -"Time to wait after opening the serial connection before starting baudrate" -" detection" -msgstr "" -"Zeit, die OctoPrint nach Öffnen der seriellen Schnittstelle warten soll, " -"bis es mit der Baudrateerkennung startet" +msgid "Time to wait after opening the serial connection before starting baudrate detection" +msgstr "Zeit, die OctoPrint nach Öffnen der seriellen Schnittstelle warten soll, bis es mit der Baudrateerkennung startet" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:160 msgid "Initial baudrate detection pause" msgstr "Baudrateerkennungsverzögerung" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:166 -msgid "" -"Some controllers need a bit of a breather before baudrate detection after" -" initial connect. If baudrate detection fails due to a hanging " -"controller, try increasing this value." -msgstr "" -"Einige Controller brauchen ein bisschen, bevor die Baudrateerkennung nach" -" initialer Verbindung durchgeführt werden kann. Versuche, diesen Wert zu " -"erhöhen, falls die Baudrateerkennung aufgrund eines hängenden Controllers" -" fehlschlägt." +msgid "Some controllers need a bit of a breather before baudrate detection after initial connect. If baudrate detection fails due to a hanging controller, try increasing this value." +msgstr "Einige Controller brauchen ein bisschen, bevor die Baudrateerkennung nach initialer Verbindung durchgeführt werden kann. Versuche, diesen Wert zu erhöhen, falls die Baudrateerkennung aufgrund eines hängenden Controllers fehlschlägt." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:169 -msgid "" -"Maximum consecutive communication timeouts while idle. More than this and" -" the printer will be considered to be gone. Set to 0 to disable." -msgstr "" -"Maximale Anzahl aufeinanderfolgender Communication Timeouts im " -"Idlezustand. Mehr als das und es wird angenommen, dass der Drucker " -"offline ist. Auf 0 setzen um das zu verhindern." +msgid "Maximum consecutive communication timeouts while idle. More than this and the printer will be considered to be gone. Set to 0 to disable." +msgstr "Maximale Anzahl aufeinanderfolgender Communication Timeouts im Idlezustand. Mehr als das und es wird angenommen, dass der Drucker offline ist. Auf 0 setzen um das zu verhindern." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:170 msgid "Max. consecutive timeouts while idle" @@ -4237,27 +4037,16 @@ msgid "Set to 0 to disable consecutive timeout detection and handling." msgstr "Auf 0 setzen um aufeinanderfolgende Timeouts zu ignorieren" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:176 -msgid "" -"Maximum consecutive communication timeouts while printing. More than this" -" and the printer will be considered to be gone. Set to 0 to disable." -msgstr "" -"Maximale Anzahl aufeinanderfolgender Communication Timeouts beim Drucken." -" Mehr als das und es wird angenommen, dass der Drucker offline ist. Auf 0" -" setzen um das zu verhindern." +msgid "Maximum consecutive communication timeouts while printing. More than this and the printer will be considered to be gone. Set to 0 to disable." +msgstr "Maximale Anzahl aufeinanderfolgender Communication Timeouts beim Drucken. Mehr als das und es wird angenommen, dass der Drucker offline ist. Auf 0 setzen um das zu verhindern." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:177 msgid "Max. consecutive timeouts while printing" msgstr "Max. aufeinanderfolgende Timeouts beim Drucken" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:183 -msgid "" -"Maximum consecutive communication timeouts while a long running command " -"is active. More than this and the printer will be considered to be gone. " -"Set to 0 to disable." -msgstr "" -"Maximale Anzahl aufeinanderfolgender Communication Timeouts wenn ein lang" -" laufender Befehl aktiv ist. Mehr als das und es wird angenommen, dass " -"der Drucker offline ist. Auf 0 setzen um das zu verhindern." +msgid "Maximum consecutive communication timeouts while a long running command is active. More than this and the printer will be considered to be gone. Set to 0 to disable." +msgstr "Maximale Anzahl aufeinanderfolgender Communication Timeouts wenn ein lang laufender Befehl aktiv ist. Mehr als das und es wird angenommen, dass der Drucker offline ist. Auf 0 setzen um das zu verhindern." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:184 msgid "Max. consecutive timeouts during long running commands" @@ -4272,22 +4061,11 @@ msgid "Enable automatic firmware detection" msgstr "Automatische Firmwareerkennung einschalten" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:201 -msgid "" -"\n" -" If enabled, OctoPrint will try to figure " -"out your printer's firmware automatically and adjust some communication " -"parameters based on that.\n" -" If that doesn't work out, or you want " -"more granular control, uncheck this and the parameters in question will " -"become visible for you to adjust.\n" +msgid "\n" +" If enabled, OctoPrint will try to figure out your printer's firmware automatically and adjust some communication parameters based on that.\n" +" If that doesn't work out, or you want more granular control, uncheck this and the parameters in question will become visible for you to adjust.\n" " " -msgstr "" -"Falls diese Option eingeschaltet ist, versucht OctoPrint die Firmware des" -" Druckers automatisch zu erkennen und darauf basierend diverse " -"Kommunikationsparameter zu konfigurieren. Falls das für dich nicht " -"korrekt funktioniert oder du mehr Kontrolle haben möchtest, schalte diese" -" Option aus und die entsprechenden Parameter werden zur manuellen " -"Konfiguration eingeblendet." +msgstr "Falls diese Option eingeschaltet ist, versucht OctoPrint die Firmware des Druckers automatisch zu erkennen und darauf basierend diverse Kommunikationsparameter zu konfigurieren. Falls das für dich nicht korrekt funktioniert oder du mehr Kontrolle haben möchtest, schalte diese Option aus und die entsprechenden Parameter werden zur manuellen Konfiguration eingeblendet." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:212 msgid "Select SD files by relative path" @@ -4316,12 +4094,8 @@ msgstr "Aufeinanderfolgende Resend Requests für die selbe Zeilennummer ignorier #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:233 #, python-format -msgid "" -"Support TargetExtr%%n/TargetBed target " -"temperature format" -msgstr "" -"TargetExtr%%n/TargetBed Zieltemperaturformat " -"unterstützen" +msgid "Support TargetExtr%%n/TargetBed target temperature format" +msgstr "TargetExtr%%n/TargetBed Zieltemperaturformat unterstützen" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:240 msgid "Disable detection of external heatups" @@ -4329,9 +4103,7 @@ msgstr "Detektierung externer Aufheizvorgänge deaktivieren" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:247 msgid "Actively pause communication during G4 dwell command" -msgstr "" -"Pausiere Kommunikation mit dem Drucker aktiv während eines " -"G4 dwell Befehls." +msgstr "Pausiere Kommunikation mit dem Drucker aktiv während eines G4 dwell Befehls." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:252 msgid "Send a checksum with the command" @@ -4342,12 +4114,12 @@ msgid "When printing" msgstr "Beim Drucken" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:258 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:305 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:312 msgid "Always" msgstr "Immer" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:261 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:308 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:315 msgid "Never" msgstr "Nie" @@ -4360,207 +4132,140 @@ msgid "Support sd status autoreporting by firmware, if detected" msgstr "SD-Status-Autoreporting durch die Firmware unterstützen, falls detektiert" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:286 +msgid "Send emergency GCODES M108 and M410 without waiting for acknowledgement, if detected as supported by the firmware" +msgstr "Emergency GCODES M108 und M410 ohne warten auf Bestätigung absenden, falls Unterstützung durch Firmware erkannt" + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:293 msgid "Support busy protocol, if detected" msgstr "busy Protokoll unterstützen, falls detektiert" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:293 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:300 msgid "Simulate ok for M29" msgstr "Zusätzliches ok für M29 generieren" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:294 -msgid "" -"Most Marlin forks that were derived from Marlin versions < v1.1.0 do " -"not send an acknowledging ok for a M29. Check " -"this if you run into communication stalls following streaming of a file " -"to your printer's SD." -msgstr "" -"Die meisten Marlinforks, die von Marlin Versionen < v1.1.0 abgeleitet " -"wurden, senden kein bestätigendes ok für ein " -"M29. Aktiviere diese Option, falls du Kommunikationsprobleme" -" nach dem Streaming einer Datei zu der SD des Druckers beobachtest." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:301 +msgid "Most Marlin forks that were derived from Marlin versions < v1.1.0 do not send an acknowledging ok for a M29. Check this if you run into communication stalls following streaming of a file to your printer's SD." +msgstr "Die meisten Marlinforks, die von Marlin Versionen < v1.1.0 abgeleitet wurden, senden kein bestätigendes ok für ein M29. Aktiviere diese Option, falls du Kommunikationsprobleme nach dem Streaming einer Datei zu der SD des Druckers beobachtest." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:299 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:306 msgid "Simulate ok for resend requests" msgstr "Zusätzliches ok für Resendrequests simulieren" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:302 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:309 msgid "If detected as necessary" msgstr "Falls als notwendig erkannt" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:310 -msgid "" -"Some Marlin forks lack an acknowledging ok with their resend" -" requests. Set this to \"always\" or \"if detected as necessary\" if you " -"run into communication stalls on resend requests." -msgstr "" -"Einige Marlinforks senden bei einem Resendrequest kein bestätigendes " -"ok. Setze diese Option auf \"immer\" oder \"falls als " -"notwendig erkannt\" falls du Kommunikationsprobleme nach Resendrequests " -"beobachtest." - #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:317 +msgid "Some Marlin forks lack an acknowledging ok with their resend requests. Set this to \"always\" or \"if detected as necessary\" if you run into communication stalls on resend requests." +msgstr "Einige Marlinforks senden bei einem Resendrequest kein bestätigendes ok. Setze diese Option auf \"immer\" oder \"falls als notwendig erkannt\" falls du Kommunikationsprobleme nach Resendrequests beobachtest." + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:324 msgid "Protocol fine tuning" msgstr "Protokollfinetuning" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:321 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:328 msgid "Wait for start on connect" msgstr "Bei der Verbindung auf start warten" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:322 -msgid "" -"Try checking this if you run into connection timeouts due to your printer" -" taking too long to respond to OctoPrint's handshake attempts on connect." -msgstr "" -"Versuche es mit dieser Option, falls du Kommunikationsprobleme " -"beobachtest, weil dein Drucker zu lange braucht, um auf OctoPrints " -"Handshake Versuche zu antworten." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:329 +msgid "Try checking this if you run into connection timeouts due to your printer taking too long to respond to OctoPrint's handshake attempts on connect." +msgstr "Versuche es mit dieser Option, falls du Kommunikationsprobleme beobachtest, weil dein Drucker zu lange braucht, um auf OctoPrints Handshake Versuche zu antworten." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:327 -msgid "" -"Do not send M0/M1 commands to the firmware, " -"only pause" -msgstr "" -"M0/M1 nicht zur Firmware senden, nur lokal " -"pausieren" - -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:328 -msgid "" -"Most firmware will block and wait for the user to press the button on the" -" controller when an M0 or M1 is received. Due " -"to that OctoPrint will normally not send those commands to the printer " -"and only pause any ongoing prints. If you want OctoPrint to send those " -"commands to your printer, uncheck this option." -msgstr "" -"Die meisten Firmwarevarianten blockieren und warten darauf, dass der User" -" physikalisch den Button am Controller bedient, wenn sie ein " -"M0 oder M1 empfangen. Daher schickt OctoPrint " -"diese Befehle normalerweise nicht zum Drucker und pausiert lediglich " -"laufende Druckjobs. Wenn du möchstest, dass OctoPrint diese Befehle zu " -"deinem Drucker sendet, deaktiviere diese Option." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:334 +msgid "Do not send M0/M1 commands to the firmware, only pause" +msgstr "M0/M1 nicht zur Firmware senden, nur lokal pausieren" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:335 -msgid "Command to send to the firmware on first handshake attempt." -msgstr "" -"Kommando, das als erster Handshakeversuch an die Firmware gesendet werden" -" soll" +msgid "Most firmware will block and wait for the user to press the button on the controller when an M0 or M1 is received. Due to that OctoPrint will normally not send those commands to the printer and only pause any ongoing prints. If you want OctoPrint to send those commands to your printer, uncheck this option." +msgstr "Die meisten Firmwarevarianten blockieren und warten darauf, dass der User physikalisch den Button am Controller bedient, wenn sie ein M0 oder M1 empfangen. Daher schickt OctoPrint diese Befehle normalerweise nicht zum Drucker und pausiert lediglich laufende Druckjobs. Wenn du möchstest, dass OctoPrint diese Befehle zu deinem Drucker sendet, deaktiviere diese Option." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:336 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:342 +msgid "Command to send to the firmware on first handshake attempt." +msgstr "Kommando, das als erster Handshakeversuch an die Firmware gesendet werden soll" + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:343 msgid "\"Hello\" command" msgstr "\"Hallo\"-Befehl" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:339 -msgid "" -"Use this to specify a different command than the default " -"M110 to send to the printer on initial connection to trigger" -" a communication handshake." -msgstr "" -"Nutze diese Einstellung um einen anderen Befehl als M110 " -"beim initialen Verbindungsaufbau zum drucker zu senden." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:346 +msgid "Use this to specify a different command than the default M110 to send to the printer on initial connection to trigger a communication handshake." +msgstr "Nutze diese Einstellung um einen anderen Befehl als M110 beim initialen Verbindungsaufbau zum drucker zu senden." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:342 -msgid "" -"Commands that are know to run long and hence should suppress " -"communication timeouts from being triggered." -msgstr "" -"Befehle, von denen bekannt ist, dass sie lang zur Ausführung benötigen " -"und daher das Auslösen von Kommunikationstimeouts unterdrücken sollten." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:349 +msgid "Commands that are know to run long and hence should suppress communication timeouts from being triggered." +msgstr "Befehle, von denen bekannt ist, dass sie lang zur Ausführung benötigen und daher das Auslösen von Kommunikationstimeouts unterdrücken sollten." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:343 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:350 msgid "Long running commands" msgstr "Lang laufende Befehle" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:346 -msgid "" -"Use this to specify the commands known to take a long time to complete " -"without output from your printer and hence might cause timeout issues. " -"Just the G or M code, comma separated." -msgstr "" -"Nutze diese Option, um solche Befehle zu definieren, von denen Du weißt, " -"dass sie eine längere Zeit lang laufen, währenddessen keinen Output " -"produzieren und daher Timeoutprobleme verursachen könnten. Nur den G- " -"oder M-Code, kommasepariert." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:353 +msgid "Use this to specify the commands known to take a long time to complete without output from your printer and hence might cause timeout issues. Just the G or M code, comma separated." +msgstr "Nutze diese Option, um solche Befehle zu definieren, von denen Du weißt, dass sie eine längere Zeit lang laufen, währenddessen keinen Output produzieren und daher Timeoutprobleme verursachen könnten. Nur den G- oder M-Code, kommasepariert." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:349 -msgid "" -"Commands that always require a line number and checksum to be sent with " -"them." -msgstr "" -"Befehle, die immer mit einer Prüfsumme und Zeilennummer gesendet werden " -"müssen." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:356 +msgid "Commands that always require a line number and checksum to be sent with them." +msgstr "Befehle, die immer mit einer Prüfsumme und Zeilennummer gesendet werden müssen." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:350 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:357 msgid "Commands that always require a checksum" msgstr "Befehle, die immer eine Prüfsumme benötigen" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:353 -msgid "" -"Use this to specify which commands always need to be " -"sent with a checksum. Comma separated list." -msgstr "" -"Nutze diese Einstellung um Befehle zu spezifizieren, die " -"immer mit Prüfsumme gesendet werden müssen. Komma-" -"separierte Liste." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:360 +msgid "Use this to specify which commands always need to be sent with a checksum. Comma separated list." +msgstr "Nutze diese Einstellung um Befehle zu spezifizieren, die immer mit Prüfsumme gesendet werden müssen. Komma-separierte Liste." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:362 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:369 msgid "Error handling" msgstr "Fehlerbehandlung" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:364 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:371 msgid "What to do on a firmware error (Error: or !!)" -msgstr "" -"Was im Falle eines Firmwarefehlers (Error: oder " -"!!) gemacht werden soll" +msgstr "Was im Falle eines Firmwarefehlers (Error: oder !!) gemacht werden soll" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:367 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:374 msgid "Disconnect from the printer" msgstr "Verbindung zum Drucker trennen" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:370 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:377 msgid "Cancel any ongoing prints but stay connected to the printer" msgstr "Laufende Druckaufträge abbrechen, aber mit dem Drucker verbunden bleiben" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:374 -msgid "" -"Only choose this if your firmware sends error messages that are not " -"actual errors. Might mask printer issues, be careful!" -msgstr "" -"Wähle das nur aus, wenn deine Firmware Fehlermeldungen für Dinge sendet, " -"die gar keine wirklich Fehler sind. Könnte Druckerprobleme verbergen, " -"Vorsicht!" +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:381 +msgid "Only choose this if your firmware sends error messages that are not actual errors. Might mask printer issues, be careful!" +msgstr "Wähle das nur aus, wenn deine Firmware Fehlermeldungen für Dinge sendet, die gar keine wirklich Fehler sind. Könnte Druckerprobleme verbergen, Vorsicht!" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:380 -msgid "Event based position logging" -msgstr "Eventbasiertes Positionslogging" +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:387 +msgid "Pausing" +msgstr "Pausiere" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:383 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390 msgid "Log position on pause" msgstr "Position bei Pause loggen" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:384 -msgid "" -"If you disable this, the pause_position placeholders in your" -" pause/resume GCODE scripts will stay unpopulated! However, pausing speed" -" might improve slightly." -msgstr "" -"Falls du das deaktivierst, werden die pause_position " -"Platzhalter in deinen Pausieren/Fortsetzen GCODE Scripts nicht befüllt! " -"Allerdings könnte sich die Pausierungsgeschwindkeit einen Hauch " -"verbessern." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:391 +msgid "If you disable this, the pause_position placeholders in your pause/resume GCODE scripts will stay unpopulated! However, pausing speed might improve slightly." +msgstr "Falls du das deaktivierst, werden die pause_position Platzhalter in deinen Pausieren/Fortsetzen GCODE Scripts nicht befüllt! Allerdings könnte sich die Pausierungsgeschwindkeit einen Hauch verbessern." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:389 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:396 +msgid "Cancelling" +msgstr "Breche ab" + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:399 msgid "Log position on cancel" msgstr "Position bei Abbruch loggen" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390 -msgid "" -"If you disable this, the cancel_position placeholders in " -"your cancel GCODE script and the corresponding data in the print recovery" -" data will stay unpopulated! However, cancelling speed might improve " -"slightly." -msgstr "" -"Falls du das deaktivierst, werden die cancel_position " -"Platzhalter in deinem Abbruch GCODE Script nicht befüllt! Allerdings " -"könnte sich die Abbruchgeschwindkeit einen Hauch verbessern." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:400 +msgid "If you disable this, the cancel_position placeholders in your cancel GCODE script and the corresponding data in the print recovery data will stay unpopulated! However, cancelling speed might improve slightly." +msgstr "Falls du das deaktivierst, werden die cancel_position Platzhalter in deinem Abbruch GCODE Script nicht befüllt! Allerdings könnte sich die Abbruchgeschwindkeit einen Hauch verbessern." + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:405 +msgid "Attempt to abort any blocking heatups on cancel via M108." +msgstr "Versuche, blockierende Aufheizprozesse beim Abbruch mittel M108 zu stoppen." + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:406 +msgid "Uncheck this if your firmware doesn't support M108 for aborting blocking heatups!" +msgstr "Deaktiviere dies, falls deine Firmware M108 zum stoppen blockierender Aufheizprozesse nicht unterstützt!" #: src/octoprint/templates/dialogs/settings/server.jinja2:2 msgid "Commands" @@ -4595,26 +4300,16 @@ msgid "Send temperature fine adjustments automatically" msgstr "Temperaturfeinjustierungen automatisch senden" #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:19 -msgid "" -"Enable this to have temperature fine adjustments you do via the + or - " -"button be sent to the printer automatically." -msgstr "" -"Aktiviere dies, um die Temperaturefeinjustierungen, die du mittels der + " -"und - Buttons durchführen kannst, automatisch zum Drucker senden zu " -"lassen." +msgid "Enable this to have temperature fine adjustments you do via the + or - button be sent to the printer automatically." +msgstr "Aktiviere dies, um die Temperaturefeinjustierungen, die du mittels der + und - Buttons durchführen kannst, automatisch zum Drucker senden zu lassen." #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:23 msgid "Sending delay" msgstr "Sendeverzögerung" #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:29 -msgid "" -"OctoPrint will use this delay to limit the number of sent temperature " -"commands should you perform multiple fine adjustments in a short time." -msgstr "" -"OctoPrint wird diese Verzögerung nutzen, um die Anzahl der gesendeten " -"Temperaturkommandos zu reduzieren wenn du mehrere Feinjustierungen in " -"einer kurzen Zeit durchführst." +msgid "OctoPrint will use this delay to limit the number of sent temperature commands should you perform multiple fine adjustments in a short time." +msgstr "OctoPrint wird diese Verzögerung nutzen, um die Anzahl der gesendeten Temperaturkommandos zu reduzieren wenn du mehrere Feinjustierungen in einer kurzen Zeit durchführst." #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:32 msgid "Presets" @@ -4629,90 +4324,72 @@ msgid "RegExp" msgstr "RegExp" #: src/octoprint/templates/dialogs/usersettings/access.jinja2:5 -msgid "" -"If you do not wish to change your password, just leave the following " -"fields empty." -msgstr "" -"Falls Du Dein Passwort nicht ändern willst, lass die folgenden Felder " -"leer." +msgid "If you do not wish to change your password, just leave the following fields empty." +msgstr "Falls Du Dein Passwort nicht ändern willst, lass die folgenden Felder leer." #: src/octoprint/templates/dialogs/usersettings/access.jinja2:32 -msgid "" -"Please note that changes to the API key are applied immediately, without " -"having to \"Confirm\" first." -msgstr "" -"Bitte beachte, dass Änderungen am API-Key sofort angewandt werden, ohne " -"dass \"Bestätigen\" geklickt werden muss." +msgid "Please note that changes to the API key are applied immediately, without having to \"Confirm\" first." +msgstr "Bitte beachte, dass Änderungen am API-Key sofort angewandt werden, ohne dass \"Bestätigen\" geklickt werden muss." #: src/octoprint/templates/dialogs/usersettings/interface.jinja2:3 msgid "Language" msgstr "Sprache" #: src/octoprint/templates/dialogs/usersettings/interface.jinja2:11 -msgid "" -"Changes to the interface language will only become active after a reload " -"of the page." -msgstr "" -"Änderungen der Oberflächensprache werden erst nach einem Neuladen der " -"Seite aktiv." +msgid "Changes to the interface language will only become active after a reload of the page." +msgstr "Änderungen der Oberflächensprache werden erst nach einem Neuladen der Seite aktiv." #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:1 msgid "All Done!" msgstr "Alles erledigt!" #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:3 -msgid "" -"\n" +msgid "\n" " Your OctoPrint installation is now all set up and ready to go.\n" -msgstr "" -"Deine OctoPrint Installation ist jetzt eingerichtet und es kann losgehen." -"\n" +msgstr "Deine OctoPrint Installation ist jetzt eingerichtet und es kann losgehen.\n" #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:7 -msgid "On your printer's safety" +msgid "For your printer's safety" msgstr "Über die Sicherheit deines Druckers" #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:10 -msgid "" -"\n" -" Even with OctoPrint attached you should never leave\n" -" your printer running completely unattended. The electronics " -"in our consumer printers can and\n" -" sometimes sadly do catch fire, so stay or have someone else stay " -"close enough to physically intervene\n" +msgid "\n" +" Even with OctoPrint attached you should never leave\n" +" your printer running completely unattended. The electronics in our consumer printers can and\n" +" sometimes sadly do catch fire, so stay or have someone else stay close enough to physically intervene\n" " in case of such catastrophic failure.\n" -msgstr "" -"Auch mit angeschlossener OctoPrint-Instanz solltest du deinen Drucker " -"niemals unbeaufsichtigt laufen " -"lassen. Die Elektronik in unseren Konsumerdruckern kann Feuer " -"fangen, und tut das leider auch manchmal. Bleibe also in der Nähe deines " -"Druckers oder sorge dafür, dass jemand anderes in der Nähe bleibt, um im " -"Falle eines solch katastrophalen Fehlers einschreiten zu können.\n" +msgstr "Auch mit angeschlossener OctoPrint-Instanz solltest du deinen Drucker niemals unbeaufsichtigt laufen lassen. Die Elektronik in unseren Konsumerdruckern kann Feuer fangen, und tut das leider auch manchmal. Bleibe also in der Nähe deines Druckers oder sorge dafür, dass jemand anderes in der Nähe bleibt, um im Falle eines solch katastrophalen Fehlers einschreiten zu können.\n" -#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:17 +#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:16 +#, python-format +msgid "\n" +" You also should never make your OctoPrint instance available for everyone on the\n" +" public internet, even with Access Control enabled. Your instance will be found, and bad people\n" +" will try to abuse it. Don't put yourself at risk,\n" +" use a safe way to access your instance remotely.\n" +msgstr "\n" +" Du solltest ebenfalls deine OctoPrint Instanz niemals für jeden im öffentlichen Internet verfügbar machen,\n" +" auch nicht wenn die Zugriffsbeschränkung aktiviert ist. Deine Instanz wird gefunden werden, und böse Menschen\n" +" werden versuchen, einzubrechen. Gehe kein Risiko ein,\n" +" nutze einen sicheren Weg, auf deine Instanz von unterwegs zuzugreifen.\n" + +#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:23 msgid "If you enjoy OctoPrint..." msgstr "Falls dir OctoPrint gefällt..." -#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:20 -#, python-format -msgid "" -"\n" -" Please consider to support OctoPrint's ongoing development,\n" -" which can only continue with funding by users like you! You can also " -"find this link in the \"About\" dialog.
    \n" -" Thank you!\n" -msgstr "" -"Bitte denke darĂĽber nach, OctoPrints laufende Entwicklung zu " -"unterstĂĽtzen, welche nur dank UnterstĂĽtzung von Nutzern wie " -"dir weitergehen kann! Du kannst diesen Link auch im Aboutdialog finden. " -"Vielen Dank!\n" - #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:26 -msgid "" -"\n" +#, python-format +msgid "\n" +" Please consider supporting OctoPrint's ongoing development,\n" +" which can only continue with funding by users like you! You can also find this link in the \"About\" dialog.
    \n" +" Thank you!\n" +msgstr "\n" +" Bitte denke darĂĽber nach, OctoPrints laufende Entwicklung zu unterstĂĽtzen,\n" +" welche nur dank UnterstĂĽtzung von Nutzern wie dir weitergehen kann! Du kannst diesen Link auch im Aboutdialog finden.
    \n" +" Vielen Dank!\n" + +#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:32 +msgid "\n" " With all that being said, Happy and Safe Printing!\n" msgstr "Und jetzt fröhliches und sicheres Drucken!\n" @@ -4721,29 +4398,20 @@ msgid "Hello!" msgstr "Hallo!" #: src/octoprint/templates/dialogs/wizard/firstrun_start.jinja2:3 -msgid "" -"\n" +msgid "\n" " Thank you for installing OctoPrint!\n" msgstr "Danke, dass du OctoPrint installiert hast!\n" #: src/octoprint/templates/dialogs/wizard/firstrun_start.jinja2:6 -msgid "" -"\n" -" This wizard will guide you through the final steps to get your " -"OctoPrint instance all set up and ready to go. We'll\n" +msgid "\n" +" This wizard will guide you through the final steps to get your OctoPrint instance all set up and ready to go. We'll\n" " get you printing in no time!\n" -msgstr "" -"Dieser Wizard wird dich nun durch die letzten Schritte begleiten, um " -"deine OctoPrint Instanz fertig einzurichten.\n" +msgstr "Dieser Wizard wird dich nun durch die letzten Schritte begleiten, um deine OctoPrint Instanz fertig einzurichten.\n" #: src/octoprint/templates/navbar/login.jinja2:9 msgid "Forgot password?" msgstr "Passwort vergessen?" -#: src/octoprint/templates/navbar/login.jinja2:13 -msgid "Remember me" -msgstr "Login merken" - #: src/octoprint/templates/navbar/login.jinja2:19 msgid "User Settings" msgstr "Nutzereinstellungen" @@ -4786,20 +4454,13 @@ msgid "Please reload" msgstr "Bitte die Seite neu laden" #: src/octoprint/templates/overlays/reloadui.jinja2:7 -msgid "" -"\n" -" There is a new version of the server active now, a " -"reload\n" -" of the user interface is needed. This will not " -"interrupt\n" -" any print jobs you might have ongoing. Please reload " -"the\n" +msgid "\n" +" There is a new version of the server active now, a reload\n" +" of the user interface is needed. This will not interrupt\n" +" any print jobs you might have ongoing. Please reload the\n" " web interface now by clicking the button below.\n" " " -msgstr "" -"Die Serverversion hat sich geändert, ein Neuladen des Webinterfaces ist " -"notwendig. Das wird evtl. laufenden Printjobs nicht unterbrechen. Bitte " -"lade das Webinterface jetzt neu, indem du auf den Button unten klickst." +msgstr "Die Serverversion hat sich geändert, ein Neuladen des Webinterfaces ist notwendig. Das wird evtl. laufenden Printjobs nicht unterbrechen. Bitte lade das Webinterface jetzt neu, indem du auf den Button unten klickst." #: src/octoprint/templates/sidebar/connection.jinja2:8 msgid "Save connection settings" @@ -4836,11 +4497,6 @@ msgstr "Hochgeladen" msgid "Additional data" msgstr "Weitere Daten" -#: src/octoprint/templates/sidebar/files.jinja2:22 -#: src/octoprint/templates/sidebar/files.jinja2:35 -msgid "Download" -msgstr "Download" - #: src/octoprint/templates/sidebar/files.jinja2:24 msgid "Load" msgstr "Laden" @@ -4951,19 +4607,13 @@ msgstr "Datei" msgid "User who selected this file for printing" msgstr "Nutzer, der diese Datei zum Drucken ausgewählt hat" -#: src/octoprint/templates/sidebar/state.jinja2:5 -msgid "User" -msgstr "Nutzer" - #: src/octoprint/templates/sidebar/state.jinja2:7 msgid "Current timelapse configuration" msgstr "Zeitraffer rendern" #: src/octoprint/templates/sidebar/state.jinja2:11 msgid "Estimated total print time based on analysis of the file or past prints" -msgstr "" -"Geschätzte Gesamtdauer basierend auf statischer Analyse oder vergangenen " -"Drucken" +msgstr "Geschätzte Gesamtdauer basierend auf statischer Analyse oder vergangenen Drucken" #: src/octoprint/templates/sidebar/state.jinja2:11 msgid "Approx. Total Print Time" @@ -4978,12 +4628,8 @@ msgid "Print Time" msgstr "Dauer" #: src/octoprint/templates/sidebar/state.jinja2:14 -msgid "" -"Estimated time until the print job is done. This is only an estimate and " -"accuracy depends heavily on various factors!" -msgstr "" -"Geschätze Zeit, bis der Druck beendet ist. Dies ist nur eine Schätzung, " -"deren Genauigkeit stark von diversen Faktoren abhängt!" +msgid "Estimated time until the print job is done. This is only an estimate and accuracy depends heavily on various factors!" +msgstr "Geschätze Zeit, bis der Druck beendet ist. Dies ist nur eine Schätzung, deren Genauigkeit stark von diversen Faktoren abhängt!" #: src/octoprint/templates/sidebar/state.jinja2:14 msgid "Print Time Left" @@ -5014,12 +4660,8 @@ msgid "Cancels the print job" msgstr "Bricht den Druckjob ab" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorAxes.jinja2:4 -msgid "" -"Please define the maximum speed/feedrate of the individual axes and " -"whether their control should be inverted or not." -msgstr "" -"Bitte definiere die maximale Geschwindkeit/Feedrate der individuellen " -"Achsen und ob ihre Steuerung invertiert werden soll oder nicht." +msgid "Please define the maximum speed/feedrate of the individual axes and whether their control should be inverted or not." +msgstr "Bitte definiere die maximale Geschwindkeit/Feedrate der individuellen Achsen und ob ihre Steuerung invertiert werden soll oder nicht." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorAxes.jinja2:8 msgid "X" @@ -5044,13 +4686,8 @@ msgid "E" msgstr "E" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorAxes.jinja2:54 -msgid "" -"This information is used for manual control via the \"Control\" tab. It " -"does NOT influence already sliced files that you upload to OctoPrint!" -msgstr "" -"Diese Informationen werden für die manuelle Steuerung im \"Steuerung\" " -"Tab verwendet. Sie beeinflussen NICHT die bereits gesliceten Dateien, die" -" du in OctoPrint hochlädst." +msgid "This information is used for manual control via the \"Control\" tab. It does NOT influence already sliced files that you upload to OctoPrint!" +msgstr "Diese Informationen werden für die manuelle Steuerung im \"Steuerung\" Tab verwendet. Sie beeinflussen NICHT die bereits gesliceten Dateien, die du in OctoPrint hochlädst." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorBuildvolume.jinja2:3 msgid "Form Factor" @@ -5093,17 +4730,11 @@ msgid "Height (Z)" msgstr "Höhe (Z)" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorBuildvolume.jinja2:75 -msgid "" -"\n" -" If your printer's print head may move slightly outside the " -"print volume (e.g. for nozzle cleaning routines)\n" -" you can define a custom safe bounding box for its movements " -"below.\n" +msgid "\n" +" If your printer's print head may move slightly outside the print volume (e.g. for nozzle cleaning routines)\n" +" you can define a custom safe bounding box for its movements below.\n" " " -msgstr "" -"Wenn der Druckkopf des Druckers sich außerhalb des Druckvolumens bewegen " -"darf (z.B. für Nozzlereinigungsroutinen) kannst du hier eine als " -"gefahrlos geltende Bounding Box für seine Bewegung definieren." +msgstr "Wenn der Druckkopf des Druckers sich außerhalb des Druckvolumens bewegen darf (z.B. für Nozzlereinigungsroutinen) kannst du hier eine als gefahrlos geltende Bounding Box für seine Bewegung definieren." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorBuildvolume.jinja2:82 msgid "Custom bounding box" @@ -5122,15 +4753,8 @@ msgid "Z Coordinates" msgstr "Z Koordinaten" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorBuildvolume.jinja2:130 -msgid "" -"This information is used for the temperature tab, the bounding box check," -" the GCODE Viewer and/or when slicing from OctoPrint. It does NOT " -"influence already sliced files that you upload to OctoPrint!" -msgstr "" -"Diese Informationen werden für das Temperaturtab, den Bounding-Box-Check," -" den GCODE Viewer und/oder beim Slicen aus OctoPrint heraus verwendet. " -"Sie beeinflussen NICHT die bereits geslicten Dateien, die du in OctoPrint" -" hochlädst!" +msgid "This information is used for the temperature tab, the bounding box check, the GCODE Viewer and/or when slicing from OctoPrint. It does NOT influence already sliced files that you upload to OctoPrint!" +msgstr "Diese Informationen werden für das Temperaturtab, den Bounding-Box-Check, den GCODE Viewer und/oder beim Slicen aus OctoPrint heraus verwendet. Sie beeinflussen NICHT die bereits geslicten Dateien, die du in OctoPrint hochlädst!" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:4 msgid "Nozzle Diameter" @@ -5145,23 +4769,12 @@ msgid "Shared nozzle" msgstr "Geteilte Düse" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:23 -msgid "" -"Check this if your printer has a single nozzle and heater shared among " -"its extruders instead of one nozzle and heater per extruder" -msgstr "" -"Markiere dies wenn dein Drucker eine einzelne Düse und Heizelement hat, " -"die unter den Extrudern geteilt werden (anstatt einer Düse und " -"Heizelement je Extruder)" +msgid "Check this if your printer has a single nozzle and heater shared among its extruders instead of one nozzle and heater per extruder" +msgstr "Markiere dies wenn dein Drucker eine einzelne Düse und Heizelement hat, die unter den Extrudern geteilt werden (anstatt einer Düse und Heizelement je Extruder)" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:30 -msgid "" -"Please specify the nozzle offsets of the extruders relative to the first " -"nozzle T0 if you haven't already done so in your " -"firmware. Otherwise leave them at (0,0)." -msgstr "" -"Bitte spezifiziere die Düsenoffsets der Extruder relativ zur ersten Düse " -"T0 falls du das nicht bereits in der Firmware deines Druckers " -"getan hast. Andernfalls belasse sie bei (0,0)." +msgid "Please specify the nozzle offsets of the extruders relative to the first nozzle T0 if you haven't already done so in your firmware. Otherwise leave them at (0,0)." +msgstr "Bitte spezifiziere die Düsenoffsets der Extruder relativ zur ersten Düse T0 falls du das nicht bereits in der Firmware deines Druckers getan hast. Andernfalls belasse sie bei (0,0)." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:36 #: src/octoprint/templates/tabs/temperature.jinja2:13 @@ -5169,16 +4782,8 @@ msgid "Offset" msgstr "Offset" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:55 -msgid "" -"This information is used for the graph and controls available in the " -"\"Temperature\" tab, the GCODE viewer and when slicing from within " -"OctoPrint. It does NOT influence already sliced files that you upload to " -"OctoPrint!" -msgstr "" -"Diese Informationen werden für den Graph und die Steuerung im " -"\"Temperatur\" Tab, im GCODE Viewer und beim Slicen aus OctoPrint heraus " -"verwendet. Sie beeinflussen NICHT die bereits geslicten Dateien, die du " -"in OctoPrint hochlädst." +msgid "This information is used for the graph and controls available in the \"Temperature\" tab, the GCODE viewer and when slicing from within OctoPrint. It does NOT influence already sliced files that you upload to OctoPrint!" +msgstr "Diese Informationen werden für den Graph und die Steuerung im \"Temperatur\" Tab, im GCODE Viewer und beim Slicen aus OctoPrint heraus verwendet. Sie beeinflussen NICHT die bereits geslicten Dateien, die du in OctoPrint hochlädst." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2:6 msgid "Name must be set" @@ -5214,38 +4819,20 @@ msgid "Command to shut down the system OctoPrint is running on" msgstr "Befehl zum Herunterfahren des Systems, auf dem OctoPrint läuft" #: src/octoprint/templates/snippets/settings/server/serverOnlineCheck.jinja2:6 -msgid "" -"\n" -" Define a check interval, a host and a port to check " -"against. If you don't know what to set here, the\n" -" default values (using Google's DNS server) should work. " -"If you have concerns about using\n" -" that, define the IP and port of a different online server" -" that you trust and that has a high\n" +msgid "\n" +" Define a check interval, a host and a port to check against. If you don't know what to set here, the\n" +" default values (using Google's DNS server) should work. If you have concerns about using\n" +" that, define the IP and port of a different online server that you trust and that has a high\n" " availability.\n" " " -msgstr "" -"Definiere ein Prüfungsintervall, einen Host und einen Port gegen die " -"geprüft werden soll. Falls du nicht weißt, was du hier einstellen sollte:" -" Die Defaultwerte (Googles DNS Server) sollten funktionieren. Falls du " -"Bedenken hast, diese zu nutzen, definiere IP und Port eines anderen " -"Servers im Netz dem du vertraust und der eine hohe Verfügbarkeit hat." +msgstr "Definiere ein Prüfungsintervall, einen Host und einen Port gegen die geprüft werden soll. Falls du nicht weißt, was du hier einstellen sollte: Die Defaultwerte (Googles DNS Server) sollten funktionieren. Falls du Bedenken hast, diese zu nutzen, definiere IP und Port eines anderen Servers im Netz dem du vertraust und der eine hohe Verfügbarkeit hat." #: src/octoprint/templates/snippets/settings/server/serverOnlineCheckDescription.jinja2:1 -msgid "" -"\n" -" If the connectivity check is enabled, OctoPrint will regularly check " -"if it's connected to the internet.\n" -" This is useful to prevent resource intensive " -"operations (such as checking for updates) if it's already\n" +msgid "\n" +" If the connectivity check is enabled, OctoPrint will regularly check if it's connected to the internet.\n" +" This is useful to prevent resource intensive operations (such as checking for updates) if it's already\n" " clear that they won't succeed anyhow.\n" -msgstr "" -"Wenn die Onlineprüfung aktiviert ist, wird OctoPrint in regelmäßigen " -"Abständen prüfen, ob es mit dem Internet verbunden ist. Das ist " -"nützlich um resourcenintensive Operationen zu verhindern" -" (wie z.b. der Prüfung, ob Updates vorliegen), wenn es bereits klar ist, " -"dass diese Operationen mangels Verbindung nicht durchgeführt werden " -"können.\n" +msgstr "Wenn die Onlineprüfung aktiviert ist, wird OctoPrint in regelmäßigen Abständen prüfen, ob es mit dem Internet verbunden ist. Das ist nützlich um resourcenintensive Operationen zu verhindern (wie z.b. der Prüfung, ob Updates vorliegen), wenn es bereits klar ist, dass diese Operationen mangels Verbindung nicht durchgeführt werden können.\n" #: src/octoprint/templates/snippets/settings/server/serverOnlineCheckEnabled.jinja2:4 msgid "Enable regular connectivity check" @@ -5280,19 +4867,11 @@ msgid "Test host & port" msgstr "Host & Port testen" #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistDescription.jinja2:1 -msgid "" -"\n" -" To protect against known severe issues with certain versions " -"of third party plugins, OctoPrint supports\n" -" the use of a centralized plugin version blacklist to automatically " -"disable such plugins before they can interfere\n" +msgid "\n" +" To protect against known severe issues with certain versions of third party plugins, OctoPrint supports\n" +" the use of a centralized plugin version blacklist to automatically disable such plugins before they can interfere\n" " with normal operation.\n" -msgstr "" -"Um vor bekannte Probleme mit bestimmten Versionen von " -"Thirdpartyplugins zu schützen unterstützt OctoPrint die " -"Verwendung einer zentralen Pluginblackliste, über die automatisch solche " -"Plugins deaktiviert werden können, bevor sie mit dem normalen Betrieb " -"interferieren können.\n" +msgstr "Um vor bekannte Probleme mit bestimmten Versionen von Thirdpartyplugins zu schützen unterstützt OctoPrint die Verwendung einer zentralen Pluginblackliste, über die automatisch solche Plugins deaktiviert werden können, bevor sie mit dem normalen Betrieb interferieren können.\n" #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistEnabled.jinja2:4 msgid "Enable plugin blacklist processing on startup" @@ -5303,12 +4882,8 @@ msgid "Any changes take effect only on the next server start." msgstr "Alle Änderungen treten erst mit dem nächsten Serverstart in Kraft." #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistTtl.jinja2:1 -msgid "" -"How long to cache the blacklist, in minutes. You should normally not have" -" to change this." -msgstr "" -"Wie lange die Pluginblackliste gecached werden sollen, in Minuten. Du " -"solltest hier normalerweise nichts ändern müssen." +msgid "How long to cache the blacklist, in minutes. You should normally not have to change this." +msgstr "Wie lange die Pluginblackliste gecached werden sollen, in Minuten. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistTtl.jinja2:2 msgid "Blacklist cache TTL" @@ -5316,9 +4891,7 @@ msgstr "Blacklistencache TTL" #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistUrl.jinja2:1 msgid "Plugin blacklist URL. You should normally not have to change this." -msgstr "" -"URL der Pluginblackliste. Du solltest hier normalerweise nichts ändern " -"müssen." +msgstr "URL der Pluginblackliste. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistUrl.jinja2:2 msgid "Blacklist URL" @@ -5378,9 +4951,7 @@ msgstr "Snapshot Timeout" #: src/octoprint/templates/snippets/settings/webcam/webcamSnapshotUrl.jinja2:1 msgid "URL to use for retrieving webcam snapshot images for timelapse creation" -msgstr "" -"URL, die genutzt werden soll, um Einzelaufnahmen für die " -"Zeitraffererstellung abzurufen" +msgstr "URL, die genutzt werden soll, um Einzelaufnahmen für die Zeitraffererstellung abzurufen" #: src/octoprint/templates/snippets/settings/webcam/webcamSnapshotUrl.jinja2:2 msgid "Snapshot URL" @@ -5399,18 +4970,12 @@ msgid "Stream aspect ratio" msgstr "Seitenverhältnis des Streams" #: src/octoprint/templates/snippets/settings/webcam/webcamStreamRatio.jinja2:5 -msgid "" -"If the stream has a different aspect ratio than configured here it will " -"be letterboxed." -msgstr "" -"Falls der Stream ein anderes Seitenverhältnis hat als hier eingestellt " -"ist, wird er geletterboxed." +msgid "If the stream has a different aspect ratio than configured here it will be letterboxed." +msgstr "Falls der Stream ein anderes Seitenverhältnis hat als hier eingestellt ist, wird er geletterboxed." #: src/octoprint/templates/snippets/settings/webcam/webcamStreamTimeout.jinja2:1 msgid "Timeout after which to unload the stream if the control tab is not visible" -msgstr "" -"Timeout nach dem der Webcamstream deaktiviert werden soll wenn das " -"\"Steuerung\"-Tab nicht sichtbar ist" +msgstr "Timeout nach dem der Webcamstream deaktiviert werden soll wenn das \"Steuerung\"-Tab nicht sichtbar ist" #: src/octoprint/templates/snippets/settings/webcam/webcamStreamTimeout.jinja2:2 msgid "Stream timeout" @@ -5418,21 +4983,15 @@ msgstr "Streamtimeout" #: src/octoprint/templates/snippets/settings/webcam/webcamStreamUrl.jinja2:1 msgid "URL to embed into the UI for live viewing of the webcam stream" -msgstr "" -"URL, die in die Oberfläche zum Betrachten des Webcamstreams eingebunden " -"werden soll" +msgstr "URL, die in die Oberfläche zum Betrachten des Webcamstreams eingebunden werden soll" #: src/octoprint/templates/snippets/settings/webcam/webcamStreamUrl.jinja2:2 msgid "Stream URL" msgstr "Stream-URL" #: src/octoprint/templates/snippets/settings/webcam/webcamStreamUrl.jinja2:8 -msgid "" -"Needs to be reachable from the browser displaying the OctoPrint UI, used " -"to embed the webcam stream into the page." -msgstr "" -"Muss vom Browser erreichbar sein, in dem die OctoPrint UI angezeigt wird," -" wird genutzt, um den Webcam Stream in die Seite einzubetten." +msgid "Needs to be reachable from the browser displaying the OctoPrint UI, used to embed the webcam stream into the page." +msgstr "Muss vom Browser erreichbar sein, in dem die OctoPrint UI angezeigt wird, wird genutzt, um den Webcam Stream in die Seite einzubetten." #: src/octoprint/templates/tabs/control.jinja2:5 msgid "Webcam stream loading..." @@ -5443,26 +5002,12 @@ msgid "Webcam stream not loaded" msgstr "Webcamstream nicht geladen" #: src/octoprint/templates/tabs/control.jinja2:9 -msgid "" -"It might not be configured correctly or require authentication. To have " -"this fixed, get in touch with an administrator of this OctoPrint " -"instance." -msgstr "" -"Es liegt evtl. eine Fehlkonfiguration vor oder es werden Logindaten " -"benötigt. Um dies zu beheben wende dich bitte an einen Administrator " -"dieser OctoPrint Instanz." +msgid "It might not be configured correctly or require authentication. To have this fixed, get in touch with an administrator of this OctoPrint instance." +msgstr "Es liegt evtl. eine Fehlkonfiguration vor oder es werden Logindaten benötigt. Um dies zu beheben wende dich bitte an einen Administrator dieser OctoPrint Instanz." #: src/octoprint/templates/tabs/control.jinja2:10 -msgid "" -"It might not be configured correctly or require authentication. You can " -"change the URL of the stream under \"Settings\" > \"Webcam & Timelapse\" " -"> \"Stream URL\". If you don't have a webcam just set the URL to an empty" -" value." -msgstr "" -"Es liegt evtl. eine Fehlkonfiguration vor oder es werden Logindaten " -"benötigt. Du kannst die URL des Streams unter \"Einstellungen\" > " -"\"Webcam & Zeitraffer\" > \"Stream-URL\" ändern. Falls du keine Webcam " -"hast lass die URL leer." +msgid "It might not be configured correctly or require authentication. You can change the URL of the stream under \"Settings\" > \"Webcam & Timelapse\" > \"Stream URL\". If you don't have a webcam just set the URL to an empty value." +msgstr "Es liegt evtl. eine Fehlkonfiguration vor oder es werden Logindaten benötigt. Du kannst die URL des Streams unter \"Einstellungen\" > \"Webcam & Zeitraffer\" > \"Stream-URL\" ändern. Falls du keine Webcam hast lass die URL leer." #: src/octoprint/templates/tabs/control.jinja2:11 msgid "Currently configured stream URL" @@ -5505,9 +5050,7 @@ msgid "Stepsize" msgstr "Schrittgröße" #: src/octoprint/templates/tabs/control.jinja2:38 -msgid "" -"Hint: If you move your mouse over the picture, you enter keyboard control" -" mode." +msgid "Hint: If you move your mouse over the picture, you enter keyboard control mode." msgstr "Hinweis: Bewegen der Maus über das Bild aktiviert die Tastatursteuerung." #: src/octoprint/templates/tabs/control.jinja2:84 @@ -5624,56 +5167,35 @@ msgid "Reset options" msgstr "Optionen zurücksetzen" #: src/octoprint/templates/tabs/gcodeviewer.jinja2:104 -msgid "" -"\n" -" Note that the time and usage values in this tab are " -"estimated by the GCODE viewer in your\n" -" browser and might differ from the values " -"estimated by the server that are displayed in the\n" -" \"State\" and \"Files\" panels in the sidebar due to slightly" -" different implementations. Also note that these\n" -" estimated values may be inaccurate since " -"they can also take information present in the\n" +msgid "\n" +" Note that the time and usage values in this tab are estimated by the GCODE viewer in your\n" +" browser and might differ from the values estimated by the server that are displayed in the\n" +" \"State\" and \"Files\" panels in the sidebar due to slightly different implementations. Also note that these\n" +" estimated values may be inaccurate since they can also take information present in the\n" " GCODE file into account.\n" " " -msgstr "" -"\n" -" Bitte beachte, dass die Zeit- und Verbrauchsangaben in diesem" -" Tab vom GCODE Viewer in Deinem Browser\n" -" geschätzt wurden und sich von den vom Server" -" geschätzten Werten\n" -" in den \"Status\"- und \"Dateien\"-Panels in der Seitenleiste" -" aufgrund von leichten Unterschieden in der\n" -" Implementierung unterscheiden können. Beachte zudem, dass " -"diese geschätzten Werte\n" -" ungenau sein können, da sie nur auf Informationen aus den " -"GCODE Dateien basieren.\n" +msgstr "\n" +" Bitte beachte, dass die Zeit- und Verbrauchsangaben in diesem Tab vom GCODE Viewer in Deinem Browser\n" +" geschätzt wurden und sich von den vom Server geschätzten Werten\n" +" in den \"Status\"- und \"Dateien\"-Panels in der Seitenleiste aufgrund von leichten Unterschieden in der\n" +" Implementierung unterscheiden können. Beachte zudem, dass diese geschätzten Werte\n" +" ungenau sein können, da sie nur auf Informationen aus den GCODE Dateien basieren.\n" " " #: src/octoprint/templates/tabs/gcodeviewer.jinja2:115 -msgid "" -"

    \n" -" You've selected for printing which has a size of\n" -" . Depending on your machine " -"this\n" -" might be too large for rendering and cause your browser to become" -" unresponsive or crash.\n" +msgid "

    \n" +" You've selected for printing which has a size of\n" +" . Depending on your machine this\n" +" might be too large for rendering and cause your browser to become unresponsive or crash.\n" "

    \n" "\n" "

    \n" " Are you sure you want to visualize this file nevertheless?\n" "

    " -msgstr "" -"

    \n" -" Du hast " -"zum Drucken ausgewählt das\n" -" groß ist. Abhängig von Deinem" -"\n" -" System könnte das zu groß zum Rendern sein und Deinen Browser zum" -" Absturz bringen.\n" +msgstr "

    \n" +" Du hast zum Drucken ausgewählt das\n" +" groß ist. Abhängig von Deinem\n" +" System könnte das zu groß zum Rendern sein und Deinen Browser zum Absturz bringen.\n" "

    \n" "\n" "

    \n" @@ -5735,33 +5257,16 @@ msgid "Copy all" msgstr "Alles kopieren" #: src/octoprint/templates/tabs/terminal.jinja2:19 -msgid "" -"For performance reasons only a limited amount of terminal functionality " -"is enabled right now." -msgstr "" -"Aus Gründen der Performance ist nur ein begrenzter Teil der " -"Terminalfunktionalität zur Zeit verfügbar." +msgid "For performance reasons only a limited amount of terminal functionality is enabled right now." +msgstr "Aus Gründen der Performance ist nur ein begrenzter Teil der Terminalfunktionalität zur Zeit verfügbar." #: src/octoprint/templates/tabs/terminal.jinja2:37 msgid "Fake Acknowledgement" msgstr "Bestätigung faken" #: src/octoprint/templates/tabs/terminal.jinja2:38 -msgid "" -"If acknowledgements (\"ok\"s) sent by the firmware get lost due to issues" -" with the serial communication to your printer, OctoPrint's communication" -" with it can become stuck. If that happens, this can help. Please be " -"advised that such occurrences hint at general communication issues with " -"your printer which will probably negatively influence your printing " -"results and which you should therefore try to resolve!" -msgstr "" -"Falls Bestätigungen (\"ok\"s) Deiner Firmware aufgrund von " -"Kommunikationsproblemen mit Deinem Drucker verloren gehen, kann die " -"Kommunikation zwischen OctoPrint und Deinem Drucker zum Stillstand " -"kommen. Falls das passiert, kann das hier helfen. Bitte bedenke, dass " -"solche Vorfälle ein Hinweis auf ein generelles Kommunikationsproblem mit " -"Deinem Drucker hindeuten, das wahrscheinlich Deine Druckergebnisse " -"negativ beeinflusst und das du daher versuchen solltest, zu beseitigen!" +msgid "If acknowledgements (\"ok\"s) sent by the firmware get lost due to issues with the serial communication to your printer, OctoPrint's communication with it can become stuck. If that happens, this can help. Please be advised that such occurrences hint at general communication issues with your printer which will probably negatively influence your printing results and which you should therefore try to resolve!" +msgstr "Falls Bestätigungen (\"ok\"s) Deiner Firmware aufgrund von Kommunikationsproblemen mit Deinem Drucker verloren gehen, kann die Kommunikation zwischen OctoPrint und Deinem Drucker zum Stillstand kommen. Falls das passiert, kann das hier helfen. Bitte bedenke, dass solche Vorfälle ein Hinweis auf ein generelles Kommunikationsproblem mit Deinem Drucker hindeuten, das wahrscheinlich Deine Druckergebnisse negativ beeinflusst und das du daher versuchen solltest, zu beseitigen!" #: src/octoprint/templates/tabs/terminal.jinja2:41 msgid "Force fancy functionality" @@ -5772,24 +5277,12 @@ msgid "Force terminal output during printing" msgstr "Terminalausgabe beim Druck erzwingen" #: src/octoprint/templates/tabs/terminal.jinja2:43 -msgid "" -"Some functionality of the terminal will be disabled if OctoPrint detects " -"that your browser is too slow for that. You may force it back on here, " -"but be aware that this might make your browser unresponsive." -msgstr "" -"Einige Funktionen des Terminals werden deaktiviert, wenn OctoPrint " -"erkennt, dass Dein Browser zu langsam dafür ist. Du kannst diese " -"Funktionen hier wieder zwangsweise aktivieren, aber bitte bedenke, dass " -"das zur Folge haben könnte, dass dein Browser nicht mehr oder nur sehr " -"langsam reagiert." +msgid "Some functionality of the terminal will be disabled if OctoPrint detects that your browser is too slow for that. You may force it back on here, but be aware that this might make your browser unresponsive." +msgstr "Einige Funktionen des Terminals werden deaktiviert, wenn OctoPrint erkennt, dass Dein Browser zu langsam dafür ist. Du kannst diese Funktionen hier wieder zwangsweise aktivieren, aber bitte bedenke, dass das zur Folge haben könnte, dass dein Browser nicht mehr oder nur sehr langsam reagiert." #: src/octoprint/templates/tabs/timelapse.jinja2:3 -msgid "" -"Take note that timelapse configuration is disabled while your printer is " -"printing." -msgstr "" -"Bitte beachte dass die Zeitrafferkonfiguration während des Druckens " -"deaktiviert ist." +msgid "Take note that timelapse configuration is disabled while your printer is printing." +msgstr "Bitte beachte dass die Zeitrafferkonfiguration während des Druckens deaktiviert ist." #: src/octoprint/templates/tabs/timelapse.jinja2:6 msgid "Timelapse Configuration" @@ -5804,26 +5297,16 @@ msgid "Note" msgstr "Bemerkung" #: src/octoprint/templates/tabs/timelapse.jinja2:17 -msgid "" -"Does not work when printing from the printer's SD Card (no way to detect " -"the change in Z reliably). Use \"Timed\" mode for those prints instead." -msgstr "" -"Funktioniert nicht, wenn von der SD-Karte des Druckers gedruckt wird " -"(keine Möglichkeit, Änderungen der Z-Achse zuverlässig zu detektieren). " -"Verwende stattdessen den \"Nach Zeit\"-Modus für solche Drucke." +msgid "Does not work when printing from the printer's SD Card (no way to detect the change in Z reliably). Use \"Timed\" mode for those prints instead." +msgstr "Funktioniert nicht, wenn von der SD-Karte des Druckers gedruckt wird (keine Möglichkeit, Änderungen der Z-Achse zuverlässig zu detektieren). Verwende stattdessen den \"Nach Zeit\"-Modus für solche Drucke." #: src/octoprint/templates/tabs/timelapse.jinja2:22 msgid "Minimum interval" msgstr "Minimales Intervall" #: src/octoprint/templates/tabs/timelapse.jinja2:28 -msgid "" -"OctoPrint will rate limit snapshots to this minimum interval. This it to " -"prevent against performance issues with vase mode/continous z prints." -msgstr "" -"OctoPrint wird Zeitrafferaufnahmen auf dieses minimale Intervall " -"ratelimiten. Dies soll gegen Performanzprobleme bei Vase-" -"Mode/Continuous-Z-Drucken helfen." +msgid "OctoPrint will rate limit snapshots to this minimum interval. This it to prevent against performance issues with vase mode/continous z prints." +msgstr "OctoPrint wird Zeitrafferaufnahmen auf dieses minimale Intervall ratelimiten. Dies soll gegen Performanzprobleme bei Vase-Mode/Continuous-Z-Drucken helfen." #: src/octoprint/templates/tabs/timelapse.jinja2:33 msgid "Snapshot interval" @@ -5842,40 +5325,24 @@ msgid "Timelapse post roll" msgstr "Timelapse-Postroll" #: src/octoprint/templates/tabs/timelapse.jinja2:59 -msgid "" -"OctoPrint will use the final picture to add this many seconds to the end " -"of your rendered timelapse." -msgstr "" -"OctoPrint wird die letzte Aufnahme verwenden um so viele zusätzliche " -"Sekunden zur gerenderten Zeitrafferaufnahme hinzuzufügen." +msgid "OctoPrint will use the final picture to add this many seconds to the end of your rendered timelapse." +msgstr "OctoPrint wird die letzte Aufnahme verwenden um so viele zusätzliche Sekunden zur gerenderten Zeitrafferaufnahme hinzuzufügen." #: src/octoprint/templates/tabs/timelapse.jinja2:64 msgid "Retraction Z-Hop" msgstr "Retraction Z-Hop" #: src/octoprint/templates/tabs/timelapse.jinja2:70 -msgid "" -"Enter the retraction z-hop used in the firmware or the gcode file to " -"trigger snapshots for the timelapse only if a real layer change happens. " -"For this to work properly your retraction z-hop has to be different from " -"your layerheight!" -msgstr "" -"Gib den Retraction Z-Hop Wert aus deiner Firmware oder den GCODE Dateien " -"hier ein, um Snapshots für Zeitraffer nur bei echten Schichtwechseln " -"auszulösen. Damit das korrekt funktionieren kann muss dein Retraction " -"Z-Hop Wert anders als deine Schichthöhe sein!" +msgid "Enter the retraction z-hop used in the firmware or the gcode file to trigger snapshots for the timelapse only if a real layer change happens. For this to work properly your retraction z-hop has to be different from your layerheight!" +msgstr "Gib den Retraction Z-Hop Wert aus deiner Firmware oder den GCODE Dateien hier ein, um Snapshots für Zeitraffer nur bei echten Schichtwechseln auszulösen. Damit das korrekt funktionieren kann muss dein Retraction Z-Hop Wert anders als deine Schichthöhe sein!" #: src/octoprint/templates/tabs/timelapse.jinja2:77 msgid "Save as default" msgstr "Als Standard speichern" #: src/octoprint/templates/tabs/timelapse.jinja2:78 -msgid "" -"Check this to make your selected timelapse mode and options persist " -"across restarts." -msgstr "" -"Auswählen um deinen gewählten Zeitraffermodus und -parameter über " -"Neustarts hinweg zu persistieren." +msgid "Check this to make your selected timelapse mode and options persist across restarts." +msgstr "Auswählen um deinen gewählten Zeitraffermodus und -parameter über Neustarts hinweg zu persistieren." #: src/octoprint/templates/tabs/timelapse.jinja2:85 msgid "You have unsaved changes. Don't forget to save them." @@ -5897,26 +5364,6 @@ msgstr "Abgeschlossene Zeitraffer" msgid "Sort by date" msgstr "Nach Datum sortieren" -#: src/octoprint/templates/tabs/timelapse.jinja2:109 -#: src/octoprint/templates/tabs/timelapse.jinja2:154 -msgid "Select all on this page" -msgstr "Alles auf dieser Seite auswählen" - -#: src/octoprint/templates/tabs/timelapse.jinja2:110 -#: src/octoprint/templates/tabs/timelapse.jinja2:155 -msgid "Select all" -msgstr "Alles auswählen" - -#: src/octoprint/templates/tabs/timelapse.jinja2:112 -#: src/octoprint/templates/tabs/timelapse.jinja2:157 -msgid "Clear selection" -msgstr "Auswahl aufheben" - -#: src/octoprint/templates/tabs/timelapse.jinja2:115 -#: src/octoprint/templates/tabs/timelapse.jinja2:160 -msgid "Delete selected" -msgstr "Ausgewählte Elemente löschen" - #: src/octoprint/templates/tabs/timelapse.jinja2:148 msgid "Unrendered Timelapses" msgstr "Ungerenderte Zeitrafferaufnahmen" @@ -6453,3 +5900,20 @@ msgstr "Zeitrafferaufnahme rendern" #~ "betroffener Plugins eine gefixte Version " #~ "zu releasen." +#~ msgid "Layer count" +#~ msgstr "Schichtanzahl" + +#~ msgid "printed" +#~ msgstr "gedruckt" + +#~ msgid "visited" +#~ msgstr "besucht" + +#~ 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" diff --git a/src/octoprint/users.py b/src/octoprint/users.py index 30b7f1f46..657dde556 100644 --- a/src/octoprint/users.py +++ b/src/octoprint/users.py @@ -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(): @@ -518,6 +542,11 @@ class SessionUser(wrapt.ObjectProxy): self._self_session = "".join(random.choice(chars) for _ in range(10)) self._self_created = time.time() + def asDict(self): + result = self.__wrapped__.asDict() + result.update(dict(session=self.session)) + return result + @property def session(self): return self._self_session diff --git a/src/octoprint/util/__init__.py b/src/octoprint/util/__init__.py index 29f6a1bbb..6f74fcaf9 100644 --- a/src/octoprint/util/__init__.py +++ b/src/octoprint/util/__init__.py @@ -339,15 +339,15 @@ def find_collision_free_name(filename, extension, existing_filenames, max_power= u'test_123.gco' >>> find_collision_free_name("test1234", "g o", []) u'test1234.g_o' - >>> find_collision_free_name("test12345", "gco", ["test12~1.gco"]) + >>> find_collision_free_name("test12345", "gco", ["/test12~1.gco"]) u'test12~2.gco' - >>> many_files = ["test12~{}.gco".format(x) for x in range(10)[1:]] + >>> many_files = ["/test12~{}.gco".format(x) for x in range(10)[1:]] >>> find_collision_free_name("test12345", "gco", many_files) u'test1~10.gco' - >>> many_more_files = many_files + ["test1~{}.gco".format(x) for x in range(10, 99)] + >>> many_more_files = many_files + ["/test1~{}.gco".format(x) for x in range(10, 99)] >>> find_collision_free_name("test12345", "gco", many_more_files) u'test1~99.gco' - >>> many_more_files_plus_one = many_more_files + ["test1~99.gco"] + >>> many_more_files_plus_one = many_more_files + ["/test1~99.gco"] >>> find_collision_free_name("test12345", "gco", many_more_files_plus_one) Traceback (most recent call last): ... @@ -357,13 +357,15 @@ def find_collision_free_name(filename, extension, existing_filenames, max_power= """ - if not isinstance(filename, unicode): - filename = unicode(filename) - if not isinstance(extension, unicode): - extension = unicode(extension) + filename = to_unicode(filename) + extension = to_unicode(extension) + + if filename.startswith(u"/"): + filename = filename[1:] + existing_filenames = [to_unicode(x[1:] if x.startswith("/") else x) for x in existing_filenames] def make_valid(text): - return re.sub(r"\s+", "_", text.translate({ord(i):None for i in ".\"/\\[]:;=,"})).lower() + return re.sub(u"\s+", u"_", text.translate({ord(i):None for i in ".\"/\\[]:;=,"})).lower() filename = make_valid(filename) extension = make_valid(extension) @@ -1268,8 +1270,9 @@ class ResettableTimer(threading.Thread): class CountedEvent(object): - def __init__(self, value=0, maximum=None, **kwargs): + def __init__(self, value=0, minimum=0, maximum=None, **kwargs): self._counter = 0 + self._min = minimum self._max = kwargs.get("max", maximum) self._mutex = threading.RLock() self._event = threading.Event() @@ -1296,11 +1299,14 @@ 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) def blocked(self): - return self.counter == 0 + return self.counter <= 0 def acquire(self, blocking=1): return self._mutex.acquire(blocking=blocking) @@ -1311,7 +1317,8 @@ class CountedEvent(object): def _internal_set(self, value): self._counter = value if self._counter <= 0: - self._counter = 0 + if self._min is not None and self._counter < self._min: + self._counter = self._min self._event.clear() else: if self._max is not None and self._counter > self._max: diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 6cc5a0fdf..99cb3c073 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -76,6 +76,9 @@ regexes_parameters = dict( regex_minMaxError = re.compile("Error:[0-9]\n") """Regex matching first line of min/max errors from the firmware.""" +regex_marlinKillError = re.compile("Heating failed|Thermal Runaway|MAXTEMP triggered|MINTEMP triggered|Invalid extruder number|Watchdog barked|KILL caused") +"""Regex matching first line of kill causing errors from Marlin.""" + regex_sdPrintingByte = re.compile("(?P[0-9]*)/(?P[0-9]*)") """Regex matching SD printing status reports. @@ -123,7 +126,7 @@ Groups will be as follows: * ``target``: new target temperature (float) """ -regex_position = re.compile("X:(?P{float})\s*Y:(?P{float})\s*Z:(?P{float})\s*((E:(?P{float}))|(?P(E\d+:{float}\s*)+))".format(float=regex_float_pattern)) +regex_position = re.compile("X:\s*(?P{float})\s*Y:\s*(?P{float})\s*Z:\s*(?P{float})\s*((E:\s*(?P{float}))|(?P(E\d+:\s*{float}\s*)+))".format(float=regex_float_pattern)) """Regex for matching position reporting. Groups will be as follows: @@ -135,7 +138,7 @@ Groups will be as follows: * ``es``: multiple E coordinates if present, to be parsed further with regex_e_positions """ -regex_e_positions = re.compile("E(?P\d+):(?P{float})".format(float=regex_float_pattern)) +regex_e_positions = re.compile("E(?P\d+):\s*(?P{float})".format(float=regex_float_pattern)) """Regex for matching multiple E coordinates in a position report. Groups will be as follows: @@ -351,6 +354,7 @@ class MachineCom(object): CAPABILITY_AUTOREPORT_TEMP = "AUTOREPORT_TEMP" CAPABILITY_AUTOREPORT_SD_STATUS = "AUTOREPORT_SD_STATUS" CAPABILITY_BUSY_PROTOCOL = "BUSY_PROTOCOL" + CAPABILITY_EMERGENCY_PARSER = "EMERGENCY_PARSER" CAPABILITY_SUPPORT_ENABLED = "enabled" CAPABILITY_SUPPORT_DETECTED = "detected" @@ -438,7 +442,8 @@ class MachineCom(object): self._capability_support = { self.CAPABILITY_AUTOREPORT_TEMP: settings().getBoolean(["serial", "capabilities", "autoreport_temp"]), self.CAPABILITY_AUTOREPORT_SD_STATUS: settings().getBoolean(["serial", "capabilities", "autoreport_sdstatus"]), - self.CAPABILITY_BUSY_PROTOCOL: settings().getBoolean(["serial", "capabilities", "busy_protocol"]) + self.CAPABILITY_BUSY_PROTOCOL: settings().getBoolean(["serial", "capabilities", "busy_protocol"]), + self.CAPABILITY_EMERGENCY_PARSER: settings().getBoolean(["serial", "capabilities", "emergency_parser"]) } self._lastLines = deque([], 50) @@ -454,6 +459,7 @@ class MachineCom(object): self._temperature_autoreporting = False self._sdstatus_autoreporting = False self._busy_protocol_detected = False + self._busy_protocol_support = False self._trigger_ok_after_resend = settings().get(["serial", "supportResendsWithoutOk"]) self._resend_ok_timer = None @@ -476,7 +482,7 @@ class MachineCom(object): self._long_running_commands = settings().get(["serial", "longRunningCommands"]) self._checksum_requiring_commands = settings().get(["serial", "checksumRequiringCommands"]) - self._clear_to_send = CountedEvent(max=10, name="comm.clear_to_send") + self._clear_to_send = CountedEvent(name="comm.clear_to_send", minimum=None) self._send_queue = SendQueue() self._temperature_timer = None self._sd_status_timer = None @@ -540,6 +546,7 @@ class MachineCom(object): self._log_position_on_pause = settings().getBoolean(["serial", "logPositionOnPause"]) self._log_position_on_cancel = settings().getBoolean(["serial", "logPositionOnCancel"]) + self._abort_heatup_on_cancel = settings().getBoolean(["serial", "abortHeatupOnCancel"]) # print job self._currentFile = None @@ -1018,11 +1025,6 @@ class MachineCom(object): self._callback.on_comm_print_job_started() if self.isSdFileSelected(): - interval = self._timeout_intervals.get("sdStatus", 1.0) - if interval <= 0: - interval = 1.0 - self._sd_status_timer = RepeatedTimer(interval, self._poll_sd_status, run_first=True) - if not external_sd: # make sure to ignore the "file selected" later on, otherwise we'll reset our progress data self._ignore_select = True @@ -1038,15 +1040,9 @@ class MachineCom(object): else: self._currentFile.pos = 0 - def start_polling(): - self._sd_status_timer.start() - self.sendCommand("M24", - on_sent=start_polling, part_of_job=True, tags=tags | {"trigger:comm.start_print",}) - else: - self._sd_status_timer.start() else: if pos is not None and isinstance(pos, int) and pos > 0: self._currentFile.seek(pos) @@ -1161,6 +1157,7 @@ class MachineCom(object): elif check_timer: return + self._currentFile.done = True self._recordFilePosition() self._callback.on_comm_print_job_cancelled() @@ -1206,16 +1203,18 @@ class MachineCom(object): with self._jobLock: self._changeState(self.STATE_CANCELLING) + if self._abort_heatup_on_cancel: + # abort any ongoing heatups immediately to get back control over the printer + self.sendCommand("M108", + part_of_job=False, + tags=tags | {"trigger:comm.cancel", "trigger:abort_heatup"}, + force=True) + if self.isSdFileSelected(): if not external_sd: self.sendCommand("M25", part_of_job=True, tags=tags | {"trigger:comm.cancel",}) # pause print self.sendCommand("M27", part_of_job=True, tags=tags | {"trigger:comm.cancel",}) # get current byte position in file self.sendCommand("M26 S0", part_of_job=True, tags=tags | {"trigger:comm.cancel",}) # reset position in file to byte 0 - if self._sd_status_timer is not None: - try: - self._sd_status_timer.cancel() - except: - pass if self._log_position_on_cancel and not disable_log_position: self.sendCommand("M400", @@ -1500,8 +1499,8 @@ class MachineCom(object): self._changeState(self.STATE_CONNECTING) #Start monitoring the serial port. - self._timeout = get_new_timeout("communicationBusy" if self._busy_protocol_detected else "communication", self._timeout_intervals) - self._ok_timeout = get_new_timeout("communicationBusy" if self._busy_protocol_detected else "communication", self._timeout_intervals) + self._timeout = get_new_timeout("communicationBusy" if self._busy_protocol_support else "communication", self._timeout_intervals) + self._ok_timeout = get_new_timeout("communicationBusy" if self._busy_protocol_support else "communication", self._timeout_intervals) startSeen = False supportRepetierTargetTemp = settings().getBoolean(["serial", "repetierTargetTemp"]) @@ -1521,7 +1520,7 @@ class MachineCom(object): if line.strip() is not "": self._consecutive_timeouts = 0 - self._timeout = get_new_timeout("communicationBusy" if self._busy_protocol_detected else "communication", self._timeout_intervals) + self._timeout = get_new_timeout("communicationBusy" if self._busy_protocol_support else "communication", self._timeout_intervals) if self._dwelling_until and now > self._dwelling_until: self._dwelling_until = False @@ -1535,23 +1534,27 @@ class MachineCom(object): ##~~ busy protocol handling if line.startswith("echo:busy:") or line.startswith("busy:"): # reset the ok timeout, the regular comm timeout has already been reset - self._ok_timeout = get_new_timeout("communicationBusy" if self._busy_protocol_detected else "communication", self._timeout_intervals) + self._ok_timeout = get_new_timeout("communicationBusy" if self._busy_protocol_support else "communication", self._timeout_intervals) # make sure the printer sends busy in a small enough interval to match our timeout if not self._busy_protocol_detected and self._capability_support.get(self.CAPABILITY_BUSY_PROTOCOL, False): - self._log("Printer seems to support the busy protocol, adjusting timeouts and setting busy " - "interval accordingly") - self._busy_protocol_detected = True + to_log = "Printer seems to support the busy protocol, will adjust timeouts and set busy " \ + "interval accordingly" + self._log(to_log) + self._logger.info(to_log) + self._busy_protocol_detected = True new_communication_timeout = self._timeout_intervals.get("communicationBusy", 2) - self._serial.timeout = new_communication_timeout busy_interval = max(int(new_communication_timeout) - 1, 1) - self._logger.info("Printer seems to support the busy protocol, telling it to set the busy " - "interval to our \"communicationBusy\" timeout - 1s = {}s".format(busy_interval)) + def busyIntervalSet(): + self._logger.info("Telling the printer to set the busy interval to our " + "\"communicationBusy\" timeout - 1s = {}s".format(busy_interval)) + self._busy_protocol_support = True + self._serial.timeout = new_communication_timeout - self._set_busy_protocol_interval(interval=busy_interval) + self._set_busy_protocol_interval(interval=busy_interval, callback=busyIntervalSet) if self._state not in (self.STATE_CONNECTING, self.STATE_DETECT_BAUDRATE): continue @@ -1665,7 +1668,7 @@ class MachineCom(object): # Both variants can only happen if we are not currently blocked by a dwelling command self._handle_timeout() - self._ok_timeout = get_new_timeout("communicationBusy" if self._busy_protocol_detected else "communication", self._timeout_intervals) + self._ok_timeout = get_new_timeout("communicationBusy" if self._busy_protocol_support else "communication", self._timeout_intervals) # timeout only considered handled if the printer is printing and it was a comm timeout, not an ok # timeout @@ -1810,6 +1813,11 @@ class MachineCom(object): if not sd_always_available and not self._sdAvailable: self.initSdCard() + elif "teacup" in firmware_name.lower(): + self._logger.info("Detected Teacup firmware, enabling relevant features for issue free communication") + + disable_external_heatup_detection = True # see #2854 + self._firmware_info_received = True self._firmware_info = data self._firmware_name = firmware_name @@ -1835,6 +1843,8 @@ class MachineCom(object): elif capability == self.CAPABILITY_AUTOREPORT_SD_STATUS and enabled: self._logger.info("Firmware states that it supports sd status autoreporting") self._set_autoreport_sdstatus_interval() + elif capability == self.CAPABILITY_EMERGENCY_PARSER and enabled: + self._logger.info("Firmware states that it supports emergency GCODEs M108 and M410 to be sent without waiting for an acknowledgement first") # notify plugins for name, hook in self._firmware_info_hooks["capabilities"].items(): @@ -1893,17 +1903,19 @@ class MachineCom(object): total = int(match.group("total")) if self.isSdPrinting() and current == total == 0: - # apparently not SD printing - newer Marlin reports it like that for some reason + # apparently not SD printing - some Marlin versions report it like that for some reason self.cancelPrint(external_sd=True) elif self.isSdFileSelected(): - if not self.isSdPrinting() and current != total: + if not self.isSdPrinting() and current != total and current > 0: self.startPrint(external_sd=True) self._currentFile.pos = current if self._currentFile.size == 0: self._currentFile.size = total - self._callback.on_comm_progress() + + if not self._currentFile.done: + self._callback.on_comm_progress() elif 'Not SD printing' in line and self.isSdFileSelected() and self.isPrinting() and not self.isFinishing(): # something went wrong, printer is reporting that we actually are not printing right now... @@ -1919,9 +1931,7 @@ class MachineCom(object): size = 0 user = None - expected = False if self._sdFileToSelect: - expected = True name = self._sdFileToSelect user = self._sdFileToSelectUser @@ -1929,12 +1939,6 @@ class MachineCom(object): self._sdFileToSelectUser = None self._currentFile = PrintingSdFileInformation(name, size, user=user) - - if not expected: - # It doesn't look like we expected this, so it might be that someone just started a print - # job from SD via the printer's controller. Let's query the printing status and see if that's - # indeed the case and if so switch states accordingly - self.sendCommand("M27", tags={"trigger:unexpected_file_open"}) elif 'File selected' in line: if self._ignore_select: self._ignore_select = False @@ -1953,12 +1957,6 @@ class MachineCom(object): self._currentFile.done = True self._currentFile.pos = 0 - if self._sd_status_timer is not None: - try: - self._sd_status_timer.cancel() - except: - pass - self.sendCommand("M400", part_of_job=True) self._callback.on_comm_print_job_done() def finalize(): @@ -2062,7 +2060,7 @@ class MachineCom(object): self._resend_ok_timer.cancel() self._resend_ok_timer = None - self._ok_timeout = get_new_timeout("communicationBusy" if self._busy_protocol_detected else "communication", self._timeout_intervals) + self._ok_timeout = get_new_timeout("communicationBusy" if self._busy_protocol_support else "communication", self._timeout_intervals) self._clear_to_send.set() # reset long running commands, persisted current tools and heatup counters on ok @@ -2270,7 +2268,7 @@ class MachineCom(object): command or heating, no poll will be done. """ - if self.isOperational() and not self._sdstatus_autoreporting and not self._connection_closing and self.isSdPrinting() and not self._long_running_command and not self._dwelling_until and not self._heating: + if self.isOperational() and not self._sdstatus_autoreporting and not self._connection_closing and self.isSdFileSelected() and not self._long_running_command and not self._dwelling_until and not self._heating: self.sendCommand("M27", cmd_type="sd_status_poll", tags={"trigger:comm.poll_sd_status"}) def _set_autoreport_temperature_interval(self, interval=None): @@ -2289,19 +2287,24 @@ class MachineCom(object): interval = 1 self.sendCommand("M27 S{}".format(interval), tags={"trigger:comm.set_autoreport_sdstatus_interval"}) - def _set_busy_protocol_interval(self, interval=None): + def _set_busy_protocol_interval(self, interval=None, callback=None): if interval is None: try: interval = max(int(self._timeout_intervals.get("communicationBusy", 3)) - 1, 1) except: interval = 2 - self.sendCommand("M113 S{}".format(interval), tags={"trigger:comm.set_busy_protocol_interval"}) + self.sendCommand("M113 S{}".format(interval), + tags={"trigger:comm.set_busy_protocol_interval"}, + on_sent=callback) def _onConnected(self): self._serial.timeout = settings().getFloat(["serial", "timeout", "communication"]) - self._temperature_timer = RepeatedTimer(self._getTemperatureTimerInterval, self._poll_temperature, run_first=True) + self._temperature_timer = RepeatedTimer(self._get_temperature_timer_interval, self._poll_temperature, run_first=True) self._temperature_timer.start() + self._sd_status_timer = RepeatedTimer(self._get_sd_status_timer_interval, self._poll_sd_status, run_first=True) + self._sd_status_timer.start() + self._changeState(self.STATE_OPERATIONAL) self.resetLineNumbers(tags={"trigger:comm.on_connected",}) @@ -2319,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() @@ -2335,10 +2338,10 @@ class MachineCom(object): self._set_autoreport_temperature_interval() if self._sdstatus_autoreporting: self._set_autoreport_sdstatus_interval() - if self._busy_protocol_detected: + if self._busy_protocol_support: self._set_busy_protocol_interval() - def _getTemperatureTimerInterval(self): + def _get_temperature_timer_interval(self): busy_default = 4.0 target_default = 2.0 @@ -2362,6 +2365,12 @@ class MachineCom(object): return get("temperature", busy_default) + def _get_sd_status_timer_interval(self): + interval = self._timeout_intervals.get("sdStatus", 1.0) + if interval <= 0: + interval = 1.0 + return interval + def _send_from_command_queue(self): # We loop here to make sure that if we do NOT send the first command # from the queue, we'll send the second (if there is one). We do not @@ -2484,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 @@ -2506,17 +2515,31 @@ class MachineCom(object): "cannot open", "open failed", "cannot enter") + _fatal_errors = ("kill() called", + "fatal:") def _handle_errors(self, line): if line is None: return lower_line = line.lower() + if lower_line.startswith("fatal:"): + # hello Repetier firmware -_- + line = "Error:" + line + lower_line = line.lower() + if lower_line.startswith('error:') or line.startswith('!!'): if regex_minMaxError.match(line): # special delivery for firmware that goes "Error:x\n: Extruder switched off. MAXTEMP triggered !\n" line = line.rstrip() + self._readline() lower_line = line.lower() + elif regex_marlinKillError.search(line): + # special delivery for marlin kill errors that are split across multiple error lines + next_line = self._readline().strip() + if next_line.lower().startswith("error:"): + next_line = next_line[6:].strip() + line = line.rstrip() + " - " + next_line + lower_line = line.lower() stripped_error = (line[6:] if lower_line.startswith("error:") else line[2:]).strip() @@ -2553,11 +2576,12 @@ class MachineCom(object): level=logging.WARN) if not self._ignore_errors: - if self._disconnect_on_errors: + if self._disconnect_on_errors or any(map(lambda x: x in lower_line, self._fatal_errors)): self._trigger_error(stripped_error, "firmware") elif self.isPrinting(): self.cancelPrint(firmware_error=stripped_error) self._clear_to_send.set() + else: self._log("WARNING! Received an error from the printer's firmware, ignoring that as configured " "but you might want to investigate what happened here! Error: {}".format(stripped_error)) @@ -2612,7 +2636,14 @@ class MachineCom(object): if self._currentFile is None: return None, None, None - line, pos, lineno = self._currentFile.getNext() + try: + line, pos, lineno = self._currentFile.getNext() + except EnvironmentError: + self._log("There was an error reading from the file that's being printed, cancelling the print. Please " + "consult octoprint.log for details on the error.") + self.cancelPrint() + return None, None, None + if line is None: if isinstance(self._currentFile, StreamingGcodeFileInformation): self._finishFileTransfer() @@ -2986,17 +3017,7 @@ class MachineCom(object): continue # now comes the part where we increase line numbers and send stuff - no turning back now - command_requiring_checksum = gcode is not None and gcode in self._checksum_requiring_commands - command_allowing_checksum = gcode is not None or self._sendChecksumWithUnknownCommands - checksum_enabled = not self._neverSendChecksum and ((self.isPrinting() and self._currentFile and self._currentFile.checksum) or - self._alwaysSendChecksum or - not self._firmware_info_received) - - command_to_send = command.encode("ascii", errors="replace") - if command_requiring_checksum or (command_allowing_checksum and checksum_enabled): - self._do_increment_and_send_with_checksum(command_to_send) - else: - self._do_send_without_checksum(command_to_send) + self._do_send(command, gcode=gcode) # trigger "sent" phase and use up one "ok" if on_sent is not None and callable(on_sent): @@ -3156,6 +3177,24 @@ class MachineCom(object): ##~~ actual sending via serial + def _needs_checksum(self, gcode=None): + command_requiring_checksum = gcode is not None and gcode in self._checksum_requiring_commands + command_allowing_checksum = gcode is not None or self._sendChecksumWithUnknownCommands + return command_requiring_checksum or (command_allowing_checksum and self._checksum_enabled) + + @property + def _checksum_enabled(self): + return not self._neverSendChecksum and ((self.isPrinting() and self._currentFile and self._currentFile.checksum) or + self._alwaysSendChecksum or + not self._firmware_info_received) + + def _do_send(self, command, gcode=None): + command_to_send = command.encode("ascii", errors="replace") + if self._needs_checksum(gcode): + self._do_increment_and_send_with_checksum(command_to_send) + else: + self._do_send_without_checksum(command_to_send) + def _do_increment_and_send_with_checksum(self, cmd): with self._line_mutex: linenumber = self._currentLine @@ -3424,7 +3463,12 @@ class MachineCom(object): self._resendDelta = None def _gcode_M112_queuing(self, cmd, cmd_type=None, gcode=None, subcode=None, *args, **kwargs): - # emergency stop, jump the queue with the M112 + self._logger.info("Force-sending M112 to the printer") + + # emergency stop, jump the queue with the M112, regardless of whether the EMERGENCY_PARSER capability is + # available or not + # + # send the M112 once without and with checksum self._do_send_without_checksum("M112") self._do_increment_and_send_with_checksum("M112") @@ -3452,6 +3496,32 @@ class MachineCom(object): # I hope it got it the first time because as far as I can tell, there is no way to know return None, + def _gcode_M108_queuing(self, cmd, gcode=None, *args, **kwargs): + # only jump the queue with M108 if the EMERGENCY_PARSER capability is available + if not self._capability_support.get(self.CAPABILITY_EMERGENCY_PARSER, False) or not self._firmware_capabilities.get(self.CAPABILITY_EMERGENCY_PARSER, False): + return + + self._logger.info("Force-sending M108 to the printer") + self._do_send(cmd, gcode=gcode) + + # use up an ok since we will get one back for this command and don't want to get out of sync + self._clear_to_send.clear() + + return None, + + def _gcode_M410_queuing(self, cmd, gcode=None, *args, **kwargs): + # only jump the queue with M410 if the EMERGENCY_PARSER capability is available + if not self._capability_support.get(self.CAPABILITY_EMERGENCY_PARSER, False) or not self._firmware_capabilities.get(self.CAPABILITY_EMERGENCY_PARSER, False): + return + + self._logger.info("Force-sending M410 to the printer") + self._do_send(cmd, gcode=gcode) + + # use up an ok since we will get one back for this command and don't want to get out of sync + self._clear_to_send.clear() + + return None, + def _gcode_M114_queued(self, *args, **kwargs): self._reset_position_timers() _gcode_M114_sent = _gcode_M114_queued @@ -3467,7 +3537,7 @@ class MachineCom(object): elif s_match: _timeout = float(s_match.group("value")) - self._timeout = get_new_timeout("communicationBusy" if self._busy_protocol_detected else "communication", self._timeout_intervals) + _timeout + self._timeout = get_new_timeout("communicationBusy" if self._busy_protocol_support else "communication", self._timeout_intervals) + _timeout self._dwelling_until = time.time() + _timeout def _validate_tool(self, tool): @@ -3530,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): @@ -3646,6 +3716,10 @@ class PrintingFileInformation(object): def done(self): return self._done + @done.setter + def done(self, value): + self._done = value + class PrintingSdFileInformation(PrintingFileInformation): """ Encapsulates information regarding an ongoing print from SD. @@ -3660,14 +3734,6 @@ class PrintingSdFileInformation(PrintingFileInformation): def getFileLocation(self): return FileDestinations.SDCARD - @property - def done(self): - return self._done - - @done.setter - def done(self, value): - self._done = value - @property def size(self): return self._size diff --git a/src/octoprint/util/commandline.py b/src/octoprint/util/commandline.py index 97678d608..50a3086ef 100644 --- a/src/octoprint/util/commandline.py +++ b/src/octoprint/util/commandline.py @@ -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: @@ -78,7 +161,7 @@ class CommandlineCaller(object): self._logger.debug(u"Calling: {}".format(joined_command)) self.on_log_call(joined_command) - kwargs.update(dict(async=True, stdout=sarge.Capture(), stderr=sarge.Capture())) + kwargs.update(dict(async_=True, stdout=sarge.Capture(), stderr=sarge.Capture())) p = sarge.run(command, **kwargs) while len(p.commands) == 0: diff --git a/src/octoprint/util/fixes.py b/src/octoprint/util/fixes.py new file mode 100644 index 000000000..8ea63d8d3 --- /dev/null +++ b/src/octoprint/util/fixes.py @@ -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) diff --git a/src/octoprint/util/gcodeInterpreter.py b/src/octoprint/util/gcodeInterpreter.py index 061564ce0..2fa5ddb0d 100644 --- a/src/octoprint/util/gcodeInterpreter.py +++ b/src/octoprint/util/gcodeInterpreter.py @@ -43,15 +43,9 @@ class Vector3D(object): True """ - def __init__(self, *args, **kwargs): - self.x = kwargs.get("x", 0.0) - self.y = kwargs.get("y", 0.0) - self.z = kwargs.get("z", 0.0) - + def __init__(self, *args): if len(args) == 3: - self.x = args[0] - self.y = args[1] - self.z = args[2] + (self.x, self.y, self.z) = args elif len(args) == 1: # copy constructor @@ -134,30 +128,25 @@ class MinMax3D(object): >>> empty = MinMax3D() >>> empty.size == Vector3D(0.0, 0.0, 0.0) True - >>> partial = MinMax3D() - >>> partial.record(Vector3D(2.0, None, 2.0)) - >>> partial.min.x == 2.0 == partial.max.x and partial.min.y == None == partial.max.y and partial.min.z == 2.0 == partial.max.z - True - >>> partial.record(Vector3D(1.0, None, 3.0)) - >>> partial.min.x == 1.0 and partial.min.y == None and partial.min.z == 2.0 - True - >>> partial.max.x == 2.0 and partial.max.y == None and partial.max.z == 3.0 - True - >>> partial.size == Vector3D(1.0, 0.0, 1.0) - True """ def __init__(self): - self.min = Vector3D(None, None, None) - self.max = Vector3D(None, None, None) + self.min = Vector3D(float("inf"), float("inf"), float("inf")) + self.max = Vector3D(-float("inf"), -float("inf"), -float("inf")) def record(self, coordinate): - for c in "xyz": - current_min = getattr(self.min, c) - current_max = getattr(self.max, c) - value = getattr(coordinate, c) - setattr(self.min, c, value if current_min is None or value < current_min else current_min) - setattr(self.max, c, value if current_max is None or value > current_max else current_max) + """ + Records the coordinate, storing the min and max values. + + The input vector components must not be None. + """ + self.min.x = min(self.min.x, coordinate.x) + self.min.y = min(self.min.y, coordinate.y) + self.min.z = min(self.min.z, coordinate.z) + self.max.x = max(self.max.x, coordinate.x) + self.max.y = max(self.max.y, coordinate.y) + self.max.z = max(self.max.z, coordinate.z) + @property def size(self): @@ -165,7 +154,7 @@ class MinMax3D(object): for c in "xyz": min = getattr(self.min, c) max = getattr(self.max, c) - value = abs(max - min) if min is not None and max is not None else 0.0 + value = abs(max - min) if max >= min else 0.0 setattr(result, c, value) return result @@ -199,12 +188,12 @@ class gcode(object): @property def printing_area(self): - return dict(minX=self._minMax.min.x, - minY=self._minMax.min.y, - minZ=self._minMax.min.z, - maxX=self._minMax.max.x, - maxY=self._minMax.max.y, - maxZ=self._minMax.max.z) + return dict(minX=None if math.isinf(self._minMax.min.x) else self._minMax.min.x, + minY=None if math.isinf(self._minMax.min.y) else self._minMax.min.y, + minZ=None if math.isinf(self._minMax.min.z) else self._minMax.min.z, + maxX=None if math.isinf(self._minMax.max.x) else self._minMax.max.x, + maxY=None if math.isinf(self._minMax.max.y) else self._minMax.max.y, + maxZ=None if math.isinf(self._minMax.max.z) else self._minMax.max.z) def load(self, filename, throttle=None, speedx=6000, speedy=6000, offsets=None, max_extruders=10, g90_extruder=False): if os.path.isfile(filename): @@ -498,17 +487,13 @@ def getCodeInt(line, code): def getCodeFloat(line, code): - import math n = line.find(code) + 1 if n < 1: return None m = line.find(' ', n) try: if m < 0: - val = float(line[n:]) - else: - val = float(line[n:m]) - return val if not (math.isnan(val) or math.isinf(val)) else None + return float(line[n:]) + return float(line[n:m]) except: return None - diff --git a/src/octoprint/util/net.py b/src/octoprint/util/net.py index 50e536584..f8cb2c311 100644 --- a/src/octoprint/util/net.py +++ b/src/octoprint/util/net.py @@ -6,8 +6,30 @@ __copyright__ = "Copyright (C) 2018 The OctoPrint Project - Released under terms import socket import sys +import netaddr +import netifaces +import logging -HAS_V6 = socket.has_ipv6 +_cached_check_v6 = None +def check_v6(): + global _cached_check_v6 + + def f(): + if not socket.has_ipv6: + return False + + try: + socket.socket(socket.AF_INET6, socket.SOCK_STREAM) + except: + # "[Errno 97] Address family not supported by protocol" or anything else really... + return False + return True + + if _cached_check_v6 is None: + _cached_check_v6 = f() + return _cached_check_v6 + +HAS_V6 = check_v6() if hasattr(socket, "IPPROTO_IPV6") and hasattr(socket, "IPV6_V6ONLY"): # Dual stack support, hooray! @@ -19,5 +41,65 @@ else: IPPROTO_IPV6 = 41 IPV6_V6ONLY = 27 else: - # Whatever we are running on here, it we don't want to use V6 on here due to lack of dual stack support + # Whatever we are running on here, we don't want to use V6 on here due to lack of dual stack support HAS_V6 = False + +def is_lan_address(address, additional_private=None): + 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 + + 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: + 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): + prefix = address["netmask"] + if "/" in prefix: + # v6 notation in netifaces output, e.g. "ffff:ffff:ffff:ffff::/64" + _, prefix = prefix.split("/") + + addr = address["addr"] + if "%" in addr: + # interface comment in netifaces output, e.g. "fe80::457f:bbee:d579:1063%wlan0" + addr = addr[:addr.find("%")] + return netaddr.IPNetwork("{}/{}".format(addr, prefix)) + + 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, ()): + 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: + 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 diff --git a/src/octoprint/util/platform/__init__.py b/src/octoprint/util/platform/__init__.py index 084a76b43..cd21be30f 100644 --- a/src/octoprint/util/platform/__init__.py +++ b/src/octoprint/util/platform/__init__.py @@ -49,9 +49,38 @@ _OPERATING_SYSTEMS = dict(windows=["win32"], freebsd=lambda x: x.startswith("freebsd")) OPERATING_SYSTEM_UNMAPPED = "unmapped" + def get_os(): for identifier, platforms in _OPERATING_SYSTEMS.items(): if (callable(platforms) and platforms(sys.platform)) or (isinstance(platforms, list) and sys.platform in platforms): return identifier else: return OPERATING_SYSTEM_UNMAPPED + + +def is_os_compatible(compatibility_entries, current_os=None): + """ + Tests if the ``current_os`` or ``sys.platform`` are blacklisted or whitelisted in ``compatibility_entries`` + """ + if len(compatibility_entries) == 0: + # shortcut - no compatibility info means we are compatible + return True + + if current_os is None: + current_os = get_os() + + negative_entries = map(lambda x: x[1:], filter(lambda x: x.startswith("!"), compatibility_entries)) + positive_entries = filter(lambda x: not x.startswith("!"), compatibility_entries) + + negative_match = False + if negative_entries: + # check if we are blacklisted + negative_match = current_os in negative_entries or any(map(lambda x: sys.platform.startswith(x), negative_entries)) + + positive_match = True + if positive_entries: + # check if we are whitelisted + positive_match = current_os in positive_entries or any(map(lambda x: sys.platform.startswith(x), positive_entries)) + + return positive_match and not negative_match + diff --git a/src/octoprint/vendor/sockjs/tornado/transports/rawwebsocket.py b/src/octoprint/vendor/sockjs/tornado/transports/rawwebsocket.py index d5dd6efc7..00e494b6d 100644 --- a/src/octoprint/vendor/sockjs/tornado/transports/rawwebsocket.py +++ b/src/octoprint/vendor/sockjs/tornado/transports/rawwebsocket.py @@ -10,6 +10,7 @@ import socket from octoprint.vendor.sockjs.tornado import websocket, session from octoprint.vendor.sockjs.tornado.transports import base +from tornado.ioloop import IOLoop LOG = logging.getLogger("tornado.general") @@ -74,11 +75,16 @@ class RawWebSocketTransport(websocket.SockJSWebSocketHandler, base.BaseTransport session.close() def send_pack(self, message, binary=False): - # Send message - try: - self.write_message(message, binary) - except IOError: - self.server.io_loop.add_callback(self.on_close) + if IOLoop.current(False) == self.server.io_loop: + # Running in Main Thread + # Send message + try: + self.write_message(message, binary) + except IOError: + self.server.io_loop.add_callback(self.on_close) + else: + # Not running in Main Thread so use proper thread to send message + self.server.io_loop.add_callback(lambda: self.send_pack(message, binary)) def session_closed(self): try: diff --git a/src/octoprint/vendor/sockjs/tornado/transports/websocket.py b/src/octoprint/vendor/sockjs/tornado/transports/websocket.py index 8df3a2901..644b14543 100644 --- a/src/octoprint/vendor/sockjs/tornado/transports/websocket.py +++ b/src/octoprint/vendor/sockjs/tornado/transports/websocket.py @@ -11,6 +11,7 @@ import socket from octoprint.vendor.sockjs.tornado import proto, websocket from octoprint.vendor.sockjs.tornado.transports import base from octoprint.vendor.sockjs.tornado.util import bytes_to_str +from tornado.ioloop import IOLoop LOG = logging.getLogger("tornado.general") @@ -81,11 +82,16 @@ class WebSocketTransport(websocket.SockJSWebSocketHandler, base.BaseTransportMix session.close() def send_pack(self, message, binary=False): - # Send message - try: - self.write_message(message, binary) - except IOError: - self.server.io_loop.add_callback(self.on_close) + if IOLoop.current(False) == self.server.io_loop: + # Running in Main Thread + # Send message + try: + self.write_message(message, binary) + except IOError: + self.server.io_loop.add_callback(self.on_close) + else: + # Not running in Main Thread so use proper thread to send message + self.server.io_loop.add_callback(lambda: self.send_pack(message, binary)) def session_closed(self): # If session was closed by the application, terminate websocket diff --git a/src/octoprint_setuptools/__init__.py b/src/octoprint_setuptools/__init__.py index 328be4558..158408a53 100644 --- a/src/octoprint_setuptools/__init__.py +++ b/src/octoprint_setuptools/__init__.py @@ -524,8 +524,7 @@ def create_plugin_setup_parameters(identifier="todo", name="TODO", version="0.1" translation_dir = os.path.join(source_folder, "translations") pot_file = os.path.join(translation_dir, "messages.pot") bundled_dir = os.path.join(source_folder, package, "translations") - if os.path.isdir(translation_dir) and os.path.isfile(pot_file): - cmdclass.update(get_babel_commandclasses(pot_file=pot_file, output_dir=translation_dir, bundled_dir=bundled_dir, pack_name_prefix="{name}-i18n-".format(**locals()), pack_path_prefix="_plugins/{identifier}/".format(**locals()))) + cmdclass.update(get_babel_commandclasses(pot_file=pot_file, output_dir=translation_dir, bundled_dir=bundled_dir, pack_name_prefix="{name}-i18n-".format(**locals()), pack_path_prefix="_plugins/{identifier}/".format(**locals()))) from setuptools import find_packages packages = list(set([package] + filter(lambda x: x.startswith("{package}.".format(package=package)), find_packages(where=source_folder, exclude=ignored_packages)) + additional_packages)) diff --git a/tests/filemanager/test_filemanager.py b/tests/filemanager/test_filemanager.py index 278578151..b0215911c 100644 --- a/tests/filemanager/test_filemanager.py +++ b/tests/filemanager/test_filemanager.py @@ -300,29 +300,9 @@ class FileManagerTest(unittest.TestCase): date=now) - mock_atomic_write.assert_called_with(recovery_file) + mock_atomic_write.assert_called_with(recovery_file, max_permissions=438) mock_yaml_safe_dump.assert_called_with(expected, stream=mock_atomic_write_handle, default_flow_style=False, indent=" ", allow_unicode=True) - @mock.patch("octoprint.util.atomic_write", create=True) - @mock.patch("yaml.safe_dump", create=True) - @mock.patch("time.time") - def test_save_recovery_data(self, mock_time, mock_yaml_safe_dump, mock_atomic_write): - import os - - now = 123456789 - path = "some_file.gco" - pos = 1234 - recovery_file = os.path.join("/path/to/a/base_folder", "print_recovery_data.yaml") - - mock_atomic_write.return_value = mock.MagicMock(spec=file) - mock_atomic_write_handle = mock_atomic_write.return_value.__enter__.return_value - mock_time.return_value = now - self.local_storage.path_in_storage.return_value = path - - mock_yaml_safe_dump.side_effect = RuntimeError - - self.file_manager.save_recovery_data(octoprint.filemanager.FileDestinations.LOCAL, path, pos) - @mock.patch("os.path.isfile") @mock.patch("os.remove") def test_delete_recovery_data(self, mock_remove, mock_isfile): @@ -352,29 +332,26 @@ class FileManagerTest(unittest.TestCase): self.file_manager.delete_recovery_data() - @mock.patch("os.path.isfile") - @mock.patch("yaml.safe_load") - def test_get_recovery_data(self, mock_yaml_safe_load, mock_isfile): - import os - recovery_file = os.path.join("/path/to/a/base_folder", "print_recovery_data.yaml") + @mock.patch("os.path.isfile", return_value=True) + def test_get_recovery_data(self, mock_isfile): + import os + import yaml + recovery_file = os.path.join("/path/to/a/base_folder", "print_recovery_data.yaml") - mock_isfile.return_value = True + data = dict(path="some_path.gco", + origin="local", + pos=1234, + date=123456789) + text_data = yaml.dump(data) - data = dict(path="some_path.gco", - origin="local", - pos=1234, - date=123456789) - mock_yaml_safe_load.return_value = data + with mock.patch("__builtin__.open", mock.mock_open(read_data=text_data)) as m: + # moved safe_load to here so we could mock up the return value properly + with mock.patch("yaml.safe_load", return_value=data) as n: + result = self.file_manager.get_recovery_data() - with mock.patch("__builtin__.open", mock.mock_open(read_data=data), create=True) as m: - result = self.file_manager.get_recovery_data() - - self.assertDictEqual(data, result) - - m.assert_called_with(recovery_file) - - mock_handle = m() - mock_yaml_safe_load.assert_called_with(mock_handle) + self.assertDictEqual(data, result) + n.assert_called_with(m()) + mock_isfile.assert_called_with(recovery_file) @mock.patch("os.path.isfile") def test_get_recovery_data_no_file(self, mock_isfile): diff --git a/tests/plugins/pi_support/__init__.py b/tests/plugins/pi_support/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/plugins/pi_support/fakes/fake_model.txt b/tests/plugins/pi_support/fakes/fake_model.txt new file mode 100644 index 000000000..686e67ebc --- /dev/null +++ b/tests/plugins/pi_support/fakes/fake_model.txt @@ -0,0 +1 @@ +Raspberry Pi Model F Rev 1.1 diff --git a/tests/plugins/pi_support/fakes/fake_octopi.txt b/tests/plugins/pi_support/fakes/fake_octopi.txt new file mode 100644 index 000000000..e815b861f --- /dev/null +++ b/tests/plugins/pi_support/fakes/fake_octopi.txt @@ -0,0 +1 @@ +0.15.1 diff --git a/tests/plugins/pi_support/fakes/fake_vcgencmd.py b/tests/plugins/pi_support/fakes/fake_vcgencmd.py new file mode 100644 index 000000000..3dc7084cf --- /dev/null +++ b/tests/plugins/pi_support/fakes/fake_vcgencmd.py @@ -0,0 +1,2 @@ +#!/usr/bin/env python2 +print("throttled=0x50005") diff --git a/tests/plugins/pi_support/test_pi_support.py b/tests/plugins/pi_support/test_pi_support.py new file mode 100644 index 000000000..c7607bde8 --- /dev/null +++ b/tests/plugins/pi_support/test_pi_support.py @@ -0,0 +1,154 @@ + +import unittest +import ddt +import mock + +OCTOPI_VERSION = "0.14.0" + +DT_MODEL = "Raspberry Pi Model F Rev 1.1" + +VCGENCMD = "/usr/bin/vcgencmd get_throttled" + +class PiSupportTestCase(unittest.TestCase): + + def test_get_octopi_version(self): + from octoprint.plugins.pi_support import get_octopi_version + + with mock.patch("__builtin__.open", mock.mock_open(), create=True) as m: + m.return_value.readline.return_value = OCTOPI_VERSION + version = get_octopi_version() + + m.assert_called_once_with("/etc/octopi_version", "r") + self.assertEqual(version, OCTOPI_VERSION) + + def test_get_proc_dt_model(self): + from octoprint.plugins.pi_support import get_proc_dt_model + + with mock.patch("__builtin__.open", mock.mock_open(), create=True) as m: + m.return_value.readline.return_value = DT_MODEL + model = get_proc_dt_model() + + m.assert_called_once_with("/proc/device-tree/model", "r") + self.assertEqual(model, DT_MODEL) + + def test_get_vcgencmd_throttle_state(self): + from octoprint.plugins.pi_support import get_vcgencmd_throttled_state + + with mock.patch("sarge.get_stdout", mock.MagicMock()) as m: + m.return_value = "throttled=0x70005" + state = get_vcgencmd_throttled_state(VCGENCMD) + + m.assert_called_once_with(VCGENCMD) + self.assertTrue(state.current_undervoltage) + self.assertFalse(state.current_overheat) + self.assertTrue(state.current_issue) + self.assertTrue(state.past_undervoltage) + self.assertTrue(state.past_overheat) + self.assertTrue(state.past_issue) + + def test_get_vcgencmd_throttle_state_unparseable1(self): + from octoprint.plugins.pi_support import get_vcgencmd_throttled_state + + with mock.patch("sarge.get_stdout", mock.MagicMock()) as m: + m.return_value = "invalid" + + try: + get_vcgencmd_throttled_state(VCGENCMD) + except ValueError: + # expected + pass + else: + self.fail("Expected ValueError") + + def test_get_vcgencmd_throttle_state_unparseable2(self): + from octoprint.plugins.pi_support import get_vcgencmd_throttled_state + + with mock.patch("sarge.get_stdout", mock.MagicMock()) as m: + m.return_value = "throttled=0xinvalid" + + try: + get_vcgencmd_throttled_state(VCGENCMD) + except ValueError: + # expected + pass + else: + self.fail("Expected ValueError") + + +@ddt.ddt +class ThrottleStateTestCase(unittest.TestCase): + + @ddt.data( + (0x00000, dict(_undervoltage=False, + _freq_capped=False, + _throttled=False, + _past_undervoltage=False, + _past_freq_capped=False, + _past_throttled=False, + current_undervoltage=False, + past_undervoltage=False, + current_overheat=False, + past_overheat=False, + current_issue=False, + past_issue=False)), + + (0x50005, dict(_undervoltage=True, + _freq_capped=False, + _throttled=True, + _past_undervoltage=True, + _past_freq_capped=False, + _past_throttled=True, + current_undervoltage=True, + past_undervoltage=True, + current_overheat=False, + past_overheat=False, + current_issue=True, + past_issue=True)), + + (0x50000, dict(_undervoltage=False, + _freq_capped=False, + _throttled=False, + _past_undervoltage=True, + _past_freq_capped=False, + _past_throttled=True, + current_undervoltage=False, + past_undervoltage=True, + current_overheat=False, + past_overheat=False, + current_issue=False, + past_issue=True)), + + (0x00006, dict(_undervoltage=False, + _freq_capped=True, + _throttled=True, + _past_undervoltage=False, + _past_freq_capped=False, + _past_throttled=False, + current_undervoltage=False, + past_undervoltage=False, + current_overheat=True, + past_overheat=False, + current_issue=True, + past_issue=False)), + ) + @ddt.unpack + def test_conversion(self, input, expected_flags): + from octoprint.plugins.pi_support import ThrottleState + + output = ThrottleState.from_value(input) + + for key, value in expected_flags.items(): + self.assertEqual(getattr(output, key), value) + + def test_as_dict(self): + from octoprint.plugins.pi_support import ThrottleState + + state = ThrottleState(undervoltage=True, throttled=True, past_undervoltage=True, past_freq_capped=True, past_throttled=True) + + self.assertDictEqual(state.as_dict(), dict(current_undervoltage=True, + past_undervoltage=True, + current_overheat=False, + past_overheat=True, + current_issue=True, + past_issue=True, + raw_value=-1)) diff --git a/tests/plugins/test_octopi_support.py b/tests/plugins/test_octopi_support.py deleted file mode 100644 index ad6140a34..000000000 --- a/tests/plugins/test_octopi_support.py +++ /dev/null @@ -1,89 +0,0 @@ - -import unittest -import ddt -import mock - -OCTOPI_VERSION = "0.14.0" - -CPUINFO = """ -processor : 0 -model name : ARMv7 Processor rev 4 (v7l) -BogoMIPS : 38.40 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd03 -CPU revision : 4 - -processor : 1 -model name : ARMv7 Processor rev 4 (v7l) -BogoMIPS : 38.40 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd03 -CPU revision : 4 - -processor : 2 -model name : ARMv7 Processor rev 4 (v7l) -BogoMIPS : 38.40 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd03 -CPU revision : 4 - -processor : 3 -model name : ARMv7 Processor rev 4 (v7l) -BogoMIPS : 38.40 -Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 -CPU implementer : 0x41 -CPU architecture: 7 -CPU variant : 0x0 -CPU part : 0xd03 -CPU revision : 4 - -Hardware : BCM2835 -Revision : a02082 -Serial : 000000000abcdef1 -""" - -@ddt.ddt -class OctoPiSupportTestCase(unittest.TestCase): - - def test_get_octopi_version(self): - from octoprint.plugins.octopi_support import get_octopi_version - - with mock.patch("__builtin__.open", mock.mock_open(), create=True) as m: - m.return_value.readline.return_value = OCTOPI_VERSION - version = get_octopi_version() - - m.assert_called_once_with("/etc/octopi_version", "r") - self.assertEqual(version, "0.14.0") - - def test_get_pi_cpuinfo(self): - from octoprint.plugins.octopi_support import get_pi_cpuinfo - - with mock.patch("__builtin__.open", mock.mock_open(), create=True) as m: - m.return_value.__iter__.return_value = CPUINFO.splitlines() - cpuinfo = get_pi_cpuinfo() - - m.assert_called_once_with("/proc/cpuinfo") - self.assertDictEqual(cpuinfo, dict(hardware="BCM2835", revision="a02082", serial="000000000abcdef1")) - - @ddt.data( - ("BCM2835", "a02082", "3B"), - ("BCM2835", "1000a02082", "3B"), - - # failures - ("something else", "a02082", "unknown"), - ("BCM2835", "aabbccdd", "unknown") - ) - @ddt.unpack - def test_get_pi_model(self, hardware, revision, expected): - from octoprint.plugins.octopi_support import get_pi_model - actual = get_pi_model(hardware, revision) - self.assertEqual(actual, expected) diff --git a/tests/plugins/test_pluginmanager.py b/tests/plugins/test_pluginmanager.py deleted file mode 100644 index 47ed9c040..000000000 --- a/tests/plugins/test_pluginmanager.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -""" -Unit tests for bundled plugin "PluginManager". -""" - -from __future__ import absolute_import - -__author__ = "Gina Häußge " -__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' -__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License" - -import unittest -import mock -import ddt - -from octoprint.plugins.pluginmanager import PluginManagerPlugin - -@ddt.ddt -class PluginManagerPluginTests(unittest.TestCase): - - @ddt.data( - ("linux", "linux2", [], True), - ("linux", "linux2", ["linux", "freebsd"], True), - ("windows", "win32", ["linux", "freebsd"], False), - ("linux", "linux2", ["!windows"], True), - ("windows", "win32", ["!windows"], False), - ("unmapped", "os2", [], True), - ("unmapped", "os2", ["linux", "freebsd"], False), - ("unmapped", "os2", ["!os2"], False), - ("unmapped", "sunos5", ["linux", "freebsd", "sunos"], True), - ("unmapped", "sunos5", ["!sunos", "!os2"], False), - - # both black and white listing at the same time usually doesn't - # make a whole lot of sense, but let's test it anyhow - ("linux", "linux2", ["!windows", "linux", "freebsd"], True), - ("linux", "linux2", ["!windows", "freebsd"], False), - ("windows", "win32", ["!windows", "linux", "freebsd"], False), - ("unmapped", "sunos5", ["!windows", "linux", "freebsd"], False) - ) - @ddt.unpack - def test_is_os_compatible(self, current_os, sys_platform, entries, expected): - with mock.patch("sys.platform", sys_platform): - actual = PluginManagerPlugin._is_os_compatible(current_os, entries) - self.assertEqual(actual, expected) diff --git a/tests/settings/test_settings.py b/tests/settings/test_settings.py index 9c8ab966e..a0b17f218 100644 --- a/tests/settings/test_settings.py +++ b/tests/settings/test_settings.py @@ -18,6 +18,7 @@ import yaml import hashlib import ddt import time +import re import octoprint.settings @@ -115,6 +116,67 @@ class TestSettings(unittest.TestCase): except: self.fail("Could not remove temporary custom basedir") + ##~~ regexes + def test_should_have_regex_filters(self): + # we don't want the mocked_config, because we're testing the actual value. + #with self.mocked_config(): + + filters = octoprint.settings.Settings().get(["terminalFilters"]) + + # we *should* have at least three, but we'll ensure there's at least one as a sanity check. + self.assertGreater(len(filters), 0) + + def test_should_have_suppress_temperature_regex(self): + # we don't want the mocked_config, because we're testing the actual value. + #with self.mocked_config(): + + filters = octoprint.settings.Settings().get(["terminalFilters"]) + temperature_regex_filters = [x for x in filters if x.get('name') == 'Suppress temperature messages'] + self.assertEqual(len(temperature_regex_filters), 1) + + # we know there's a 'name' by now, so just ensure we have the regex key + temperature_regex_filter = temperature_regex_filters[0] + self.assertIn('regex', temperature_regex_filter.keys()) + + def test_temperature_regex_should_not_match(self): + '''random entries that aren't temperature regex entries''' + # we don't want the mocked_config, because we're testing the actual value. + #with self.mocked_config(): + bad_terminal_entries = [ + 'Send: N71667 G1 X163.151 Y35.424 E0.02043*83', + 'Send: N85343 G1 Z29.880 F10800.000*15', + 'Recv: ok', + ] + + filters = octoprint.settings.Settings().get(["terminalFilters"]) + temperature_pattern = [x for x in filters if x.get('name') == 'Suppress temperature messages'][0]['regex'] + + matcher = re.compile(temperature_pattern) + for terminal_string in bad_terminal_entries: + match_result = matcher.match(terminal_string) + # can switch to assertIsNone after 3.x upgrade. + self.assertFalse(match_result, "string matched and it shouldn't have.") + + + def test_temperature_regex_matches(self): + # we don't want the mocked_config, because we're testing the actual value. + #with self.mocked_config(): + + common_terminal_entries = [ + 'Recv: ok N5993 P15 B15 T:59.2 /0.0 B:31.8 /0.0 T0:59.2 /0.0 @:0 B@:100:', # monoprice mini delta + 'Recv: ok T:210.3 /210.0 B:60.3 /60.0 T0:210.3 /210.0 @:79 B@:0 P:35.9 A:40.0', # Prusa mk3 + ] + + filters = octoprint.settings.Settings().get(["terminalFilters"]) + temperature_pattern = [x for x in filters if x.get('name') == 'Suppress temperature messages'][0]['regex'] + + matcher = re.compile(temperature_pattern) + for terminal_string in common_terminal_entries: + match_result = matcher.match(terminal_string) + # can switch to assertIsNotNone after 3.x upgrade. + self.assertTrue(match_result, "string did not match and it should have.") + + ##~~ test getters def test_get(self): diff --git a/tests/timelapse/test_timelapse_helpers.py b/tests/timelapse/test_timelapse_helpers.py index 26f05c307..2ae7099a6 100644 --- a/tests/timelapse/test_timelapse_helpers.py +++ b/tests/timelapse/test_timelapse_helpers.py @@ -6,6 +6,7 @@ __copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms import unittest import mock +import ddt import os import time @@ -14,9 +15,11 @@ from collections import namedtuple, OrderedDict _stat = namedtuple("StatResult", "st_size, st_ctime, st_mtime") _entry = namedtuple("DirEntry", "name, path, is_file, is_dir, stat") +import octoprint.plugin import octoprint.settings import octoprint.timelapse +@ddt.ddt class TimelapseTest(unittest.TestCase): def setUp(self): @@ -27,10 +30,35 @@ class TimelapseTest(unittest.TestCase): self.settings = mock.create_autospec(octoprint.settings.Settings) self.settings_getter.return_value = self.settings + self.plugin_manager_patcher = mock.patch("octoprint.timelapse.plugin_manager") + self.plugin_manager_getter = self.plugin_manager_patcher.start() + + self.plugin_manager = mock.create_autospec(octoprint.plugin.PluginManager) + self.plugin_manager_getter.return_value = self.plugin_manager + + def extension_factory(*args, **kwargs): + return ["gif"] + hooks = dict(test=extension_factory) + self.plugin_manager.get_hooks.return_value = hooks + self.now = time.time() def cleanUp(self): self.settings_patcher.stop() + self.plugin_manager_patcher.stop() + + @ddt.data( + ("test.mpg", True), + ("test.dat", False), + ("test.gif", True) + ) + @ddt.unpack + def test_valid_timelapse(self, input, expected): + ## test + actual = octoprint.timelapse.valid_timelapse(input) + + ## verify + self.assertEqual(expected, actual) @mock.patch("os.remove") @mock.patch("octoprint.timelapse.scandir") diff --git a/tests/util/test_comm_helpers.py b/tests/util/test_comm_helpers.py index 119ff406d..dc3adae14 100644 --- a/tests/util/test_comm_helpers.py +++ b/tests/util/test_comm_helpers.py @@ -267,11 +267,11 @@ class TestCommHelpers(unittest.TestCase): ("NAME. Malyan VER: 3.7 MODEL: M300 HW: HG01", dict(NAME="Malyan", VER="3.7", MODEL="M300", HW="HG01")), ("FIRMWARE_NAME:Marlin 1.1.0 From Archive SOURCE_CODE_URL:http:// ... PROTOCOL_VERSION:1.0 MACHINE_TYPE:www.cxsw3d.com EXTRUDER_COUNT:1 UUID:00000000-0000-0000-0000-000000000000", - dict(FIRMWARE_NAME="Marlin 1.1.0 From Archive", - SOURCE_CODE_URL="http:// ...", - PROTOCOL_VERSION="1.0", - MACHINE_TYPE="www.cxsw3d.com", - EXTRUDER_COUNT="1", + dict(FIRMWARE_NAME="Marlin 1.1.0 From Archive", + SOURCE_CODE_URL="http:// ...", + PROTOCOL_VERSION="1.0", + MACHINE_TYPE="www.cxsw3d.com", + EXTRUDER_COUNT="1", UUID="00000000-0000-0000-0000-000000000000")) ) @unpack @@ -333,6 +333,12 @@ class TestCommHelpers(unittest.TestCase): e4=0.0, e5=0.0)), + # whitespace after the :, e.g. AlfaWise U20, see #2839 + ("X:150.0 Y:150.0 Z: 0.7 E: 0.0", dict(x=150.0, + y=150.0, + z=0.7, + e=0.0)), + # invalid ("", None), ("X:62.417 Y:64.781 Z:0.2", None) diff --git a/tests/util/test_counted_event.py b/tests/util/test_counted_event.py index 87c2f7baa..703e9078d 100644 --- a/tests/util/test_counted_event.py +++ b/tests/util/test_counted_event.py @@ -88,6 +88,24 @@ class CountedEventTest(unittest.TestCase): self.assertEqual(0, event._counter) self.assertFalse(event._event.is_set()) + def test_clear_more_than_available_without_minimum(self): + """The counter may sink below zero if initialized without a minimum.""" + + event = CountedEvent(1, minimum=None) + + self.assertEqual(1, event._counter) + self.assertTrue(event._event.is_set()) + + event.clear() + + self.assertEqual(0, event._counter) + self.assertFalse(event._event.is_set()) + + event.clear() + + self.assertEqual(-1, event._counter) + self.assertFalse(event._event.is_set()) + def test_blocked(self): """Blocked should only be true if the counter is 0.""" diff --git a/tests/util/test_net.py b/tests/util/test_net.py new file mode 100644 index 000000000..a1a33cec0 --- /dev/null +++ b/tests/util/test_net.py @@ -0,0 +1,54 @@ +# coding=utf-8 +from __future__ import absolute_import + +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import unittest +import ddt +import mock + +import socket + +import octoprint.util.net + + +def patched_interfaces(): + return ["eth0"] + + +def patched_ifaddresses(addr): + if addr == "eth0": + return { + socket.AF_INET: [dict(addr="192.168.123.10", netmask="255.255.255.0"), + dict(addr="12.1.1.10", netmask="255.0.0.0")], + socket.AF_INET6: [dict(addr="2a01:4f8:1c0c:6958::1", netmask="ffff:ffff:ffff:ffff::/64")] + } + + return dict() + + +@ddt.ddt +class UtilNetTest(unittest.TestCase): + + @ddt.data( + ("127.0.0.1", [], True), + ("192.168.123.234", [], True), + ("172.24.0.1", [], True), + ("10.1.2.3", [], True), + ("fc00::1", [], True), + ("::1", [], True), + ("::ffff:192.168.1.1", [], True), + ("::ffff:8.8.8.8", [], False), + ("11.1.2.3", [], False), + ("11.1.2.3", ["11/8"], True), + ("12.1.1.123", [], True), + ("2a01:4f8:1c0c:6958::1:23", [], True) + ) + @ddt.unpack + @mock.patch("netifaces.interfaces", side_effect=patched_interfaces) + @mock.patch("netifaces.ifaddresses", side_effect=patched_ifaddresses) + @mock.patch.object(octoprint.util.net, "HAS_V6", True) + def test_is_lan_address(self, input_address, input_additional, expected, nifa, nifs): + actual = octoprint.util.net.is_lan_address(input_address, additional_private=input_additional) + self.assertEqual(expected, actual) diff --git a/tests/util/test_platform.py b/tests/util/test_platform.py index 49f27d0a5..2fd03e097 100644 --- a/tests/util/test_platform.py +++ b/tests/util/test_platform.py @@ -28,3 +28,29 @@ class PlatformUtilTest(unittest.TestCase): from octoprint.util.platform import get_os actual = get_os() self.assertEqual(actual, expected) + + @ddt.data( + ("linux", "linux2", [], True), + ("linux", "linux2", ["linux", "freebsd"], True), + ("windows", "win32", ["linux", "freebsd"], False), + ("linux", "linux2", ["!windows"], True), + ("windows", "win32", ["!windows"], False), + ("unmapped", "os2", [], True), + ("unmapped", "os2", ["linux", "freebsd"], False), + ("unmapped", "os2", ["!os2"], False), + ("unmapped", "sunos5", ["linux", "freebsd", "sunos"], True), + ("unmapped", "sunos5", ["!sunos", "!os2"], False), + + # both black and white listing at the same time usually doesn't + # make a whole lot of sense, but let's test it anyhow + ("linux", "linux2", ["!windows", "linux", "freebsd"], True), + ("linux", "linux2", ["!windows", "freebsd"], False), + ("windows", "win32", ["!windows", "linux", "freebsd"], False), + ("unmapped", "sunos5", ["!windows", "linux", "freebsd"], False) + ) + @ddt.unpack + def test_is_os_compatible(self, current_os, sys_platform, entries, expected): + with mock.patch("sys.platform", sys_platform): + from octoprint.util.platform import is_os_compatible + actual = is_os_compatible(entries, current_os=current_os) + self.assertEqual(actual, expected) diff --git a/translations/de/LC_MESSAGES/messages.mo b/translations/de/LC_MESSAGES/messages.mo index ab9e63b2f..aa71a9b7a 100644 Binary files a/translations/de/LC_MESSAGES/messages.mo and b/translations/de/LC_MESSAGES/messages.mo differ diff --git a/translations/de/LC_MESSAGES/messages.po b/translations/de/LC_MESSAGES/messages.po index 365acd3fc..01176e729 100644 --- a/translations/de/LC_MESSAGES/messages.po +++ b/translations/de/LC_MESSAGES/messages.po @@ -5,33 +5,29 @@ # msgid "" msgstr "" -"Project-Id-Version: OctoPrint\n" +"Project-Id-Version: OctoPrint\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2018-07-25 13:37+0200\n" -"PO-Revision-Date: 2018-06-19 15:43+0200\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 \n" "Language: de\n" -"Language-Team: German " -"(http://www.transifex.com/projects/p/octoprint/language/de/)\n" -"Plural-Forms: nplurals=2; plural=(n != 1)\n" +"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.5.1\n" +"Generated-By: Babel 2.6.0\n" +"X-Generator: Poedit 2.0.4\n" -#: src/octoprint/plugins/action_command_prompt/__init__.py:93 +#: src/octoprint/plugins/action_command_prompt/__init__.py:94 msgid "Action Command Prompt" msgstr "Action Command Prompt" -#: src/octoprint/plugins/action_command_prompt/__init__.py:160 -msgid "" -"Without this plugin your printer will no longer be able to " -"triggerconfirmation or selection prompts in OctoPrint" -msgstr "" -"Ohne dieses Plugin wird dein Drucker nicht mehr in der Lage sein, " -"Bestätigungs- oder Auswahldialoge in OctoPrint auszulösen" +#: src/octoprint/plugins/action_command_prompt/__init__.py:161 +msgid "Without this plugin your printer will no longer be able to triggerconfirmation or selection prompts in OctoPrint" +msgstr "Ohne dieses Plugin wird dein Drucker nicht mehr in der Lage sein, Bestätigungs- oder Auswahldialoge in OctoPrint auszulösen" -#: src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js:50 +#: src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js:24 msgid "Message from your printer" msgstr "Nachricht von deinem Drucker" @@ -44,16 +40,8 @@ msgid "Selection Command" msgstr "Auswahlbefehl" #: src/octoprint/plugins/action_command_prompt/templates/action_command_prompt_settings.jinja2:8 -msgid "" -"Use this to define the command to tell the printer about the selection. " -"OctoPrint will replace {choice} with the index of the " -"selected choice. E.g. M876 S{choice} will become M123 " -"S1" -msgstr "" -"Hiermit kannst du den Befehl definieren, mit dem dem Drucker deine " -"Auswahl mitgeteilt wird. OctoPrint wird {choice} durch den " -"Index der gewählten Option ersetzen. So wird z.B. M876 " -"S{choice} zu M876 S1" +msgid "Use this to define the command to tell the printer about the selection. OctoPrint will replace {choice} with the index of the selected choice. E.g. M876 S{choice} will become M123 S1" +msgstr "Hiermit kannst du den Befehl definieren, mit dem dem Drucker deine Auswahl mitgeteilt wird. OctoPrint wird {choice} durch den Index der gewählten Option ersetzen. So wird z.B. M876 S{choice} zu M876 S1" #: src/octoprint/plugins/announcements/__init__.py:129 #: src/octoprint/plugins/announcements/templates/announcements.jinja2:4 @@ -61,13 +49,9 @@ msgstr "" msgid "Announcements" msgstr "Ankündigungen" -#: src/octoprint/plugins/announcements/__init__.py:494 -msgid "" -"Without this plugin you might miss important announcements regarding " -"security or other critical issues concerning OctoPrint." -msgstr "" -"Ohne dieses Plugin könntest du wichtige Benachrichtigung hinsichtlich " -"Security oder kritischer Fehler in OctoPrint verpassen." +#: src/octoprint/plugins/announcements/__init__.py:503 +msgid "Without this plugin you might miss important announcements regarding security or other critical issues concerning OctoPrint." +msgstr "Ohne dieses Plugin könntest du wichtige Benachrichtigung hinsichtlich Security oder kritischer Fehler in OctoPrint verpassen." #: src/octoprint/plugins/announcements/static/js/announcements.js:50 msgid "Cannot be toggled" @@ -82,20 +66,17 @@ msgid "Enable Channel" msgstr "Kanal aktivieren" #: src/octoprint/plugins/announcements/static/js/announcements.js:266 -msgid "" -"You can edit your announcement subscriptions under Settings > " -"Announcements." -msgstr "" -"Du kannst deine Benachrichtigungsabonnements unter Einstellungen > " -"Benachrichtigungen konfigurieren." +msgid "You can edit your announcement subscriptions under Settings > Announcements." +msgstr "Du kannst deine Benachrichtigungsabonnements unter Einstellungen > Benachrichtigungen konfigurieren." #: src/octoprint/plugins/announcements/static/js/announcements.js:275 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:973 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:890 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:108 msgid "Later" msgstr "Später" #: src/octoprint/plugins/announcements/static/js/announcements.js:281 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:980 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:897 msgid "Mark read" msgstr "Gelesen" @@ -108,12 +89,13 @@ msgid "Mark as last read" msgstr "Zuletzt gelesen" #: src/octoprint/plugins/announcements/templates/announcements.jinja2:44 +#: 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:119 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:136 #: src/octoprint/static/js/app/helpers.js:649 -#: src/octoprint/static/js/app/helpers.js:905 -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:110 +#: src/octoprint/static/js/app/helpers.js:924 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:117 msgid "Close" msgstr "Schließen" @@ -122,6 +104,7 @@ msgid "Configured Channels" msgstr "Konfigurierte Kanäle" #: src/octoprint/plugins/announcements/templates/announcements_settings.jinja2:6 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:37 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:27 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:3 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:9 @@ -148,14 +131,378 @@ msgstr "Aktionen" msgid "Refresh Announcements" msgstr "Ankündigungen aktualisieren" +#: src/octoprint/plugins/appkeys/__init__.py:101 +#: src/octoprint/plugins/appkeys/__init__.py:102 +msgid "Application Keys" +msgstr "Application Keys" + +#: 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." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:55 +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:213 +#, python-format +msgid "You are about to revoke the application key \"%(key)s\"." +msgstr "Du bist im Begriff, den Application Key \"%(key)s\" zu löschen." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:70 +#, python-format +msgid "\"%(app)s\" has requested access to control OctoPrint through the API." +msgstr "\"%(app)s\" möchte Zugriff auf OctoPrint über die API haben." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:72 +msgid "Do you want to allow access to this application with your user account?" +msgstr "Möchtest du dieser Applikation Zugriff mit deinem Nutzerkonto erlauben?" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:74 +msgid "Access Request" +msgstr "Zugriffsanfrage" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:81 +msgid "Allow" +msgstr "Erlauben" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:87 +msgid "Deny" +msgstr "Ablehnen" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:225 +#, python-format +msgid "You are about to revoke %(count)d application keys." +msgstr "Du bist im Begriff, %(count)d Application Keys zu löschen." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:256 +msgid "Revoking application keys" +msgstr "Lösche Application Keys" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:257 +#, python-format +msgid "Revoking %(count)d application keys..." +msgstr "Lösche %(count)d Application Keys..." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:261 +#, python-format +msgid "Revoked %(key)s..." +msgstr "%(key)s gelöscht..." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:264 +#, python-format +msgid "Revocation of %(key)s failed, continuing..." +msgstr "Löschen von %(key)s fehlgeschlagen, fahre fort..." + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:265 +#, python-format +msgid "Deletion of %(key)s failed: %(error)s" +msgstr "Löschen von %(key)s fehlgeschlagen: %(error)s" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:2 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:4 +msgid "There are no application keys registered yet." +msgstr "Es sind noch keine Application Keys registriert." + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:9 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:25 +#: src/octoprint/templates/tabs/timelapse.jinja2:109 +#: src/octoprint/templates/tabs/timelapse.jinja2:154 +msgid "Select all on this page" +msgstr "Alles auf dieser Seite auswählen" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:10 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:26 +#: src/octoprint/templates/tabs/timelapse.jinja2:110 +#: src/octoprint/templates/tabs/timelapse.jinja2:155 +msgid "Select all" +msgstr "Alles auswählen" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:13 +msgid "Select all by user..." +msgstr "Alle von Nutzer wählen..." + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:19 +msgid "Select all by app..." +msgstr "Alle von Applikation auswählen..." + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:25 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:28 +#: src/octoprint/templates/tabs/timelapse.jinja2:112 +#: src/octoprint/templates/tabs/timelapse.jinja2:157 +msgid "Clear selection" +msgstr "Auswahl aufheben" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:28 +msgid "Revoke selected" +msgstr "Ausgewählte löschen" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:34 +#: src/octoprint/templates/sidebar/state.jinja2:5 +msgid "User" +msgstr "Nutzer" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:35 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:10 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:38 +msgid "Application identifier" +msgstr "Applikationsidentifier" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:36 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:11 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:40 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:14 +#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:7 +#: src/octoprint/templates/snippets/settings/printerprofiles/profiles.jinja2:6 +#: src/octoprint/templates/tabs/timelapse.jinja2:123 +#: src/octoprint/templates/tabs/timelapse.jinja2:169 +msgid "Action" +msgstr "Aktion" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:43 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:16 +#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 +#: src/octoprint/templates/dialogs/settings/api.jinja2:17 +#: src/octoprint/templates/dialogs/usersettings/access.jinja2:22 +msgid "API Key" +msgstr "API Key" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:43 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:16 +#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 +msgid "Copy API Key to clipboard" +msgstr "API Key in die Zwischenablage kopieren" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:44 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:17 +msgid "Revoke" +msgstr "Löschen" + +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:1 +msgid "Registered application keys" +msgstr "Registrierte Application Keys" + +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:34 +msgid "Manually generate an application key" +msgstr "Generiere einen Application Key manuell" + +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:46 +msgid "Generate" +msgstr "Erzeugen" + +#: src/octoprint/plugins/backup/__init__.py:914 +msgid "Backup & Restore" +msgstr "Sicherung & Wiederherstellung" + +#: 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: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: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: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: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: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: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 octoprint.log for details. Error: %(error)s" +msgstr "OctoPrint konnte dein Backup nicht erstellen. Bitte konsultiere octoprint.log 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: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: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:203 +#, python-format +msgid "Installing plugin \"%(plugin)s}\"..." +msgstr "Installiere Plugin \"%(plugin)s\"..." + +#: 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: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:243 +msgid "Deleting backups" +msgstr "Lösche Sicherungen" + +#: 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: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: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:252 +#: src/octoprint/static/js/app/viewmodels/timelapse.js:317 +#, python-format +msgid "Deletion of %(filename)s failed: %(error)s" +msgstr "Löschen von %(filename)s fehlgeschlagen: %(error)s" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:2 +msgid "\n" +" Some plugins during the last restore could not be identified and hence not automatically installed.\n" +" Please install them manually, they are listed below including their stated homepages:\n" +" " +msgstr "\n" +" Einige Plugins konnten während der letzten Wiederherstellung nicht identifiziert und somit nicht automatisch installiert werden.\n" +" Bitte installiere sie manuell, sie sind nachfolgend zusammen mit ihrer Homepage gelistet:\n" +" " + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:9 +msgid "Delete record of unknown plugins" +msgstr "Lösche Liste unbekannter Plugins" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:13 +msgid "Existing backups" +msgstr "Vorhandene Sicherungen" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:16 +msgid "There are no backups. Maybe create one below?" +msgstr "Es gibt keine Sicherungen. Erstelle vielleicht eine weiter unten?" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:19 +msgid "These are the backups of your settings and files that already exist on this OctoPrint instance. You may delete, download or restore them." +msgstr "Dies sind die Sicherungen deiner Einstelungen und Dateien, die bereits auf dieser OctoPrint Instanz existieren. Du kannst sie löschen, herunterladen oder wiederherstellen." + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:31 +#: src/octoprint/templates/tabs/timelapse.jinja2:115 +#: src/octoprint/templates/tabs/timelapse.jinja2:160 +msgid "Delete selected" +msgstr "Ausgewählte Elemente löschen" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:38 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:13 +msgid "Date" +msgstr "Datum" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:39 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:5 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:12 +#: src/octoprint/templates/sidebar/files.jinja2:18 +#: src/octoprint/templates/sidebar/files.jinja2:33 +#: src/octoprint/templates/sidebar/files.jinja2:44 +#: src/octoprint/templates/tabs/timelapse.jinja2:122 +#: src/octoprint/templates/tabs/timelapse.jinja2:168 +msgid "Size" +msgstr "Größe" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:82 +msgid "Delete" +msgstr "Löschen" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49 +#: src/octoprint/templates/sidebar/files.jinja2:22 +#: src/octoprint/templates/sidebar/files.jinja2:35 +msgid "Download" +msgstr "Download" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49 +msgid "Restore" +msgstr "Wiederherstellen" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:66 +msgid "Create backup" +msgstr "Sicherung erstellen" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:68 +msgid "Create a new backup of the current state." +msgstr "Erstelle eine neue Sicherung des aktuellen Stands." + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:74 +msgid "Exclude uploaded files & metadata from backup" +msgstr "Uploads & metadata nicht sichern" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:82 +msgid "Exclude timelapses from backup" +msgstr "Zeitrafferaufnahmen nicht sichern" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:89 +msgid "Create backup now" +msgstr "Sicherung jetzt erstellen" + +#: 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: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:101 +msgid "Backup file" +msgstr "Sicherungsdatei" + +#: 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: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 restore your backups manually for now." +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 manuell wiederherstellen." + #: 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." +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." #: src/octoprint/plugins/corewizard/subwizards.py:30 #: src/octoprint/plugins/corewizard/templates/corewizard_servercommands_wizard.jinja2:1 @@ -186,114 +533,90 @@ msgid "Default Printer Profile" msgstr "Default Druckerprofil" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:45 -msgid "" -"If you disable Access Control and your OctoPrint " -"installation is accessible from the internet, your printer will " -"be accessible by everyone - that also includes the bad guys!" -msgstr "" -"Wenn Du die Zugangsbeschränkung deaktivierst und Deine " -"OctoPrint Installation vom Internet aus erreichbar ist, kann " -"jeder auf Deinen Drucker zugreifen - auch die bösen " -"Jungs!" +msgid "If you disable Access Control and your OctoPrint installation is accessible from the internet, your printer will be accessible by everyone - that also includes the bad guys!" +msgstr "Wenn Du die Zugangsbeschränkung deaktivierst und Deine OctoPrint Installation vom Internet aus erreichbar ist, kann jeder auf Deinen Drucker zugreifen - auch die bösen Jungs!" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:83 msgid "Please set up Access Control" msgstr "Bitte konfiguriere die Zugangsbeschränkung" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:84 -msgid "" -"You haven't yet set up access control. You need to either setup a " -"username and password and click \"Keep Access Control Enabled\" or click " -"\"Disable Access Control\" before continuing" -msgstr "" -"Du hast noch keine Zugriffsbeschränkung konfiguriert. Du musst entweder " -"einen Nutzernamen und ein Passwort festlegen und auf " -"\"Zugriffsbeschränkung aktivieren\" klicken oder auf " -"\"Zugriffsbeschränkung deaktivieren\" klicken bevor du fortfahren kannst." +msgid "You haven't yet set up access control. You need to either setup a username and password and click \"Keep Access Control Enabled\" or click \"Disable Access Control\" before continuing" +msgstr "Du hast noch keine Zugriffsbeschränkung konfiguriert. Du musst entweder einen Nutzernamen und ein Passwort festlegen und auf \"Zugriffsbeschränkung aktivieren\" klicken oder auf \"Zugriffsbeschränkung deaktivieren\" klicken bevor du fortfahren kannst" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:183 msgid "Please set up the online connectivity check" msgstr "Bitte konfiguriere die Onlineprüfung" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:184 -msgid "" -"You haven't yet decided on whether to enable or disable the online " -"connectivity check. You need to either enable or disable it before " -"continuing." -msgstr "" -"Du hast noch nicht entschieden, ob die Onlineprüfung aktiviert werden " -"soll. Du musst sie entweder aktivieren oder deaktivieren bevor du " -"fortfahren kannst." +msgid "You haven't yet decided on whether to enable or disable the online connectivity check. You need to either enable or disable it before continuing." +msgstr "Du hast noch nicht entschieden, ob die Onlineprüfung aktiviert werden soll. Du musst sie entweder aktivieren oder deaktivieren bevor du fortfahren kannst." #: src/octoprint/plugins/corewizard/static/js/corewizard.js:265 msgid "Please set up the plugin blacklist processing" msgstr "Bitte konfiguriere die Plugin Blackliste" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:266 -msgid "" -"You haven't yet decided on whether to enable or disable the plugin " -"blacklist processing. You need to either enable or disable it before " -"continuing." -msgstr "" -"Du hast noch nicht entschieden, ob die Plugin Blackliste aktiviert werden" -" soll. Du musst sie entweder aktivieren oder deaktivieren bevor du " -"fortfahren kannst." +msgid "You haven't yet decided on whether to enable or disable the plugin blacklist processing. You need to either enable or disable it before continuing." +msgstr "Du hast noch nicht entschieden, ob die Plugin Blackliste aktiviert werden soll. Du musst sie entweder aktivieren oder deaktivieren bevor du fortfahren kannst." #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:3 -msgid "" -"

    \n" -" Please read the following, it is very important for your " -"printer's health!\n" +#, python-format +msgid "

    \n" +" Please read the following, it is very important for your printer's health!\n" "

    \n" "

    \n" -" OctoPrint by default ships with Access Control enabled, meaning you " -"won't be able to do anything with the\n" -" printer unless you login first as a configured user. This is to " -"prevent strangers - possibly with\n" -" malicious intent - to gain access to your printer via the " -"internet or another untrustworthy network\n" -" and using it in such a way that it is damaged or worse (i.e. causes a" -" fire).\n" +" OctoPrint by default ships with Access Control enabled, meaning you won't be able to do anything with the\n" +" printer unless you login first as a configured user. This is to prevent strangers - possibly with\n" +" malicious intent - to gain access to your printer via an untrustworthy network\n" +" and using it in such a way that it is damaged or worse (i.e. causes a fire).\n" "

    \n" "

    \n" -" It looks like you haven't configured access control yet. Please " -"set up a username and password for the\n" -" initial administrator account who will have full access to both the " -"printer and OctoPrint's settings, then click\n" +" If you plan on accessing OctoPrint remotely over the internet, you should not only rely on the built-in\n" +" Access Control mechanisms however -\n" +" take additional precautions.\n" +" Your OctoPrint enabled printer is a critical home appliance you really should not give anyone who happens to be\n" +" connected to the internet access to - even read-only! An instance available publicly on the internet\n" +" will be found, and people will try to break it open.\n" +"

    \n" +"

    \n" +" It looks like you haven't configured access control yet. Please set up a username and password for the\n" +" initial administrator account who will have full access to both the printer and OctoPrint's settings, then click\n" " on \"Keep Access Control Enabled\":\n" "

    " -msgstr "" -"

    \n" -" Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr" -" wichtig fĂĽr die Gesundheit Deines Druckers!\n" +msgstr "

    \n" +" Bitte lies die folgenden Zeilen aufmerksam durch, es ist sehr wichtig fĂĽr die Gesundheit Deines Druckers!\n" "

    \n" "

    \n" -" OctoPrint wird standardmässig mit aktivierter Zugangsbeschränkung " -"ausgeliefert, das heißt, dass Du mit dem Drucker nichts\n" -" anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer " -"eingeloggt bist. Das dient dem Zweck, Fremde mit\n" -" möglicherweise böswilligen Absichten davon abzuhalten, auf " -"Deinen Drucker über das Internet oder ein anderes\n" -" unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die " -"ihn beschädigt oder schlimmeres (z.B. ein Feuer verursacht).\n" +" OctoPrint wird standardmäßig mit aktivierter Zugangsbeschränkung ausgeliefert, das heißt, dass Du mit dem Drucker nichts\n" +" anfangen kannst, wenn du nicht als einer der konfigurierten Nutzer eingeloggt bist. Das dient dem Zweck, Fremde mit\n" +" möglicherweise böswilligen Absichten davon abzuhalten, auf Deinen Drucker über ein\n" +" unsicheres Netzwerk zuzugreifen und ihn auf eine Art zu nutzen, die ihn beschädigt oder schlimmeres (z.B. ein Feuer verursacht).\n" "

    \n" "

    \n" -" Es sieht so aus, als hättest Du die Zugriffsbeschränkung noch nicht " -"konfiguriert. Bitte konfiguriere einen Usernamen\n" -" und ein Passwort für das initiale Administratorkonto, das " -"vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n" -" Einstellungen haben wird, und klicke dann auf \"Zugangsbeschränkung " -"aktivieren\".\n" +" Falls du vor hast, auf OctoPrint über das Internet zuzugreifen, solltest du dich nicht nur auf die eingebaute Zugriffsbeschränkung<\n" +">\n" +" verlassen - triff weitere Maßnahmen.\n" +" Dein mit OctoPrint erweiterter Drucker ist ein kritisches Haushaltsgerät, auf das du wirklich nicht jedem, der Zugriff auf das Internet hat, auch\n" +" nur einen reinen Lesezugriff geben solltest! Eine Instanz, die öffentlich über das Internet erreichbar ist, wird gefunden werden, \n" +" und Menschen werden versuchen, in sie einzubrechen.\n" +"

    \n" +"

    \n" +" Es sieht so aus, als hättest Du die Zugriffsbeschränkung noch nicht konfiguriert. Bitte konfiguriere einen Usernamen\n" +" und ein Passwort für das initiale Administratorkonto, das vollen Zugang zu sowohl dem Drucker als auch OctoPrints\n" +" Einstellungen haben wird, und klicke dann auf \"Zugangsbeschränkung aktivieren\".\n" "

    " -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:19 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:27 +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:17 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:45 #: src/octoprint/templates/navbar/login.jinja2:7 #: src/octoprint/templates/navbar/login.jinja2:8 msgid "Username" msgstr "Username" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:33 +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:18 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:3 #: src/octoprint/templates/navbar/login.jinja2:10 @@ -301,70 +624,58 @@ msgstr "Username" msgid "Password" msgstr "Passwort" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:31 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:39 msgid "Confirm Password" msgstr "Passwort bestätigen" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:34 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:42 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:60 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:131 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:17 msgid "Passwords do not match" msgstr "Passwörter nicht identisch" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:38 -msgid "" -"

    \n" -" Note: In case that your OctoPrint installation is " -"only accessible from within a trustworthy network and you don't\n" -" need Access Control for other reasons, you may alternatively disable " -"Access Control. You should only\n" -" do this if you are absolutely certain that only people you know and " -"trust will be able to connect to it.\n" +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:46 +msgid "

    \n" +" Note: In case that your OctoPrint installation is only accessible from within a trustworthy local network and you don't\n" +" need Access Control for other reasons, you may alternatively disable Access Control. You should only\n" +" do this if you are absolutely certain that only people you know and trust will be able to connect to it.\n" "

    \n" "

    \n" -" Do NOT underestimate the risk of an unsecured access from the" -" internet to your printer!\n" +" Do NOT underestimate the risk of access from the internet to your printer and OctoPrint instance!\n" "

    " -msgstr "" -"

    \n" -" Beachte: Falls Deine OctoPrint Installation " -"ausschließlich innerhalb eines vertrauenswürdigen Netzwerks\n" -" erreicht werden kann und Du die Zugangsbeschränkung nicht für andere " -"Zwecke benötigst, kannst Du sie alternativ auch\n" -" deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher " -"bist, dass nur Leute darauf zugreifen können, die du kennst\n" +msgstr "

    \n" +" Beachte: Falls Deine OctoPrint Installation ausschließlich innerhalb eines vertrauenswürdigen Netzwerks\n" +" erreicht werden kann und Du die Zugangsbeschränkung nicht für andere Zwecke benötigst, kannst Du sie alternativ auch\n" +" deaktivieren. Du solltest das nur tun, wenn Du Dir absolut sicher bist, dass nur Leute darauf zugreifen können, die du kennst\n" " und denen du vertraust\n" "

    \n" "

    \n" -" UNTERSCHÄTZE NICHT das Risiko eines ungesicherten Zugriffs " -"aus dem Internet auf Deinen Drucker!\n" +" UNTERSCHÄTZE NICHT das Risiko eines ungesicherten Zugriffs aus dem Internet auf Deinen Drucker!\n" "

    " -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:48 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:56 msgid "Disable Access Control" msgstr "Zugangsbeschränkung deaktivieren" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:49 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:57 msgid "Keep Access Control Enabled" msgstr "Zugangsbeschränkung aktiviert lassen" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:53 -msgid "" -"\n" -" Access control is enabled.\n" +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:61 +msgid "\n" +" Access control is enabled.\n" +" " +msgstr "\n" +" Zugriffsbeschränkung aktiviert.\n" " " -msgstr "Zugriffsbeschränkung aktiviert." -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:56 -msgid "" -"\n" -" Access control is disabled.\n" +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:64 +msgid "\n" +" Access control is disabled.\n" " " -msgstr "" -"Zugriffsbeschränkung deaktiviert." +msgstr "\n" +" Zugriffsbeschränkung deaktiviert.\n" " " #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:1 @@ -372,52 +683,35 @@ msgid "Configure the connectivity check" msgstr "Konfiguriere die Onlineprüfung" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:5 -msgid "" -"\n" -" If it is disabled OctoPrint will always assume to have a working " -"connection to the internet.\n" -" If that should not actually be the case, server startups, update " -"checks and the like might take longer.\n" -msgstr "" -"Falls der Onlineverbindungscheck deaktiviert ist, wird OctoPrint stets " -"annehmen, mit dem Internet verbunden zu sein. Ist das nicht tatsächlich " -"der Fall so können Serverstartups, Updatechecks und dergleichen länger " -"dauern." +msgid "\n" +" If it is disabled OctoPrint will always assume to have a working connection to the internet.\n" +" If that should not actually be the case, server startups, update checks and the like might take longer.\n" +msgstr "\n" +" Falls der Onlineverbindungscheck deaktiviert ist, wird OctoPrint stets annehmen, mit dem Internet verbunden zu sein.\n" +" Ist das nicht tatsächlich der Fall so können Serverstartups, Updatechecks und dergleichen länger dauern.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:10 -msgid "" -"\n" -" OctoPrint comes preconfigured to perform the connectivity check every" -" 15 minutes. You may change the value here.\n" -msgstr "" -"OctoPrint führt die Onlineprüfung standardmäßig alle 15 Minuten durch. Du" -" kannst diesen Wert hier ändern." +msgid "\n" +" OctoPrint comes preconfigured to perform the connectivity check every 15 minutes. You may change the value here.\n" +msgstr "\n" +" OctoPrint führt die Onlineprüfung standardmäßig alle 15 Minuten durch. Du kannst diesen Wert hier ändern.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:18 -msgid "" -"\n" -" OctoPrint comes preconfigured to utilize Google's DNS server " -"8.8.8.8, port 53 for the connectivity check (if\n" -" it's enabled). If you have concerns about using that, define the IP " -"and port of a different online server that you\n" +msgid "\n" +" OctoPrint comes preconfigured to utilize Google's DNS server 8.8.8.8, port 53 for the connectivity check (if\n" +" it's enabled). If you have concerns about using that, define the IP and port of a different online server that you\n" " trust and that has a high availability.\n" -msgstr "" -"OctoPrint nutzt standardmäßig Googles DNS server 8.8.8.8 auf" -" Port 53 für die Onlineprüfung (wenn diese aktiviert ist). Falls du " -"diesbezüglich Bedenken hast, konfiguriere IP und Port eines anderen " -"Servers im Netz dem du vertraust und der hoch verfügbar ist." +msgstr "\n" +" OctoPrint nutzt standardmäßig Googles DNS server 8.8.8.8 auf Port 53 für die Onlineprüfung (wenn diese aktiviert ist).\n" +" Falls du diesbezüglich Bedenken hast, konfiguriere IP und Port eines anderen Servers im Netz dem du vertraust und der hoch verfügbar ist.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:30 -msgid "" -"\n" -" Finally, please decide on whether to enable or disable the " -"connectivity check. You may change the configuration at\n" -" any time to a later date through Settings > Server right from within " -"OctoPrint.\n" -msgstr "" -"Zum Schluss entscheide noch, ob die Onlineprüfung aktiviert oder " -"deaktiviert werden soll. Du kannst diese Entscheidung auch jederzeit " -"unter Einstellungen > Server später noch ändern." +msgid "\n" +" Finally, please decide on whether to enable or disable the connectivity check. You may change the configuration at\n" +" any time to a later date through Settings > Server right from within OctoPrint.\n" +msgstr "\n" +" Zum Schluss entscheide noch, ob die Onlineprüfung aktiviert oder deaktiviert werden soll. \n" +" Du kannst diese Entscheidung auch jederzeit unter Einstellungen > Server später noch ändern.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:36 msgid "Disable Connectivity Check" @@ -428,68 +722,53 @@ msgid "Enable Connectivity Check" msgstr "Onlineprüfung aktivieren" #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:41 -msgid "" -"\n" -" Connectivity check is enabled.\n" +msgid "\n" +" Connectivity check is enabled.\n" +" " +msgstr "\n" +" Onlineprüfung aktiviert.\n" " " -msgstr "Onlineprüfung aktiviert." #: src/octoprint/plugins/corewizard/templates/corewizard_onlinecheck_wizard.jinja2:44 -msgid "" -"\n" -" Connectivity check is disabled.\n" +msgid "\n" +" Connectivity check is disabled.\n" +" " +msgstr "\n" +" Onlineprüfung deaktiviert.\n" " " -msgstr "Onlineprüfung deaktiviert. " #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:1 msgid "Configure plugin blacklist processing" msgstr "Pluginblackliste konfigurieren" #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:3 -msgid "" -"\n" -" To protect against known severe issues with certain versions of third" -" party plugins, OctoPrint supports the use\n" -" of a centralized plugin version blacklist to automatically disable " -"such plugin versions before they can interfere with\n" -" normal operation, allowing you to uninstall or update them to a newer" -" version.\n" -msgstr "" -"Um vor bekannten schweren Fehler mit bestimmten Third-Party-Plugins zu " -"schützen, unterstützt OctoPrint die Verwendung einer zentralen " -"Pluginblackliste um automatisiert solche Pluginversionen zu deaktivieren " -"bevor sie mit dem normalen Betrieb von OctoPrint interferieren können. Du" -" kannst solche Plugins dann deinstallieren oder auf eine neue Version " -"aktualisieren.\n" +msgid "\n" +" To protect against known severe issues with certain versions of third party plugins, OctoPrint supports the use\n" +" of a centralized plugin version blacklist to automatically disable such plugin versions before they can interfere with\n" +" normal operation, allowing you to uninstall or update them to a newer version.\n" +msgstr "\n" +" Um vor bekannten schweren Fehler mit bestimmten Third-Party-Plugins zu schützen, unterstützt OctoPrint \n" +" die Verwendung einer zentralen Pluginblackliste um automatisiert solche Pluginversionen zu deaktivieren \n" +" bevor sie mit dem normalen Betrieb von OctoPrint interferieren können. Du kannst solche Plugins dann \n" +" deinstallieren oder auf eine neue Version aktualisieren.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:9 #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistDescription.jinja2:7 #, python-format -msgid "" -"\n" -" By default, OctoPrint will use the blacklist hosted at " -"plugins.octoprint.org/blacklist.json which you\n" -" can also take a look at in a more human readable format here.\n" -msgstr "" -"Standardmässig wird OctoPrint die Blackliste von " -"plugins.octoprint.org/blacklist.json verwenden, auf die du " -"hier auch einen Blick in " -"menschenlesbarer Form werfen kannst.\n" +msgid "\n" +" By default, OctoPrint will use the blacklist hosted at plugins.octoprint.org/blacklist.json which you\n" +" can also take a look at in a more human readable format here.\n" +msgstr "\n" +" Standardmäßig wird OctoPrint die Blackliste von plugins.octoprint.org/blacklist.json verwenden, \n" +" auf die du hier auch einen Blick in menschenlesbarer Form werfen kannst.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:14 -msgid "" -"\n" -" Please decide whether to allow fetch and use of this centralized " -"blacklist starting with the next server start.\n" -" You may also change your decision at any time through Settings > " -"Server right from within OctoPrint.\n" -msgstr "" -"Bitte entscheide, ob die zentrale Pluginblackliste ab dem nächsten " -"Serverstart genutzt werden soll. Du kannst diese Entscheidung auch " -"jederzeit unter Einstellungen > Server später noch ändern.\n" +msgid "\n" +" Please decide whether to allow fetch and use of this centralized blacklist starting with the next server start.\n" +" You may also change your decision at any time through Settings > Server right from within OctoPrint.\n" +msgstr "\n" +" Bitte entscheide, ob die zentrale Pluginblackliste ab dem nächsten Serverstart genutzt werden soll. \n" +" Du kannst diese Entscheidung auch jederzeit unter Einstellungen > Server später noch ändern.\n" #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:20 msgid "Disable Plugin Blacklist Processing" @@ -500,36 +779,30 @@ msgid "Enable Plugin Blacklist Processing" msgstr "Pluginblackliste aktivieren" #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:25 -msgid "" -"\n" -" Plugin blacklist processing is enabled.\n" +msgid "\n" +" Plugin blacklist processing is enabled.\n" +" " +msgstr "\n" +" Pluginblackliste aktiviert.\n" " " -msgstr "Pluginblackliste aktiviert." #: src/octoprint/plugins/corewizard/templates/corewizard_pluginblacklist_wizard.jinja2:28 -msgid "" -"\n" -" Plugin blacklist processing is disabled.\n" +msgid "\n" +" Plugin blacklist processing is disabled.\n" +" " +msgstr "\n" +" Pluginblackliste deaktiviert.\n" " " -msgstr "Pluginblackliste deaktiviert. " #: src/octoprint/plugins/corewizard/templates/corewizard_printerprofile_wizard.jinja2:1 msgid "Set up your printer profile" msgstr "Konfiguriere dein Druckerprofil" #: src/octoprint/plugins/corewizard/templates/corewizard_printerprofile_wizard.jinja2:2 -msgid "" -"Please make sure the settings below match your printer. If you plan on " -"connecting more than one printer\n" -"to OctoPrint, you can also configure additional printer profiles under " -"Settings > Printer Profiles" -msgstr "" -"Bitte stelle sicher, dass die folgenden Einstellungen deinem Drucker " -"entsprechen. Falls du planst, mehr als einen Drucker mit OctoPrint zu " -"verbinden, kannst du weitere Druckerprofile unter Einstellungen > " -"Druckerprofile konfigurieren." +msgid "Please make sure the settings below match your printer. If you plan on connecting more than one printer\n" +"to OctoPrint, you can also configure additional printer profiles under Settings > Printer Profiles" +msgstr "Bitte stelle sicher, dass die folgenden Einstellungen deinem Drucker entsprechen. Falls du planst, mehr als \n" +"einen Drucker mit OctoPrint zu verbinden, kannst du weitere Druckerprofile unter Einstellungen > Druckerprofile konfigurieren" #: src/octoprint/plugins/corewizard/templates/corewizard_printerprofile_wizard.jinja2:7 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:1 @@ -555,16 +828,11 @@ msgid "Hotend & extruder" msgstr "Hotend & Extruder" #: src/octoprint/plugins/corewizard/templates/corewizard_servercommands_wizard.jinja2:3 -msgid "" -"

    \n" -" OctoPrint supports calling external commands in order to restart " -"itself or restarting and/or shutting\n" +msgid "

    \n" +" OctoPrint supports calling external commands in order to restart itself or restarting and/or shutting\n" " down the system it is running on. You may configure those here.\n" "

    " -msgstr "" -"

    OctoPrint kann externe Befehle aufrufen, um sich selbst neu zu starten" -" oder das System, auf dem es läuft, neu zu starten und/oder " -"herunterzufahren. Du kannst diese Befehle hier konfigurieren.

    " +msgstr "

    OctoPrint kann externe Befehle aufrufen, um sich selbst neu zu starten oder das System, auf dem es läuft, neu zu starten und/oder herunterzufahren. Du kannst diese Befehle hier konfigurieren.

    " #: src/octoprint/plugins/corewizard/templates/corewizard_servercommands_wizard.jinja2:8 msgid "OctoPrint related commands" @@ -579,8 +847,7 @@ msgid "Webcam & Timelapse Recordings" msgstr "Webcam & Zeitrafferaufnahmen" #: src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2:3 -msgid "" -"

    \n" +msgid "

    \n" " If you have a webcam, you may now configure it here.\n" "

    " msgstr "

    Falls du eine Webcam hast kannst du diese nun hier konfigurieren.

    " @@ -591,48 +858,25 @@ msgid "Webcam" msgstr "Webcam" #: src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2:9 -msgid "" -"

    \n" -" The Stream URL is the URL OctoPrint uses to embed " -"the\n" +msgid "

    \n" +" The Stream URL is the URL OctoPrint uses to embed the\n" " actual webcam stream (which should be an MJPG stream) into the web\n" -" interface. This needs to be reachable from your " -"browser.\n" +" interface. This needs to be reachable from your browser.\n" "

    \n" " It may be\n" "

      \n" -"
    • a fully qualified URL " -"(http://host:port/path),
    • \n" +"
    • a fully qualified URL (http://host:port/path),
    • \n" "
    • a URL defaulting to the protocol used for accessing the web\n" " interface (e.g. //host:port/path),
    • \n" -"
    • an absolute path on the same host as OctoPrint (e.g. " -"/absolute/path) or
    • \n" -"
    • a relative path on the same host as OctoPrint (e.g. " -"relative/path)
    • \n" +"
    • an absolute path on the same host as OctoPrint (e.g. /absolute/path) or
    • \n" +"
    • a relative path on the same host as OctoPrint (e.g. relative/path)
    • \n" "
    \n" "

    \n" -" The Snapshot URL is the URL OctoPrint uses to fetch " -"single\n" -" images from the webcam for creating timelapse recordings. This needs " -"to be\n" -" a fully qualified URL reachable from the OctoPrint " -"server.\n" +" The Snapshot URL is the URL OctoPrint uses to fetch single\n" +" images from the webcam for creating timelapse recordings. This needs to be\n" +" a fully qualified URL reachable from the OctoPrint server.\n" "

    " -msgstr "" -"

    Die Stream-URL ist eine URL, die OctoPrint verwendet " -"um den eigentlichen Webcamstream (der ein MJPG Stream sein sollte) in das" -" Webinterface einzubetten. Diese URL muss aus deinem " -"Browser erreichbar sein.

    Mögliche Formen sind:

    • eine" -" voll definierte URL (http://host:port/path)
    • eine " -"URL relative zum Protokoll, ĂĽber das auf das Webinterface zugegriffen " -"wird (z.B. //host:port/path),
    • ein absoluter Pfad auf" -" dem selben Host wie OctoPrint (z.B. /absolute/path) " -"oder
    • ein relativer Pfad auf dem selben Host wie OctoPrint (z.B. " -"relative/path)

    Die Snapshot-" -"URL ist eine URL, die OctoPrint verwendet um einzelne Bilder von" -" der Webcam fĂĽr die Erstellung von Zeitrafferaufnahmen zu beziehen. Das " -"muss eine voll definierte URL sein, die vom OctoPrint " -"Server erreichbar ist.

    " +msgstr "

    Die Stream-URL ist eine URL, die OctoPrint verwendet um den eigentlichen Webcamstream (der ein MJPG Stream sein sollte) in das Webinterface einzubetten. Diese URL muss aus deinem Browser erreichbar sein.

    Mögliche Formen sind:

    • eine voll definierte URL (http://host:port/path)
    • eine URL relative zum Protokoll, ĂĽber das auf das Webinterface zugegriffen wird (z.B. //host:port/path),
    • ein absoluter Pfad auf dem selben Host wie OctoPrint (z.B. /absolute/path) oder
    • ein relativer Pfad auf dem selben Host wie OctoPrint (z.B. relative/path)

    Die Snapshot-URL ist eine URL, die OctoPrint verwendet um einzelne Bilder von der Webcam fĂĽr die Erstellung von Zeitrafferaufnahmen zu beziehen. Das muss eine voll definierte URL sein, die vom OctoPrint Server erreichbar ist.

    " #: src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2:33 #: src/octoprint/templates/dialogs/settings/webcam.jinja2:16 @@ -640,49 +884,50 @@ msgid "Timelapse Recordings" msgstr "Zeitrafferaufnahmen" #: src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2:35 -msgid "" -"

    \n" -" To render the snapshots into timelapse recordings, OctoPrint also " -"needs to\n" +msgid "

    \n" +" To render the snapshots into timelapse recordings, OctoPrint also needs to\n" " know the correct path to FFMPEG.\n" "

    " -msgstr "" -"

    Um Snapshots zu Zeitrafferaufnahmen zu rendern muss OctoPrint auch den" -" korrekten Pfad zu FFMPEG wissen.

    " +msgstr "

    Um Snapshots zu Zeitrafferaufnahmen zu rendern muss OctoPrint auch den korrekten Pfad zu FFMPEG wissen.

    " -#: src/octoprint/plugins/cura/static/js/cura.js:234 -#: src/octoprint/static/js/app/viewmodels/settings.js:419 +#: src/octoprint/plugins/cura/static/js/cura.js:188 +msgid "Profile import failed" +msgstr "Profilimport fehlgeschlagen" + +#: src/octoprint/plugins/cura/static/js/cura.js:189 +msgid "Could not import the provided profile, it might be invalid. Check octoprint.log for details" +msgstr "Konnte das Profil nicht importieren, es könnte invalide sein. Für weitere Details siehe octoprint.log" + +#: src/octoprint/plugins/cura/static/js/cura.js:243 +#: src/octoprint/static/js/app/viewmodels/settings.js:422 msgid "The path doesn't exist" msgstr "Der Pfad existiert nicht" -#: src/octoprint/plugins/cura/static/js/cura.js:236 -#: src/octoprint/static/js/app/viewmodels/settings.js:421 +#: src/octoprint/plugins/cura/static/js/cura.js:245 +#: src/octoprint/static/js/app/viewmodels/settings.js:424 msgid "The path is not a file" msgstr "Der Pfad ist keine Datei" -#: src/octoprint/plugins/cura/static/js/cura.js:238 -#: src/octoprint/static/js/app/viewmodels/settings.js:423 +#: src/octoprint/plugins/cura/static/js/cura.js:247 +#: src/octoprint/static/js/app/viewmodels/settings.js:426 msgid "The path is not an executable" msgstr "Der Pfad ist nicht ausführbar" -#: src/octoprint/plugins/cura/static/js/cura.js:241 -#: src/octoprint/static/js/app/viewmodels/settings.js:426 -#: src/octoprint/static/js/app/viewmodels/settings.js:486 +#: src/octoprint/plugins/cura/static/js/cura.js:250 +#: src/octoprint/static/js/app/viewmodels/settings.js:429 +#: src/octoprint/static/js/app/viewmodels/settings.js:489 msgid "The path is valid" msgstr "Der Pfad ist valide" #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:3 -msgid "" -"\n" +msgid "\n" " Specify the path to the CuraEngine binary. Note that only\n" " versions up to and including 15.04 are supported.\n" " CuraEngine version 15.06 or newer is not\n" " compatible with this plugin.\n" -msgstr "" -"\n" +msgstr "\n" " Gib den Pfad zum CuraEngine Binary an. Beachte, dass nur\n" -" Versionen bis einschließlich 15.04 unterstützt sind." -"\n" +" Versionen bis einschließlich 15.04 unterstützt sind.\n" " CuraEngine Version 15.06 oder neuere sind nicht\n" " kompatibel mit diesem Plugin.\n" @@ -697,65 +942,47 @@ msgstr "Profil importieren..." #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22 #, python-format -msgid "" -"For more information on configuration and usage please see the Plugin's " -"homepage." -msgstr "" -"Für weitere Informationen zu Konfiguration and Verwendung schaue bitte " -"auf die Homepage " -"des Plugins." +msgid "For more information on configuration and usage please see the Plugin's homepage." +msgstr "Für weitere Informationen zu Konfiguration and Verwendung schaue bitte auf die Homepage des Plugins." #: src/octoprint/plugins/cura/templates/cura_wizard.jinja2:2 msgid "Configure CuraEngine" msgstr "Konfigurierte CuraEngine" #: src/octoprint/plugins/cura/templates/cura_wizard.jinja2:3 -msgid "" -"\n" -" The path to CuraEngine has not yet been set up, in order to be " -"able to use\n" +msgid "\n" +" The path to CuraEngine has not yet been set up, in order to be able to use\n" " CuraEngine for slicing it needs to be specified.\n" " " -msgstr "Der Pfad zu CuraEngine wurde noch nicht konfiguriert. " +msgstr "\n" +" Der Pfad zu CuraEngine wurde noch nicht konfiguriert.\n" +" " #: src/octoprint/plugins/cura/templates/cura_wizard.jinja2:16 msgid "Set up a slicing profile" msgstr "Konfiguriere ein Slicingprofil" #: src/octoprint/plugins/cura/templates/cura_wizard.jinja2:17 -msgid "" -"You haven't imported a slicing profile to use for slicing with CuraEngine" -"\n" -" yet. If you plan on slicing from within OctoPrint then you should do " -"this now.\n" +msgid "You haven't imported a slicing profile to use for slicing with CuraEngine\n" +" yet. If you plan on slicing from within OctoPrint then you should do this now.\n" " Otherwise just skip this step." -msgstr "" -"Du hast noch kein Slicingprofile zum Slicen mit CuraEngine importiert. " -"Falls Du vor hast, aus OctoPrint heraus zu slicen, dann solltest Du das " -"jetzt tun. Andernfalls überspringe diesen Schritt einfach." +msgstr "Du hast noch kein Slicingprofile zum Slicen mit CuraEngine importiert. Falls Du vor hast, aus OctoPrint heraus zu slicen, dann solltest Du das jetzt tun. Andernfalls überspringe diesen Schritt einfach." #: src/octoprint/plugins/cura/templates/cura_wizard.jinja2:28 -msgid "" -"\n" -" Don't know where to get a profile? In order " -"to export\n" -" a slicing profile from the Cura desktop UI up to and " -"including version 15.04.06 (not versions\n" -" 2.1 and later which are actually newer than 15.04), open it, " -"set up your profile, then click\n" -" on \"File\" and there on \"Save Profile\". You can import the" -" .ini file this creates\n" +msgid "\n" +" Don't know where to get a profile? In order to export\n" +" a slicing profile from the Cura desktop UI up to and including version 15.04.06 (not versions\n" +" 2.1 and later which are actually newer than 15.04), open it, set up your profile, then click\n" +" on \"File\" and there on \"Save Profile\". You can import the .ini file this creates\n" " via the \"Import Profile\" button.\n" " " -msgstr "" -"Du weißt nicht, wo du so ein Profil her bekommst? Um ein" -" Slicingprofil aus dem Cura Desktopinterface bis zu Version 15.04.06 zu " -"exportieren (nicht Versionen 2.1 oder neuer, diese sind neuer als 15.04)," -" öffne es, konfiguriere dein Profil, dann klicke auf \"Datei\" und dort " -"auf \"Profil speichern\". Du kannst die resultierende " -".iniDatei dann über den \"Profile importieren\" Button " -"importieren." +msgstr "\n" +" Du weißt nicht, wo du so ein Profil her bekommst? Um ein Slicingprofil aus \n" +" dem Cura Desktopinterface bis zu Version 15.04.06 zu exportieren (nicht Versionen 2.1 oder neuer, \n" +" diese sind neuer als 15.04), öffne es, konfiguriere dein Profil, dann klicke auf \"Datei\" und dort auf \n" +" \"Profil speichern\". Du kannst die resultierende .iniDatei dann über den \"Profile \n" +" importieren\" Button importieren.\n" +" " #: src/octoprint/plugins/cura/templates/snippets/settings/cura/engineLog.jinja2:4 msgid "Log the output of CuraEngine to plugin_cura_engine.log" @@ -780,18 +1007,12 @@ msgstr "Test" #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:4 msgid "Import Existing Cura Profile" -msgstr "Vorhandenes Curaprofile importieren" +msgstr "Vorhandenes Curaprofil importieren" #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:9 msgid "Profile ini file" msgstr "Profil-INI-Datei" -#: 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:97 -msgid "Browse..." -msgstr "Durchsuchen..." - #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:21 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:3 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:8 @@ -812,25 +1033,13 @@ msgid "Overwrite existing file" msgstr "Vorhandene Datei überschreiben" #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:53 -msgid "" -"\n" -" You can import your existing profile .ini files " -"from Cura 15.04.x or older\n" -" here. Anything but those are not supported. " -"That especially means that .json\n" -" profiles from Cura 15.06.x and .curaprofile " -"profiles from Cura 2.x will not work, and neither\n" -" will custom Cura profile formats that third party tools like " -"e.g. Repetier create.\n" +msgid "\n" +" You can import your existing profile .ini files from Cura 15.04.x or older\n" +" here. Anything but those are not supported. That especially means that .json\n" +" profiles from Cura 15.06.x and .curaprofile profiles from Cura 2.x will not work, and neither\n" +" will custom Cura profile formats that third party tools like e.g. Repetier create.\n" " " -msgstr "" -"Du kannst hier deine vorhandenen .ini Profildateien von " -"Cura 15.04.x oder älterAndere Profilformate als diese " -"sind nicht unterstützt. Das beinhaltet insbesondere, " -"dass .json Profile von Cura 15.06.x und " -".curaprofile Profile von Cura 2.x nicht funktionieren " -"werden, ebenso wenig wie Cura-Profildateien, die von Third-Party-Tools " -"wie z.B. Repetier erstellt wurden." +msgstr "Du kannst hier deine vorhandenen .ini Profildateien von Cura 15.04.x oder älterAndere Profilformate als diese sind nicht unterstützt. Das beinhaltet insbesondere, dass .json Profile von Cura 15.06.x und .curaprofile Profile von Cura 2.x nicht funktionieren werden, ebenso wenig wie Cura-Profildateien, die von Third-Party-Tools wie z.B. Repetier erstellt wurden." #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:61 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:80 @@ -870,21 +1079,42 @@ msgstr "Als Standard festlegen" msgid "Delete Profile" msgstr "Profil entfernen" -#: src/octoprint/plugins/discovery/__init__.py:688 -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/discovery/__init__.py:707 +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/logging/__init__.py:204 -msgid "" -"Without this plugin you will no longer be able to retrieve OctoPrint's " -"logs or modify the current logging levels through the web interface." -msgstr "" -"Ohne dieses Plugin kannst du OctoPrints Logfiles nicht mehr über das " -"Webinterface herunterladen und auch die aktuellen Loglevel modifizieren." +#: 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." + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:12 +msgid "Please log in" +msgstr "Bitte einloggen" + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:14 +msgid "Incorrect username or password." +msgstr "Falscher Nutzername oder Passwort." + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:15 +msgid "Server is currently offline." +msgstr "Der Server ist zur Zeit offline." + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:15 +msgid "Reconnect..." +msgstr "Neu verbinden..." + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:20 +#: src/octoprint/templates/navbar/login.jinja2:13 +msgid "Remember me" +msgstr "Login merken" + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:22 +msgid "Log in" +msgstr "Login" + +#: src/octoprint/plugins/logging/__init__.py:205 +msgid "Without this plugin you will no longer be able to retrieve OctoPrint's logs or modify the current logging levels through the web interface." +msgstr "Ohne dieses Plugin kannst du OctoPrints Logfiles nicht mehr über das Webinterface herunterladen und auch die aktuellen Loglevel modifizieren." #: src/octoprint/plugins/logging/templates/logging_settings.jinja2:1 msgid "Logs" @@ -903,28 +1133,6 @@ msgstr "Änderungsdatum" msgid "descending" msgstr "absteigend" -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:5 -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:12 -#: src/octoprint/templates/sidebar/files.jinja2:18 -#: src/octoprint/templates/sidebar/files.jinja2:33 -#: src/octoprint/templates/sidebar/files.jinja2:44 -#: src/octoprint/templates/tabs/timelapse.jinja2:122 -#: src/octoprint/templates/tabs/timelapse.jinja2:168 -msgid "Size" -msgstr "Größe" - -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:13 -msgid "Date" -msgstr "Datum" - -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:14 -#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:7 -#: src/octoprint/templates/snippets/settings/printerprofiles/profiles.jinja2:6 -#: src/octoprint/templates/tabs/timelapse.jinja2:123 -#: src/octoprint/templates/tabs/timelapse.jinja2:169 -msgid "Action" -msgstr "Aktion" - #: src/octoprint/plugins/logging/templates/logging_settings.jinja2:46 msgid "Logging Levels" msgstr "Logginglevel" @@ -944,360 +1152,363 @@ msgstr "Entfernen" msgid "Add" msgstr "Hinzufügen" -#: src/octoprint/plugins/octopi_support/__init__.py:164 -msgid "" -"Without this plugin OctoPrint will no longer be able to provide " -"additional information about your OctoPi instance,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 deine OctoPi Instanz zur Verfügung stellen, was es ggf. schwieriger " -"macht, dir zu helfen, falls du Support brauchst." +#: 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/octopi_support/static/js/octopi_support.js:32 +#: 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." + +#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29 msgid "running on" msgstr "auf" -#: src/octoprint/plugins/octopi_support/static/js/octopi_support.js:32 +#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29 msgid "OctoPi" msgstr "OctoPi" -#: src/octoprint/plugins/octopi_support/templates/octopi_support_about.jinja2:1 +#: 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: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: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/pluginmanager/__init__.py:150 +#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:1 +msgid "What do the symbols mean?" +msgstr "Was bedeuten die Symbole?" + +#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:2 +msgid "Undervoltage" +msgstr "Zu niedrige Spannung" + +#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:3 +msgid "Overheat" +msgstr "Überhitzung" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:3 +msgid "Please restart OctoPrint after changing any of this plugin's settings." +msgstr "Bitte start OctoPrint neu, nachdem du die Einstellungen dieses Plugins geändert hast." + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:9 +msgid "Enable under voltage and overheat detection via vcgencmd get_throttled" +msgstr "Erkennung zu niedriger Spannung und Überhitzung via vcgencmd get_throttled einschalten" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:11 +msgid "This will regularly check with the Pi if something is amiss either with power regulation or CPU/GPU temperature." +msgstr "Es wird regelmässig geprüft, ob etwas mit der Spannungsversorgung oder der CPU/GPU Temperatur des Pis nicht stimmt." + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:16 +#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:220 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:83 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:157 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:267 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:340 +#: src/octoprint/templates/dialogs/settings/webcam.jinja2:9 +#: src/octoprint/templates/dialogs/settings/webcam.jinja2:23 +#: src/octoprint/templates/snippets/settings/server/serverPluginBlacklist.jinja2:5 +#: src/octoprint/templates/tabs/gcodeviewer.jinja2:77 +#: src/octoprint/templates/tabs/terminal.jinja2:34 +msgid "Advanced options" +msgstr "Erweiterte Optionen" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:20 +msgid "Command for under voltage/overheat detection" +msgstr "Befehl für Spannungs-/Überhitzungserkennung" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:23 +msgid "Defaults to /usr/bin/vcgencmd get_throttled. You usually shouldn't have to change this." +msgstr "Standardeinstellung ist /usr/bin/vcgencmd get_throttled. Du solltest das gewöhnlich nicht ändern müssen." + +#: src/octoprint/plugins/pluginmanager/__init__.py:180 msgid "Plugin Manager" msgstr "Pluginmanager" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:221 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:138 msgid "There are no plugin notices. Great!" msgstr "Keine Nachrichten zu deinen Plugins. Super!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:223 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:140 msgid "There is a plugin notice for one of your installed plugins." msgstr "Es gibt eine Nachricht zu einem deiner installierten Plugins." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:225 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:142 #, python-format -msgid "" -"There are %(count)d plugin notices for one or more of your installed " -"plugins." -msgstr "" -"Es gibt %(count)d Nachrichten zu einem oder mehreren deiner installierten" -" Plugins." +msgid "There are %(count)d plugin notices for one or more of your installed plugins." +msgstr "Es gibt %(count)d Nachrichten zu einem oder mehreren deiner installierten Plugins." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:320 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:237 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460 msgid "Installing plugin..." msgstr "Installiere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:320 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:237 msgid "Installing plugin from uploaded archive..." msgstr "Installiere Plugin von hochgeladenem Archiv..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:341 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:467 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:567 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:795 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:258 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:384 +#: 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" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:342 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:468 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:568 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:606 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:259 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:385 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:523 msgid "Please consult octoprint.log for details" msgstr "Bitte konsultiere octoprint.log für Details" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:487 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:404 #, python-format msgid "You are about to disable \"%(name)s\"." msgstr "Du bist im Begriff \"%(name)s\" zu deaktivieren." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:490 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:407 msgid "This is not recommended" msgstr "Das ist nicht empfohlen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:492 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:409 msgid "Do you still want to disable it?" msgstr "Möchtest du es immer noch deaktivieren?" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:493 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:410 msgid "Keep enabled" msgstr "Aktiviert lassen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:494 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:411 msgid "Disable anyway" msgstr "Trotzdem deaktivieren" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:545 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:462 #, python-format msgid "Installing plugin \"%(name)s\" from %(url)s..." msgstr "Installiere Plugin \"%(name)s\" von %(url)s..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:547 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:464 #, python-format msgid "Installing plugin from %(url)s..." msgstr "Installiere Plugin von %(url)s..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:550 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:467 msgid "Reinstalling plugin..." msgstr "Reinstalliere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:468 #, python-format msgid "Reinstalling plugin \"%(name)s\" from %(url)s..." msgstr "Reinstalliere Plugin \"%(name)s\" von %(url)s..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:597 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:514 msgid "Uninstalling plugin..." msgstr "Deinstalliere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:597 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:514 #, python-format msgid "Uninstalling plugin \"%(name)s\"" msgstr "Deinstalliere Plugin \"%(name)s\"" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 msgid "Reinstall" msgstr "Reinstallieren" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:198 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:214 msgid "Install" msgstr "Installieren" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 msgid "Disabled" msgstr "Deaktiviert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 msgid "Incompatible" msgstr "Inkompatibel" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:720 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:637 msgid "Plugin management log" msgstr "Pluginmanagementlog" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:728 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:645 #, python-format msgid "%(count)d earlier actions..." msgstr "%(count)d frühere Aktionen..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:730 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:647 #, python-format msgid "%(count)d earlier action" msgstr "%(count)d earlier Aktion" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:741 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:658 #, python-format msgid "Install %(plugin)s: %(result)s" msgstr "%(plugin)s installiert: %(result)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:745 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:662 #, python-format msgid "Uninstall %(plugin)s: %(result)s" msgstr "%(plugin)s deinstalliert: %(result)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:749 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:666 #, python-format msgid "Enable %(plugin)s: %(result)s" msgstr "%(plugin)s aktiviert: %(result)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:753 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:670 #, python-format msgid "Disable %(plugin)s: %(result)s" msgstr "%(plugin)s deaktiviert: %(result)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:770 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:687 msgid "A restart is needed for the changes to take effect." -msgstr "" -"Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam " -"werden." +msgstr "Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam werden." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:778 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:695 msgid "Restart now" msgstr "Jetzt neu starten" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:783 -msgid "" -"This will restart your OctoPrint server.

    This " -"action may disrupt any ongoing print jobs (depending on your printer's " -"controller and general setup that might also apply to prints run directly" -" from your printer's internal storage)." -msgstr "" -"Dies wird deinen OctoPrint server neu " -"starten

    Diese Aktion wird laufende Druckaufträge " -"unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup " -"gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers" -" laufen lässt)." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:700 +msgid "This will restart your OctoPrint server.

    This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)." +msgstr "Dies wird deinen OctoPrint server neu starten

    Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:789 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:706 msgid "Restart in progress" msgstr "Neustart findet statt" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:790 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:707 msgid "The server is now being restarted in the background" msgstr "Der Server wird nun im Hintergrund neu gestartet" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:796 -msgid "" -"Trying to restart the server produced an error, please check " -"octoprint.log for details. You'll have to restart manually." -msgstr "" -"Beim Versuch, den Server neu zu starten, ist ein Fehler aufgetreten. " -"Bitte konsultiere octoprint.log für Details. Du musst manuell neu " -"starten." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:713 +msgid "Trying to restart the server produced an error, please check octoprint.log for details. You'll have to restart manually." +msgstr "Beim Versuch, den Server neu zu starten, ist ein Fehler aufgetreten. Bitte konsultiere octoprint.log für Details. Du musst manuell neu starten." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:809 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:726 msgid "A refresh is needed for the changes to take effect." -msgstr "" -"Ein Neuladen von OctoPrint ist notwendig, damit die Änderungen wirksam " -"werden." +msgstr "Ein Neuladen von OctoPrint ist notwendig, damit die Änderungen wirksam werden." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:816 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:733 #: src/octoprint/templates/overlays/reloadui.jinja2:14 msgid "Reload now" msgstr "Jetzt neu laden" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:825 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:742 msgid "A reconnect to the printer is needed for the changes to take effect." -msgstr "" -"Ein Reconnect zum Drucker ist notwendig, damit die Änderungen wirksam " -"werden." +msgstr "Ein Reconnect zum Drucker ist notwendig, damit die Änderungen wirksam werden." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:862 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:779 msgid "Error!" msgstr "Fehler!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:865 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:782 msgid "Done!" msgstr "Fertig!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:891 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:808 msgid "Blacklisted" msgstr "Geblacklistet" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:893 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:810 msgid "Disabled due to active safe mode" msgstr "Deaktiviert wegen aktiviertem Safe Mode" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:895 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:812 msgid "Enable Plugin" msgstr "Plugin enablen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:898 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815 msgid "Disable Plugin" msgstr "Plugin disablen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:918 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:835 #, python-format -msgid "" -"There are %(count)d notices (%(important)d marked as important) available" -" regarding this plugin - click to show!" -msgstr "" -"Es gibt %(count)d Nachrichten (%(important)d als wichtig markiert) zu " -"diesem Plugin - hier klicken um sie anzuzeigen!" +msgid "There are %(count)d notices (%(important)d marked as important) available regarding this plugin - click to show!" +msgstr "Es gibt %(count)d Nachrichten (%(important)d als wichtig markiert) zu diesem Plugin - hier klicken um sie anzuzeigen!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:920 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:837 #, python-format -msgid "" -"There are %(count)d notices available regarding this plugin - click to " -"show!" -msgstr "" -"Es gibt %(count)d Nachrichten zu diesem Plugin - hier klicken um sie " -"anzuzeigen!" +msgid "There are %(count)d notices available regarding this plugin - click to show!" +msgstr "Es gibt %(count)d Nachrichten zu diesem Plugin - hier klicken um sie anzuzeigen!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:924 -msgid "" -"There is an important notice available regarding this plugin - click to " -"show!" -msgstr "" -"Es gibt eine wichtige Nachricht zu diesem Plugin - hier klicken um sie " -"anzuzeigen!" +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:841 +msgid "There is an important notice available regarding this plugin - click to show!" +msgstr "Es gibt eine wichtige Nachricht zu diesem Plugin - hier klicken um sie anzuzeigen!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:926 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:843 msgid "There is a notice available regarding this plugin - click to show!" msgstr "Es gibt eine Nachricht zu diesem Plugin - hier klicken um sie anzuzeigen!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:940 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:857 #, python-format msgid "Important notice regarding plugin \"%(name)s\"" msgstr "Wichtige Nachricht zu Plugin \"%(name)s\"" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:942 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:859 #, python-format msgid "Notice regarding plugin \"%(name)s\"" msgstr "Nachricht zu Plugin \"%(name)s\"" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:949 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:866 #, python-format msgid "Affected versions: %(versions)s" msgstr "Betroffene Versionen: %(versions)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:951 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:868 msgid "Affected versions: all" msgstr "Betroffene Versionen: alle" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:956 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:873 msgid "Read more..." msgstr "Mehr..." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:3 -msgid "" -"Take note that all plugin management functionality is disabled while your" -" printer is printing." -msgstr "" -"Bitte beachte dass jegliche Pluginmanagementfunktionen während des " -"Druckens deaktiviert sind." +msgid "Take note that all plugin management functionality is disabled while your printer is printing." +msgstr "Bitte beachte dass jegliche Pluginmanagementfunktionen während des Druckens deaktiviert sind." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:8 -msgid "" -"\n" -" The pip command could not be found or does not work " -"correctly\n" -" for this installation of OctoPrint - please consult the log file for " -"details\n" -" and if necessary configure it manually. No installation and " -"uninstallation of plugin\n" +msgid "\n" +" The pip command could not be found or does not work correctly\n" +" for this installation of OctoPrint - please consult the log file for details\n" +" and if necessary configure it manually. No installation and uninstallation of plugin\n" " packages is possible while pip is unavailable.\n" -msgstr "" -"\n" -" Der pip Befehl konnte nicht gefunden werden oder " -"funktioniert nicht richtig - bitte konsultiere die Logdatei für Details " -"und fall nötig konfiguriere den Befehl manuell. Installation und " -"Deinstallation von Plugins ist nicht möglich, solange pip " -"nicht verfügbar ist.\n" +msgstr "\n" +" Der pip Befehl konnte nicht gefunden werden oder funktioniert nicht richtig - bitte konsultiere die Logdatei für Details und fall nötig konfiguriere den Befehl manuell. Installation und Deinstallation von Plugins ist nicht möglich, solange pip nicht verfügbar ist.\n" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:17 -msgid "" -"\n" -" Safe mode is currently active. All third party plugins are disabled " -"and cannot be\n" +msgid "\n" +" Safe mode is currently active. All third party plugins are disabled and cannot be\n" " enabled. Installation of plugin packages is disabled.\n" -msgstr "" -"Der Safe Mode ist aktuell aktiviert. Alle Third-Party-Plugins sind " -"deaktiviert und könnennicht aktiviert werden. Installation von Plugins " -"ist deaktiviert." +msgstr "Der Safe Mode ist aktuell aktiviert. Alle Third-Party-Plugins sind deaktiviert und könnennicht aktiviert werden. Installation von Plugins ist deaktiviert." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:24 -msgid "" -"\n" -" It looks like OctoPrint has currently no connection to the internet. " -"Due to that it's not possible\n" +msgid "\n" +" It looks like OctoPrint has currently no connection to the internet. Due to that it's not possible\n" " to install new plugins from the plugin repository or archive URLs.\n" -msgstr "" -"OctoPrint scheint zur Zeit keine Verbindung zum Internet zu haben. Daher " -"ist es nicht Möglich, neue Plugins aus dem Pluginrepository oder von URL " -"zu installieren." +msgstr "OctoPrint scheint zur Zeit keine Verbindung zum Internet zu haben. Daher ist es nicht Möglich, neue Plugins aus dem Pluginrepository oder von URL zu installieren." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:35 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:242 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:20 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:77 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:37 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:94 msgid "Plugin Configuration" msgstr "Pluginkonfiguration" @@ -1315,9 +1526,7 @@ msgstr "Kann nicht aus OctoPrint heraus deinstalliert werden" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:50 msgid "Restart of OctoPrint needed for changes to take effect" -msgstr "" -"Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam " -"werden" +msgstr "Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam werden" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:50 msgid "Pending install" @@ -1420,78 +1629,40 @@ msgstr "URL eingeben..." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:200 #, python-format -msgid "" -"This does not look like a valid URL. Expected http, https or any of the " -"supported VCS URLs." -msgstr "" -"Das sieht nicht wie eine valide URL aus. Erwarte http, https oder eine " -"der unterstützten VCS URLs." +msgid "This does not look like a valid URL. Expected http, https or any of the supported VCS URLs." +msgstr "Das sieht nicht wie eine valide URL aus. Erwarte http, https oder eine der unterstützten VCS URLs." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:203 msgid "... from an uploaded archive" msgstr "... von einem hochgeladenen Archiv" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:216 -msgid "" -"This does not look like a valid plugin archive. Valid plugin archives " -"should be either zip files or tarballs and have the extension \".zip\", " -"\".tar.gz\", \".tgz\" or \".tar\"" -msgstr "" -"Das sieht nicht aus wie ein valides Pluginarchiv. Valide Pluginarchive " -"sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension " -"\".zip\", \".tar.gz\", \".tgz\" oder \".tar\" haben" - -#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:220 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:66 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:157 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:267 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:333 -#: src/octoprint/templates/dialogs/settings/webcam.jinja2:9 -#: src/octoprint/templates/dialogs/settings/webcam.jinja2:23 -#: src/octoprint/templates/snippets/settings/server/serverPluginBlacklist.jinja2:5 -#: src/octoprint/templates/tabs/gcodeviewer.jinja2:77 -#: src/octoprint/templates/tabs/terminal.jinja2:34 -msgid "Advanced options" -msgstr "Erweiterte Optionen" +msgid "This does not look like a valid plugin archive. Valid plugin archives should be either zip files or tarballs and have the extension \".zip\", \".tar.gz\", \".tgz\" or \".tar\"" +msgstr "Das sieht nicht aus wie ein valides Pluginarchiv. Valide Pluginarchive sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension \".zip\", \".tar.gz\", \".tgz\" oder \".tar\" haben" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:226 msgid "Use --process-dependency-links with pip install" -msgstr "" -"--process-dependency-link mit pip install " -"verwenden" +msgstr "--process-dependency-link mit pip install verwenden" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:246 -msgid "" -"You should normally not have to change " -"any of the following settings, they are purely provided " -"for convenience here." -msgstr "" -"Du solltest keine der folgenden Einstellungen ändern " -"müssen, sie sind hier nur aus Gründen der Vollständigkeit aufgeführt." +msgid "You should normally not have to change any of the following settings, they are purely provided for convenience here." +msgstr "Du solltest keine der folgenden Einstellungen ändern müssen, sie sind hier nur aus Gründen der Vollständigkeit aufgeführt." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:249 msgid "Plugin repository configuration" msgstr "Pluginrepositorykonfiguration" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:251 -msgid "" -"URL of the Plugin Repository to use. You should normally not have to " -"change this." -msgstr "" -"URL des zu nutzenden Pluginrepositories. Du solltest hier normalerweise " -"nichts ändern müssen." +msgid "URL of the Plugin Repository to use. You should normally not have to change this." +msgstr "URL des zu nutzenden Pluginrepositories. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:252 msgid "Repository URL" msgstr "Repository-URL" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:257 -msgid "" -"How long to cache repository data, in minutes. You should normally not " -"have to change this." -msgstr "" -"Wie lange die Repositorydaten gecached werden sollen, in Minuten. Du " -"solltest hier normalerweise nichts ändern müssen." +msgid "How long to cache repository data, in minutes. You should normally not have to change this." +msgstr "Wie lange die Repositorydaten gecached werden sollen, in Minuten. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:258 msgid "Repository cache TTL" @@ -1502,24 +1673,16 @@ msgid "Notices configuration" msgstr "Nachrichtenkonfiguration" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:271 -msgid "" -"URL of the Notices source to use. You should normally not have to change " -"this." -msgstr "" -"URL der zu nutzenden Nachrichtenquelle. Du solltest hier normalerweise " -"nichts ändern müssen." +msgid "URL of the Notices source to use. You should normally not have to change this." +msgstr "URL der zu nutzenden Nachrichtenquelle. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:272 msgid "Notices URL" msgstr "Nachrichten URL" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:277 -msgid "" -"How long to cache notices, in minutes. You should normally not have to " -"change this." -msgstr "" -"Wie lange Nachrichten gecached werden sollen, in Minuten. Du solltest " -"hier normalerweise nichts ändern müssen." +msgid "How long to cache notices, in minutes. You should normally not have to change this." +msgstr "Wie lange Nachrichten gecached werden sollen, in Minuten. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:278 msgid "Notices cache TTL" @@ -1530,25 +1693,19 @@ msgid "pip configuration" msgstr "pip Konfiguration" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:291 -msgid "" -"Additional arguments for the pip command. You should normally not have to" -" change this." -msgstr "" -"Weitere Argument für den pip Befehl. Du solltest hier normalerweise " -"nichts ändern müssen." +msgid "Additional arguments for the pip command. You should normally not have to change this." +msgstr "Weitere Argument für den pip Befehl. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:292 msgid "Additional arguments" msgstr "Weitere Argumente" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:300 -msgid "" -"Force the use of the --user flag with pip " -"install" +msgid "Force the use of the --user flag with pip install" msgstr "--user mit pip install verwenden" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:309 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:104 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:121 #: src/octoprint/static/js/app/helpers.js:707 #: src/octoprint/templates/dialogs/files.jinja2:18 #: src/octoprint/templates/dialogs/slicing.jinja2:57 @@ -1558,24 +1715,22 @@ msgid "Cancel" msgstr "Abbruch" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:310 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:105 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:122 #: src/octoprint/templates/dialogs/temperature.jinja2:32 msgid "Save" msgstr "Speichern" -#: src/octoprint/plugins/printer_safety_check/__init__.py:83 +#: 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:166 -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." +#: 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." #: src/octoprint/plugins/printer_safety_check/templates/printer_safety_check_sidebar.jinja2:1 msgid "Warning!" @@ -1585,440 +1740,376 @@ msgstr "Warnung!" msgid "Learn more..." msgstr "Mehr erfahren..." -#: src/octoprint/plugins/softwareupdate/__init__.py:570 +#: src/octoprint/plugins/softwareupdate/__init__.py:520 +msgid "Python" +msgstr "Python" + +#: src/octoprint/plugins/softwareupdate/__init__.py:521 +msgid "pip" +msgstr "pip" + +#: src/octoprint/plugins/softwareupdate/__init__.py:522 +msgid "setuptools" +msgstr "setuptools" + +#: 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:984 +#: src/octoprint/plugins/softwareupdate/__init__.py:1045 #: src/octoprint/server/views.py:577 -#: src/octoprint/static/js/app/viewmodels/appearance.js:13 -#: src/octoprint/static/js/app/viewmodels/appearance.js:18 -#: src/octoprint/static/js/app/viewmodels/appearance.js:20 -#: src/octoprint/static/js/app/viewmodels/appearance.js:25 -#: src/octoprint/static/js/app/viewmodels/appearance.js:27 +#: src/octoprint/static/js/app/viewmodels/appearance.js:99 +#: src/octoprint/static/js/app/viewmodels/appearance.js:104 +#: src/octoprint/static/js/app/viewmodels/appearance.js:106 +#: src/octoprint/static/js/app/viewmodels/appearance.js:111 +#: src/octoprint/static/js/app/viewmodels/appearance.js:113 #: src/octoprint/templates/dialogs/about/about.jinja2:1 msgid "OctoPrint" msgstr "OctoPrint" -#: src/octoprint/plugins/softwareupdate/__init__.py:1144 -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." +#: 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." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:247 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:169 msgid "Release" msgstr "Release" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:248 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:170 msgid "Commit" msgstr "Commit" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:287 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:209 #, python-format msgid "%(name)s: %(version)s" msgstr "%(name)s: %(version)s" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:290 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:212 msgid "unknown" msgstr "unbekannt" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:304 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:507 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:521 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:694 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:229 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:436 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:450 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:623 msgid "Updating..." msgstr "Aktualisiere..." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:304 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:521 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:694 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:229 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:450 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:623 msgid "Updating, please wait." msgstr "Aktualisiere gerade, bitte warten." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:311 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:236 msgid "There are updates available for the following components:" msgstr "Es gibt Aktualisierungen für die folgenden Komponenten:" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:319 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:565 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:244 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:494 msgid "Release Notes" msgstr "Release Notes" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:325 -msgid "" -"Those components marked with can be updated" -" directly." -msgstr "" -"Die mit markierten Komponenten können " -"direkt aktualisiert werden." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:251 +msgid "This version of the Python environment is not supported for direct updates." +msgstr "Diese Version der Pythonumgebung unterstützt keine direkten Aktualisierungen." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:328 -msgid "" -"To have updates applied, get in touch with an administrator of this " -"OctoPrint instance." -msgstr "" -"Um Updates durchzuführen wende dich bitte an einen Administrator dieser " -"OctoPrint Instanz." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:253 +msgid "Those components marked with can be updated directly." +msgstr "Die mit markierten Komponenten können direkt aktualisiert werden." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:334 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:257 +msgid "To have updates applied, get in touch with an administrator of this OctoPrint instance." +msgstr "Um Updates durchzuführen wende dich bitte an einen Administrator dieser OctoPrint Instanz." + +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:263 msgid "Update Available" msgstr "Aktualisierung verfügbar" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:346 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:372 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:373 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:275 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:301 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:101 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:380 msgid "Ignore" msgstr "Ignorieren" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:350 -msgid "" -"You can make this message display again via \"Settings\" > \"Software " -"Update\" > \"Check for update now\"" -msgstr "" -"Du kannst diese Nachricht erneut anzeigen lassen mittels " -"\"Einstellungen\" > \"Software Update\" > \"Jetzt nach Aktualisierungen " -"suchen\"" +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:279 +msgid "You can make this message display again via \"Settings\" > \"Software Update\" > \"Check for update now\"" +msgstr "Du kannst diese Nachricht erneut anzeigen lassen mittels \"Einstellungen\" > \"Software Update\" > \"Jetzt nach Aktualisierungen suchen\"" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:354 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:283 msgid "Update now" msgstr "Jetzt aktualisieren" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:392 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:321 msgid "Everything is up-to-date" msgstr "Alles ist auf dem neusten Stand" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:416 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:345 msgid "No internet connection" msgstr "Keine Onlineverbindung" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:420 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:349 msgid "Update not possible" msgstr "Update nicht möglich" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:431 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:360 msgid "Unknown update check, configuration ok?" msgstr "Unbekannter Updatechecktyp, Konfiguration in Ordnung?" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:434 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:363 msgid "Cannot check for update, need online connection" msgstr "Updatecheck ist nicht mögich, benötige Onlineverbindung" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:437 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:366 msgid "Network error while checking for update" msgstr "Netzwerkfehler bei Updatecheck" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:440 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:369 msgid "Unknown error while checking for update, please check the logs" msgstr "Unbekannter Fehler beim Updatecheck, bitte prüfe die Logs" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:508 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:437 msgid "Now updating, please wait." msgstr "Aktualisiere gerade, bitte warten." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:526 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:455 msgid "Update not started!" msgstr "Aktualisierung nicht gestartet!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:527 -msgid "" -"The update could not be started. Is it already active? Please consult " -"octoprint.log for details." -msgstr "" -"Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? " -"Bitte konsultiere octoprint.log für Details." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:456 +msgid "The update could not be started. Is it already active? Please consult octoprint.log for details." +msgstr "Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? Bitte konsultiere octoprint.log für Details." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:553 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:482 msgid "Can't update while printing" msgstr "Aktualisierung nicht möglich während gedruckt wird" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:554 -msgid "" -"A print job is currently in progress. Updating will be prevented until it" -" is done." -msgstr "" -"Ein Druckjob ist zur Zeit aktiv. Aktualisierungen werden unterbunden bis " -"er fertig ist." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:483 +msgid "A print job is currently in progress. Updating will be prevented until it is done." +msgstr "Ein Druckjob ist zur Zeit aktiv. Aktualisierungen werden unterbunden bis er fertig ist." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:559 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:488 msgid "This will update the following components and restart the server:" -msgstr "" -"Das wird die folgenden Komponenten aktualisieren und den Server neu " -"starten." +msgstr "Das wird die folgenden Komponenten aktualisieren und den Server neu starten." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:570 -msgid "" -"Be sure to read through any linked release notes, especially those for " -"OctoPrint since they might contain important information you need to know" -" before upgrading." -msgstr "" -"Bitte lies alle verlinkten Release Notes, insbesondere die von OctoPrint," -" da diese wichtige Informationen behinhalten könnten, die Du " -"vor dem Softwareupdate wissen solltest." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:499 +msgid "Be sure to read through any linked release notes, especially those for OctoPrint since they might contain important information you need to know before upgrading." +msgstr "Bitte lies alle verlinkten Release Notes, insbesondere die von OctoPrint, da diese wichtige Informationen behinhalten könnten, die Du vor dem Softwareupdate wissen solltest." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:571 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:500 msgid "This action may disrupt any ongoing print jobs." msgstr "Das könnte laufende Druckaufträge unterbrechen." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:572 -msgid "" -"Depending on your printer's controller and general setup, restarting " -"OctoPrint may cause your printer to be reset." -msgstr "" -"Abhängig von deinem Druckerkontroller und generellem Setup könnte ein " -"Neustart von OctoPrint auch zum Neustart deines Druckers führen." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:501 +msgid "Depending on your printer's controller and general setup, restarting OctoPrint may cause your printer to be reset." +msgstr "Abhängig von deinem Druckerkontroller und generellem Setup könnte ein Neustart von OctoPrint auch zum Neustart deines Druckers führen." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:573 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:502 #: src/octoprint/static/js/app/helpers.js:703 msgid "Are you sure you want to proceed?" msgstr "Bist Du sicher, dass du fortfahren willst?" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:575 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:504 msgid "Are you sure you want to update now?" msgstr "Bist Du sicher, dass du jetzt aktualisieren willst?" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:577 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:506 #: src/octoprint/static/js/app/helpers.js:708 msgid "Proceed" msgstr "Fortfahren" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:711 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:640 #, python-format msgid "Now updating %(name)s to %(version)s" msgstr "Aktualisiere %(name)s auf %(version)s" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:730 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:659 msgid "Update successful, restarting!" msgstr "Aktualisierung erfolgreich, starte neu!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:731 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:660 msgid "The update finished successfully and the server will now be restarted." -msgstr "" -"Die Aktualisierung wurde erfolgreich durchgeführt und der Server wird " -"jetzt neu gestartet." +msgstr "Die Aktualisierung wurde erfolgreich durchgeführt und der Server wird jetzt neu gestartet." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:748 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:797 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:677 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:726 msgid "Restart failed" msgstr "Neustart fehlgeschlagen" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:749 -msgid "" -"The server apparently did not restart by itself, you'll have to do it " -"manually. Please consult octoprint.log on what went wrong." -msgstr "" -"Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das " -"manuell tun müssen. Bitte konsultiere octoprint.log." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:678 +msgid "The server apparently did not restart by itself, you'll have to do it manually. Please consult octoprint.log on what went wrong." +msgstr "Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das manuell tun müssen. Bitte konsultiere octoprint.log." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:771 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:700 msgid "The update finished successfully, please restart OctoPrint now." -msgstr "" -"Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte " -"OctoPrint jetzt neu." +msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte OctoPrint jetzt neu." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:773 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:702 msgid "The update finished successfully, please reboot the server now." -msgstr "" -"Die Aktualisierung wurde erfolgreich abgeschlossen, bitte reboote den " -"Server jetzt." +msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen, bitte reboote den Server jetzt." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:776 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:705 msgid "Update successful, restart required!" msgstr "Aktualisierung erfolgreich, Neustart notwendig!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:792 -msgid "" -"Restarting OctoPrint failed, please restart it manually. You might also " -"want to consult octoprint.log on what went wrong here." -msgstr "" -"Der Neustart von OctoPrint ist fehlgeschlagen, bitte starte es manuell " -"neu. Du solltest auch octoprint.log konsultieren, um herauszufinden, was " -"hier schief gelaufen ist." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:721 +msgid "Restarting OctoPrint failed, please restart it manually. You might also want to consult octoprint.log on what went wrong here." +msgstr "Der Neustart von OctoPrint ist fehlgeschlagen, bitte starte es manuell neu. Du solltest auch octoprint.log konsultieren, um herauszufinden, was hier schief gelaufen ist." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:794 -msgid "" -"Rebooting the server failed, please reboot it manually. You might also " -"want to consult octoprint.log on what went wrong here." -msgstr "" -"Reboot des Servers fehlgeschlagen, bitte reboote ihn manuell. Du solltest" -" auch octoprint.log konsultieren, um herauszufinden, was hier gerade " -"schief gelaufen ist." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:723 +msgid "Rebooting the server failed, please reboot it manually. You might also want to consult octoprint.log on what went wrong here." +msgstr "Reboot des Servers fehlgeschlagen, bitte reboote ihn manuell. Du solltest auch octoprint.log konsultieren, um herauszufinden, was hier gerade schief gelaufen ist." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:813 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:742 msgid "Update successful!" msgstr "Aktualisierung erfolgreich!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:814 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:743 msgid "The update finished successfully." msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:829 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:758 msgid "Update failed!" msgstr "Aktualisierung fehlgeschlagen!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:830 -msgid "" -"The update did not finish successfully. Please consult " -"octoprint.log and " -"plugin_softwareupdate_console.log for details." -msgstr "" -"Die Aktualisierung wurde nicht erfolgreich abgeschlossen. Bitte " -"konsultiere octoprint.log und " -"plugin_softwareupdate_console.log für Details." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:759 +msgid "The update did not finish successfully. Please consult octoprint.log and plugin_softwareupdate_console.log for details." +msgstr "Die Aktualisierung wurde nicht erfolgreich abgeschlossen. Bitte konsultiere octoprint.log und plugin_softwareupdate_console.log für Details." #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:1 -msgid "" -"\n" -" Please configure the checkout folder of OctoPrint, " -"otherwise\n" -" this plugin won't be able to update it. Click on the button\n" -" to do this. Also refer to the Documentation.\n" -msgstr "" -"Bitte konfiguriere das Checkoutverzeichnis von " -"OctoPrint, andernfalls wird dieses Plugin Deine Installation nicht " -"updaten können. Klicke dazu auf den " -"Button. Siehe des Weiteren auch die Dokumentation." +msgid "\n" +" Please configure the checkout folder of OctoPrint, otherwise\n" +" this plugin won't be able to update it. Click on the button\n" +" to do this. Also refer to the Documentation.\n" +msgstr "Bitte konfiguriere das Checkoutverzeichnis von OctoPrint, andernfalls wird dieses Plugin Deine Installation nicht updaten können. Klicke dazu auf den Button. Siehe des Weiteren auch die Dokumentation." #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:6 -msgid "" -"\n" +msgid "\n" "

    \n" -" You are running a non-release version of OctoPrint but " -"are tracking OctoPrint\n" +" You are running a non-release version of OctoPrint but are tracking OctoPrint\n" " releases.\n" "

    \n" -" You probably want OctoPrint to track the matching development " -"version instead.\n" -" If you have a local OctoPrint checkout folder switched to another" -" branch,\n" -" simply switching over to \"Commit\" tracking " -"will already\n" +" You probably want OctoPrint to track the matching development version instead.\n" +" If you have a local OctoPrint checkout folder switched to another branch,\n" +" simply switching over to \"Commit\" tracking will already\n" " take care of that. Otherwise please take a look at the\n" -" Documentation.\n" +" Documentation.\n" "

    \n" -msgstr "" -"\n" -"

    Du nutzt eine unveröffentlichte Version von OctoPrint, " -"trackst aber OctoPrint Releases.

    Du willst " -"vermutlich, dass OctoPrint stattdessen die entsprechende " -"Entwicklungsversion trackt. Falls Du dein lokales OctoPrint-" -"Checkoutverzeichnis auf einen anderen Branch gewechselt hast, dann " -"wechsle das Tracking einfach auf \"Commit\". Ansonsten " -"wirf einen Blick in die Dokumentation.

    \n" +msgstr "\n" +"

    Du nutzt eine unveröffentlichte Version von OctoPrint, trackst aber OctoPrint Releases.

    Du willst vermutlich, dass OctoPrint stattdessen die entsprechende Entwicklungsversion trackt. Falls Du dein lokales OctoPrint-Checkoutverzeichnis auf einen anderen Branch gewechselt hast, dann wechsle das Tracking einfach auf \"Commit\". Ansonsten wirf einen Blick in die Dokumentation.

    \n" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:23 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:18 +msgid "\n" +"

    \n" +" This version of the Python environment is not supported for direct updates.\n" +"

    \n" +"

    \n" +" To reduce the likelihood of running into update problems in outdated environments, the following minimal\n" +" versions are required to use this updater to update OctoPrint or any installed plugins:\n" +"

    \n" +msgstr "\n" +"

    \n" +" Diese Version der Pythonumgebung wird fĂĽr direkt Aktualisierungen nicht unterstĂĽtzt.\n" +"

    \n" +"

    \n" +" Um die Wahrscheinlichkeit von Aktualisierungsproblemen in veralteten Umgebungen zu reduzieren, werden die folgenden minimalen\n" +" Versionen vorausgesetzt, um diesen Updater zur Aktualisierung von OctoPrint oder installierten Plugins zu nutzen:\n" +"

    \n" + +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:28 +msgid "you have" +msgstr "du hast" + +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:30 +msgid "\n" +"

    \n" +" Please take a look at this FAQ entry on how to proceed.\n" +"

    \n" +msgstr "\n" +"

    \n" +" Bitte schau dir diesen FAQ Eintrag an.\n" +"

    \n" + +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:40 msgid "Current versions" msgstr "Aktuelle Versionen" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:29 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:46 msgid "Update available" msgstr "Aktualisierung verfĂĽgbar" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:32 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:49 msgid "Update" msgstr "Aktualisieren" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:35 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:52 msgid "Installed:" msgstr "Installiert:" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:36 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:53 msgid "Available:" msgstr "VerfĂĽgbar:" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:37 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:54 msgid "Release Notes:" msgstr "Release Notes:" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:62 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:79 msgid "Update all" msgstr "Alle aktualisieren" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:63 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:80 msgid "Check for update now" msgstr "Jetzt nach Aktualisierungen suchen" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:68 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:85 msgid "Last cache refresh:" msgstr "Letzter Cacherefresh:" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:69 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:86 msgid "Force check for update (overrides cache used for update checks)" -msgstr "" -"Suche nach Aktualisierungen forcieren (ignoriert den Cache fĂĽr " -"Aktualisierungsinformationen)" +msgstr "Suche nach Aktualisierungen forcieren (ignoriert den Cache fĂĽr Aktualisierungsinformationen)" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:70 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:87 msgid "Force update now (even if no new versions are available)" msgstr "Aktualisierung forcieren (selbst wenn keine neue Versionen verfĂĽgbar sind)" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:85 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:102 msgid "Version cache TTL" msgstr "TTL des Versionscaches" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:96 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:113 msgid "Show update notifications to users" msgstr "Updatebenachrichtigungen auch Usern anzeigen" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:97 -msgid "" -"If you uncheck this, only logged in admins will see update notifications." -" Update notifications shown to users do not include the \"Update now\" " -"button." -msgstr "" -"Wenn du das deselektierst werden nur eingeloggte Administratoren " -"Updatebenachrichtigungen sehen. Updatebenachrichtigungen, die Usern " -"gezeigt werden, beinhalten keinen \"Jetzt aktualisieren\" Button." +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:114 +msgid "If you uncheck this, only logged in admins will see update notifications. Update notifications shown to users do not include the \"Update now\" button." +msgstr "Wenn du das deselektierst werden nur eingeloggte Administratoren Updatebenachrichtigungen sehen. Updatebenachrichtigungen, die Usern gezeigt werden, beinhalten keinen \"Jetzt aktualisieren\" Button." -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:115 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:132 msgid "Update in progress, please wait." msgstr "Aktualisiere gerade, bitte warten." -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:116 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:133 msgid "Update done, please close this window." msgstr "Update beendet, bitte schlieĂźe diesen Dialog." #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:3 -msgid "" -"

    \n" -" By default, OctoPrint will update itself via pip to " -"published releases. OctoPrint can\n" -" also update itself via git to arbitrary development " -"branches you need to check out manually.\n" -" If you want to do that though it needs to know its checkout folder. " -"You can configure that here.\n" +msgid "

    \n" +" By default, OctoPrint will update itself via pip to published releases. OctoPrint can\n" +" also update itself via git to arbitrary development branches you need to check out manually.\n" +" If you want to do that though it needs to know its checkout folder. You can configure that here.\n" "

    " -msgstr "" -"

    Standardmäßig nutzt OctoPrint pip um sich bei neuen " -"Releases selbst zu aktualisieren. OctoPrint kann sich auch via " -"git von beliebigen manuell ausgecheckten " -"Entwicklungsbranches aktualisieren. Falls du das tun willst muss " -"OctoPrint allerdings auch sein Checkoutfolder kennen. Das kannst du hier " -"konfigurieren.

    " +msgstr "

    Standardmäßig nutzt OctoPrint pip um sich bei neuen Releases selbst zu aktualisieren. OctoPrint kann sich auch via git von beliebigen manuell ausgecheckten Entwicklungsbranches aktualisieren. Falls du das tun willst muss OctoPrint allerdings auch sein Checkoutfolder kennen. Das kannst du hier konfigurieren.

    " #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:14 -msgid "" -"

    \n" -" If you are running a release version of OctoPrint, leave at " -"\"Release\" tracking. If you are running a different\n" +msgid "

    \n" +" If you are running a release version of OctoPrint, leave at \"Release\" tracking. If you are running a different\n" " branch however, you should setup \"Commit\" tracking.\n" "

    " -msgstr "" -"

    Wenn du eine Releaseversion von OctoPrint nutzt, lass hier \"Release\"" -" Tracking eingestellt. Falls du allerdings einen anderen Branch nutzt " -"solltest du auf \"Commit\" tracking umstellen.

    " +msgstr "

    Wenn du eine Releaseversion von OctoPrint nutzt, lass hier \"Release\" Tracking eingestellt. Falls du allerdings einen anderen Branch nutzt solltest du auf \"Commit\" tracking umstellen.

    " #: src/octoprint/plugins/softwareupdate/templates/snippets/plugins/softwareupdate/checkoutFolder.jinja2:2 msgid "OctoPrint checkout folder" @@ -2034,21 +2125,140 @@ msgstr "OctoPrint Release Channel" #: src/octoprint/plugins/softwareupdate/templates/snippets/plugins/softwareupdate/releaseChannel.jinja2:5 #, python-format -msgid "" -"Make sure you have read \"How to use the release channels to help " -"test release candidates\" before switching to a release channel other" -" than \"Stable\"" -msgstr "" -"Stelle sicher, dass du \"How to use the release channels to help " -"test release candidates\" gelesen hast, bevor du einen anderen " -"Release Channel als \"Stable\" auswählst." +msgid "Make sure you have read \"How to use the release channels to help test release candidates\" before switching to a release channel other than \"Stable\"" +msgstr "Stelle sicher, dass du \"How to use the release channels to help test release candidates\" gelesen hast, bevor du einen anderen Release Channel als \"Stable\" auswählst." #: src/octoprint/plugins/softwareupdate/templates/snippets/plugins/softwareupdate/versionTracking.jinja2:2 msgid "OctoPrint version tracking" msgstr "OctoPrint Versionstracking" +#: 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/usage.js:57 +msgid "Please set up anonymous usage tracking" +msgstr "Bitte konfiguriere das Anonymous Usage Tracking" + +#: 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 bug report on this. Make sure to include all requested information, including your JS console and octoprint.log." +msgstr "Bitte eröffne einen Bugreport zu diesem Problem. Stelle sicher, dass du alle erbetenen Daten zur Verfügung stellst, inklusive deiner JS console und octoprint.log." + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:9 +msgid "Enable anonymous usage tracking" +msgstr "Anonymous Usage Tracking aktivieren" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:14 +msgid "Random unique instance ID" +msgstr "Zufällige eindeutige Instanzkennung" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:14 +msgid "Instance ID" +msgstr "Instanzkennung" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:20 +msgid "Events to track. The ping is mandatory." +msgstr "Zu trackende Events. Der Ping ist obligatorisch." + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:20 +msgid "Tracked events" +msgstr "Getrackte Events" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:23 +msgid "Regular ping" +msgstr "Regelmäßiger Ping" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:26 +msgid "Server startup & shutdown" +msgstr "Server Start & Stop" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:29 +msgid "Connected to printer" +msgstr "Mit dem Drucker verbunden" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:32 +msgid "Print started/cancelled/finished" +msgstr "Druck gestartet/abgebrochen/beendet" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:35 +msgid "Plugin installed/uninstalled/enabled/disabled" +msgstr "Plugin installiert/deinstalliert/aktiviert/deaktiviert" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:38 +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" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:8 +msgid "Note: You can always change your decision and also access more granular controls via Settings > Anonymous Usage Tracking." +msgstr "Hinweis: Du kannst unter Einstellungen > Anonymous Usage Tracking deine Entscheidung jederzeit ändern und auch auf feingranularere Einstellungen zugreifen." + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:12 +msgid "Disable Anonymous Usage Tracking" +msgstr "Anonymous Usage Tracking deaktivieren" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:13 +msgid "Enable Anonymous Usage Tracking" +msgstr "Anonymous Usage Tracking aktivieren" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:17 +msgid "\n" +" Anonymous Usage Tracking is enabled.\n" +" " +msgstr "\n" +" Anonymous Usage Tracking aktiviert.\n" +" " + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:20 +msgid "\n" +" Anonymous Usage Tracking is disabled.\n" +" " +msgstr "\n" +" Anonymous Usage Tracking deaktiviert.\n" +" " + +#: src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDescription.jinja2:1 +msgid "\n" +"

    \n" +" Anonymous usage tracking provides valuable insights into how many instances running what versions of OctoPrint are out there,\n" +" whether they are successfully completing print jobs and various other metrics.\n" +"

    \n" +"

    \n" +" By enabling it you help to identify problems with new releases and release candidates early on, and to better\n" +" tailor OctoPrint's future development to actual use.\n" +"

    \n" +msgstr "\n" +"

    \n" +" Anonymous Usage Tracking liefert wertvolle Einblicke, wieviele Instanzen welche Versionen von OctoPrint da drauĂźen laufen haben,\n" +" ob sie erfolgreich Drucke beenden und weitere Metriken.\n" +"

    \n" +"

    \n" +" Wenn du es aktivierst, hilfst du, Probleme mit neuen Releases und Release Candidates frühzeitig zu erkennen und OctoPrints\n" +" Weiterentwicklung besser auf seine tatsächliche Nutzung zuzuschneiden.\n" +"

    \n" + +#: src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDetails.jinja2:1 +msgid "\n" +" For details on what gets tracked, please refer to tracking.octoprint.org\n" +" and also the Privacy Policy at tracking.octoprint.org.\n" +msgstr "\n" +" FĂĽr Details, was genau getrackt wird, schau bitte auf tracking.octoprint.org\n" +" sowie die Privacy Policy auf tracking.octoprint.org.\n" + #: src/octoprint/server/views.py:487 msgid "Plugins" msgstr "Plugins" @@ -2162,32 +2372,16 @@ msgid "Shutdown system" msgstr "System herunterfahren" #: src/octoprint/server/api/system.py:170 -msgid "" -"You are about to shutdown the system.

    This action " -"may disrupt any ongoing print jobs (depending on your printer's " -"controller and general setup that might also apply to prints run directly" -" from your printer's internal storage)." -msgstr "" -"Dies wird dein System herunterfahren.

    Diese Aktion" -" wird laufende Druckaufträge unterbrechen (abhängig von deinem " -"Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, " -"die du direkt von der SD deines Druckers laufen lässt)." +msgid "You are about to shutdown the system.

    This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)." +msgstr "Dies wird dein System herunterfahren.

    Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)." #: src/octoprint/server/api/system.py:173 msgid "Reboot system" msgstr "System neustarten" #: src/octoprint/server/api/system.py:174 -msgid "" -"You are about to reboot the system.

    This action " -"may disrupt any ongoing print jobs (depending on your printer's " -"controller and general setup that might also apply to prints run directly" -" from your printer's internal storage)." -msgstr "" -"Dies wird dein System neu starten.

    Diese Aktion " -"wird laufende Druckaufträge unterbrechen (abhängig von deinem " -"Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, " -"die du direkt von der SD deines Druckers laufen lässt)." +msgid "You are about to reboot the system.

    This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)." +msgstr "Dies wird dein System neu starten.

    Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)." #: src/octoprint/server/api/system.py:177 #: src/octoprint/templates/snippets/settings/server/serverCommandServerRestart.jinja2:2 @@ -2195,34 +2389,16 @@ msgid "Restart OctoPrint" msgstr "OctoPrint neustarten" #: src/octoprint/server/api/system.py:178 -msgid "" -"You are about to restart the OctoPrint " -"server.

    This action may disrupt any ongoing print jobs " -"(depending on your printer's controller and general setup that might also" -" apply to prints run directly from your printer's internal storage)." -msgstr "" -"Dies wird deinen OctoPrint Server neu " -"starten.

    Diese Aktion wird laufende Druckaufträge " -"unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup " -"gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers" -" laufen lässt)." +msgid "You are about to restart the OctoPrint server.

    This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)." +msgstr "Dies wird deinen OctoPrint Server neu starten.

    Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)." #: src/octoprint/server/api/system.py:181 msgid "Restart OctoPrint in safe mode" msgstr "OctoPrint im Sicherheitsmodus neustarten" #: src/octoprint/server/api/system.py:182 -msgid "" -"You are about to restart the OctoPrint server in safe " -"mode.

    This action may disrupt any ongoing print jobs " -"(depending on your printer's controller and general setup that might also" -" apply to prints run directly from your printer's internal storage)." -msgstr "" -"Dies wird deinen OctoPrint Server im Safemode neu " -"starten.

    Diese Aktion wird laufende Druckaufträge " -"unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup " -"gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers" -" laufen lässt)." +msgid "You are about to restart the OctoPrint server in safe mode.

    This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)." +msgstr "Dies wird deinen OctoPrint Server im Safemode neu starten.

    Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)." #: src/octoprint/static/js/app/dataupdater.js:90 #: src/octoprint/static/js/app/dataupdater.js:109 @@ -2232,39 +2408,20 @@ msgid "Server is offline" msgstr "Der Server ist offline" #: src/octoprint/static/js/app/dataupdater.js:91 -msgid "" -"The server appears to be offline, at least I'm not getting any response " -"from it. I'll try to reconnect automatically over the next couple" -" of minutes, however you are welcome to try a manual reconnect " -"anytime using the button below." -msgstr "" -"Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm" -" verbinden. Ich werde in den nächsten Minuten versuchen " -"mich erneut zu verbinden, aber Du kannst mittels des folgenden Buttons " -"auch jederzeit einen manuellen Verbindungsversuch anstoßen." +msgid "The server appears to be offline, at least I'm not getting any response from it. I'll try to reconnect automatically over the next couple of minutes, however you are welcome to try a manual reconnect anytime using the button below." +msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich werde in den nächsten Minuten versuchen mich erneut zu verbinden, aber Du kannst mittels des folgenden Buttons auch jederzeit einen manuellen Verbindungsversuch anstoßen." #: src/octoprint/static/js/app/dataupdater.js:110 -msgid "" -"The server appears to be offline, at least I'm not getting any response " -"from it. I could not reconnect automatically, but you " -"may try a manual reconnect using the button below." -msgstr "" -"Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm" -" verbinden. Ich konnte mich nicht automatisch neu " -"verbinden, aber Du kannst mittels des folgenden Buttons einen " -"manuellen Verbindungsversuch anstoßen." +msgid "The server appears to be offline, at least I'm not getting any response from it. I could not reconnect automatically, but you may try a manual reconnect using the button below." +msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich konnte mich nicht automatisch neu verbinden, aber Du kannst mittels des folgenden Buttons einen manuellen Verbindungsversuch anstoßen." #: src/octoprint/static/js/app/dataupdater.js:159 msgid "Safe mode is active" msgstr "Sicherheitsmodus ist aktiv" #: src/octoprint/static/js/app/dataupdater.js:160 -msgid "" -"The server is currently running in safe mode. Third party plugins are " -"disabled and cannot be enabled." -msgstr "" -"Der Server ist aktuell im Sicherheitsmodus. Third-Party-Plugins sind " -"deaktiviert und können nicht aktiviert werden." +msgid "The server is currently running in safe mode. Third party plugins are disabled and cannot be enabled." +msgstr "Der Server ist aktuell im Sicherheitsmodus. Third-Party-Plugins sind deaktiviert und können nicht aktiviert werden." #: src/octoprint/static/js/app/dataupdater.js:209 #: src/octoprint/static/js/app/viewmodels/files.js:890 @@ -2280,22 +2437,13 @@ msgstr "Fehler vom Drucker gemeldet" #: src/octoprint/static/js/app/dataupdater.js:237 #, python-format -msgid "" -"Your printer's firmware reported an error. Due to that the ongoing print " -"job will be cancelled. Reported error: %(firmwareError)s" -msgstr "" -"Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. " -"Daher wird der laufende Druckauftrag abgebrochen. Fehler: " -"%(firmwareError)s" +msgid "Your printer's firmware reported an error. Due to that the ongoing print job will be cancelled. Reported error: %(firmwareError)s" +msgstr "Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. Daher wird der laufende Druckauftrag abgebrochen. Fehler: %(firmwareError)s" #: src/octoprint/static/js/app/dataupdater.js:248 #, python-format -msgid "" -"Your printer's firmware reported an error. Due to that OctoPrint will " -"disconnect. Reported error: %(error)s" -msgstr "" -"Die Firmware Deines Druckers hat einen Fehler gemeldet. Darum hat " -"OctoPrint die Verbindung geschlossen. Gemeldeter Fehler: %(error)s" +msgid "Your printer's firmware reported an error. Due to that OctoPrint will disconnect. Reported error: %(error)s" +msgstr "Die Firmware Deines Druckers hat einen Fehler gemeldet. Darum hat OctoPrint die Verbindung geschlossen. Gemeldeter Fehler: %(error)s" #: src/octoprint/static/js/app/dataupdater.js:253 msgid "Communication error" @@ -2303,14 +2451,8 @@ msgstr "Kommunikationsfehler" #: src/octoprint/static/js/app/dataupdater.js:254 #, python-format -msgid "" -"There was a communication error while talking to your printer. Please " -"consult the terminal output and octoprint.log for details. Error: " -"%(error)s" -msgstr "" -"Es gab einen Fehler bei der Kommunikation mit dem Drucker. Bitte " -"konsultiere den Terminaloutput und octoprint.log für Details. Fehler: " -"%(error)s" +msgid "There was a communication error while talking to your printer. Please consult the terminal output and octoprint.log for details. Error: %(error)s" +msgstr "Es gab einen Fehler bei der Kommunikation mit dem Drucker. Bitte konsultiere den Terminaloutput und octoprint.log für Details. Fehler: %(error)s" #: src/octoprint/static/js/app/dataupdater.js:258 msgid "Error connecting to printer" @@ -2318,9 +2460,7 @@ msgstr "Fehler bei der Verbindung zum Drucker" #: src/octoprint/static/js/app/dataupdater.js:259 #, python-format -msgid "" -"There was an error while trying to connect to your printer. Error: " -"%(error)s" +msgid "There was an error while trying to connect to your printer. Error: %(error)s" msgstr "Es gab einen Fehler bei der Verbindung zum Drucker. Fehler: %(error)s" #: src/octoprint/static/js/app/dataupdater.js:263 @@ -2338,40 +2478,16 @@ msgstr "Unbekannter Fehler" #: src/octoprint/static/js/app/dataupdater.js:274 #, python-format -msgid "" -"There was an unknown error while talking to your printer. Please consult " -"the terminal output and octoprint.log for details. Error: %(error)s" -msgstr "" -"Es gab einen unbekannten Fehler bei der Kommunikation mit dem Drucker. " -"Bitte konsultiere den Terminaloutput und octoprint.log für Details. " -"Fehler: %(error)s" +msgid "There was an unknown error while talking to your printer. Please consult the terminal output and octoprint.log for details. Error: %(error)s" +msgstr "Es gab einen unbekannten Fehler bei der Kommunikation mit dem Drucker. Bitte konsultiere den Terminaloutput und octoprint.log für Details. Fehler: %(error)s" #: src/octoprint/static/js/app/dataupdater.js:294 -msgid "" -"It looks like your printer reset while a connection was active. If this " -"was intentional you may safely ignore this message. Otherwise you should " -"investigate why your printer reset itself, since this will interrupt " -"prints and also file transfers to your printer's SD." -msgstr "" -"Es sieht so als hätte sich der Drucker resettet während eine Verbindung " -"offen war. Falls das Absicht war kannst du diese Nachricht ignorieren. " -"Andernfalls solltest du prüfen, warum sich dein Drucker resettet hat, da " -"dies Druckaufträge und Filetransfers zu der SD Karte deines Druckers " -"unterbrechen wird." +msgid "It looks like your printer reset while a connection was active. If this was intentional you may safely ignore this message. Otherwise you should investigate why your printer reset itself, since this will interrupt prints and also file transfers to your printer's SD." +msgstr "Es sieht so als hätte sich der Drucker resettet während eine Verbindung offen war. Falls das Absicht war kannst du diese Nachricht ignorieren. Andernfalls solltest du prüfen, warum sich dein Drucker resettet hat, da dies Druckaufträge und Filetransfers zu der SD Karte deines Druckers unterbrechen wird." #: src/octoprint/static/js/app/dataupdater.js:297 -msgid "" -"It looks like your printer reset while a connection was active. Due to " -"this the ongoing job was aborted. If this was intentional you may safely " -"ignore this message. Otherwise you should investigate why your printer " -"reset itself, since this will interrupt prints and also file transfers to" -" your printer's SD." -msgstr "" -"Es sieht so als hätte sich der Drucker resettet während eine Verbindung " -"offen war. Darum wurde ein laufender Druckauftrag abgebrochen. Falls das " -"Absicht war kannst du diese Nachricht ignorieren. Andernfalls solltest du" -" prüfen, warum sich dein Drucker resettet hat, da dies Druckaufträge und " -"Filetransfers zu der SD Karte deines Druckers unterbrechen wird." +msgid "It looks like your printer reset while a connection was active. Due to this the ongoing job was aborted. If this was intentional you may safely ignore this message. Otherwise you should investigate why your printer reset itself, since this will interrupt prints and also file transfers to your printer's SD." +msgstr "Es sieht so als hätte sich der Drucker resettet während eine Verbindung offen war. Darum wurde ein laufender Druckauftrag abgebrochen. Falls das Absicht war kannst du diese Nachricht ignorieren. Andernfalls solltest du prüfen, warum sich dein Drucker resettet hat, da dies Druckaufträge und Filetransfers zu der SD Karte deines Druckers unterbrechen wird." #: src/octoprint/static/js/app/dataupdater.js:305 msgid "Printer reset detected" @@ -2464,11 +2580,11 @@ msgid "off" msgstr "Aus" #: src/octoprint/static/js/app/helpers.js:700 -#: src/octoprint/static/js/app/viewmodels/connection.js:135 +#: src/octoprint/static/js/app/viewmodels/connection.js:153 msgid "Are you sure?" msgstr "Bist Du sicher?" -#: src/octoprint/static/js/app/helpers.js:903 +#: src/octoprint/static/js/app/helpers.js:922 msgid "Progress" msgstr "Fortschritt" @@ -2526,36 +2642,25 @@ msgid "Connect" msgstr "Verbinden" #: src/octoprint/static/js/app/viewmodels/connection.js:44 -#: src/octoprint/static/js/app/viewmodels/connection.js:144 +#: src/octoprint/static/js/app/viewmodels/connection.js:162 msgid "Disconnect" msgstr "Trennen" -#: src/octoprint/static/js/app/viewmodels/connection.js:136 -msgid "" -"

    You are about to disconnect from the printer while a print is " -"in progress.

    Disconnecting while a print is in progress " -"will prevent OctoPrint from completing the print. If you're printing from" -" an SD card attached directly to the printer, any attempt to restart " -"OctoPrint or reconnect to the printer could interrupt the print.

    " -msgstr "" -"

    Du bist im Begriff, die Verbindung zu deinem Drucker zu " -"trennen während ein Druck läuft.

    Das Trennen der " -"Verbindung während eines Drucks wird OctoPrint daran hindern, diesen zu " -"vollenden. Falls du von der SD deines Druckers druckst, könnte jeglicher " -"Versuch, OctoPrint neuzustarten oder erneut mit dem Drucker zu verbinden " -"den Druck unterbrechen.

    " +#: src/octoprint/static/js/app/viewmodels/connection.js:154 +msgid "

    You are about to disconnect from the printer while a print is in progress.

    Disconnecting while a print is in progress will prevent OctoPrint from completing the print. If you're printing from an SD card attached directly to the printer, any attempt to restart OctoPrint or reconnect to the printer could interrupt the print.

    " +msgstr "

    Du bist im Begriff, die Verbindung zu deinem Drucker zu trennen während ein Druck läuft.

    Das Trennen der Verbindung während eines Drucks wird OctoPrint daran hindern, diesen zu vollenden. Falls du von der SD deines Druckers druckst, könnte jeglicher Versuch, OctoPrint neuzustarten oder erneut mit dem Drucker zu verbinden den Druck unterbrechen.

    " -#: src/octoprint/static/js/app/viewmodels/connection.js:142 +#: src/octoprint/static/js/app/viewmodels/connection.js:160 msgid "Are you sure you want to disconnect from the printer?" msgstr "Bist Du sicher, dass du die Verbindung zum Drucker trennen willst?" -#: src/octoprint/static/js/app/viewmodels/connection.js:143 +#: src/octoprint/static/js/app/viewmodels/connection.js:161 msgid "Stay Connected" msgstr "Verbunden bleiben" #: src/octoprint/static/js/app/viewmodels/control.js:72 #: src/octoprint/static/js/app/viewmodels/files.js:623 -#: src/octoprint/static/js/app/viewmodels/gcode.js:571 +#: src/octoprint/static/js/app/viewmodels/gcode.js:570 #: src/octoprint/static/js/app/viewmodels/printerstate.js:256 #: src/octoprint/static/js/app/viewmodels/temperature.js:115 #: src/octoprint/static/js/app/viewmodels/temperature.js:126 @@ -2580,12 +2685,8 @@ msgstr "Dein aktuell verfügbarer freier Plattenplatz." #: src/octoprint/static/js/app/viewmodels/files.js:415 #, python-format -msgid "" -"You are about to delete the folder \"%(folder)s\" which still contains " -"files and/or sub folders." -msgstr "" -"Du bist im Begriff das Verzeichnis \"%(folder)s\" zu löschen, das noch " -"Dateien und/oder Unterverzeichnisse enthält." +msgid "You are about to delete the folder \"%(folder)s\" which still contains files and/or sub folders." +msgstr "Du bist im Begriff das Verzeichnis \"%(folder)s\" zu löschen, das noch Dateien und/oder Unterverzeichnisse enthält." #: src/octoprint/static/js/app/viewmodels/files.js:613 #: src/octoprint/static/js/app/viewmodels/gcode.js:530 @@ -2594,13 +2695,13 @@ msgstr "Modelgröße" #: src/octoprint/static/js/app/viewmodels/files.js:619 #: src/octoprint/static/js/app/viewmodels/files.js:623 -#: src/octoprint/static/js/app/viewmodels/gcode.js:568 -#: src/octoprint/static/js/app/viewmodels/gcode.js:571 +#: src/octoprint/static/js/app/viewmodels/gcode.js:567 +#: src/octoprint/static/js/app/viewmodels/gcode.js:570 msgid "Filament" msgstr "Filament" #: src/octoprint/static/js/app/viewmodels/files.js:628 -#: src/octoprint/static/js/app/viewmodels/gcode.js:575 +#: src/octoprint/static/js/app/viewmodels/gcode.js:574 msgid "Estimated print time" msgstr "Geschätzte Dauer" @@ -2614,12 +2715,8 @@ msgstr "Letzte Dauer" #: src/octoprint/static/js/app/viewmodels/files.js:693 #, python-format -msgid "" -"Object in %(name)s exceeds the print volume of the currently selected " -"printer profile, be careful when printing this." -msgstr "" -"Objekt in %(name)s überschreitet das Druckvolumen des aktuell gewählten " -"Druckerprofils, sei vorsichtig, das zu drucken." +msgid "Object in %(name)s exceeds the print volume of the currently selected printer profile, be careful when printing this." +msgstr "Objekt in %(name)s überschreitet das Druckvolumen des aktuell gewählten Druckerprofils, sei vorsichtig, das zu drucken." #: src/octoprint/static/js/app/viewmodels/files.js:703 msgid "Object exceeds print volume in width.
    " @@ -2634,23 +2731,12 @@ msgid "Object exceeds print volume in height.
    " msgstr "Objekt überschreitet Druckvolumen in der Höhe.
    " #: src/octoprint/static/js/app/viewmodels/files.js:715 -msgid "" -"Object's bounding box: (%(object.minX).2f, %(object.minY).2f, " -"%(object.minZ).2f) × (%(object.maxX).2f, %(object.maxY).2f, " -"%(object.maxZ).2f)" -msgstr "" -"ObjektmaĂźe: (%(object.minX).2f, %(object.minY).2f, %(object.minZ).2f) " -"× (%(object.maxX).2f, %(object.maxY).2f, %(object.maxZ).2f)" +msgid "Object's bounding box: (%(object.minX).2f, %(object.minY).2f, %(object.minZ).2f) × (%(object.maxX).2f, %(object.maxY).2f, %(object.maxZ).2f)" +msgstr "ObjektmaĂźe: (%(object.minX).2f, %(object.minY).2f, %(object.minZ).2f) × (%(object.maxX).2f, %(object.maxY).2f, %(object.maxZ).2f)" #: src/octoprint/static/js/app/viewmodels/files.js:717 -msgid "" -"Print volume: (%(profile.minX).2f, %(profile.minY).2f, " -"%(profile.minZ).2f) × (%(profile.maxX).2f, %(profile.maxY).2f, " -"%(profile.maxZ).2f)" -msgstr "" -"Druckvolumen: (%(profile.minX).2f, %(profile.minY).2f, " -"%(profile.minZ).2f) × (%(profile.maxX).2f, %(profile.maxY).2f, " -"%(profile.maxZ).2f)" +msgid "Print volume: (%(profile.minX).2f, %(profile.minY).2f, %(profile.minZ).2f) × (%(profile.maxX).2f, %(profile.maxY).2f, %(profile.maxZ).2f)" +msgstr "Druckvolumen: (%(profile.minX).2f, %(profile.minY).2f, %(profile.minZ).2f) × (%(profile.maxX).2f, %(profile.maxY).2f, %(profile.maxZ).2f)" #: src/octoprint/static/js/app/viewmodels/files.js:724 msgid "Object doesn't fit print volume" @@ -2702,12 +2788,8 @@ msgstr "Streaming von %(local)s nach %(remote)s nicht abgeschlossen." #: src/octoprint/static/js/app/viewmodels/files.js:1082 #, python-format -msgid "" -"Could not upload the file. Make sure that it is a valid file with one of " -"these extensions: %(extensions)s" -msgstr "" -"Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um " -"eine valide Datei mit einer dieser Erweiterungen ist: %(extensions)s" +msgid "Could not upload the file. Make sure that it is a valid file with one of these extensions: %(extensions)s" +msgstr "Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine valide Datei mit einer dieser Erweiterungen ist: %(extensions)s" #: src/octoprint/static/js/app/viewmodels/files.js:1103 msgid "Saving ..." @@ -2730,81 +2812,78 @@ msgid "Analyzed" msgstr "Analysiert" #: src/octoprint/static/js/app/viewmodels/gcode.js:531 -msgid "Estimated total print time" -msgstr "Geschätzte Gesamtdauer" - -#: src/octoprint/static/js/app/viewmodels/gcode.js:532 msgid "Estimated layer height" msgstr "Geschätzte Schichthöhe" -#: src/octoprint/static/js/app/viewmodels/gcode.js:532 +#: src/octoprint/static/js/app/viewmodels/gcode.js:531 #: src/octoprint/templates/tabs/timelapse.jinja2:68 msgid "mm" msgstr "mm" -#: src/octoprint/static/js/app/viewmodels/gcode.js:533 -msgid "Layer count" -msgstr "Schichtanzahl" +#: src/octoprint/static/js/app/viewmodels/gcode.js:532 +msgid "Estimated total print time" +msgstr "Geschätzte Gesamtdauer" -#: src/octoprint/static/js/app/viewmodels/gcode.js:533 -msgid "printed" -msgstr "gedruckt" - -#: src/octoprint/static/js/app/viewmodels/gcode.js:533 -msgid "visited" -msgstr "besucht" - -#: src/octoprint/static/js/app/viewmodels/gcode.js:563 +#: src/octoprint/static/js/app/viewmodels/gcode.js:562 msgid "Layer number" msgstr "Schichtnummer" -#: src/octoprint/static/js/app/viewmodels/gcode.js:564 +#: src/octoprint/static/js/app/viewmodels/gcode.js:563 msgid "Layer height" msgstr "Schichthöhe" -#: src/octoprint/static/js/app/viewmodels/gcode.js:565 +#: src/octoprint/static/js/app/viewmodels/gcode.js:564 msgid "GCODE commands" msgstr "GCODE Befehle" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:27 -#: src/octoprint/static/js/app/viewmodels/loginstate.js:35 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:29 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:37 #: src/octoprint/templates/navbar/login.jinja2:2 #: src/octoprint/templates/navbar/login.jinja2:15 msgid "Login" msgstr "Login" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:33 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:35 #, python-format msgid "Logged in as %(name)s" msgstr "Eingeloggt als %(name)s" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:105 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:79 +#, python-format +msgid "

    It seems that you are connecting to OctoPrint over the public internet.

    This is strongly discouraged unless you have taken proper network security precautions. Your printer is an appliance you really should not be giving access to everyone with an internet connection.

    Please see this blog post for ways to safely access your OctoPrint instance from remote.

    If you know what you are doing or you are sure this message is mistaken since you are in an isolated LAN, feel free to ignore it.

    " +msgstr "

    Es scheint, dass du auf OctoPrint über das öffentliche Internet zugreifst.

    Davon wird nachdrücklich abgeraten, sofern du nicht weitere Maßnahmen für ordentliche Netzwerkabsicherung getroffen hast. Dein Drucker ist ein Gerät, zu dem du wirklich nicht jedem mit einer Internetverbindung Zugriff geben solltest.

    Bitte lies diesen Blog Post ĂĽber sichere Wege, auf deine OctoPrint Instanz auch von unterwegs zuzugreifen.

    Wenn du dir sicher bist, was du hier tust oder dass diese Meldung ein Fehler ist und du dich tatsächlich in einem isolierten LAN befindest, ignoriere sie einfach.

    " + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:94 +msgid "Possible external access detected" +msgstr "Möglichen externen Zugriff erkannt" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:163 msgid "Login successful" msgstr "Login erfolgreich" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:105 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:163 #, python-format msgid "You are now logged in as \"%(username)s\"" msgstr "Du bist jetzt eingeloggt als \"%(username)s\"" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:120 -#: src/octoprint/static/js/app/viewmodels/loginstate.js:128 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:178 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:186 msgid "Login failed" msgstr "Login fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:121 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:179 msgid "User unknown or wrong password" msgstr "Nutzer unbekannt oder falsches Passwort" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:129 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:187 msgid "Your account is deactivated" msgstr "Dein Account ist deaktiviert" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:141 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:199 msgid "Logout successful" msgstr "Logout erfolgreich" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:141 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:199 msgid "You are now logged out" msgstr "Du bist jetzt ausgeloggt" @@ -2871,9 +2950,7 @@ msgid "Center" msgstr "Mittelpunkt" #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:502 -msgid "" -"There was unexpected error while saving the printer profile, please " -"consult the logs." +msgid "There was unexpected error while saving the printer profile, please consult the logs." msgstr "Unerwarteter Fehler beim Speichern des Profils, bitte konsultiere das Log" #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:503 @@ -2885,9 +2962,7 @@ msgid "Cannot delete the default profile or the currently active profile." msgstr "Kann weder das Defaultprofil noch das aktuell ausgewählte Profil löschen." #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:525 -msgid "" -"There was unexpected error while removing the printer profile, please " -"consult the logs." +msgid "There was unexpected error while removing the printer profile, please consult the logs." msgstr "Unerwarteter Fehler beim Löschen des Profils, bitte konsultiere das Log" #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:527 @@ -2900,12 +2975,8 @@ msgid "You are about to delete the printer profile \"%(name)s\"." msgstr "Du bist im Begriff das Druckerprofil \"%(name)s\" zu löschen." #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:553 -msgid "" -"There was unexpected error while updating the printer profile, please " -"consult the logs." -msgstr "" -"Unerwarteter Fehler beim Aktualisieren des Profils, bitte konsultiere das" -" Log" +msgid "There was unexpected error while updating the printer profile, please consult the logs." +msgstr "Unerwarteter Fehler beim Aktualisieren des Profils, bitte konsultiere das Log" #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:554 msgid "Could not update profile" @@ -2941,12 +3012,8 @@ msgid "Still stabilizing..." msgstr "Noch zu ungenau..." #: src/octoprint/static/js/app/viewmodels/printerstate.js:97 -msgid "" -"Based on a linear approximation (very low accuracy, especially at the " -"beginning of the print)" -msgstr "" -"Basiert auf einer linearen Approximation (sehr geringe Genauigkeit, " -"insbesondere zu Beginn eines Drucks)" +msgid "Based on a linear approximation (very low accuracy, especially at the beginning of the print)" +msgstr "Basiert auf einer linearen Approximation (sehr geringe Genauigkeit, insbesondere zu Beginn eines Drucks)" #: src/octoprint/static/js/app/viewmodels/printerstate.js:100 msgid "Based on the estimate from analysis of file (medium accuracy)" @@ -2954,25 +3021,15 @@ msgstr "Basiert auf der Schätzung der Analyse der Datei (mittlere Genauigkeit)" #: src/octoprint/static/js/app/viewmodels/printerstate.js:103 msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)" -msgstr "" -"Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung " -"(mittlere Genauigkeit)" +msgstr "Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung (mittlere Genauigkeit)" #: src/octoprint/static/js/app/viewmodels/printerstate.js:106 -msgid "" -"Based on the average total of past prints of this model with the same " -"printer profile (usually good accuracy)" -msgstr "" -"Basiert auf der durchschnittlichen Dauer vergangener Druckjobs dieses " -"Modells mit dem selben Druckerprofil (normalerweise gute Genauigkeit)" +msgid "Based on the average total of past prints of this model with the same printer profile (usually good accuracy)" +msgstr "Basiert auf der durchschnittlichen Dauer vergangener Druckjobs dieses Modells mit dem selben Druckerprofil (normalerweise gute Genauigkeit)" #: src/octoprint/static/js/app/viewmodels/printerstate.js:109 -msgid "" -"Based on a mix of average total from past prints and calculation (usually" -" good accuracy)" -msgstr "" -"Basiert auf einem Mix der durschnittlichen Dauer vergangener Druckjobs " -"und der Berechnung (normalerweise gute Genauigkeit)" +msgid "Based on a mix of average total from past prints and calculation (usually good accuracy)" +msgstr "Basiert auf einem Mix der durschnittlichen Dauer vergangener Druckjobs und der Berechnung (normalerweise gute Genauigkeit)" #: src/octoprint/static/js/app/viewmodels/printerstate.js:112 msgid "Based on the calculated estimate (best accuracy)" @@ -3034,76 +3091,63 @@ msgstr "weiß" msgid "Autodetect from browser" msgstr "Automatisch vom Browser erkennen" -#: src/octoprint/static/js/app/viewmodels/settings.js:318 +#: src/octoprint/static/js/app/viewmodels/settings.js:321 msgid "If you see your webcam stream below, the entered stream URL is ok." msgstr "Falls du unten den Webcamstream sehen kannst, ist die Stream-URL ok." -#: src/octoprint/static/js/app/viewmodels/settings.js:326 +#: src/octoprint/static/js/app/viewmodels/settings.js:329 msgid "Stream test" msgstr "Stream Test" -#: src/octoprint/static/js/app/viewmodels/settings.js:344 +#: src/octoprint/static/js/app/viewmodels/settings.js:347 msgid "Could not retrieve snapshot URL, please double check the URL" msgstr "Konnte die Snapshot-URL nicht abgreifen, bitte prüfen" -#: src/octoprint/static/js/app/viewmodels/settings.js:345 +#: src/octoprint/static/js/app/viewmodels/settings.js:348 msgid "Snapshot test failed" msgstr "Snapshot Test fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/settings.js:359 +#: src/octoprint/static/js/app/viewmodels/settings.js:362 #, python-format -msgid "" -"Could retrieve the snapshot URL, but it didn't look like an image. Got " -"this as a content type header: %(content_type)s. Please " -"double check that the URL is returning static images, not multipart data " -"or videos." -msgstr "" -"Konnte die Snapshot URL abrufen, aber die Antwort sah nicht wie ein Bild " -"aus: %(content_type)s. Bitte überprüfe, dass die URL " -"einzelne Bilder zurückliefert, nicht multipart Daten oder Videos." +msgid "Could retrieve the snapshot URL, but it didn't look like an image. Got this as a content type header: %(content_type)s. Please double check that the URL is returning static images, not multipart data or videos." +msgstr "Konnte die Snapshot URL abrufen, aber die Antwort sah nicht wie ein Bild aus: %(content_type)s. Bitte überprüfe, dass die URL einzelne Bilder zurückliefert, nicht multipart Daten oder Videos." -#: src/octoprint/static/js/app/viewmodels/settings.js:384 -msgid "" -"If you see your webcam snapshot picture below, the entered snapshot URL " -"is ok." +#: src/octoprint/static/js/app/viewmodels/settings.js:387 +msgid "If you see your webcam snapshot picture below, the entered snapshot URL is ok." msgstr "Falls du unten dein Snapshotbild sehen kannst, ist die Snapshot-URL ok." -#: src/octoprint/static/js/app/viewmodels/settings.js:386 +#: src/octoprint/static/js/app/viewmodels/settings.js:389 msgid "Snapshot test" msgstr "Snapshot Test" -#: src/octoprint/static/js/app/viewmodels/settings.js:446 +#: src/octoprint/static/js/app/viewmodels/settings.js:449 msgid "The server is not reachable" msgstr "Der Server ist nicht erreichbar" -#: src/octoprint/static/js/app/viewmodels/settings.js:448 +#: src/octoprint/static/js/app/viewmodels/settings.js:451 msgid "The server is reachable" msgstr "Der Server ist errechbar" -#: src/octoprint/static/js/app/viewmodels/settings.js:477 +#: src/octoprint/static/js/app/viewmodels/settings.js:480 msgid "The path is a broken symlink." msgstr "Der Pfad ist ein kaputter Symlink" -#: src/octoprint/static/js/app/viewmodels/settings.js:479 +#: src/octoprint/static/js/app/viewmodels/settings.js:482 msgid "The path does not exist and cannot be created." msgstr "Der Pfad existiert nicht und kann nicht erstellt werden." -#: src/octoprint/static/js/app/viewmodels/settings.js:481 +#: src/octoprint/static/js/app/viewmodels/settings.js:484 msgid "The path is not a folder." msgstr "Der Pfad ist kein Verzeichnis" -#: src/octoprint/static/js/app/viewmodels/settings.js:483 +#: src/octoprint/static/js/app/viewmodels/settings.js:486 msgid "The path is not writable." msgstr "Der Pfad ist nicht beschreibbar" -#: src/octoprint/static/js/app/viewmodels/settings.js:607 +#: src/octoprint/static/js/app/viewmodels/settings.js:610 #: src/octoprint/static/js/app/viewmodels/usersettings.js:99 -msgid "" -"This will generate a new API Key. The old API Key will cease to function " -"immediately." -msgstr "" -"Dies wird einen neuen API-Key generieren. Der alte wird sofort aufhören " -"zu funktionieren." +msgid "This will generate a new API Key. The old API Key will cease to function immediately." +msgstr "Dies wird einen neuen API-Key generieren. Der alte wird sofort aufhören zu funktionieren." #: src/octoprint/static/js/app/viewmodels/slicing.js:123 msgid "Do nothing" @@ -3160,12 +3204,8 @@ msgstr "Ändere Offset von %(name)s" #: src/octoprint/static/js/app/viewmodels/temperature.js:64 #, python-format -msgid "" -"Use the form below to specify a new offset to apply to all temperature " -"commands sent from printed files for \"%(name)s\"" -msgstr "" -"Definiere unten ein neues Offset für alle Temperaturkommandos für " -"\"%(name)s\", die aus zu druckenden Dateien gesendet werden" +msgid "Use the form below to specify a new offset to apply to all temperature commands sent from printed files for \"%(name)s\"" +msgstr "Definiere unten ein neues Offset für alle Temperaturkommandos für \"%(name)s\", die aus zu druckenden Dateien gesendet werden" #: src/octoprint/static/js/app/viewmodels/temperature.js:75 #: src/octoprint/static/js/app/viewmodels/temperature.js:133 @@ -3187,40 +3227,30 @@ msgstr "Ist" msgid "Target" msgstr "Soll" -#: src/octoprint/static/js/app/viewmodels/terminal.js:103 +#: src/octoprint/static/js/app/viewmodels/terminal.js:104 #, python-format -msgid "" -"showing %(displayed)d lines (%(filtered)d of %(total)d total lines " -"filtered, buffer full)" -msgstr "" -"zeige %(displayed)d Zeilen (%(filtered)d von %(total)d Zeilen gefiltert, " -"Buffer voll)" +msgid "showing %(displayed)d lines (%(filtered)d of %(total)d total lines filtered, buffer full)" +msgstr "zeige %(displayed)d Zeilen (%(filtered)d von %(total)d Zeilen gefiltert, Buffer voll)" -#: src/octoprint/static/js/app/viewmodels/terminal.js:105 +#: src/octoprint/static/js/app/viewmodels/terminal.js:106 #, python-format -msgid "" -"showing %(displayed)d lines (%(filtered)d of %(total)d total lines " -"filtered)" +msgid "showing %(displayed)d lines (%(filtered)d of %(total)d total lines filtered)" msgstr "zeige %(displayed)d Zeilen (%(filtered)d von %(total)d Zeilen gefiltert)" -#: src/octoprint/static/js/app/viewmodels/terminal.js:109 +#: src/octoprint/static/js/app/viewmodels/terminal.js:110 #, python-format msgid "showing %(displayed)d lines (buffer full)" msgstr "zeige %(displayed)d Zeilen (Buffer voll)" -#: src/octoprint/static/js/app/viewmodels/terminal.js:111 +#: src/octoprint/static/js/app/viewmodels/terminal.js:112 #, python-format msgid "showing %(displayed)d lines" msgstr "zeige %(displayed)d Zeilen" #: src/octoprint/static/js/app/viewmodels/timelapse.js:240 #, python-format -msgid "" -"Failed to remove timelapse %(name)s.

    Please consult octoprint.log " -"for details.

    " -msgstr "" -"Konnte Zeitrafferaufnahme %(name)s nicht entfernen.

    Bitte " -"konsultiere octoprint.log fĂĽr Details.

    " +msgid "Failed to remove timelapse %(name)s.

    Please consult octoprint.log for details.

    " +msgstr "Konnte Zeitrafferaufnahme %(name)s nicht entfernen.

    Bitte konsultiere octoprint.log fĂĽr Details.

    " #: src/octoprint/static/js/app/viewmodels/timelapse.js:243 msgid "Could not remove timelapse" @@ -3239,9 +3269,7 @@ msgstr "Du bist im Begriff %(count)d Zeitrafferaufnahmen zu löschen." #: src/octoprint/static/js/app/viewmodels/timelapse.js:288 #, python-format msgid "You are about to delete unrendered timelapse \"%(name)s\"." -msgstr "" -"Du bist im Begriff die ungerenderte Zeitrafferaufnahme \"%(name)s\" zu " -"löschen." +msgstr "Du bist im Begriff die ungerenderte Zeitrafferaufnahme \"%(name)s\" zu löschen." #: src/octoprint/static/js/app/viewmodels/timelapse.js:300 #, python-format @@ -3257,23 +3285,6 @@ msgstr "Lösche Zeitrafferaufnahmen" msgid "Deleting %(count)d timelapse files..." msgstr "Lösche %(count)d Zeitrafferaufnahmen" -#: 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/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/static/js/app/viewmodels/timelapse.js:317 -#, python-format -msgid "Deletion of %(filename)s failed: %(error)s" -msgstr "Löschen von %(filename)s fehlgeschlagen: %(error)s" - #: src/octoprint/static/js/app/viewmodels/timelapse.js:322 msgid "Deleting unrendered timelapses" msgstr "Lösche ungerenderte Zeitrafferaufnahmen" @@ -3298,12 +3309,8 @@ msgstr "%(minutes)d Min" #: src/octoprint/static/js/app/viewmodels/timelapse.js:429 #, python-format -msgid "" -"Now capturing timelapse post roll, this will take approximately " -"%(duration)s (so until %(time)s)..." -msgstr "" -"Zeichne jetzt Zeitraffernachlauf auf, dies wird voraussichtlich " -"%(duration)s dauern (also etwa bis %(time)s)..." +msgid "Now capturing timelapse post roll, this will take approximately %(duration)s (so until %(time)s)..." +msgstr "Zeichne jetzt Zeitraffernachlauf auf, dies wird voraussichtlich %(duration)s dauern (also etwa bis %(time)s)..." #: src/octoprint/static/js/app/viewmodels/timelapse.js:431 #, python-format @@ -3312,20 +3319,12 @@ msgstr "%(seconds)d Sek" #: src/octoprint/static/js/app/viewmodels/timelapse.js:432 #, python-format -msgid "" -"Now capturing timelapse post roll, this will take approximately " -"%(duration)s..." -msgstr "" -"Zeichne jetzt Zeitraffernachlauf auf, dies wird voraussichtlich " -"%(duration)s dauern..." +msgid "Now capturing timelapse post roll, this will take approximately %(duration)s..." +msgstr "Zeichne jetzt Zeitraffernachlauf auf, dies wird voraussichtlich %(duration)s dauern..." #: src/octoprint/static/js/app/viewmodels/timelapse.js:462 -msgid "" -"Failed repeatedly to capture timelapse frame from webcam - is the " -"snapshot URL configured correctly and the camera on?" -msgstr "" -"Konnte wiederholt kein Zeitrafferbild von der Webcam beziehen - ist die " -"Snapshot-URL korrekt konfiguriert und die Kamera an?" +msgid "Failed repeatedly to capture timelapse frame from webcam - is the snapshot URL configured correctly and the camera on?" +msgstr "Konnte wiederholt kein Zeitrafferbild von der Webcam beziehen - ist die Snapshot-URL korrekt konfiguriert und die Kamera an?" #: src/octoprint/static/js/app/viewmodels/timelapse.js:465 msgid "Could not capture snapshots" @@ -3337,13 +3336,8 @@ msgstr "Zeitrafferaufnahme wird gerendert" #: src/octoprint/static/js/app/viewmodels/timelapse.js:475 #, python-format -msgid "" -"Now rendering timelapse %(movie_prefix)s. Due to performance reasons it " -"is not recommended to start a print job while a movie is still rendering." -msgstr "" -"Rendere jetzt die Zeitrafferaufnahme %(movie_prefix)s. Aus Gründen der " -"Performance ist es nicht empfehlenswert, einen Druckauftrag zu starten, " -"so lange die Aufnahme noch gerendert wird." +msgid "Now rendering timelapse %(movie_prefix)s. Due to performance reasons it is not recommended to start a print job while a movie is still rendering." +msgstr "Rendere jetzt die Zeitrafferaufnahme %(movie_prefix)s. Aus Gründen der Performance ist es nicht empfehlenswert, einen Druckauftrag zu starten, so lange die Aufnahme noch gerendert wird." #: src/octoprint/static/js/app/viewmodels/timelapse.js:484 msgid "Cannot render timelapse" @@ -3351,12 +3345,8 @@ msgstr "Kann Zeitrafferaufnahme nicht rendern" #: src/octoprint/static/js/app/viewmodels/timelapse.js:485 #, python-format -msgid "" -"Rendering of timelapse %(movie_prefix)s is not possible since no frames " -"were captured. Is the snapshot URL configured correctly?" -msgstr "" -"Rendering des Zeitraffers %(movie_prefix)s ist nicht möglich, da keine " -"Frames gespeichert wurden. Ist die Snapshot-URL korrekt konfiguriert?" +msgid "Rendering of timelapse %(movie_prefix)s is not possible since no frames were captured. Is the snapshot URL configured correctly?" +msgstr "Rendering des Zeitraffers %(movie_prefix)s ist nicht möglich, da keine Frames gespeichert wurden. Ist die Snapshot-URL korrekt konfiguriert?" #: src/octoprint/static/js/app/viewmodels/timelapse.js:487 #: src/octoprint/static/js/app/viewmodels/timelapse.js:491 @@ -3365,21 +3355,13 @@ msgstr "Rendern von Zeitrafferaufnahme fehlgeschlagen" #: src/octoprint/static/js/app/viewmodels/timelapse.js:488 #, python-format -msgid "" -"Rendering of timelapse %(movie_prefix)s failed with return code " -"%(returncode)s" -msgstr "" -"Rendering der Zeitrafferaufnahme %(movie_prefix)s fehlgeschlagen mit " -"Returncode %(returncode)s" +msgid "Rendering of timelapse %(movie_prefix)s failed with return code %(returncode)s" +msgstr "Rendering der Zeitrafferaufnahme %(movie_prefix)s fehlgeschlagen mit Returncode %(returncode)s" #: src/octoprint/static/js/app/viewmodels/timelapse.js:492 #, python-format -msgid "" -"Rendering of timelapse %(movie_prefix)s failed due to an unknown error, " -"please consult the log file" -msgstr "" -"Rendering der Zeitrafferaufnahme %(movie_prefix)s fehlgeschlagen aufgrund" -" eines unbekannten Fehlers, bitte konsultiere die Logdatei" +msgid "Rendering of timelapse %(movie_prefix)s failed due to an unknown error, please consult the log file" +msgstr "Rendering der Zeitrafferaufnahme %(movie_prefix)s fehlgeschlagen aufgrund eines unbekannten Fehlers, bitte konsultiere die Logdatei" #: src/octoprint/static/js/app/viewmodels/timelapse.js:505 msgid "Timelapse ready" @@ -3423,23 +3405,12 @@ msgid "Create" msgstr "Erstellen" #: src/octoprint/templates/dialogs/slicing.jinja2:8 -msgid "" -"Slicing is currently disabled since no slicer has been configured yet. " -"Please configure a slicer under \"Settings\"." -msgstr "" -"Slicing ist aktuell deaktiviert da noch kein Slicer konfiguriert wurde. " -"Bitte konfiguriere einen Slicer unter \"Settings\"." +msgid "Slicing is currently disabled since no slicer has been configured yet. Please configure a slicer under \"Settings\"." +msgstr "Slicing ist aktuell deaktiviert da noch kein Slicer konfiguriert wurde. Bitte konfiguriere einen Slicer unter \"Settings\"." #: src/octoprint/templates/dialogs/slicing.jinja2:11 -msgid "" -"Please configure which slicer and which slicing profile to use and name " -"the GCode file to slice to below, or click \"Cancel\" if you do not wish " -"to slice the file now." -msgstr "" -"Bitte wähle den zu nutzenden Slicer und das zu nutzende Slicerprofile und" -" wie die GCode Datei heißen soll, die erzeugt wird. Alternativ kannst du " -"auch auf \"Abbrechen\" klicken, wenn du die Datei jetzt nicht slicen " -"willst." +msgid "Please configure which slicer and which slicing profile to use and name the GCode file to slice to below, or click \"Cancel\" if you do not wish to slice the file now." +msgstr "Bitte wähle den zu nutzenden Slicer und das zu nutzende Slicerprofile und wie die GCode Datei heißen soll, die erzeugt wird. Alternativ kannst du auch auf \"Abbrechen\" klicken, wenn du die Datei jetzt nicht slicen willst." #: src/octoprint/templates/dialogs/slicing.jinja2:14 msgid "Slicer" @@ -3455,9 +3426,7 @@ msgstr "Gleicher Server" #: src/octoprint/templates/dialogs/slicing.jinja2:23 msgid "For performance reasons locally run slicers are disabled while printing" -msgstr "" -"Aus Gründen der Performanz sind Slicer, die auf dem gleichen Server " -"laufen, während des Druckens deaktiviert" +msgstr "Aus Gründen der Performanz sind Slicer, die auf dem gleichen Server laufen, während des Druckens deaktiviert" #: src/octoprint/templates/dialogs/slicing.jinja2:27 msgid "Slicing Profile" @@ -3511,9 +3480,7 @@ msgid "Delete Offset" msgstr "Offset löschen" #: src/octoprint/templates/dialogs/temperature.jinja2:25 -msgid "" -"Hint: Hitting Enter in the input field will also submit the " -"form" +msgid "Hint: Hitting Enter in the input field will also submit the form" msgstr "Hinweis: Enter im Eingabefeld speichert." #: src/octoprint/templates/dialogs/wizard.jinja2:3 @@ -3521,10 +3488,8 @@ msgid "Setup Wizard" msgstr "Setup Wizard" #: src/octoprint/templates/dialogs/wizard.jinja2:41 -msgid "" -"\n" -" Mandatory " -"Step! You need to fill this out now.\n" +msgid "\n" +" Mandatory Step! You need to fill this out now.\n" " " msgstr "Obligatorischer Schritt! Du musst das jetzt ausfüllen." @@ -3537,12 +3502,8 @@ msgid "Previous" msgstr "Zurück" #: src/octoprint/templates/dialogs/wizard.jinja2:63 -msgid "" -"Unless otherwise noted, you may just skip any wizard page by clicking " -"\"Next\" or \"Finish\"." -msgstr "" -"Falls nicht anders vermerkt, kannst du jede Wizardseite durch Klicken auf" -" \"Weiter\" oder \"Beenden\" überspringen." +msgid "Unless otherwise noted, you may just skip any wizard page by clicking \"Next\" or \"Finish\"." +msgstr "Falls nicht anders vermerkt, kannst du jede Wizardseite durch Klicken auf \"Weiter\" oder \"Beenden\" überspringen." #: src/octoprint/templates/dialogs/about/about.jinja2:3 msgid "The snappy web interface for your 3D printer" @@ -3560,16 +3521,6 @@ msgstr "Aktiv" msgid "Admin" msgstr "Admin" -#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 -#: src/octoprint/templates/dialogs/settings/api.jinja2:17 -#: src/octoprint/templates/dialogs/usersettings/access.jinja2:22 -msgid "API Key" -msgstr "API Key" - -#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 -msgid "Copy API Key to clipboard" -msgstr "API Key in die Zwischenablage kopieren" - #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:16 msgid "Update User" msgstr "Nutzer editieren" @@ -3629,12 +3580,8 @@ msgid "Allow Cross Origin Resource Sharing (CORS)" msgstr "Cross Origin Resource Sharing (CORS) erlauben" #: src/octoprint/templates/dialogs/settings/api.jinja2:24 -msgid "" -"Please note that changes to the API key are applied immediately, without " -"having to \"Save\" first." -msgstr "" -"Bitte beachte, dass Änderungen am API-Key sofort angewandt werden, ohne " -"dass \"Speichern\" geklickt werden muss." +msgid "Please note that changes to the API key are applied immediately, without having to \"Save\" first." +msgstr "Bitte beachte, dass Änderungen am API-Key sofort angewandt werden, ohne dass \"Speichern\" geklickt werden muss." #: src/octoprint/templates/dialogs/settings/api.jinja2:28 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:36 @@ -3642,12 +3589,8 @@ msgid "QR Code" msgstr "QR Code" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:2 -msgid "" -"Name of this OctoPrint instance, will be shown in the navigation bar and " -"broadcast on the network" -msgstr "" -"Name dieser OctoPrint-Instanz, wird in der Navigationsleiste angezeigt " -"und im Netzwerk announced." +msgid "Name of this OctoPrint instance, will be shown in the navigation bar and broadcast on the network" +msgstr "Name dieser OctoPrint-Instanz, wird in der Navigationsleiste angezeigt und im Netzwerk announced." #: src/octoprint/templates/dialogs/settings/appearance.jinja2:3 msgid "Title" @@ -3655,9 +3598,7 @@ msgstr "Titel" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:8 msgid "Personalize the color of the navigation bar - maybe to match your printer?" -msgstr "" -"Personalisiere die Farbe the Navigationsleiste - vielleicht um zum " -"Drucker zu passen?" +msgstr "Personalisiere die Farbe the Navigationsleiste - vielleicht um zum Drucker zu passen?" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:9 msgid "Color" @@ -3668,102 +3609,80 @@ msgid "For acrylic printers ;)" msgstr "Für Drucker mit Acrylrahmen ;)" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:18 -msgid "Transparent Color" +msgid "Transparent color" msgstr "Transparente Farbe" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:23 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:22 +msgid "Also personalize the icon of the browser tab" +msgstr "Personalisiere auch das Icon des Browsertabs" + +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:25 +msgid "Colorize favicon (in supported browsers)" +msgstr "Favicon einfärben (in unterstützten Browsern)" + +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:30 msgid "Language Packs" msgstr "Sprachpakete" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:25 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:32 msgid "Manage..." msgstr "Verwalten..." -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:29 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:36 msgid "Default Language" msgstr "Standardsprache" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:36 -msgid "" -"Changes to the default interface language will only become active after a" -" reload of the page and only be active if not overridden by the users " -"language settings." -msgstr "" -"Änderungen der Standardsprache werden erst nach einem Neuladen der Seite " -"aktiv, und nur dann, wenn sie nicht durch die Nutzereinstellungen " -"überschrieben sind." +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:43 +msgid "Changes to the default interface language will only become active after a reload of the page and only be active if not overridden by the users language settings." +msgstr "Änderungen der Standardsprache werden erst nach einem Neuladen der Seite aktiv, und nur dann, wenn sie nicht durch die Nutzereinstellungen überschrieben sind." -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:42 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:49 msgid "Show temperatures in Fahrenheit as well as Celsius" msgstr "Temperaturen sowohl in Fahrenheit als auch Celsius anzeigen" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:51 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:58 msgid "Manage Language Packs..." msgstr "Sprachpakete verwalten" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:55 -msgid "" -"There is currently no central repository for language packs like there is" -" for plugins - any help to change that is appreciated!" -msgstr "" -"Es gibt aktuell kein zentrales Repository für Sprachpakete wie es eines " -"für Plugins gibt - jede Hilfe um das zu ändern ist gerne willkommen!" +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:62 +msgid "There is currently no central repository for language packs like there is for plugins - any help to change that is appreciated!" +msgstr "Es gibt aktuell kein zentrales Repository für Sprachpakete wie es eines für Plugins gibt - jede Hilfe um das zu ändern ist gerne willkommen!" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:58 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:65 #, python-format -msgid "" -"Until a repository is available, please see the wiki for language packs provided by the " -"community." -msgstr "" -"Bis es ein Repository gibt, schau bitte im Wiki nach von der Community bereitgestellten " -"Sprachpaketen." +msgid "Until a repository is available, please see the wiki for language packs provided by the community." +msgstr "Bis es ein Repository gibt, schau bitte im Wiki nach von der Community bereitgestellten Sprachpaketen." -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:61 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:68 msgid "Available Language Packs" msgstr "Verfügbare Sprachpakete" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:72 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:79 msgid "Last update:" msgstr "Letztes Update:" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:75 -msgid "Delete" -msgstr "Löschen" - -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:86 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:93 msgid "No additional Language Packs are installed at the moment." msgstr "Zur Zeit sind keine zusätzlichen Sprachpakete installiert" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:91 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:98 msgid "Upload additional Language Packs" msgstr "Zusätzliche Sprachepakete hochladen" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:102 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:109 #: src/octoprint/templates/overlays/dragndrop.jinja2:10 #: src/octoprint/templates/sidebar/files.jinja2:63 #: src/octoprint/templates/sidebar/files.jinja2:74 msgid "Upload" msgstr "Upload" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:104 -msgid "" -"This does not look like a valid language pack. Valid language packs " -"should be either zip files or tarballs and have the extension \".zip\", " -"\".tar.gz\", \".tgz\" or \".tar\"" -msgstr "" -"Das sieht nicht aus wie ein valides Sprachpaket. Valide Sprachpakete " -"sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension " -"\".zip\", \".tar.gz\", \".tgz\" oder \".tar\" haben" +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:111 +msgid "This does not look like a valid language pack. Valid language packs should be either zip files or tarballs and have the extension \".zip\", \".tar.gz\", \".tgz\" or \".tar\"" +msgstr "Das sieht nicht aus wie ein valides Sprachpaket. Valide Sprachpakete sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension \".zip\", \".tar.gz\", \".tgz\" oder \".tar\" haben" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:107 -msgid "" -"Please note that you will have to reload the page in order for any newly " -"added language packs to become available." -msgstr "" -"Bitte beachte, dass Du die Seite neuladen musst damit neu hinzugefügte " -"Sprachepakete verfügbar werden." +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:114 +msgid "Please note that you will have to reload the page in order for any newly added language packs to become available." +msgstr "Bitte beachte, dass Du die Seite neuladen musst damit neu hinzugefügte Sprachepakete verfügbar werden." #: src/octoprint/templates/dialogs/settings/features.jinja2:5 msgid "Enable Temperature Graph" @@ -3771,9 +3690,7 @@ msgstr "Temperaturgraph aktivieren" #: src/octoprint/templates/dialogs/settings/features.jinja2:12 msgid "Enable model size detection and warn if model exceeds print bed" -msgstr "" -"Objektgrößenerkennung aktivieren und warnen, falls Objekt das " -"Druckvolumen überschreitet" +msgstr "Objektgrößenerkennung aktivieren und warnen, falls Objekt das Druckvolumen überschreitet" #: src/octoprint/templates/dialogs/settings/features.jinja2:12 msgid "Beta" @@ -3793,41 +3710,27 @@ msgstr "Tastatursteuerung aktivieren" #: src/octoprint/templates/dialogs/settings/features.jinja2:40 msgid "G90/G91 overrides relative extruder mode" -msgstr "" -"G90/G91 überschreibt relativen Modus des " -"Extruders" +msgstr "G90/G91 überschreibt relativen Modus des Extruders" #: src/octoprint/templates/dialogs/settings/features.jinja2:40 msgid "Smoothieware" msgstr "Smoothieware" #: src/octoprint/templates/dialogs/settings/features.jinja2:41 -msgid "" -"This is used by the GCODE analysis in the backend and the viewer in the " -"frontend to interpret your sliced files correctly." -msgstr "" -"Dies wird von der GCODE Analyse im Backend und dem GCODE Viewer im " -"Frontend verwendet, um die gesliceten Dateien korrekt zu interpretieren." +msgid "This is used by the GCODE analysis in the backend and the viewer in the frontend to interpret your sliced files correctly." +msgstr "Dies wird von der GCODE Analyse im Backend und dem GCODE Viewer im Frontend verwendet, um die gesliceten Dateien korrekt zu interpretieren." #: src/octoprint/templates/dialogs/settings/features.jinja2:45 msgid "Commands to not completely auto uppercase in the terminal tab" -msgstr "" -"Befehle, die im Terminaltab nicht vollständig in Großbuchstaben gewandelt" -" werden sollen" +msgstr "Befehle, die im Terminaltab nicht vollständig in Großbuchstaben gewandelt werden sollen" #: src/octoprint/templates/dialogs/settings/features.jinja2:46 msgid "Terminal Auto Uppercase Blacklist" msgstr "Terminal Auto Uppercase Blackliste" #: src/octoprint/templates/dialogs/settings/features.jinja2:49 -msgid "" -"Use this to specify the commands that should not have their parameters " -"automatically uppercased in the terminal tab. Just the G or M code, comma" -" separated." -msgstr "" -"Nutze diese Option um Befehle zu spezifizieren, deren Parameter nicht " -"automatisch im Terminaltab in Großbuchstaben überführt werden sollen. Nur" -" den G oder M code, kommasepariert." +msgid "Use this to specify the commands that should not have their parameters automatically uppercased in the terminal tab. Just the G or M code, comma separated." +msgstr "Nutze diese Option um Befehle zu spezifizieren, deren Parameter nicht automatisch im Terminaltab in Großbuchstaben überführt werden sollen. Nur den G oder M code, kommasepariert." #: src/octoprint/templates/dialogs/settings/folders.jinja2:5 msgid "Upload Folder" @@ -3850,31 +3753,22 @@ msgid "Watched Folder" msgstr "Beobachtetes Verzeichnis" #: src/octoprint/templates/dialogs/settings/folders.jinja2:57 -msgid "" -"Actively poll the watched folder. Check this if files in your watched " -"folder aren't automatically added otherwise." -msgstr "" -"Aktives Pollen des beobachteten Verzeichnisses. Einschalten wenn Dateien " -"in Deinem beobachteten Verzeichnis hinzugefügt werden sonst nicht " -"automatisch hinzugefügt werden." +msgid "Actively poll the watched folder. Check this if files in your watched folder aren't automatically added otherwise." +msgstr "Aktives Pollen des beobachteten Verzeichnisses. Einschalten wenn Dateien in Deinem beobachteten Verzeichnis hinzugefügt werden sonst nicht automatisch hinzugefügt werden." #: src/octoprint/templates/dialogs/settings/folders.jinja2:62 msgid "Disk space thresholds" msgstr "Plattenplatzschwellwerte" #: src/octoprint/templates/dialogs/settings/folders.jinja2:64 -msgid "" -"If the free disk space falls below these thresholds, OctoPrint will warn " -"the user." -msgstr "" -"Falls der freie Plattenplatz unter diese Schwellwerte fallen sollte wird " -"OctoPrint den Nutzer warnen." +msgid "If the free disk space falls below these thresholds, OctoPrint will warn the user." +msgstr "Falls der freie Plattenplatz unter diese Schwellwerte fallen sollte wird OctoPrint den Nutzer warnen." #: src/octoprint/templates/dialogs/settings/folders.jinja2:67 #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:52 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:373 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:383 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:389 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:380 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:399 #: src/octoprint/templates/tabs/gcodeviewer.jinja2:114 msgid "Warning" msgstr "Warnung" @@ -3885,14 +3779,8 @@ msgstr "Kritisch" #: src/octoprint/templates/dialogs/settings/folders.jinja2:79 #: src/octoprint/templates/dialogs/settings/gcodevisualizer.jinja2:25 -msgid "" -"Provide values including size unit. Allowed units are: b, byte, bytes, " -"kb, mb, gb, tb (case insensitive). Example: 5MB, " -"500KB" -msgstr "" -"Wert inklusive Größeneinheit. Erlaubte Einheiten sind: b, byte, bytes, " -"kb, mb, gb, tb (Groß-/Kleinschreibung irrelevant). Beispiel: " -"5MB, 500KB" +msgid "Provide values including size unit. Allowed units are: b, byte, bytes, kb, mb, gb, tb (case insensitive). Example: 5MB, 500KB" +msgstr "Wert inklusive Größeneinheit. Erlaubte Einheiten sind: b, byte, bytes, kb, mb, gb, tb (Groß-/Kleinschreibung irrelevant). Beispiel: 5MB, 500KB" #: src/octoprint/templates/dialogs/settings/gcodescripts.jinja2:3 msgid "Before print job starts" @@ -3931,12 +3819,8 @@ msgid "Before connection to printer is closed" msgstr "Bevor die Verbindung zum Drucker geschlossen wird" #: src/octoprint/templates/dialogs/settings/gcodescripts.jinja2:54 -msgid "" -"This will only be executed when closing the connection actively. If the " -"connection to the printer is suddenly lost nothing will be sent." -msgstr "" -"Das wird nur ausgeführt wenn die Verbindung aktiv geschlossen wird. Falls" -" die Verbindung zum Drucker plötzlich verloren geht wird nichts gesendet." +msgid "This will only be executed when closing the connection actively. If the connection to the printer is suddenly lost nothing will be sent." +msgstr "Das wird nur ausgeführt wenn die Verbindung aktiv geschlossen wird. Falls die Verbindung zum Drucker plötzlich verloren geht wird nichts gesendet." #: src/octoprint/templates/dialogs/settings/gcodevisualizer.jinja2:5 msgid "Enable GCode Visualizer" @@ -3944,9 +3828,7 @@ msgstr "GCode Viewer aktivieren" #: src/octoprint/templates/dialogs/settings/gcodevisualizer.jinja2:9 msgid "Maximum size the GCodeViewer autoloads the file for preview" -msgstr "" -"Maximale Größe für die der GCODE Viewer automatisch das Preview der Datei" -" lädt" +msgstr "Maximale Größe für die der GCODE Viewer automatisch das Preview der Datei lädt" #: src/octoprint/templates/dialogs/settings/gcodevisualizer.jinja2:10 msgid "GCode Visualizer file size threshold" @@ -3977,13 +3859,8 @@ msgid "Behaviour" msgstr "Verhalten" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:13 -msgid "" -"Serial port to connect to, setting this to AUTO will make OctoPrint try " -"to automatically find the right setting" -msgstr "" -"Serieller Port, mit der sich verbunden werden soll. Falls AUTO " -"konfiguriert ist wird OctoPrint versuchen, automatisch den richtigen Port" -" zu finden." +msgid "Serial port to connect to, setting this to AUTO will make OctoPrint try to automatically find the right setting" +msgstr "Serieller Port, mit der sich verbunden werden soll. Falls AUTO konfiguriert ist wird OctoPrint versuchen, automatisch den richtigen Port zu finden." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:14 #: src/octoprint/templates/sidebar/connection.jinja2:1 @@ -3991,12 +3868,8 @@ msgid "Serial Port" msgstr "Serialport" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:19 -msgid "" -"Serial baud rate to connect with, setting this to AUTO will make " -"OctoPrint try to automatically find the right setting" -msgstr "" -"Baudrate mit der sich verbunden werden soll. Falls AUTO konfiguriert ist " -"wird OctoPrint versuchen, automatisch die richtige Baudrate zu finden." +msgid "Serial baud rate to connect with, setting this to AUTO will make OctoPrint try to automatically find the right setting" +msgstr "Baudrate mit der sich verbunden werden soll. Falls AUTO konfiguriert ist wird OctoPrint versuchen, automatisch die richtige Baudrate zu finden." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:20 #: src/octoprint/templates/sidebar/connection.jinja2:3 @@ -4004,12 +3877,8 @@ msgid "Baudrate" msgstr "Baudrate" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:25 -msgid "" -"Makes OctoPrint try to connect to the printer automatically during start " -"up" -msgstr "" -"OctoPrint wird versuchen, sich beim Startup automatisch mit dem Drucker " -"zu verbinden" +msgid "Makes OctoPrint try to connect to the printer automatically during start up" +msgstr "OctoPrint wird versuchen, sich beim Startup automatisch mit dem Drucker zu verbinden" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:28 msgid "Auto-connect to printer on server start" @@ -4021,26 +3890,16 @@ msgstr "Zusätzliche serielle Ports" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:36 #, python-format -msgid "" -"Use this to define additional glob patterns" -" matching serial ports to list for connecting against, e.g. " -"/dev/ttyAMA*. One entry per line." -msgstr "" -"Nutze diese Einstellung um zusätzliche glob " -"patterns zu konfigurieren, die auf serielle Ports deines Druckers " -"matchen, z.B. /dev/ttyAMA*. Ein Eintrag pro Zeile." +msgid "Use this to define additional glob patterns matching serial ports to list for connecting against, e.g. /dev/ttyAMA*. One entry per line." +msgstr "Nutze diese Einstellung um zusätzliche glob patterns zu konfigurieren, die auf serielle Ports deines Druckers matchen, z.B. /dev/ttyAMA*. Ein Eintrag pro Zeile." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:40 msgid "Additional baud rates" msgstr "Weitere Baudraten" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:43 -msgid "" -"Use this to define additional serial port baud rates to list for " -"connecting with, e.g. 123456. Comma separated." -msgstr "" -"Nutze diese Einstellung um zusätzliche Baudraten zur Verbindung zu " -"konfigurieren, 123456. Komma-separiert." +msgid "Use this to define additional serial port baud rates to list for connecting with, e.g. 123456. Comma separated." +msgstr "Nutze diese Einstellung um zusätzliche Baudraten zur Verbindung zu konfigurieren, 123456. Komma-separiert." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:48 msgid "Serial logging" @@ -4051,15 +3910,8 @@ msgid "Log communication to serial.log" msgstr "Kommunikation nach serial.log loggen" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:53 -msgid "" -"While this can negatively impact performance, a serial.log " -"can be incredibly useful for debugging any issues observed in the " -"communication between OctoPrint and your printer." -msgstr "" -"Dies kann zwar die Performance negativ beeinflussen, ein " -"serial.log ist jedoch unglaublich nützlich beim Debugging " -"jeglicher Probleme, die in der Kommunikation zwischen OctoPrint und " -"deinem Drucker auftreten." +msgid "While this can negatively impact performance, a serial.log can be incredibly useful for debugging any issues observed in the communication between OctoPrint and your printer." +msgstr "Dies kann zwar die Performance negativ beeinflussen, ein serial.log ist jedoch unglaublich nützlich beim Debugging jeglicher Probleme, die in der Kommunikation zwischen OctoPrint und deinem Drucker auftreten." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:61 msgid "Query intervals" @@ -4067,9 +3919,7 @@ msgstr "Abfrageintervalle" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:62 msgid "Interval in which to poll for the temperature information from the printer" -msgstr "" -"Intervall in welchem die Temperaturdaten vom Drucker abgerufen werden " -"sollen" +msgstr "Intervall in welchem die Temperaturdaten vom Drucker abgerufen werden sollen" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:63 msgid "Temperature interval (polling)" @@ -4084,13 +3934,8 @@ msgid "When idle and a target temperature is set" msgstr "Wenn im Leerlauf und eine Zieltemperatur eingestellt ist" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:79 -msgid "" -"Temperature report interval to request from autoreport capable firmwares." -" A value of 0 disables autoreporting by the firmware and forces polling." -msgstr "" -"Von der autoreportfähigen Firmware anzuforderndes " -"Temperaturupdateintervall. Ein Wert von 0 deaktiviert Autoreporting der " -"Firmware und forciert Polling." +msgid "Temperature report interval to request from autoreport capable firmwares. A value of 0 disables autoreporting by the firmware and forces polling." +msgstr "Von der autoreportfähigen Firmware anzuforderndes Temperaturupdateintervall. Ein Wert von 0 deaktiviert Autoreporting der Firmware und forciert Polling." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:80 msgid "Temperature interval (autoreport)" @@ -4102,12 +3947,8 @@ msgid "Autoreport interval to request from firmware" msgstr "Anzuforderndes Temperaturupdateintervall" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:89 -msgid "" -"Interval in which to poll for the SD printing status information from the" -" printer while printing" -msgstr "" -"Intervall in welchem die SD-Statusdaten vom Drucker während des Druckens " -"abgerufen werden sollen" +msgid "Interval in which to poll for the SD printing status information from the printer while printing" +msgstr "Intervall in welchem die SD-Statusdaten vom Drucker während des Druckens abgerufen werden sollen" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:90 msgid "SD status interval (polling)" @@ -4118,12 +3959,8 @@ msgid "When printing from the printer's SD" msgstr "Wenn von der SD des Druckers gedruckt wird" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:99 -msgid "" -"SD status interval to request from autoreport capable firmwares. A value " -"of 0 disables autoreporting by the firmware and forces polling." -msgstr "" -"Von der autoreportfähigen Firmware anzuforderndes SD-Statusintervall. Ein" -" Wert von 0 deaktiviert Autoreporting der Firmware und forciert Polling." +msgid "SD status interval to request from autoreport capable firmwares. A value of 0 disables autoreporting by the firmware and forces polling." +msgstr "Von der autoreportfähigen Firmware anzuforderndes SD-Statusintervall. Ein Wert von 0 deaktiviert Autoreporting der Firmware und forciert Polling." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:100 msgid "SD status interval (autoreport)" @@ -4134,17 +3971,8 @@ msgid "Timeouts" msgstr "Timeouts" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:112 -msgid "" -"Time after which the communication with your printer will be considered " -"timed out if nothing was sent by your printer (and an attempt to get it " -"talking again will be done). Increase this if your printer takes longer " -"than this for some moves." -msgstr "" -"Zeit nach der OctoPrint davon ausgehen wird, dass die Kommunikation mit " -"deinem Drucker unterbrochen wurde falls Dein Drucker keine Daten sendet. " -"OctoPrint wird dann einen Versuch unternehmen, die Kommunikation wieder " -"zu reetablieren. Erhöhe diesen Wert falls Dein Drucker für manche " -"Bewegungen länger braucht." +msgid "Time after which the communication with your printer will be considered timed out if nothing was sent by your printer (and an attempt to get it talking again will be done). Increase this if your printer takes longer than this for some moves." +msgstr "Zeit nach der OctoPrint davon ausgehen wird, dass die Kommunikation mit deinem Drucker unterbrochen wurde falls Dein Drucker keine Daten sendet. OctoPrint wird dann einen Versuch unternehmen, die Kommunikation wieder zu reetablieren. Erhöhe diesen Wert falls Dein Drucker für manche Bewegungen länger braucht." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:113 msgid "Communication timeout" @@ -4159,72 +3987,44 @@ msgid "busy protocol support detected" msgstr "busy Protokoll unterstützt" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:129 -msgid "" -"Time after which a connection attempt to the printer will be considered " -"as having failed" -msgstr "" -"Zeit nach der ein unbeantworteter Verbindungsversuch als gescheitert " -"angenommen wird" +msgid "Time after which a connection attempt to the printer will be considered as having failed" +msgstr "Zeit nach der ein unbeantworteter Verbindungsversuch als gescheitert angenommen wird" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:130 msgid "Connection timeout" msgstr "Verbindungstimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:138 -msgid "" -"Time after which to consider an auto detection attempt to have failed if " -"no successful connection is detected" -msgstr "" -"Zeit nach der ein unbeantworteter Autodetektierungsversuch als " -"gescheitert angenommen wird" +msgid "Time after which to consider an auto detection attempt to have failed if no successful connection is detected" +msgstr "Zeit nach der ein unbeantworteter Autodetektierungsversuch als gescheitert angenommen wird" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:139 msgid "Autodetection timeout" msgstr "Autodetectiontimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:147 -msgid "" -"Time after which to consider a position query on pause or cancel to have " -"failed" -msgstr "" -"Zeit nach der OctoPrint annimmt, dass die Positionsabfrage nach Pause " -"oder Abbruch fehlgeschlagen ist." +msgid "Time after which to consider a position query on pause or cancel to have failed" +msgstr "Zeit nach der OctoPrint annimmt, dass die Positionsabfrage nach Pause oder Abbruch fehlgeschlagen ist." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:148 msgid "Position query timeout" msgstr "Positionsabfragetimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:159 -msgid "" -"Time to wait after opening the serial connection before starting baudrate" -" detection" -msgstr "" -"Zeit, die OctoPrint nach Öffnen der seriellen Schnittstelle warten soll, " -"bis es mit der Baudrateerkennung startet" +msgid "Time to wait after opening the serial connection before starting baudrate detection" +msgstr "Zeit, die OctoPrint nach Öffnen der seriellen Schnittstelle warten soll, bis es mit der Baudrateerkennung startet" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:160 msgid "Initial baudrate detection pause" msgstr "Baudrateerkennungsverzögerung" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:166 -msgid "" -"Some controllers need a bit of a breather before baudrate detection after" -" initial connect. If baudrate detection fails due to a hanging " -"controller, try increasing this value." -msgstr "" -"Einige Controller brauchen ein bisschen, bevor die Baudrateerkennung nach" -" initialer Verbindung durchgeführt werden kann. Versuche, diesen Wert zu " -"erhöhen, falls die Baudrateerkennung aufgrund eines hängenden Controllers" -" fehlschlägt." +msgid "Some controllers need a bit of a breather before baudrate detection after initial connect. If baudrate detection fails due to a hanging controller, try increasing this value." +msgstr "Einige Controller brauchen ein bisschen, bevor die Baudrateerkennung nach initialer Verbindung durchgeführt werden kann. Versuche, diesen Wert zu erhöhen, falls die Baudrateerkennung aufgrund eines hängenden Controllers fehlschlägt." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:169 -msgid "" -"Maximum consecutive communication timeouts while idle. More than this and" -" the printer will be considered to be gone. Set to 0 to disable." -msgstr "" -"Maximale Anzahl aufeinanderfolgender Communication Timeouts im " -"Idlezustand. Mehr als das und es wird angenommen, dass der Drucker " -"offline ist. Auf 0 setzen um das zu verhindern." +msgid "Maximum consecutive communication timeouts while idle. More than this and the printer will be considered to be gone. Set to 0 to disable." +msgstr "Maximale Anzahl aufeinanderfolgender Communication Timeouts im Idlezustand. Mehr als das und es wird angenommen, dass der Drucker offline ist. Auf 0 setzen um das zu verhindern." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:170 msgid "Max. consecutive timeouts while idle" @@ -4237,27 +4037,16 @@ msgid "Set to 0 to disable consecutive timeout detection and handling." msgstr "Auf 0 setzen um aufeinanderfolgende Timeouts zu ignorieren" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:176 -msgid "" -"Maximum consecutive communication timeouts while printing. More than this" -" and the printer will be considered to be gone. Set to 0 to disable." -msgstr "" -"Maximale Anzahl aufeinanderfolgender Communication Timeouts beim Drucken." -" Mehr als das und es wird angenommen, dass der Drucker offline ist. Auf 0" -" setzen um das zu verhindern." +msgid "Maximum consecutive communication timeouts while printing. More than this and the printer will be considered to be gone. Set to 0 to disable." +msgstr "Maximale Anzahl aufeinanderfolgender Communication Timeouts beim Drucken. Mehr als das und es wird angenommen, dass der Drucker offline ist. Auf 0 setzen um das zu verhindern." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:177 msgid "Max. consecutive timeouts while printing" msgstr "Max. aufeinanderfolgende Timeouts beim Drucken" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:183 -msgid "" -"Maximum consecutive communication timeouts while a long running command " -"is active. More than this and the printer will be considered to be gone. " -"Set to 0 to disable." -msgstr "" -"Maximale Anzahl aufeinanderfolgender Communication Timeouts wenn ein lang" -" laufender Befehl aktiv ist. Mehr als das und es wird angenommen, dass " -"der Drucker offline ist. Auf 0 setzen um das zu verhindern." +msgid "Maximum consecutive communication timeouts while a long running command is active. More than this and the printer will be considered to be gone. Set to 0 to disable." +msgstr "Maximale Anzahl aufeinanderfolgender Communication Timeouts wenn ein lang laufender Befehl aktiv ist. Mehr als das und es wird angenommen, dass der Drucker offline ist. Auf 0 setzen um das zu verhindern." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:184 msgid "Max. consecutive timeouts during long running commands" @@ -4272,22 +4061,11 @@ msgid "Enable automatic firmware detection" msgstr "Automatische Firmwareerkennung einschalten" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:201 -msgid "" -"\n" -" If enabled, OctoPrint will try to figure " -"out your printer's firmware automatically and adjust some communication " -"parameters based on that.\n" -" If that doesn't work out, or you want " -"more granular control, uncheck this and the parameters in question will " -"become visible for you to adjust.\n" +msgid "\n" +" If enabled, OctoPrint will try to figure out your printer's firmware automatically and adjust some communication parameters based on that.\n" +" If that doesn't work out, or you want more granular control, uncheck this and the parameters in question will become visible for you to adjust.\n" " " -msgstr "" -"Falls diese Option eingeschaltet ist, versucht OctoPrint die Firmware des" -" Druckers automatisch zu erkennen und darauf basierend diverse " -"Kommunikationsparameter zu konfigurieren. Falls das für dich nicht " -"korrekt funktioniert oder du mehr Kontrolle haben möchtest, schalte diese" -" Option aus und die entsprechenden Parameter werden zur manuellen " -"Konfiguration eingeblendet." +msgstr "Falls diese Option eingeschaltet ist, versucht OctoPrint die Firmware des Druckers automatisch zu erkennen und darauf basierend diverse Kommunikationsparameter zu konfigurieren. Falls das für dich nicht korrekt funktioniert oder du mehr Kontrolle haben möchtest, schalte diese Option aus und die entsprechenden Parameter werden zur manuellen Konfiguration eingeblendet." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:212 msgid "Select SD files by relative path" @@ -4316,12 +4094,8 @@ msgstr "Aufeinanderfolgende Resend Requests für die selbe Zeilennummer ignorier #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:233 #, python-format -msgid "" -"Support TargetExtr%%n/TargetBed target " -"temperature format" -msgstr "" -"TargetExtr%%n/TargetBed Zieltemperaturformat " -"unterstützen" +msgid "Support TargetExtr%%n/TargetBed target temperature format" +msgstr "TargetExtr%%n/TargetBed Zieltemperaturformat unterstützen" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:240 msgid "Disable detection of external heatups" @@ -4329,9 +4103,7 @@ msgstr "Detektierung externer Aufheizvorgänge deaktivieren" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:247 msgid "Actively pause communication during G4 dwell command" -msgstr "" -"Pausiere Kommunikation mit dem Drucker aktiv während eines " -"G4 dwell Befehls." +msgstr "Pausiere Kommunikation mit dem Drucker aktiv während eines G4 dwell Befehls." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:252 msgid "Send a checksum with the command" @@ -4342,12 +4114,12 @@ msgid "When printing" msgstr "Beim Drucken" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:258 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:305 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:312 msgid "Always" msgstr "Immer" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:261 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:308 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:315 msgid "Never" msgstr "Nie" @@ -4360,207 +4132,140 @@ msgid "Support sd status autoreporting by firmware, if detected" msgstr "SD-Status-Autoreporting durch die Firmware unterstützen, falls detektiert" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:286 +msgid "Send emergency GCODES M108 and M410 without waiting for acknowledgement, if detected as supported by the firmware" +msgstr "Emergency GCODES M108 und M410 ohne warten auf Bestätigung absenden, falls Unterstützung durch Firmware erkannt" + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:293 msgid "Support busy protocol, if detected" msgstr "busy Protokoll unterstützen, falls detektiert" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:293 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:300 msgid "Simulate ok for M29" msgstr "Zusätzliches ok für M29 generieren" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:294 -msgid "" -"Most Marlin forks that were derived from Marlin versions < v1.1.0 do " -"not send an acknowledging ok for a M29. Check " -"this if you run into communication stalls following streaming of a file " -"to your printer's SD." -msgstr "" -"Die meisten Marlinforks, die von Marlin Versionen < v1.1.0 abgeleitet " -"wurden, senden kein bestätigendes ok für ein " -"M29. Aktiviere diese Option, falls du Kommunikationsprobleme" -" nach dem Streaming einer Datei zu der SD des Druckers beobachtest." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:301 +msgid "Most Marlin forks that were derived from Marlin versions < v1.1.0 do not send an acknowledging ok for a M29. Check this if you run into communication stalls following streaming of a file to your printer's SD." +msgstr "Die meisten Marlinforks, die von Marlin Versionen < v1.1.0 abgeleitet wurden, senden kein bestätigendes ok für ein M29. Aktiviere diese Option, falls du Kommunikationsprobleme nach dem Streaming einer Datei zu der SD des Druckers beobachtest." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:299 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:306 msgid "Simulate ok for resend requests" msgstr "Zusätzliches ok für Resendrequests simulieren" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:302 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:309 msgid "If detected as necessary" msgstr "Falls als notwendig erkannt" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:310 -msgid "" -"Some Marlin forks lack an acknowledging ok with their resend" -" requests. Set this to \"always\" or \"if detected as necessary\" if you " -"run into communication stalls on resend requests." -msgstr "" -"Einige Marlinforks senden bei einem Resendrequest kein bestätigendes " -"ok. Setze diese Option auf \"immer\" oder \"falls als " -"notwendig erkannt\" falls du Kommunikationsprobleme nach Resendrequests " -"beobachtest." - #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:317 +msgid "Some Marlin forks lack an acknowledging ok with their resend requests. Set this to \"always\" or \"if detected as necessary\" if you run into communication stalls on resend requests." +msgstr "Einige Marlinforks senden bei einem Resendrequest kein bestätigendes ok. Setze diese Option auf \"immer\" oder \"falls als notwendig erkannt\" falls du Kommunikationsprobleme nach Resendrequests beobachtest." + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:324 msgid "Protocol fine tuning" msgstr "Protokollfinetuning" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:321 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:328 msgid "Wait for start on connect" msgstr "Bei der Verbindung auf start warten" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:322 -msgid "" -"Try checking this if you run into connection timeouts due to your printer" -" taking too long to respond to OctoPrint's handshake attempts on connect." -msgstr "" -"Versuche es mit dieser Option, falls du Kommunikationsprobleme " -"beobachtest, weil dein Drucker zu lange braucht, um auf OctoPrints " -"Handshake Versuche zu antworten." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:329 +msgid "Try checking this if you run into connection timeouts due to your printer taking too long to respond to OctoPrint's handshake attempts on connect." +msgstr "Versuche es mit dieser Option, falls du Kommunikationsprobleme beobachtest, weil dein Drucker zu lange braucht, um auf OctoPrints Handshake Versuche zu antworten." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:327 -msgid "" -"Do not send M0/M1 commands to the firmware, " -"only pause" -msgstr "" -"M0/M1 nicht zur Firmware senden, nur lokal " -"pausieren" - -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:328 -msgid "" -"Most firmware will block and wait for the user to press the button on the" -" controller when an M0 or M1 is received. Due " -"to that OctoPrint will normally not send those commands to the printer " -"and only pause any ongoing prints. If you want OctoPrint to send those " -"commands to your printer, uncheck this option." -msgstr "" -"Die meisten Firmwarevarianten blockieren und warten darauf, dass der User" -" physikalisch den Button am Controller bedient, wenn sie ein " -"M0 oder M1 empfangen. Daher schickt OctoPrint " -"diese Befehle normalerweise nicht zum Drucker und pausiert lediglich " -"laufende Druckjobs. Wenn du möchstest, dass OctoPrint diese Befehle zu " -"deinem Drucker sendet, deaktiviere diese Option." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:334 +msgid "Do not send M0/M1 commands to the firmware, only pause" +msgstr "M0/M1 nicht zur Firmware senden, nur lokal pausieren" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:335 -msgid "Command to send to the firmware on first handshake attempt." -msgstr "" -"Kommando, das als erster Handshakeversuch an die Firmware gesendet werden" -" soll" +msgid "Most firmware will block and wait for the user to press the button on the controller when an M0 or M1 is received. Due to that OctoPrint will normally not send those commands to the printer and only pause any ongoing prints. If you want OctoPrint to send those commands to your printer, uncheck this option." +msgstr "Die meisten Firmwarevarianten blockieren und warten darauf, dass der User physikalisch den Button am Controller bedient, wenn sie ein M0 oder M1 empfangen. Daher schickt OctoPrint diese Befehle normalerweise nicht zum Drucker und pausiert lediglich laufende Druckjobs. Wenn du möchstest, dass OctoPrint diese Befehle zu deinem Drucker sendet, deaktiviere diese Option." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:336 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:342 +msgid "Command to send to the firmware on first handshake attempt." +msgstr "Kommando, das als erster Handshakeversuch an die Firmware gesendet werden soll" + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:343 msgid "\"Hello\" command" msgstr "\"Hallo\"-Befehl" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:339 -msgid "" -"Use this to specify a different command than the default " -"M110 to send to the printer on initial connection to trigger" -" a communication handshake." -msgstr "" -"Nutze diese Einstellung um einen anderen Befehl als M110 " -"beim initialen Verbindungsaufbau zum drucker zu senden." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:346 +msgid "Use this to specify a different command than the default M110 to send to the printer on initial connection to trigger a communication handshake." +msgstr "Nutze diese Einstellung um einen anderen Befehl als M110 beim initialen Verbindungsaufbau zum drucker zu senden." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:342 -msgid "" -"Commands that are know to run long and hence should suppress " -"communication timeouts from being triggered." -msgstr "" -"Befehle, von denen bekannt ist, dass sie lang zur Ausführung benötigen " -"und daher das Auslösen von Kommunikationstimeouts unterdrücken sollten." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:349 +msgid "Commands that are know to run long and hence should suppress communication timeouts from being triggered." +msgstr "Befehle, von denen bekannt ist, dass sie lang zur Ausführung benötigen und daher das Auslösen von Kommunikationstimeouts unterdrücken sollten." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:343 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:350 msgid "Long running commands" msgstr "Lang laufende Befehle" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:346 -msgid "" -"Use this to specify the commands known to take a long time to complete " -"without output from your printer and hence might cause timeout issues. " -"Just the G or M code, comma separated." -msgstr "" -"Nutze diese Option, um solche Befehle zu definieren, von denen Du weißt, " -"dass sie eine längere Zeit lang laufen, währenddessen keinen Output " -"produzieren und daher Timeoutprobleme verursachen könnten. Nur den G- " -"oder M-Code, kommasepariert." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:353 +msgid "Use this to specify the commands known to take a long time to complete without output from your printer and hence might cause timeout issues. Just the G or M code, comma separated." +msgstr "Nutze diese Option, um solche Befehle zu definieren, von denen Du weißt, dass sie eine längere Zeit lang laufen, währenddessen keinen Output produzieren und daher Timeoutprobleme verursachen könnten. Nur den G- oder M-Code, kommasepariert." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:349 -msgid "" -"Commands that always require a line number and checksum to be sent with " -"them." -msgstr "" -"Befehle, die immer mit einer Prüfsumme und Zeilennummer gesendet werden " -"müssen." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:356 +msgid "Commands that always require a line number and checksum to be sent with them." +msgstr "Befehle, die immer mit einer Prüfsumme und Zeilennummer gesendet werden müssen." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:350 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:357 msgid "Commands that always require a checksum" msgstr "Befehle, die immer eine Prüfsumme benötigen" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:353 -msgid "" -"Use this to specify which commands always need to be " -"sent with a checksum. Comma separated list." -msgstr "" -"Nutze diese Einstellung um Befehle zu spezifizieren, die " -"immer mit Prüfsumme gesendet werden müssen. Komma-" -"separierte Liste." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:360 +msgid "Use this to specify which commands always need to be sent with a checksum. Comma separated list." +msgstr "Nutze diese Einstellung um Befehle zu spezifizieren, die immer mit Prüfsumme gesendet werden müssen. Komma-separierte Liste." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:362 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:369 msgid "Error handling" msgstr "Fehlerbehandlung" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:364 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:371 msgid "What to do on a firmware error (Error: or !!)" -msgstr "" -"Was im Falle eines Firmwarefehlers (Error: oder " -"!!) gemacht werden soll" +msgstr "Was im Falle eines Firmwarefehlers (Error: oder !!) gemacht werden soll" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:367 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:374 msgid "Disconnect from the printer" msgstr "Verbindung zum Drucker trennen" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:370 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:377 msgid "Cancel any ongoing prints but stay connected to the printer" msgstr "Laufende Druckaufträge abbrechen, aber mit dem Drucker verbunden bleiben" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:374 -msgid "" -"Only choose this if your firmware sends error messages that are not " -"actual errors. Might mask printer issues, be careful!" -msgstr "" -"Wähle das nur aus, wenn deine Firmware Fehlermeldungen für Dinge sendet, " -"die gar keine wirklich Fehler sind. Könnte Druckerprobleme verbergen, " -"Vorsicht!" +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:381 +msgid "Only choose this if your firmware sends error messages that are not actual errors. Might mask printer issues, be careful!" +msgstr "Wähle das nur aus, wenn deine Firmware Fehlermeldungen für Dinge sendet, die gar keine wirklich Fehler sind. Könnte Druckerprobleme verbergen, Vorsicht!" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:380 -msgid "Event based position logging" -msgstr "Eventbasiertes Positionslogging" +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:387 +msgid "Pausing" +msgstr "Pausiere" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:383 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390 msgid "Log position on pause" msgstr "Position bei Pause loggen" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:384 -msgid "" -"If you disable this, the pause_position placeholders in your" -" pause/resume GCODE scripts will stay unpopulated! However, pausing speed" -" might improve slightly." -msgstr "" -"Falls du das deaktivierst, werden die pause_position " -"Platzhalter in deinen Pausieren/Fortsetzen GCODE Scripts nicht befüllt! " -"Allerdings könnte sich die Pausierungsgeschwindkeit einen Hauch " -"verbessern." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:391 +msgid "If you disable this, the pause_position placeholders in your pause/resume GCODE scripts will stay unpopulated! However, pausing speed might improve slightly." +msgstr "Falls du das deaktivierst, werden die pause_position Platzhalter in deinen Pausieren/Fortsetzen GCODE Scripts nicht befüllt! Allerdings könnte sich die Pausierungsgeschwindkeit einen Hauch verbessern." -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:389 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:396 +msgid "Cancelling" +msgstr "Breche ab" + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:399 msgid "Log position on cancel" msgstr "Position bei Abbruch loggen" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390 -msgid "" -"If you disable this, the cancel_position placeholders in " -"your cancel GCODE script and the corresponding data in the print recovery" -" data will stay unpopulated! However, cancelling speed might improve " -"slightly." -msgstr "" -"Falls du das deaktivierst, werden die cancel_position " -"Platzhalter in deinem Abbruch GCODE Script nicht befüllt! Allerdings " -"könnte sich die Abbruchgeschwindkeit einen Hauch verbessern." +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:400 +msgid "If you disable this, the cancel_position placeholders in your cancel GCODE script and the corresponding data in the print recovery data will stay unpopulated! However, cancelling speed might improve slightly." +msgstr "Falls du das deaktivierst, werden die cancel_position Platzhalter in deinem Abbruch GCODE Script nicht befüllt! Allerdings könnte sich die Abbruchgeschwindkeit einen Hauch verbessern." + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:405 +msgid "Attempt to abort any blocking heatups on cancel via M108." +msgstr "Versuche, blockierende Aufheizprozesse beim Abbruch mittel M108 zu stoppen." + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:406 +msgid "Uncheck this if your firmware doesn't support M108 for aborting blocking heatups!" +msgstr "Deaktiviere dies, falls deine Firmware M108 zum stoppen blockierender Aufheizprozesse nicht unterstützt!" #: src/octoprint/templates/dialogs/settings/server.jinja2:2 msgid "Commands" @@ -4595,26 +4300,16 @@ msgid "Send temperature fine adjustments automatically" msgstr "Temperaturfeinjustierungen automatisch senden" #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:19 -msgid "" -"Enable this to have temperature fine adjustments you do via the + or - " -"button be sent to the printer automatically." -msgstr "" -"Aktiviere dies, um die Temperaturefeinjustierungen, die du mittels der + " -"und - Buttons durchführen kannst, automatisch zum Drucker senden zu " -"lassen." +msgid "Enable this to have temperature fine adjustments you do via the + or - button be sent to the printer automatically." +msgstr "Aktiviere dies, um die Temperaturefeinjustierungen, die du mittels der + und - Buttons durchführen kannst, automatisch zum Drucker senden zu lassen." #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:23 msgid "Sending delay" msgstr "Sendeverzögerung" #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:29 -msgid "" -"OctoPrint will use this delay to limit the number of sent temperature " -"commands should you perform multiple fine adjustments in a short time." -msgstr "" -"OctoPrint wird diese Verzögerung nutzen, um die Anzahl der gesendeten " -"Temperaturkommandos zu reduzieren wenn du mehrere Feinjustierungen in " -"einer kurzen Zeit durchführst." +msgid "OctoPrint will use this delay to limit the number of sent temperature commands should you perform multiple fine adjustments in a short time." +msgstr "OctoPrint wird diese Verzögerung nutzen, um die Anzahl der gesendeten Temperaturkommandos zu reduzieren wenn du mehrere Feinjustierungen in einer kurzen Zeit durchführst." #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:32 msgid "Presets" @@ -4629,90 +4324,72 @@ msgid "RegExp" msgstr "RegExp" #: src/octoprint/templates/dialogs/usersettings/access.jinja2:5 -msgid "" -"If you do not wish to change your password, just leave the following " -"fields empty." -msgstr "" -"Falls Du Dein Passwort nicht ändern willst, lass die folgenden Felder " -"leer." +msgid "If you do not wish to change your password, just leave the following fields empty." +msgstr "Falls Du Dein Passwort nicht ändern willst, lass die folgenden Felder leer." #: src/octoprint/templates/dialogs/usersettings/access.jinja2:32 -msgid "" -"Please note that changes to the API key are applied immediately, without " -"having to \"Confirm\" first." -msgstr "" -"Bitte beachte, dass Änderungen am API-Key sofort angewandt werden, ohne " -"dass \"Bestätigen\" geklickt werden muss." +msgid "Please note that changes to the API key are applied immediately, without having to \"Confirm\" first." +msgstr "Bitte beachte, dass Änderungen am API-Key sofort angewandt werden, ohne dass \"Bestätigen\" geklickt werden muss." #: src/octoprint/templates/dialogs/usersettings/interface.jinja2:3 msgid "Language" msgstr "Sprache" #: src/octoprint/templates/dialogs/usersettings/interface.jinja2:11 -msgid "" -"Changes to the interface language will only become active after a reload " -"of the page." -msgstr "" -"Änderungen der Oberflächensprache werden erst nach einem Neuladen der " -"Seite aktiv." +msgid "Changes to the interface language will only become active after a reload of the page." +msgstr "Änderungen der Oberflächensprache werden erst nach einem Neuladen der Seite aktiv." #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:1 msgid "All Done!" msgstr "Alles erledigt!" #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:3 -msgid "" -"\n" +msgid "\n" " Your OctoPrint installation is now all set up and ready to go.\n" -msgstr "" -"Deine OctoPrint Installation ist jetzt eingerichtet und es kann losgehen." -"\n" +msgstr "Deine OctoPrint Installation ist jetzt eingerichtet und es kann losgehen.\n" #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:7 -msgid "On your printer's safety" +msgid "For your printer's safety" msgstr "Über die Sicherheit deines Druckers" #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:10 -msgid "" -"\n" -" Even with OctoPrint attached you should never leave\n" -" your printer running completely unattended. The electronics " -"in our consumer printers can and\n" -" sometimes sadly do catch fire, so stay or have someone else stay " -"close enough to physically intervene\n" +msgid "\n" +" Even with OctoPrint attached you should never leave\n" +" your printer running completely unattended. The electronics in our consumer printers can and\n" +" sometimes sadly do catch fire, so stay or have someone else stay close enough to physically intervene\n" " in case of such catastrophic failure.\n" -msgstr "" -"Auch mit angeschlossener OctoPrint-Instanz solltest du deinen Drucker " -"niemals unbeaufsichtigt laufen " -"lassen. Die Elektronik in unseren Konsumerdruckern kann Feuer " -"fangen, und tut das leider auch manchmal. Bleibe also in der Nähe deines " -"Druckers oder sorge dafür, dass jemand anderes in der Nähe bleibt, um im " -"Falle eines solch katastrophalen Fehlers einschreiten zu können.\n" +msgstr "Auch mit angeschlossener OctoPrint-Instanz solltest du deinen Drucker niemals unbeaufsichtigt laufen lassen. Die Elektronik in unseren Konsumerdruckern kann Feuer fangen, und tut das leider auch manchmal. Bleibe also in der Nähe deines Druckers oder sorge dafür, dass jemand anderes in der Nähe bleibt, um im Falle eines solch katastrophalen Fehlers einschreiten zu können.\n" -#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:17 +#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:16 +#, python-format +msgid "\n" +" You also should never make your OctoPrint instance available for everyone on the\n" +" public internet, even with Access Control enabled. Your instance will be found, and bad people\n" +" will try to abuse it. Don't put yourself at risk,\n" +" use a safe way to access your instance remotely.\n" +msgstr "\n" +" Du solltest ebenfalls deine OctoPrint Instanz niemals für jeden im öffentlichen Internet verfügbar machen,\n" +" auch nicht wenn die Zugriffsbeschränkung aktiviert ist. Deine Instanz wird gefunden werden, und böse Menschen\n" +" werden versuchen, einzubrechen. Gehe kein Risiko ein,\n" +" nutze einen sicheren Weg, auf deine Instanz von unterwegs zuzugreifen.\n" + +#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:23 msgid "If you enjoy OctoPrint..." msgstr "Falls dir OctoPrint gefällt..." -#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:20 -#, python-format -msgid "" -"\n" -" Please consider to support OctoPrint's ongoing development,\n" -" which can only continue with funding by users like you! You can also " -"find this link in the \"About\" dialog.
    \n" -" Thank you!\n" -msgstr "" -"Bitte denke darĂĽber nach, OctoPrints laufende Entwicklung zu " -"unterstĂĽtzen, welche nur dank UnterstĂĽtzung von Nutzern wie " -"dir weitergehen kann! Du kannst diesen Link auch im Aboutdialog finden. " -"Vielen Dank!\n" - #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:26 -msgid "" -"\n" +#, python-format +msgid "\n" +" Please consider supporting OctoPrint's ongoing development,\n" +" which can only continue with funding by users like you! You can also find this link in the \"About\" dialog.
    \n" +" Thank you!\n" +msgstr "\n" +" Bitte denke darĂĽber nach, OctoPrints laufende Entwicklung zu unterstĂĽtzen,\n" +" welche nur dank UnterstĂĽtzung von Nutzern wie dir weitergehen kann! Du kannst diesen Link auch im Aboutdialog finden.
    \n" +" Vielen Dank!\n" + +#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:32 +msgid "\n" " With all that being said, Happy and Safe Printing!\n" msgstr "Und jetzt fröhliches und sicheres Drucken!\n" @@ -4721,29 +4398,20 @@ msgid "Hello!" msgstr "Hallo!" #: src/octoprint/templates/dialogs/wizard/firstrun_start.jinja2:3 -msgid "" -"\n" +msgid "\n" " Thank you for installing OctoPrint!\n" msgstr "Danke, dass du OctoPrint installiert hast!\n" #: src/octoprint/templates/dialogs/wizard/firstrun_start.jinja2:6 -msgid "" -"\n" -" This wizard will guide you through the final steps to get your " -"OctoPrint instance all set up and ready to go. We'll\n" +msgid "\n" +" This wizard will guide you through the final steps to get your OctoPrint instance all set up and ready to go. We'll\n" " get you printing in no time!\n" -msgstr "" -"Dieser Wizard wird dich nun durch die letzten Schritte begleiten, um " -"deine OctoPrint Instanz fertig einzurichten.\n" +msgstr "Dieser Wizard wird dich nun durch die letzten Schritte begleiten, um deine OctoPrint Instanz fertig einzurichten.\n" #: src/octoprint/templates/navbar/login.jinja2:9 msgid "Forgot password?" msgstr "Passwort vergessen?" -#: src/octoprint/templates/navbar/login.jinja2:13 -msgid "Remember me" -msgstr "Login merken" - #: src/octoprint/templates/navbar/login.jinja2:19 msgid "User Settings" msgstr "Nutzereinstellungen" @@ -4786,20 +4454,13 @@ msgid "Please reload" msgstr "Bitte die Seite neu laden" #: src/octoprint/templates/overlays/reloadui.jinja2:7 -msgid "" -"\n" -" There is a new version of the server active now, a " -"reload\n" -" of the user interface is needed. This will not " -"interrupt\n" -" any print jobs you might have ongoing. Please reload " -"the\n" +msgid "\n" +" There is a new version of the server active now, a reload\n" +" of the user interface is needed. This will not interrupt\n" +" any print jobs you might have ongoing. Please reload the\n" " web interface now by clicking the button below.\n" " " -msgstr "" -"Die Serverversion hat sich geändert, ein Neuladen des Webinterfaces ist " -"notwendig. Das wird evtl. laufenden Printjobs nicht unterbrechen. Bitte " -"lade das Webinterface jetzt neu, indem du auf den Button unten klickst." +msgstr "Die Serverversion hat sich geändert, ein Neuladen des Webinterfaces ist notwendig. Das wird evtl. laufenden Printjobs nicht unterbrechen. Bitte lade das Webinterface jetzt neu, indem du auf den Button unten klickst." #: src/octoprint/templates/sidebar/connection.jinja2:8 msgid "Save connection settings" @@ -4836,11 +4497,6 @@ msgstr "Hochgeladen" msgid "Additional data" msgstr "Weitere Daten" -#: src/octoprint/templates/sidebar/files.jinja2:22 -#: src/octoprint/templates/sidebar/files.jinja2:35 -msgid "Download" -msgstr "Download" - #: src/octoprint/templates/sidebar/files.jinja2:24 msgid "Load" msgstr "Laden" @@ -4951,19 +4607,13 @@ msgstr "Datei" msgid "User who selected this file for printing" msgstr "Nutzer, der diese Datei zum Drucken ausgewählt hat" -#: src/octoprint/templates/sidebar/state.jinja2:5 -msgid "User" -msgstr "Nutzer" - #: src/octoprint/templates/sidebar/state.jinja2:7 msgid "Current timelapse configuration" msgstr "Zeitraffer rendern" #: src/octoprint/templates/sidebar/state.jinja2:11 msgid "Estimated total print time based on analysis of the file or past prints" -msgstr "" -"Geschätzte Gesamtdauer basierend auf statischer Analyse oder vergangenen " -"Drucken" +msgstr "Geschätzte Gesamtdauer basierend auf statischer Analyse oder vergangenen Drucken" #: src/octoprint/templates/sidebar/state.jinja2:11 msgid "Approx. Total Print Time" @@ -4978,12 +4628,8 @@ msgid "Print Time" msgstr "Dauer" #: src/octoprint/templates/sidebar/state.jinja2:14 -msgid "" -"Estimated time until the print job is done. This is only an estimate and " -"accuracy depends heavily on various factors!" -msgstr "" -"Geschätze Zeit, bis der Druck beendet ist. Dies ist nur eine Schätzung, " -"deren Genauigkeit stark von diversen Faktoren abhängt!" +msgid "Estimated time until the print job is done. This is only an estimate and accuracy depends heavily on various factors!" +msgstr "Geschätze Zeit, bis der Druck beendet ist. Dies ist nur eine Schätzung, deren Genauigkeit stark von diversen Faktoren abhängt!" #: src/octoprint/templates/sidebar/state.jinja2:14 msgid "Print Time Left" @@ -5014,12 +4660,8 @@ msgid "Cancels the print job" msgstr "Bricht den Druckjob ab" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorAxes.jinja2:4 -msgid "" -"Please define the maximum speed/feedrate of the individual axes and " -"whether their control should be inverted or not." -msgstr "" -"Bitte definiere die maximale Geschwindkeit/Feedrate der individuellen " -"Achsen und ob ihre Steuerung invertiert werden soll oder nicht." +msgid "Please define the maximum speed/feedrate of the individual axes and whether their control should be inverted or not." +msgstr "Bitte definiere die maximale Geschwindkeit/Feedrate der individuellen Achsen und ob ihre Steuerung invertiert werden soll oder nicht." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorAxes.jinja2:8 msgid "X" @@ -5044,13 +4686,8 @@ msgid "E" msgstr "E" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorAxes.jinja2:54 -msgid "" -"This information is used for manual control via the \"Control\" tab. It " -"does NOT influence already sliced files that you upload to OctoPrint!" -msgstr "" -"Diese Informationen werden für die manuelle Steuerung im \"Steuerung\" " -"Tab verwendet. Sie beeinflussen NICHT die bereits gesliceten Dateien, die" -" du in OctoPrint hochlädst." +msgid "This information is used for manual control via the \"Control\" tab. It does NOT influence already sliced files that you upload to OctoPrint!" +msgstr "Diese Informationen werden für die manuelle Steuerung im \"Steuerung\" Tab verwendet. Sie beeinflussen NICHT die bereits gesliceten Dateien, die du in OctoPrint hochlädst." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorBuildvolume.jinja2:3 msgid "Form Factor" @@ -5093,17 +4730,11 @@ msgid "Height (Z)" msgstr "Höhe (Z)" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorBuildvolume.jinja2:75 -msgid "" -"\n" -" If your printer's print head may move slightly outside the " -"print volume (e.g. for nozzle cleaning routines)\n" -" you can define a custom safe bounding box for its movements " -"below.\n" +msgid "\n" +" If your printer's print head may move slightly outside the print volume (e.g. for nozzle cleaning routines)\n" +" you can define a custom safe bounding box for its movements below.\n" " " -msgstr "" -"Wenn der Druckkopf des Druckers sich außerhalb des Druckvolumens bewegen " -"darf (z.B. für Nozzlereinigungsroutinen) kannst du hier eine als " -"gefahrlos geltende Bounding Box für seine Bewegung definieren." +msgstr "Wenn der Druckkopf des Druckers sich außerhalb des Druckvolumens bewegen darf (z.B. für Nozzlereinigungsroutinen) kannst du hier eine als gefahrlos geltende Bounding Box für seine Bewegung definieren." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorBuildvolume.jinja2:82 msgid "Custom bounding box" @@ -5122,15 +4753,8 @@ msgid "Z Coordinates" msgstr "Z Koordinaten" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorBuildvolume.jinja2:130 -msgid "" -"This information is used for the temperature tab, the bounding box check," -" the GCODE Viewer and/or when slicing from OctoPrint. It does NOT " -"influence already sliced files that you upload to OctoPrint!" -msgstr "" -"Diese Informationen werden für das Temperaturtab, den Bounding-Box-Check," -" den GCODE Viewer und/oder beim Slicen aus OctoPrint heraus verwendet. " -"Sie beeinflussen NICHT die bereits geslicten Dateien, die du in OctoPrint" -" hochlädst!" +msgid "This information is used for the temperature tab, the bounding box check, the GCODE Viewer and/or when slicing from OctoPrint. It does NOT influence already sliced files that you upload to OctoPrint!" +msgstr "Diese Informationen werden für das Temperaturtab, den Bounding-Box-Check, den GCODE Viewer und/oder beim Slicen aus OctoPrint heraus verwendet. Sie beeinflussen NICHT die bereits geslicten Dateien, die du in OctoPrint hochlädst!" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:4 msgid "Nozzle Diameter" @@ -5145,23 +4769,12 @@ msgid "Shared nozzle" msgstr "Geteilte Düse" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:23 -msgid "" -"Check this if your printer has a single nozzle and heater shared among " -"its extruders instead of one nozzle and heater per extruder" -msgstr "" -"Markiere dies wenn dein Drucker eine einzelne Düse und Heizelement hat, " -"die unter den Extrudern geteilt werden (anstatt einer Düse und " -"Heizelement je Extruder)" +msgid "Check this if your printer has a single nozzle and heater shared among its extruders instead of one nozzle and heater per extruder" +msgstr "Markiere dies wenn dein Drucker eine einzelne Düse und Heizelement hat, die unter den Extrudern geteilt werden (anstatt einer Düse und Heizelement je Extruder)" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:30 -msgid "" -"Please specify the nozzle offsets of the extruders relative to the first " -"nozzle T0 if you haven't already done so in your " -"firmware. Otherwise leave them at (0,0)." -msgstr "" -"Bitte spezifiziere die Düsenoffsets der Extruder relativ zur ersten Düse " -"T0 falls du das nicht bereits in der Firmware deines Druckers " -"getan hast. Andernfalls belasse sie bei (0,0)." +msgid "Please specify the nozzle offsets of the extruders relative to the first nozzle T0 if you haven't already done so in your firmware. Otherwise leave them at (0,0)." +msgstr "Bitte spezifiziere die Düsenoffsets der Extruder relativ zur ersten Düse T0 falls du das nicht bereits in der Firmware deines Druckers getan hast. Andernfalls belasse sie bei (0,0)." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:36 #: src/octoprint/templates/tabs/temperature.jinja2:13 @@ -5169,16 +4782,8 @@ msgid "Offset" msgstr "Offset" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:55 -msgid "" -"This information is used for the graph and controls available in the " -"\"Temperature\" tab, the GCODE viewer and when slicing from within " -"OctoPrint. It does NOT influence already sliced files that you upload to " -"OctoPrint!" -msgstr "" -"Diese Informationen werden für den Graph und die Steuerung im " -"\"Temperatur\" Tab, im GCODE Viewer und beim Slicen aus OctoPrint heraus " -"verwendet. Sie beeinflussen NICHT die bereits geslicten Dateien, die du " -"in OctoPrint hochlädst." +msgid "This information is used for the graph and controls available in the \"Temperature\" tab, the GCODE viewer and when slicing from within OctoPrint. It does NOT influence already sliced files that you upload to OctoPrint!" +msgstr "Diese Informationen werden für den Graph und die Steuerung im \"Temperatur\" Tab, im GCODE Viewer und beim Slicen aus OctoPrint heraus verwendet. Sie beeinflussen NICHT die bereits geslicten Dateien, die du in OctoPrint hochlädst." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2:6 msgid "Name must be set" @@ -5214,38 +4819,20 @@ msgid "Command to shut down the system OctoPrint is running on" msgstr "Befehl zum Herunterfahren des Systems, auf dem OctoPrint läuft" #: src/octoprint/templates/snippets/settings/server/serverOnlineCheck.jinja2:6 -msgid "" -"\n" -" Define a check interval, a host and a port to check " -"against. If you don't know what to set here, the\n" -" default values (using Google's DNS server) should work. " -"If you have concerns about using\n" -" that, define the IP and port of a different online server" -" that you trust and that has a high\n" +msgid "\n" +" Define a check interval, a host and a port to check against. If you don't know what to set here, the\n" +" default values (using Google's DNS server) should work. If you have concerns about using\n" +" that, define the IP and port of a different online server that you trust and that has a high\n" " availability.\n" " " -msgstr "" -"Definiere ein Prüfungsintervall, einen Host und einen Port gegen die " -"geprüft werden soll. Falls du nicht weißt, was du hier einstellen sollte:" -" Die Defaultwerte (Googles DNS Server) sollten funktionieren. Falls du " -"Bedenken hast, diese zu nutzen, definiere IP und Port eines anderen " -"Servers im Netz dem du vertraust und der eine hohe Verfügbarkeit hat." +msgstr "Definiere ein Prüfungsintervall, einen Host und einen Port gegen die geprüft werden soll. Falls du nicht weißt, was du hier einstellen sollte: Die Defaultwerte (Googles DNS Server) sollten funktionieren. Falls du Bedenken hast, diese zu nutzen, definiere IP und Port eines anderen Servers im Netz dem du vertraust und der eine hohe Verfügbarkeit hat." #: src/octoprint/templates/snippets/settings/server/serverOnlineCheckDescription.jinja2:1 -msgid "" -"\n" -" If the connectivity check is enabled, OctoPrint will regularly check " -"if it's connected to the internet.\n" -" This is useful to prevent resource intensive " -"operations (such as checking for updates) if it's already\n" +msgid "\n" +" If the connectivity check is enabled, OctoPrint will regularly check if it's connected to the internet.\n" +" This is useful to prevent resource intensive operations (such as checking for updates) if it's already\n" " clear that they won't succeed anyhow.\n" -msgstr "" -"Wenn die Onlineprüfung aktiviert ist, wird OctoPrint in regelmäßigen " -"Abständen prüfen, ob es mit dem Internet verbunden ist. Das ist " -"nützlich um resourcenintensive Operationen zu verhindern" -" (wie z.b. der Prüfung, ob Updates vorliegen), wenn es bereits klar ist, " -"dass diese Operationen mangels Verbindung nicht durchgeführt werden " -"können.\n" +msgstr "Wenn die Onlineprüfung aktiviert ist, wird OctoPrint in regelmäßigen Abständen prüfen, ob es mit dem Internet verbunden ist. Das ist nützlich um resourcenintensive Operationen zu verhindern (wie z.b. der Prüfung, ob Updates vorliegen), wenn es bereits klar ist, dass diese Operationen mangels Verbindung nicht durchgeführt werden können.\n" #: src/octoprint/templates/snippets/settings/server/serverOnlineCheckEnabled.jinja2:4 msgid "Enable regular connectivity check" @@ -5280,19 +4867,11 @@ msgid "Test host & port" msgstr "Host & Port testen" #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistDescription.jinja2:1 -msgid "" -"\n" -" To protect against known severe issues with certain versions " -"of third party plugins, OctoPrint supports\n" -" the use of a centralized plugin version blacklist to automatically " -"disable such plugins before they can interfere\n" +msgid "\n" +" To protect against known severe issues with certain versions of third party plugins, OctoPrint supports\n" +" the use of a centralized plugin version blacklist to automatically disable such plugins before they can interfere\n" " with normal operation.\n" -msgstr "" -"Um vor bekannte Probleme mit bestimmten Versionen von " -"Thirdpartyplugins zu schützen unterstützt OctoPrint die " -"Verwendung einer zentralen Pluginblackliste, über die automatisch solche " -"Plugins deaktiviert werden können, bevor sie mit dem normalen Betrieb " -"interferieren können.\n" +msgstr "Um vor bekannte Probleme mit bestimmten Versionen von Thirdpartyplugins zu schützen unterstützt OctoPrint die Verwendung einer zentralen Pluginblackliste, über die automatisch solche Plugins deaktiviert werden können, bevor sie mit dem normalen Betrieb interferieren können.\n" #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistEnabled.jinja2:4 msgid "Enable plugin blacklist processing on startup" @@ -5303,12 +4882,8 @@ msgid "Any changes take effect only on the next server start." msgstr "Alle Änderungen treten erst mit dem nächsten Serverstart in Kraft." #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistTtl.jinja2:1 -msgid "" -"How long to cache the blacklist, in minutes. You should normally not have" -" to change this." -msgstr "" -"Wie lange die Pluginblackliste gecached werden sollen, in Minuten. Du " -"solltest hier normalerweise nichts ändern müssen." +msgid "How long to cache the blacklist, in minutes. You should normally not have to change this." +msgstr "Wie lange die Pluginblackliste gecached werden sollen, in Minuten. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistTtl.jinja2:2 msgid "Blacklist cache TTL" @@ -5316,9 +4891,7 @@ msgstr "Blacklistencache TTL" #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistUrl.jinja2:1 msgid "Plugin blacklist URL. You should normally not have to change this." -msgstr "" -"URL der Pluginblackliste. Du solltest hier normalerweise nichts ändern " -"müssen." +msgstr "URL der Pluginblackliste. Du solltest hier normalerweise nichts ändern müssen." #: src/octoprint/templates/snippets/settings/server/serverPluginBlacklistUrl.jinja2:2 msgid "Blacklist URL" @@ -5378,9 +4951,7 @@ msgstr "Snapshot Timeout" #: src/octoprint/templates/snippets/settings/webcam/webcamSnapshotUrl.jinja2:1 msgid "URL to use for retrieving webcam snapshot images for timelapse creation" -msgstr "" -"URL, die genutzt werden soll, um Einzelaufnahmen für die " -"Zeitraffererstellung abzurufen" +msgstr "URL, die genutzt werden soll, um Einzelaufnahmen für die Zeitraffererstellung abzurufen" #: src/octoprint/templates/snippets/settings/webcam/webcamSnapshotUrl.jinja2:2 msgid "Snapshot URL" @@ -5399,18 +4970,12 @@ msgid "Stream aspect ratio" msgstr "Seitenverhältnis des Streams" #: src/octoprint/templates/snippets/settings/webcam/webcamStreamRatio.jinja2:5 -msgid "" -"If the stream has a different aspect ratio than configured here it will " -"be letterboxed." -msgstr "" -"Falls der Stream ein anderes Seitenverhältnis hat als hier eingestellt " -"ist, wird er geletterboxed." +msgid "If the stream has a different aspect ratio than configured here it will be letterboxed." +msgstr "Falls der Stream ein anderes Seitenverhältnis hat als hier eingestellt ist, wird er geletterboxed." #: src/octoprint/templates/snippets/settings/webcam/webcamStreamTimeout.jinja2:1 msgid "Timeout after which to unload the stream if the control tab is not visible" -msgstr "" -"Timeout nach dem der Webcamstream deaktiviert werden soll wenn das " -"\"Steuerung\"-Tab nicht sichtbar ist" +msgstr "Timeout nach dem der Webcamstream deaktiviert werden soll wenn das \"Steuerung\"-Tab nicht sichtbar ist" #: src/octoprint/templates/snippets/settings/webcam/webcamStreamTimeout.jinja2:2 msgid "Stream timeout" @@ -5418,21 +4983,15 @@ msgstr "Streamtimeout" #: src/octoprint/templates/snippets/settings/webcam/webcamStreamUrl.jinja2:1 msgid "URL to embed into the UI for live viewing of the webcam stream" -msgstr "" -"URL, die in die Oberfläche zum Betrachten des Webcamstreams eingebunden " -"werden soll" +msgstr "URL, die in die Oberfläche zum Betrachten des Webcamstreams eingebunden werden soll" #: src/octoprint/templates/snippets/settings/webcam/webcamStreamUrl.jinja2:2 msgid "Stream URL" msgstr "Stream-URL" #: src/octoprint/templates/snippets/settings/webcam/webcamStreamUrl.jinja2:8 -msgid "" -"Needs to be reachable from the browser displaying the OctoPrint UI, used " -"to embed the webcam stream into the page." -msgstr "" -"Muss vom Browser erreichbar sein, in dem die OctoPrint UI angezeigt wird," -" wird genutzt, um den Webcam Stream in die Seite einzubetten." +msgid "Needs to be reachable from the browser displaying the OctoPrint UI, used to embed the webcam stream into the page." +msgstr "Muss vom Browser erreichbar sein, in dem die OctoPrint UI angezeigt wird, wird genutzt, um den Webcam Stream in die Seite einzubetten." #: src/octoprint/templates/tabs/control.jinja2:5 msgid "Webcam stream loading..." @@ -5443,26 +5002,12 @@ msgid "Webcam stream not loaded" msgstr "Webcamstream nicht geladen" #: src/octoprint/templates/tabs/control.jinja2:9 -msgid "" -"It might not be configured correctly or require authentication. To have " -"this fixed, get in touch with an administrator of this OctoPrint " -"instance." -msgstr "" -"Es liegt evtl. eine Fehlkonfiguration vor oder es werden Logindaten " -"benötigt. Um dies zu beheben wende dich bitte an einen Administrator " -"dieser OctoPrint Instanz." +msgid "It might not be configured correctly or require authentication. To have this fixed, get in touch with an administrator of this OctoPrint instance." +msgstr "Es liegt evtl. eine Fehlkonfiguration vor oder es werden Logindaten benötigt. Um dies zu beheben wende dich bitte an einen Administrator dieser OctoPrint Instanz." #: src/octoprint/templates/tabs/control.jinja2:10 -msgid "" -"It might not be configured correctly or require authentication. You can " -"change the URL of the stream under \"Settings\" > \"Webcam & Timelapse\" " -"> \"Stream URL\". If you don't have a webcam just set the URL to an empty" -" value." -msgstr "" -"Es liegt evtl. eine Fehlkonfiguration vor oder es werden Logindaten " -"benötigt. Du kannst die URL des Streams unter \"Einstellungen\" > " -"\"Webcam & Zeitraffer\" > \"Stream-URL\" ändern. Falls du keine Webcam " -"hast lass die URL leer." +msgid "It might not be configured correctly or require authentication. You can change the URL of the stream under \"Settings\" > \"Webcam & Timelapse\" > \"Stream URL\". If you don't have a webcam just set the URL to an empty value." +msgstr "Es liegt evtl. eine Fehlkonfiguration vor oder es werden Logindaten benötigt. Du kannst die URL des Streams unter \"Einstellungen\" > \"Webcam & Zeitraffer\" > \"Stream-URL\" ändern. Falls du keine Webcam hast lass die URL leer." #: src/octoprint/templates/tabs/control.jinja2:11 msgid "Currently configured stream URL" @@ -5505,9 +5050,7 @@ msgid "Stepsize" msgstr "Schrittgröße" #: src/octoprint/templates/tabs/control.jinja2:38 -msgid "" -"Hint: If you move your mouse over the picture, you enter keyboard control" -" mode." +msgid "Hint: If you move your mouse over the picture, you enter keyboard control mode." msgstr "Hinweis: Bewegen der Maus über das Bild aktiviert die Tastatursteuerung." #: src/octoprint/templates/tabs/control.jinja2:84 @@ -5624,56 +5167,35 @@ msgid "Reset options" msgstr "Optionen zurücksetzen" #: src/octoprint/templates/tabs/gcodeviewer.jinja2:104 -msgid "" -"\n" -" Note that the time and usage values in this tab are " -"estimated by the GCODE viewer in your\n" -" browser and might differ from the values " -"estimated by the server that are displayed in the\n" -" \"State\" and \"Files\" panels in the sidebar due to slightly" -" different implementations. Also note that these\n" -" estimated values may be inaccurate since " -"they can also take information present in the\n" +msgid "\n" +" Note that the time and usage values in this tab are estimated by the GCODE viewer in your\n" +" browser and might differ from the values estimated by the server that are displayed in the\n" +" \"State\" and \"Files\" panels in the sidebar due to slightly different implementations. Also note that these\n" +" estimated values may be inaccurate since they can also take information present in the\n" " GCODE file into account.\n" " " -msgstr "" -"\n" -" Bitte beachte, dass die Zeit- und Verbrauchsangaben in diesem" -" Tab vom GCODE Viewer in Deinem Browser\n" -" geschätzt wurden und sich von den vom Server" -" geschätzten Werten\n" -" in den \"Status\"- und \"Dateien\"-Panels in der Seitenleiste" -" aufgrund von leichten Unterschieden in der\n" -" Implementierung unterscheiden können. Beachte zudem, dass " -"diese geschätzten Werte\n" -" ungenau sein können, da sie nur auf Informationen aus den " -"GCODE Dateien basieren.\n" +msgstr "\n" +" Bitte beachte, dass die Zeit- und Verbrauchsangaben in diesem Tab vom GCODE Viewer in Deinem Browser\n" +" geschätzt wurden und sich von den vom Server geschätzten Werten\n" +" in den \"Status\"- und \"Dateien\"-Panels in der Seitenleiste aufgrund von leichten Unterschieden in der\n" +" Implementierung unterscheiden können. Beachte zudem, dass diese geschätzten Werte\n" +" ungenau sein können, da sie nur auf Informationen aus den GCODE Dateien basieren.\n" " " #: src/octoprint/templates/tabs/gcodeviewer.jinja2:115 -msgid "" -"

    \n" -" You've selected for printing which has a size of\n" -" . Depending on your machine " -"this\n" -" might be too large for rendering and cause your browser to become" -" unresponsive or crash.\n" +msgid "

    \n" +" You've selected for printing which has a size of\n" +" . Depending on your machine this\n" +" might be too large for rendering and cause your browser to become unresponsive or crash.\n" "

    \n" "\n" "

    \n" " Are you sure you want to visualize this file nevertheless?\n" "

    " -msgstr "" -"

    \n" -" Du hast " -"zum Drucken ausgewählt das\n" -" groß ist. Abhängig von Deinem" -"\n" -" System könnte das zu groß zum Rendern sein und Deinen Browser zum" -" Absturz bringen.\n" +msgstr "

    \n" +" Du hast zum Drucken ausgewählt das\n" +" groß ist. Abhängig von Deinem\n" +" System könnte das zu groß zum Rendern sein und Deinen Browser zum Absturz bringen.\n" "

    \n" "\n" "

    \n" @@ -5735,33 +5257,16 @@ msgid "Copy all" msgstr "Alles kopieren" #: src/octoprint/templates/tabs/terminal.jinja2:19 -msgid "" -"For performance reasons only a limited amount of terminal functionality " -"is enabled right now." -msgstr "" -"Aus Gründen der Performance ist nur ein begrenzter Teil der " -"Terminalfunktionalität zur Zeit verfügbar." +msgid "For performance reasons only a limited amount of terminal functionality is enabled right now." +msgstr "Aus Gründen der Performance ist nur ein begrenzter Teil der Terminalfunktionalität zur Zeit verfügbar." #: src/octoprint/templates/tabs/terminal.jinja2:37 msgid "Fake Acknowledgement" msgstr "Bestätigung faken" #: src/octoprint/templates/tabs/terminal.jinja2:38 -msgid "" -"If acknowledgements (\"ok\"s) sent by the firmware get lost due to issues" -" with the serial communication to your printer, OctoPrint's communication" -" with it can become stuck. If that happens, this can help. Please be " -"advised that such occurrences hint at general communication issues with " -"your printer which will probably negatively influence your printing " -"results and which you should therefore try to resolve!" -msgstr "" -"Falls Bestätigungen (\"ok\"s) Deiner Firmware aufgrund von " -"Kommunikationsproblemen mit Deinem Drucker verloren gehen, kann die " -"Kommunikation zwischen OctoPrint und Deinem Drucker zum Stillstand " -"kommen. Falls das passiert, kann das hier helfen. Bitte bedenke, dass " -"solche Vorfälle ein Hinweis auf ein generelles Kommunikationsproblem mit " -"Deinem Drucker hindeuten, das wahrscheinlich Deine Druckergebnisse " -"negativ beeinflusst und das du daher versuchen solltest, zu beseitigen!" +msgid "If acknowledgements (\"ok\"s) sent by the firmware get lost due to issues with the serial communication to your printer, OctoPrint's communication with it can become stuck. If that happens, this can help. Please be advised that such occurrences hint at general communication issues with your printer which will probably negatively influence your printing results and which you should therefore try to resolve!" +msgstr "Falls Bestätigungen (\"ok\"s) Deiner Firmware aufgrund von Kommunikationsproblemen mit Deinem Drucker verloren gehen, kann die Kommunikation zwischen OctoPrint und Deinem Drucker zum Stillstand kommen. Falls das passiert, kann das hier helfen. Bitte bedenke, dass solche Vorfälle ein Hinweis auf ein generelles Kommunikationsproblem mit Deinem Drucker hindeuten, das wahrscheinlich Deine Druckergebnisse negativ beeinflusst und das du daher versuchen solltest, zu beseitigen!" #: src/octoprint/templates/tabs/terminal.jinja2:41 msgid "Force fancy functionality" @@ -5772,24 +5277,12 @@ msgid "Force terminal output during printing" msgstr "Terminalausgabe beim Druck erzwingen" #: src/octoprint/templates/tabs/terminal.jinja2:43 -msgid "" -"Some functionality of the terminal will be disabled if OctoPrint detects " -"that your browser is too slow for that. You may force it back on here, " -"but be aware that this might make your browser unresponsive." -msgstr "" -"Einige Funktionen des Terminals werden deaktiviert, wenn OctoPrint " -"erkennt, dass Dein Browser zu langsam dafür ist. Du kannst diese " -"Funktionen hier wieder zwangsweise aktivieren, aber bitte bedenke, dass " -"das zur Folge haben könnte, dass dein Browser nicht mehr oder nur sehr " -"langsam reagiert." +msgid "Some functionality of the terminal will be disabled if OctoPrint detects that your browser is too slow for that. You may force it back on here, but be aware that this might make your browser unresponsive." +msgstr "Einige Funktionen des Terminals werden deaktiviert, wenn OctoPrint erkennt, dass Dein Browser zu langsam dafür ist. Du kannst diese Funktionen hier wieder zwangsweise aktivieren, aber bitte bedenke, dass das zur Folge haben könnte, dass dein Browser nicht mehr oder nur sehr langsam reagiert." #: src/octoprint/templates/tabs/timelapse.jinja2:3 -msgid "" -"Take note that timelapse configuration is disabled while your printer is " -"printing." -msgstr "" -"Bitte beachte dass die Zeitrafferkonfiguration während des Druckens " -"deaktiviert ist." +msgid "Take note that timelapse configuration is disabled while your printer is printing." +msgstr "Bitte beachte dass die Zeitrafferkonfiguration während des Druckens deaktiviert ist." #: src/octoprint/templates/tabs/timelapse.jinja2:6 msgid "Timelapse Configuration" @@ -5804,26 +5297,16 @@ msgid "Note" msgstr "Bemerkung" #: src/octoprint/templates/tabs/timelapse.jinja2:17 -msgid "" -"Does not work when printing from the printer's SD Card (no way to detect " -"the change in Z reliably). Use \"Timed\" mode for those prints instead." -msgstr "" -"Funktioniert nicht, wenn von der SD-Karte des Druckers gedruckt wird " -"(keine Möglichkeit, Änderungen der Z-Achse zuverlässig zu detektieren). " -"Verwende stattdessen den \"Nach Zeit\"-Modus für solche Drucke." +msgid "Does not work when printing from the printer's SD Card (no way to detect the change in Z reliably). Use \"Timed\" mode for those prints instead." +msgstr "Funktioniert nicht, wenn von der SD-Karte des Druckers gedruckt wird (keine Möglichkeit, Änderungen der Z-Achse zuverlässig zu detektieren). Verwende stattdessen den \"Nach Zeit\"-Modus für solche Drucke." #: src/octoprint/templates/tabs/timelapse.jinja2:22 msgid "Minimum interval" msgstr "Minimales Intervall" #: src/octoprint/templates/tabs/timelapse.jinja2:28 -msgid "" -"OctoPrint will rate limit snapshots to this minimum interval. This it to " -"prevent against performance issues with vase mode/continous z prints." -msgstr "" -"OctoPrint wird Zeitrafferaufnahmen auf dieses minimale Intervall " -"ratelimiten. Dies soll gegen Performanzprobleme bei Vase-" -"Mode/Continuous-Z-Drucken helfen." +msgid "OctoPrint will rate limit snapshots to this minimum interval. This it to prevent against performance issues with vase mode/continous z prints." +msgstr "OctoPrint wird Zeitrafferaufnahmen auf dieses minimale Intervall ratelimiten. Dies soll gegen Performanzprobleme bei Vase-Mode/Continuous-Z-Drucken helfen." #: src/octoprint/templates/tabs/timelapse.jinja2:33 msgid "Snapshot interval" @@ -5842,40 +5325,24 @@ msgid "Timelapse post roll" msgstr "Timelapse-Postroll" #: src/octoprint/templates/tabs/timelapse.jinja2:59 -msgid "" -"OctoPrint will use the final picture to add this many seconds to the end " -"of your rendered timelapse." -msgstr "" -"OctoPrint wird die letzte Aufnahme verwenden um so viele zusätzliche " -"Sekunden zur gerenderten Zeitrafferaufnahme hinzuzufügen." +msgid "OctoPrint will use the final picture to add this many seconds to the end of your rendered timelapse." +msgstr "OctoPrint wird die letzte Aufnahme verwenden um so viele zusätzliche Sekunden zur gerenderten Zeitrafferaufnahme hinzuzufügen." #: src/octoprint/templates/tabs/timelapse.jinja2:64 msgid "Retraction Z-Hop" msgstr "Retraction Z-Hop" #: src/octoprint/templates/tabs/timelapse.jinja2:70 -msgid "" -"Enter the retraction z-hop used in the firmware or the gcode file to " -"trigger snapshots for the timelapse only if a real layer change happens. " -"For this to work properly your retraction z-hop has to be different from " -"your layerheight!" -msgstr "" -"Gib den Retraction Z-Hop Wert aus deiner Firmware oder den GCODE Dateien " -"hier ein, um Snapshots für Zeitraffer nur bei echten Schichtwechseln " -"auszulösen. Damit das korrekt funktionieren kann muss dein Retraction " -"Z-Hop Wert anders als deine Schichthöhe sein!" +msgid "Enter the retraction z-hop used in the firmware or the gcode file to trigger snapshots for the timelapse only if a real layer change happens. For this to work properly your retraction z-hop has to be different from your layerheight!" +msgstr "Gib den Retraction Z-Hop Wert aus deiner Firmware oder den GCODE Dateien hier ein, um Snapshots für Zeitraffer nur bei echten Schichtwechseln auszulösen. Damit das korrekt funktionieren kann muss dein Retraction Z-Hop Wert anders als deine Schichthöhe sein!" #: src/octoprint/templates/tabs/timelapse.jinja2:77 msgid "Save as default" msgstr "Als Standard speichern" #: src/octoprint/templates/tabs/timelapse.jinja2:78 -msgid "" -"Check this to make your selected timelapse mode and options persist " -"across restarts." -msgstr "" -"Auswählen um deinen gewählten Zeitraffermodus und -parameter über " -"Neustarts hinweg zu persistieren." +msgid "Check this to make your selected timelapse mode and options persist across restarts." +msgstr "Auswählen um deinen gewählten Zeitraffermodus und -parameter über Neustarts hinweg zu persistieren." #: src/octoprint/templates/tabs/timelapse.jinja2:85 msgid "You have unsaved changes. Don't forget to save them." @@ -5897,26 +5364,6 @@ msgstr "Abgeschlossene Zeitraffer" msgid "Sort by date" msgstr "Nach Datum sortieren" -#: src/octoprint/templates/tabs/timelapse.jinja2:109 -#: src/octoprint/templates/tabs/timelapse.jinja2:154 -msgid "Select all on this page" -msgstr "Alles auf dieser Seite auswählen" - -#: src/octoprint/templates/tabs/timelapse.jinja2:110 -#: src/octoprint/templates/tabs/timelapse.jinja2:155 -msgid "Select all" -msgstr "Alles auswählen" - -#: src/octoprint/templates/tabs/timelapse.jinja2:112 -#: src/octoprint/templates/tabs/timelapse.jinja2:157 -msgid "Clear selection" -msgstr "Auswahl aufheben" - -#: src/octoprint/templates/tabs/timelapse.jinja2:115 -#: src/octoprint/templates/tabs/timelapse.jinja2:160 -msgid "Delete selected" -msgstr "Ausgewählte Elemente löschen" - #: src/octoprint/templates/tabs/timelapse.jinja2:148 msgid "Unrendered Timelapses" msgstr "Ungerenderte Zeitrafferaufnahmen" @@ -6453,3 +5900,20 @@ msgstr "Zeitrafferaufnahme rendern" #~ "betroffener Plugins eine gefixte Version " #~ "zu releasen." +#~ msgid "Layer count" +#~ msgstr "Schichtanzahl" + +#~ msgid "printed" +#~ msgstr "gedruckt" + +#~ msgid "visited" +#~ msgstr "besucht" + +#~ 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" diff --git a/translations/messages.pot b/translations/messages.pot index 4bd530d52..60fbb9341 100644 --- a/translations/messages.pot +++ b/translations/messages.pot @@ -6,28 +6,28 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: OctoPrint 1.3.9rc4.post0.dev0+g71b2cc87a\n" +"Project-Id-Version: OctoPrint 1.3.10rc4.dev10+g38fce1665\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2018-07-25 13:37+0200\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 \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.5.1\n" +"Generated-By: Babel 2.6.0\n" -#: src/octoprint/plugins/action_command_prompt/__init__.py:93 +#: src/octoprint/plugins/action_command_prompt/__init__.py:94 msgid "Action Command Prompt" msgstr "" -#: src/octoprint/plugins/action_command_prompt/__init__.py:160 +#: src/octoprint/plugins/action_command_prompt/__init__.py:161 msgid "" "Without this plugin your printer will no longer be able to " "triggerconfirmation or selection prompts in OctoPrint" msgstr "" -#: src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js:50 +#: src/octoprint/plugins/action_command_prompt/static/js/action_command_prompt.js:24 msgid "Message from your printer" msgstr "" @@ -53,7 +53,7 @@ msgstr "" msgid "Announcements" msgstr "" -#: src/octoprint/plugins/announcements/__init__.py:494 +#: src/octoprint/plugins/announcements/__init__.py:503 msgid "" "Without this plugin you might miss important announcements regarding " "security or other critical issues concerning OctoPrint." @@ -78,12 +78,13 @@ msgid "" msgstr "" #: src/octoprint/plugins/announcements/static/js/announcements.js:275 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:973 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:890 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:108 msgid "Later" msgstr "" #: src/octoprint/plugins/announcements/static/js/announcements.js:281 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:980 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:897 msgid "Mark read" msgstr "" @@ -96,12 +97,13 @@ msgid "Mark as last read" msgstr "" #: src/octoprint/plugins/announcements/templates/announcements.jinja2:44 +#: 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:119 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:136 #: src/octoprint/static/js/app/helpers.js:649 -#: src/octoprint/static/js/app/helpers.js:905 -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:110 +#: src/octoprint/static/js/app/helpers.js:924 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:117 msgid "Close" msgstr "" @@ -110,6 +112,7 @@ msgid "Configured Channels" msgstr "" #: src/octoprint/plugins/announcements/templates/announcements_settings.jinja2:6 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:37 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:27 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:3 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:9 @@ -136,6 +139,401 @@ msgstr "" msgid "Refresh Announcements" msgstr "" +#: src/octoprint/plugins/appkeys/__init__.py:101 +#: src/octoprint/plugins/appkeys/__init__.py:102 +msgid "Application Keys" +msgstr "" + +#: 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 "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:55 +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:213 +#, python-format +msgid "You are about to revoke the application key \"%(key)s\"." +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:70 +#, python-format +msgid "" +"\"%(app)s\" has requested access to control OctoPrint " +"through the API." +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:72 +msgid "Do you want to allow access to this application with your user account?" +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:74 +msgid "Access Request" +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:81 +msgid "Allow" +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:87 +msgid "Deny" +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:225 +#, python-format +msgid "You are about to revoke %(count)d application keys." +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:256 +msgid "Revoking application keys" +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:257 +#, python-format +msgid "Revoking %(count)d application keys..." +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:261 +#, python-format +msgid "Revoked %(key)s..." +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:264 +#, python-format +msgid "Revocation of %(key)s failed, continuing..." +msgstr "" + +#: src/octoprint/plugins/appkeys/static/js/appkeys.js:265 +#, python-format +msgid "Deletion of %(key)s failed: %(error)s" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:2 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:4 +msgid "There are no application keys registered yet." +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:9 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:25 +#: src/octoprint/templates/tabs/timelapse.jinja2:109 +#: src/octoprint/templates/tabs/timelapse.jinja2:154 +msgid "Select all on this page" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:10 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:26 +#: src/octoprint/templates/tabs/timelapse.jinja2:110 +#: src/octoprint/templates/tabs/timelapse.jinja2:155 +msgid "Select all" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:13 +msgid "Select all by user..." +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:19 +msgid "Select all by app..." +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:25 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:28 +#: src/octoprint/templates/tabs/timelapse.jinja2:112 +#: src/octoprint/templates/tabs/timelapse.jinja2:157 +msgid "Clear selection" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:28 +msgid "Revoke selected" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:34 +#: src/octoprint/templates/sidebar/state.jinja2:5 +msgid "User" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:35 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:10 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:38 +msgid "Application identifier" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:36 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:11 +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:40 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:14 +#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:7 +#: src/octoprint/templates/snippets/settings/printerprofiles/profiles.jinja2:6 +#: src/octoprint/templates/tabs/timelapse.jinja2:123 +#: src/octoprint/templates/tabs/timelapse.jinja2:169 +msgid "Action" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:43 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:16 +#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 +#: src/octoprint/templates/dialogs/settings/api.jinja2:17 +#: src/octoprint/templates/dialogs/usersettings/access.jinja2:22 +msgid "API Key" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:43 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:16 +#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 +msgid "Copy API Key to clipboard" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:44 +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:17 +msgid "Revoke" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:1 +msgid "Registered application keys" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:34 +msgid "Manually generate an application key" +msgstr "" + +#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:46 +msgid "Generate" +msgstr "" + +#: src/octoprint/plugins/backup/__init__.py:914 +msgid "Backup & Restore" +msgstr "" + +#: 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:88 +#, python-format +msgid "You are about to delete backup file \"%(name)s\"." +msgstr "" + +#: 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: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: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:155 +#, python-format +msgid "You are about to delete %(count)d backups." +msgstr "" + +#: 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 " +"octoprint.log 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: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:198 +msgid "Restore successful! The server will now be restarted!" +msgstr "" + +#: 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: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: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:243 +msgid "Deleting backups" +msgstr "" + +#: 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: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: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:252 +#: src/octoprint/static/js/app/viewmodels/timelapse.js:317 +#, python-format +msgid "Deletion of %(filename)s failed: %(error)s" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:2 +msgid "" +"\n" +" Some plugins during the last restore could not be identified and " +"hence not automatically installed.\n" +" Please install them manually, they are listed below including their " +"stated homepages:\n" +" " +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:9 +msgid "Delete record of unknown plugins" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:13 +msgid "Existing backups" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:16 +msgid "There are no backups. Maybe create one below?" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:19 +msgid "" +"These are the backups of your settings and files that already exist on " +"this OctoPrint instance. You may delete, download or restore them." +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:31 +#: src/octoprint/templates/tabs/timelapse.jinja2:115 +#: src/octoprint/templates/tabs/timelapse.jinja2:160 +msgid "Delete selected" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:38 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:13 +msgid "Date" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:39 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:5 +#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:12 +#: src/octoprint/templates/sidebar/files.jinja2:18 +#: src/octoprint/templates/sidebar/files.jinja2:33 +#: src/octoprint/templates/sidebar/files.jinja2:44 +#: src/octoprint/templates/tabs/timelapse.jinja2:122 +#: src/octoprint/templates/tabs/timelapse.jinja2:168 +msgid "Size" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:82 +msgid "Delete" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49 +#: src/octoprint/templates/sidebar/files.jinja2:22 +#: src/octoprint/templates/sidebar/files.jinja2:35 +msgid "Download" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49 +msgid "Restore" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:66 +msgid "Create backup" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:68 +msgid "Create a new backup of the current state." +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:74 +msgid "Exclude uploaded files & metadata from backup" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:82 +msgid "Exclude timelapses from backup" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:89 +msgid "Create backup now" +msgstr "" + +#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:95 +msgid "Restore from uploaded backup" +msgstr "" + +#: 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:101 +msgid "Backup file" +msgstr "" + +#: 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: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 restore your backups manually for now." +msgstr "" + #: src/octoprint/plugins/corewizard/__init__.py:123 msgid "" "Without this plugin OctoPrint will no longer be able to perform setup " @@ -211,6 +609,7 @@ msgid "" msgstr "" #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:3 +#, python-format msgid "" "

    \n" " Please read the following, it is very important for your " @@ -221,12 +620,24 @@ msgid "" "won't be able to do anything with the\n" " printer unless you login first as a configured user. This is to " "prevent strangers - possibly with\n" -" malicious intent - to gain access to your printer via the " -"internet or another untrustworthy network\n" +" malicious intent - to gain access to your printer via an " +"untrustworthy network\n" " and using it in such a way that it is damaged or worse (i.e. causes a" " fire).\n" "

    \n" "

    \n" +" If you plan on accessing OctoPrint remotely over the internet, " +"you should not only rely on the built-in\n" +" Access Control mechanisms however -\n" +" take additional precautions.\n" +" Your OctoPrint enabled printer is a critical home appliance you " +"really should not give anyone who happens to be\n" +" connected to the internet access to - even read-only! An " +"instance available publicly on the internet\n" +" will be found, and people will try to break it open.\n" +"

    \n" +"

    \n" " It looks like you haven't configured access control yet. Please " "set up a username and password for the\n" " initial administrator account who will have full access to both the " @@ -235,14 +646,16 @@ msgid "" "

    " msgstr "" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:19 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:27 +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:17 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:45 #: src/octoprint/templates/navbar/login.jinja2:7 #: src/octoprint/templates/navbar/login.jinja2:8 msgid "Username" msgstr "" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:33 +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:18 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:3 #: src/octoprint/templates/navbar/login.jinja2:10 @@ -250,42 +663,42 @@ msgstr "" msgid "Password" msgstr "" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:31 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:39 msgid "Confirm Password" msgstr "" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:34 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:42 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:60 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:131 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:17 msgid "Passwords do not match" msgstr "" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:38 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:46 msgid "" "

    \n" " Note: In case that your OctoPrint installation is " -"only accessible from within a trustworthy network and you don't\n" +"only accessible from within a trustworthy local network and you don't\n" " need Access Control for other reasons, you may alternatively disable " "Access Control. You should only\n" " do this if you are absolutely certain that only people you know and " "trust will be able to connect to it.\n" "

    \n" "

    \n" -" Do NOT underestimate the risk of an unsecured access from the" -" internet to your printer!\n" +" Do NOT underestimate the risk of access from the internet to " +"your printer and OctoPrint instance!\n" "

    " msgstr "" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:48 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:56 msgid "Disable Access Control" msgstr "" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:49 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:57 msgid "Keep Access Control Enabled" msgstr "" -#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:53 +#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:61 msgid "" "\n" " Access control is " msgstr "" -#: src/octoprint/plugins/cura/static/js/cura.js:234 -#: src/octoprint/static/js/app/viewmodels/settings.js:419 +#: src/octoprint/plugins/cura/static/js/cura.js:188 +msgid "Profile import failed" +msgstr "" + +#: src/octoprint/plugins/cura/static/js/cura.js:189 +msgid "" +"Could not import the provided profile, it might be invalid. Check " +"octoprint.log for details" +msgstr "" + +#: src/octoprint/plugins/cura/static/js/cura.js:243 +#: src/octoprint/static/js/app/viewmodels/settings.js:422 msgid "The path doesn't exist" msgstr "" -#: src/octoprint/plugins/cura/static/js/cura.js:236 -#: src/octoprint/static/js/app/viewmodels/settings.js:421 +#: src/octoprint/plugins/cura/static/js/cura.js:245 +#: src/octoprint/static/js/app/viewmodels/settings.js:424 msgid "The path is not a file" msgstr "" -#: src/octoprint/plugins/cura/static/js/cura.js:238 -#: src/octoprint/static/js/app/viewmodels/settings.js:423 +#: src/octoprint/plugins/cura/static/js/cura.js:247 +#: src/octoprint/static/js/app/viewmodels/settings.js:426 msgid "The path is not an executable" msgstr "" -#: src/octoprint/plugins/cura/static/js/cura.js:241 -#: src/octoprint/static/js/app/viewmodels/settings.js:426 -#: src/octoprint/static/js/app/viewmodels/settings.js:486 +#: src/octoprint/plugins/cura/static/js/cura.js:250 +#: src/octoprint/static/js/app/viewmodels/settings.js:429 +#: src/octoprint/static/js/app/viewmodels/settings.js:489 msgid "The path is valid" msgstr "" @@ -652,12 +1075,6 @@ msgstr "" msgid "Profile ini file" msgstr "" -#: 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:97 -msgid "Browse..." -msgstr "" - #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profileImporter.jinja2:21 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:3 #: src/octoprint/plugins/cura/templates/snippets/settings/cura/profiles.jinja2:8 @@ -729,13 +1146,46 @@ msgstr "" msgid "Delete Profile" msgstr "" -#: src/octoprint/plugins/discovery/__init__.py:688 +#: src/octoprint/plugins/discovery/__init__.py:707 msgid "" "Without this plugin your OctoPrint instance will no longer be " "discoverable on the network via Bonjour and uPnP." msgstr "" -#: src/octoprint/plugins/logging/__init__.py:204 +#: 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 "" + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:12 +msgid "Please log in" +msgstr "" + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:14 +msgid "Incorrect username or password." +msgstr "" + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:15 +msgid "Server is currently offline." +msgstr "" + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:15 +msgid "Reconnect..." +msgstr "" + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:20 +#: src/octoprint/templates/navbar/login.jinja2:13 +msgid "Remember me" +msgstr "" + +#: src/octoprint/plugins/forcelogin/templates/forcelogin_index.jinja2:22 +msgid "Log in" +msgstr "" + +#: src/octoprint/plugins/logging/__init__.py:205 msgid "" "Without this plugin you will no longer be able to retrieve OctoPrint's " "logs or modify the current logging levels through the web interface." @@ -758,28 +1208,6 @@ msgstr "" msgid "descending" msgstr "" -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:5 -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:12 -#: src/octoprint/templates/sidebar/files.jinja2:18 -#: src/octoprint/templates/sidebar/files.jinja2:33 -#: src/octoprint/templates/sidebar/files.jinja2:44 -#: src/octoprint/templates/tabs/timelapse.jinja2:122 -#: src/octoprint/templates/tabs/timelapse.jinja2:168 -msgid "Size" -msgstr "" - -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:13 -msgid "Date" -msgstr "" - -#: src/octoprint/plugins/logging/templates/logging_settings.jinja2:14 -#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:7 -#: src/octoprint/templates/snippets/settings/printerprofiles/profiles.jinja2:6 -#: src/octoprint/templates/tabs/timelapse.jinja2:123 -#: src/octoprint/templates/tabs/timelapse.jinja2:169 -msgid "Action" -msgstr "" - #: src/octoprint/plugins/logging/templates/logging_settings.jinja2:46 msgid "Logging Levels" msgstr "" @@ -799,178 +1227,256 @@ msgstr "" msgid "Add" msgstr "" -#: src/octoprint/plugins/octopi_support/__init__.py:164 -msgid "" -"Without this plugin OctoPrint will no longer be able to provide " -"additional information about your OctoPi instance,which will make it more" -" tricky to help you if you need support." +#: 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/octopi_support/static/js/octopi_support.js:32 +#: 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 "" + +#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29 msgid "running on" msgstr "" -#: src/octoprint/plugins/octopi_support/static/js/octopi_support.js:32 +#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29 msgid "OctoPi" msgstr "" -#: src/octoprint/plugins/octopi_support/templates/octopi_support_about.jinja2:1 +#: 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: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: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 msgid "About OctoPi" msgstr "" -#: src/octoprint/plugins/pluginmanager/__init__.py:150 +#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:1 +msgid "What do the symbols mean?" +msgstr "" + +#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:2 +msgid "Undervoltage" +msgstr "" + +#: src/octoprint/plugins/pi_support/templates/pi_support_navbar.jinja2:3 +msgid "Overheat" +msgstr "" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:3 +msgid "Please restart OctoPrint after changing any of this plugin's settings." +msgstr "" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:9 +msgid "" +"Enable under voltage and overheat detection via vcgencmd " +"get_throttled" +msgstr "" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:11 +msgid "" +"This will regularly check with the Pi if something is amiss either with " +"power regulation or CPU/GPU temperature." +msgstr "" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:16 +#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:220 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:83 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:157 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:267 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:340 +#: src/octoprint/templates/dialogs/settings/webcam.jinja2:9 +#: src/octoprint/templates/dialogs/settings/webcam.jinja2:23 +#: src/octoprint/templates/snippets/settings/server/serverPluginBlacklist.jinja2:5 +#: src/octoprint/templates/tabs/gcodeviewer.jinja2:77 +#: src/octoprint/templates/tabs/terminal.jinja2:34 +msgid "Advanced options" +msgstr "" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:20 +msgid "Command for under voltage/overheat detection" +msgstr "" + +#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:23 +msgid "" +"Defaults to /usr/bin/vcgencmd get_throttled. You usually " +"shouldn't have to change this." +msgstr "" + +#: src/octoprint/plugins/pluginmanager/__init__.py:180 msgid "Plugin Manager" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:221 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:138 msgid "There are no plugin notices. Great!" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:223 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:140 msgid "There is a plugin notice for one of your installed plugins." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:225 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:142 #, python-format msgid "" "There are %(count)d plugin notices for one or more of your installed " "plugins." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:320 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:237 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460 msgid "Installing plugin..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:320 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:237 msgid "Installing plugin from uploaded archive..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:341 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:467 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:567 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:795 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:258 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:384 +#: 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 "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:342 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:468 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:568 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:606 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:259 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:385 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:523 msgid "Please consult octoprint.log for details" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:487 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:404 #, python-format msgid "You are about to disable \"%(name)s\"." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:490 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:407 msgid "This is not recommended" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:492 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:409 msgid "Do you still want to disable it?" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:493 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:410 msgid "Keep enabled" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:494 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:411 msgid "Disable anyway" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:545 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:462 #, python-format msgid "Installing plugin \"%(name)s\" from %(url)s..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:547 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:464 #, python-format msgid "Installing plugin from %(url)s..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:550 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:467 msgid "Reinstalling plugin..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:468 #, python-format msgid "Reinstalling plugin \"%(name)s\" from %(url)s..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:597 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:514 msgid "Uninstalling plugin..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:597 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:514 #, python-format msgid "Uninstalling plugin \"%(name)s\"" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 msgid "Reinstall" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:198 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:214 msgid "Install" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 msgid "Disabled" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628 msgid "Incompatible" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:720 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:637 msgid "Plugin management log" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:728 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:645 #, python-format msgid "%(count)d earlier actions..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:730 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:647 #, python-format msgid "%(count)d earlier action" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:741 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:658 #, python-format msgid "Install %(plugin)s: %(result)s" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:745 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:662 #, python-format msgid "Uninstall %(plugin)s: %(result)s" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:749 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:666 #, python-format msgid "Enable %(plugin)s: %(result)s" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:753 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:670 #, python-format msgid "Disable %(plugin)s: %(result)s" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:770 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:687 msgid "A restart is needed for the changes to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:778 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:695 msgid "Restart now" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:783 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:700 msgid "" "This will restart your OctoPrint server.

    This " "action may disrupt any ongoing print jobs (depending on your printer's " @@ -978,101 +1484,101 @@ msgid "" " from your printer's internal storage)." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:789 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:706 msgid "Restart in progress" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:790 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:707 msgid "The server is now being restarted in the background" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:796 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:713 msgid "" "Trying to restart the server produced an error, please check " "octoprint.log for details. You'll have to restart manually." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:809 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:726 msgid "A refresh is needed for the changes to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:816 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:733 #: src/octoprint/templates/overlays/reloadui.jinja2:14 msgid "Reload now" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:825 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:742 msgid "A reconnect to the printer is needed for the changes to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:862 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:779 msgid "Error!" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:865 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:782 msgid "Done!" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:891 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:808 msgid "Blacklisted" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:893 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:810 msgid "Disabled due to active safe mode" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:895 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:812 msgid "Enable Plugin" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:898 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815 msgid "Disable Plugin" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:918 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:835 #, python-format msgid "" "There are %(count)d notices (%(important)d marked as important) available" " regarding this plugin - click to show!" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:920 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:837 #, python-format msgid "" "There are %(count)d notices available regarding this plugin - click to " "show!" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:924 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:841 msgid "" "There is an important notice available regarding this plugin - click to " "show!" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:926 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:843 msgid "There is a notice available regarding this plugin - click to show!" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:940 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:857 #, python-format msgid "Important notice regarding plugin \"%(name)s\"" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:942 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:859 #, python-format msgid "Notice regarding plugin \"%(name)s\"" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:949 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:866 #, python-format msgid "Affected versions: %(versions)s" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:951 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:868 msgid "Affected versions: all" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:956 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:873 msgid "Read more..." msgstr "" @@ -1112,8 +1618,8 @@ msgstr "" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:35 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:242 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:20 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:77 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:37 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:94 msgid "Plugin Configuration" msgstr "" @@ -1250,19 +1756,6 @@ msgid "" "\".tar.gz\", \".tgz\" or \".tar\"" msgstr "" -#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:220 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:66 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:157 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:267 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:333 -#: src/octoprint/templates/dialogs/settings/webcam.jinja2:9 -#: src/octoprint/templates/dialogs/settings/webcam.jinja2:23 -#: src/octoprint/templates/snippets/settings/server/serverPluginBlacklist.jinja2:5 -#: src/octoprint/templates/tabs/gcodeviewer.jinja2:77 -#: src/octoprint/templates/tabs/terminal.jinja2:34 -msgid "Advanced options" -msgstr "" - #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:226 msgid "Use --process-dependency-links with pip install" msgstr "" @@ -1343,7 +1836,7 @@ msgid "" msgstr "" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:309 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:104 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:121 #: src/octoprint/static/js/app/helpers.js:707 #: src/octoprint/templates/dialogs/files.jinja2:18 #: src/octoprint/templates/dialogs/slicing.jinja2:57 @@ -1353,16 +1846,22 @@ msgid "Cancel" msgstr "" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:310 -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:105 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:122 #: src/octoprint/templates/dialogs/temperature.jinja2:32 msgid "Save" msgstr "" -#: src/octoprint/plugins/printer_safety_check/__init__.py:83 +#: 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:166 +#: 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 " @@ -1377,247 +1876,266 @@ msgstr "" msgid "Learn more..." msgstr "" -#: src/octoprint/plugins/softwareupdate/__init__.py:570 +#: src/octoprint/plugins/softwareupdate/__init__.py:520 +msgid "Python" +msgstr "" + +#: src/octoprint/plugins/softwareupdate/__init__.py:521 +msgid "pip" +msgstr "" + +#: src/octoprint/plugins/softwareupdate/__init__.py:522 +msgid "setuptools" +msgstr "" + +#: 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:984 +#: src/octoprint/plugins/softwareupdate/__init__.py:1045 #: src/octoprint/server/views.py:577 -#: src/octoprint/static/js/app/viewmodels/appearance.js:13 -#: src/octoprint/static/js/app/viewmodels/appearance.js:18 -#: src/octoprint/static/js/app/viewmodels/appearance.js:20 -#: src/octoprint/static/js/app/viewmodels/appearance.js:25 -#: src/octoprint/static/js/app/viewmodels/appearance.js:27 +#: src/octoprint/static/js/app/viewmodels/appearance.js:99 +#: src/octoprint/static/js/app/viewmodels/appearance.js:104 +#: src/octoprint/static/js/app/viewmodels/appearance.js:106 +#: src/octoprint/static/js/app/viewmodels/appearance.js:111 +#: src/octoprint/static/js/app/viewmodels/appearance.js:113 #: src/octoprint/templates/dialogs/about/about.jinja2:1 msgid "OctoPrint" msgstr "" -#: src/octoprint/plugins/softwareupdate/__init__.py:1144 +#: 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 "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:247 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:169 msgid "Release" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:248 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:170 msgid "Commit" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:287 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:209 #, python-format msgid "%(name)s: %(version)s" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:290 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:212 msgid "unknown" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:304 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:507 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:521 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:694 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:229 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:436 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:450 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:623 msgid "Updating..." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:304 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:521 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:694 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:229 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:450 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:623 msgid "Updating, please wait." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:311 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:236 msgid "There are updates available for the following components:" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:319 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:565 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:244 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:494 msgid "Release Notes" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:325 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:251 +msgid "" +"This version of the Python environment is not supported for direct " +"updates." +msgstr "" + +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:253 msgid "" "Those components marked with can be updated" " directly." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:328 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:257 msgid "" "To have updates applied, get in touch with an administrator of this " "OctoPrint instance." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:334 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:263 msgid "Update Available" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:346 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:372 -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:373 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:275 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:301 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:101 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:380 msgid "Ignore" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:350 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:279 msgid "" "You can make this message display again via \"Settings\" > \"Software " "Update\" > \"Check for update now\"" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:354 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:283 msgid "Update now" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:392 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:321 msgid "Everything is up-to-date" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:416 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:345 msgid "No internet connection" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:420 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:349 msgid "Update not possible" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:431 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:360 msgid "Unknown update check, configuration ok?" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:434 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:363 msgid "Cannot check for update, need online connection" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:437 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:366 msgid "Network error while checking for update" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:440 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:369 msgid "Unknown error while checking for update, please check the logs" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:508 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:437 msgid "Now updating, please wait." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:526 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:455 msgid "Update not started!" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:527 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:456 msgid "" "The update could not be started. Is it already active? Please consult " "octoprint.log for details." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:553 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:482 msgid "Can't update while printing" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:554 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:483 msgid "" "A print job is currently in progress. Updating will be prevented until it" " is done." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:559 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:488 msgid "This will update the following components and restart the server:" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:570 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:499 msgid "" "Be sure to read through any linked release notes, especially those for " "OctoPrint since they might contain important information you need to know" " before upgrading." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:571 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:500 msgid "This action may disrupt any ongoing print jobs." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:572 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:501 msgid "" "Depending on your printer's controller and general setup, restarting " "OctoPrint may cause your printer to be reset." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:573 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:502 #: src/octoprint/static/js/app/helpers.js:703 msgid "Are you sure you want to proceed?" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:575 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:504 msgid "Are you sure you want to update now?" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:577 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:506 #: src/octoprint/static/js/app/helpers.js:708 msgid "Proceed" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:711 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:640 #, python-format msgid "Now updating %(name)s to %(version)s" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:730 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:659 msgid "Update successful, restarting!" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:731 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:660 msgid "The update finished successfully and the server will now be restarted." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:748 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:797 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:677 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:726 msgid "Restart failed" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:749 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:678 msgid "" "The server apparently did not restart by itself, you'll have to do it " "manually. Please consult octoprint.log on what went wrong." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:771 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:700 msgid "The update finished successfully, please restart OctoPrint now." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:773 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:702 msgid "The update finished successfully, please reboot the server now." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:776 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:705 msgid "Update successful, restart required!" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:792 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:721 msgid "" "Restarting OctoPrint failed, please restart it manually. You might also " "want to consult octoprint.log on what went wrong here." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:794 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:723 msgid "" "Rebooting the server failed, please reboot it manually. You might also " "want to consult octoprint.log on what went wrong here." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:813 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:742 msgid "Update successful!" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:814 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:743 msgid "The update finished successfully." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:829 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:758 msgid "Update failed!" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:830 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:759 msgid "" "The update did not finish successfully. Please consult " "octoprint.log and " @@ -1656,70 +2174,99 @@ msgid "" "

    \n" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:23 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:18 +msgid "" +"\n" +"

    \n" +" This version of the Python environment is not supported " +"for direct updates.\n" +"

    \n" +"

    \n" +" To reduce the likelihood of running into update problems in " +"outdated environments, the following minimal\n" +" versions are required to use this updater to update OctoPrint or " +"any installed plugins:\n" +"

    \n" +msgstr "" + +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:28 +msgid "you have" +msgstr "" + +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:30 +msgid "" +"\n" +"

    \n" +" Please take a look at this FAQ entry on how" +" to proceed.\n" +"

    \n" +msgstr "" + +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:40 msgid "Current versions" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:29 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:46 msgid "Update available" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:32 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:49 msgid "Update" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:35 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:52 msgid "Installed:" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:36 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:53 msgid "Available:" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:37 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:54 msgid "Release Notes:" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:62 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:79 msgid "Update all" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:63 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:80 msgid "Check for update now" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:68 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:85 msgid "Last cache refresh:" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:69 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:86 msgid "Force check for update (overrides cache used for update checks)" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:70 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:87 msgid "Force update now (even if no new versions are available)" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:85 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:102 msgid "Version cache TTL" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:96 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:113 msgid "Show update notifications to users" msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:97 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:114 msgid "" "If you uncheck this, only logged in admins will see update notifications." " Update notifications shown to users do not include the \"Update now\" " "button." msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:115 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:132 msgid "Update in progress, please wait." msgstr "" -#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:116 +#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:133 msgid "Update done, please close this window." msgstr "" @@ -1769,6 +2316,140 @@ msgstr "" msgid "OctoPrint version tracking" msgstr "" +#: 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/usage.js:57 +msgid "Please set up anonymous usage tracking" +msgstr "" + +#: 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 bug report on this. Make sure to include all requested " +"information, including your JS console and octoprint.log." +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:9 +msgid "Enable anonymous usage tracking" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:14 +msgid "Random unique instance ID" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:14 +msgid "Instance ID" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:20 +msgid "Events to track. The ping is mandatory." +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:20 +msgid "Tracked events" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:23 +msgid "Regular ping" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:26 +msgid "Server startup & shutdown" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:29 +msgid "Connected to printer" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:32 +msgid "Print started/cancelled/finished" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:35 +msgid "Plugin installed/uninstalled/enabled/disabled" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_settings.jinja2:38 +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 "" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:8 +msgid "" +"Note: You can always change your decision and also " +"access more granular controls via Settings > Anonymous Usage Tracking." +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:12 +msgid "Disable Anonymous Usage Tracking" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:13 +msgid "Enable Anonymous Usage Tracking" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:17 +msgid "" +"\n" +" Anonymous Usage Tracking is enabled.\n" +" " +msgstr "" + +#: src/octoprint/plugins/tracking/templates/tracking_wizard.jinja2:20 +msgid "" +"\n" +" Anonymous Usage Tracking is disabled.\n" +" " +msgstr "" + +#: src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDescription.jinja2:1 +msgid "" +"\n" +"

    \n" +" Anonymous usage tracking provides valuable insights into how many " +"instances running what versions of OctoPrint are out there,\n" +" whether they are successfully completing print jobs and various other" +" metrics.\n" +"

    \n" +"

    \n" +" By enabling it you help to identify problems with new releases and " +"release candidates early on, and to better\n" +" tailor OctoPrint's future development to actual use.\n" +"

    \n" +msgstr "" + +#: src/octoprint/plugins/tracking/templates/snippets/plugins/tracking/trackingDetails.jinja2:1 +msgid "" +"\n" +" For details on what gets tracked, please refer to tracking.octoprint.org\n" +" and also the Privacy Policy at " +"tracking.octoprint.org.\n" +msgstr "" + #: src/octoprint/server/views.py:487 msgid "Plugins" msgstr "" @@ -2135,11 +2816,11 @@ msgid "off" msgstr "" #: src/octoprint/static/js/app/helpers.js:700 -#: src/octoprint/static/js/app/viewmodels/connection.js:135 +#: src/octoprint/static/js/app/viewmodels/connection.js:153 msgid "Are you sure?" msgstr "" -#: src/octoprint/static/js/app/helpers.js:903 +#: src/octoprint/static/js/app/helpers.js:922 msgid "Progress" msgstr "" @@ -2197,11 +2878,11 @@ msgid "Connect" msgstr "" #: src/octoprint/static/js/app/viewmodels/connection.js:44 -#: src/octoprint/static/js/app/viewmodels/connection.js:144 +#: src/octoprint/static/js/app/viewmodels/connection.js:162 msgid "Disconnect" msgstr "" -#: src/octoprint/static/js/app/viewmodels/connection.js:136 +#: src/octoprint/static/js/app/viewmodels/connection.js:154 msgid "" "

    You are about to disconnect from the printer while a print is " "in progress.

    Disconnecting while a print is in progress " @@ -2210,17 +2891,17 @@ msgid "" "OctoPrint or reconnect to the printer could interrupt the print.

    " msgstr "" -#: src/octoprint/static/js/app/viewmodels/connection.js:142 +#: src/octoprint/static/js/app/viewmodels/connection.js:160 msgid "Are you sure you want to disconnect from the printer?" msgstr "" -#: src/octoprint/static/js/app/viewmodels/connection.js:143 +#: src/octoprint/static/js/app/viewmodels/connection.js:161 msgid "Stay Connected" msgstr "" #: src/octoprint/static/js/app/viewmodels/control.js:72 #: src/octoprint/static/js/app/viewmodels/files.js:623 -#: src/octoprint/static/js/app/viewmodels/gcode.js:571 +#: src/octoprint/static/js/app/viewmodels/gcode.js:570 #: src/octoprint/static/js/app/viewmodels/printerstate.js:256 #: src/octoprint/static/js/app/viewmodels/temperature.js:115 #: src/octoprint/static/js/app/viewmodels/temperature.js:126 @@ -2257,13 +2938,13 @@ msgstr "" #: src/octoprint/static/js/app/viewmodels/files.js:619 #: src/octoprint/static/js/app/viewmodels/files.js:623 -#: src/octoprint/static/js/app/viewmodels/gcode.js:568 -#: src/octoprint/static/js/app/viewmodels/gcode.js:571 +#: src/octoprint/static/js/app/viewmodels/gcode.js:567 +#: src/octoprint/static/js/app/viewmodels/gcode.js:570 msgid "Filament" msgstr "" #: src/octoprint/static/js/app/viewmodels/files.js:628 -#: src/octoprint/static/js/app/viewmodels/gcode.js:575 +#: src/octoprint/static/js/app/viewmodels/gcode.js:574 msgid "Estimated print time" msgstr "" @@ -2384,81 +3065,88 @@ msgid "Analyzed" msgstr "" #: src/octoprint/static/js/app/viewmodels/gcode.js:531 -msgid "Estimated total print time" -msgstr "" - -#: src/octoprint/static/js/app/viewmodels/gcode.js:532 msgid "Estimated layer height" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:532 +#: src/octoprint/static/js/app/viewmodels/gcode.js:531 #: src/octoprint/templates/tabs/timelapse.jinja2:68 msgid "mm" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:533 -msgid "Layer count" +#: src/octoprint/static/js/app/viewmodels/gcode.js:532 +msgid "Estimated total print time" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:533 -msgid "printed" -msgstr "" - -#: src/octoprint/static/js/app/viewmodels/gcode.js:533 -msgid "visited" -msgstr "" - -#: src/octoprint/static/js/app/viewmodels/gcode.js:563 +#: src/octoprint/static/js/app/viewmodels/gcode.js:562 msgid "Layer number" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:564 +#: src/octoprint/static/js/app/viewmodels/gcode.js:563 msgid "Layer height" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:565 +#: src/octoprint/static/js/app/viewmodels/gcode.js:564 msgid "GCODE commands" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:27 -#: src/octoprint/static/js/app/viewmodels/loginstate.js:35 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:29 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:37 #: src/octoprint/templates/navbar/login.jinja2:2 #: src/octoprint/templates/navbar/login.jinja2:15 msgid "Login" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:33 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:35 #, python-format msgid "Logged in as %(name)s" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:105 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:79 +#, python-format +msgid "" +"

    It seems that you are connecting to OctoPrint over the public " +"internet.

    This is strongly discouraged unless you have taken proper" +" network security precautions. Your printer is an appliance you really " +"should not be giving access to everyone with an internet " +"connection.

    Please see this blog post for ways" +" to safely access your OctoPrint instance from " +"remote.

    If you know what you are doing or you are " +"sure this message is mistaken since you are in an isolated LAN, feel free" +" to ignore it.

    " +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:94 +msgid "Possible external access detected" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:163 msgid "Login successful" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:105 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:163 #, python-format msgid "You are now logged in as \"%(username)s\"" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:120 -#: src/octoprint/static/js/app/viewmodels/loginstate.js:128 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:178 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:186 msgid "Login failed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:121 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:179 msgid "User unknown or wrong password" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:129 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:187 msgid "Your account is deactivated" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:141 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:199 msgid "Logout successful" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:141 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:199 msgid "You are now logged out" msgstr "" @@ -2678,23 +3366,23 @@ msgstr "" msgid "Autodetect from browser" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:318 +#: src/octoprint/static/js/app/viewmodels/settings.js:321 msgid "If you see your webcam stream below, the entered stream URL is ok." msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:326 +#: src/octoprint/static/js/app/viewmodels/settings.js:329 msgid "Stream test" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:344 +#: src/octoprint/static/js/app/viewmodels/settings.js:347 msgid "Could not retrieve snapshot URL, please double check the URL" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:345 +#: src/octoprint/static/js/app/viewmodels/settings.js:348 msgid "Snapshot test failed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:359 +#: src/octoprint/static/js/app/viewmodels/settings.js:362 #, python-format msgid "" "Could retrieve the snapshot URL, but it didn't look like an image. Got " @@ -2703,41 +3391,41 @@ msgid "" "or videos." msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:384 +#: src/octoprint/static/js/app/viewmodels/settings.js:387 msgid "" "If you see your webcam snapshot picture below, the entered snapshot URL " "is ok." msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:386 +#: src/octoprint/static/js/app/viewmodels/settings.js:389 msgid "Snapshot test" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:446 +#: src/octoprint/static/js/app/viewmodels/settings.js:449 msgid "The server is not reachable" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:448 +#: src/octoprint/static/js/app/viewmodels/settings.js:451 msgid "The server is reachable" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:477 +#: src/octoprint/static/js/app/viewmodels/settings.js:480 msgid "The path is a broken symlink." msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:479 +#: src/octoprint/static/js/app/viewmodels/settings.js:482 msgid "The path does not exist and cannot be created." msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:481 +#: src/octoprint/static/js/app/viewmodels/settings.js:484 msgid "The path is not a folder." msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:483 +#: src/octoprint/static/js/app/viewmodels/settings.js:486 msgid "The path is not writable." msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:607 +#: src/octoprint/static/js/app/viewmodels/settings.js:610 #: src/octoprint/static/js/app/viewmodels/usersettings.js:99 msgid "" "This will generate a new API Key. The old API Key will cease to function " @@ -2824,26 +3512,26 @@ msgstr "" msgid "Target" msgstr "" -#: src/octoprint/static/js/app/viewmodels/terminal.js:103 +#: src/octoprint/static/js/app/viewmodels/terminal.js:104 #, python-format msgid "" "showing %(displayed)d lines (%(filtered)d of %(total)d total lines " "filtered, buffer full)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/terminal.js:105 +#: src/octoprint/static/js/app/viewmodels/terminal.js:106 #, python-format msgid "" "showing %(displayed)d lines (%(filtered)d of %(total)d total lines " "filtered)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/terminal.js:109 +#: src/octoprint/static/js/app/viewmodels/terminal.js:110 #, python-format msgid "showing %(displayed)d lines (buffer full)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/terminal.js:111 +#: src/octoprint/static/js/app/viewmodels/terminal.js:112 #, python-format msgid "showing %(displayed)d lines" msgstr "" @@ -2888,23 +3576,6 @@ msgstr "" msgid "Deleting %(count)d timelapse files..." msgstr "" -#: 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/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/static/js/app/viewmodels/timelapse.js:317 -#, python-format -msgid "Deletion of %(filename)s failed: %(error)s" -msgstr "" - #: src/octoprint/static/js/app/viewmodels/timelapse.js:322 msgid "Deleting unrendered timelapses" msgstr "" @@ -3166,16 +3837,6 @@ msgstr "" msgid "Admin" msgstr "" -#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 -#: src/octoprint/templates/dialogs/settings/api.jinja2:17 -#: src/octoprint/templates/dialogs/usersettings/access.jinja2:22 -msgid "API Key" -msgstr "" - -#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:12 -msgid "Copy API Key to clipboard" -msgstr "" - #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:16 msgid "Update User" msgstr "" @@ -3268,43 +3929,51 @@ msgid "For acrylic printers ;)" msgstr "" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:18 -msgid "Transparent Color" +msgid "Transparent color" msgstr "" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:23 -msgid "Language Packs" +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:22 +msgid "Also personalize the icon of the browser tab" msgstr "" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:25 +msgid "Colorize favicon (in supported browsers)" +msgstr "" + +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:30 +msgid "Language Packs" +msgstr "" + +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:32 msgid "Manage..." msgstr "" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:29 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:36 msgid "Default Language" msgstr "" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:36 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:43 msgid "" "Changes to the default interface language will only become active after a" " reload of the page and only be active if not overridden by the users " "language settings." msgstr "" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:42 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:49 msgid "Show temperatures in Fahrenheit as well as Celsius" msgstr "" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:51 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:58 msgid "Manage Language Packs..." msgstr "" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:55 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:62 msgid "" "There is currently no central repository for language packs like there is" " for plugins - any help to change that is appreciated!" msgstr "" -#: src/octoprint/templates/dialogs/settings/appearance.jinja2:58 +#: src/octoprint/templates/dialogs/settings/appearance.jinja2:65 #, python-format msgid "" "Until a repository is available, please see busy protocol, if detected" +msgid "" +"Send emergency GCODES M108 and M410 without " +"waiting for acknowledgement, if detected as supported by the firmware" msgstr "" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:293 +msgid "Support busy protocol, if detected" +msgstr "" + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:300 msgid "Simulate ok for M29" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:294 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:301 msgid "" "Most Marlin forks that were derived from Marlin versions < v1.1.0 do " "not send an acknowledging ok for a M29. Check " @@ -3878,42 +4549,42 @@ msgid "" "to your printer's SD." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:299 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:306 msgid "Simulate ok for resend requests" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:302 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:309 msgid "If detected as necessary" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:310 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:317 msgid "" "Some Marlin forks lack an acknowledging ok with their resend" " requests. Set this to \"always\" or \"if detected as necessary\" if you " "run into communication stalls on resend requests." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:317 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:324 msgid "Protocol fine tuning" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:321 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:328 msgid "Wait for start on connect" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:322 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:329 msgid "" "Try checking this if you run into connection timeouts due to your printer" " taking too long to respond to OctoPrint's handshake attempts on connect." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:327 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:334 msgid "" "Do not send M0/M1 commands to the firmware, " "only pause" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:328 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:335 msgid "" "Most firmware will block and wait for the user to press the button on the" " controller when an M0 or M1 is received. Due " @@ -3922,96 +4593,100 @@ msgid "" "commands to your printer, uncheck this option." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:335 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:342 msgid "Command to send to the firmware on first handshake attempt." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:336 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:343 msgid "\"Hello\" command" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:339 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:346 msgid "" "Use this to specify a different command than the default " "M110 to send to the printer on initial connection to trigger" " a communication handshake." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:342 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:349 msgid "" "Commands that are know to run long and hence should suppress " "communication timeouts from being triggered." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:343 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:350 msgid "Long running commands" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:346 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:353 msgid "" "Use this to specify the commands known to take a long time to complete " "without output from your printer and hence might cause timeout issues. " "Just the G or M code, comma separated." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:349 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:356 msgid "" "Commands that always require a line number and checksum to be sent with " "them." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:350 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:357 msgid "Commands that always require a checksum" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:353 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:360 msgid "" "Use this to specify which commands always need to be " "sent with a checksum. Comma separated list." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:362 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:369 msgid "Error handling" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:364 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:371 msgid "What to do on a firmware error (Error: or !!)" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:367 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:374 msgid "Disconnect from the printer" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:370 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:377 msgid "Cancel any ongoing prints but stay connected to the printer" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:374 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:381 msgid "" "Only choose this if your firmware sends error messages that are not " "actual errors. Might mask printer issues, be careful!" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:380 -msgid "Event based position logging" +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:387 +msgid "Pausing" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:383 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390 msgid "Log position on pause" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:384 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:391 msgid "" "If you disable this, the pause_position placeholders in your" " pause/resume GCODE scripts will stay unpopulated! However, pausing speed" " might improve slightly." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:389 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:396 +msgid "Cancelling" +msgstr "" + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:399 msgid "Log position on cancel" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:400 msgid "" "If you disable this, the cancel_position placeholders in " "your cancel GCODE script and the corresponding data in the print recovery" @@ -4019,6 +4694,16 @@ msgid "" "slightly." msgstr "" +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:405 +msgid "Attempt to abort any blocking heatups on cancel via M108." +msgstr "" + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:406 +msgid "" +"Uncheck this if your firmware doesn't support M108 for " +"aborting blocking heatups!" +msgstr "" + #: src/octoprint/templates/dialogs/settings/server.jinja2:2 msgid "Commands" msgstr "" @@ -4112,7 +4797,7 @@ msgid "" msgstr "" #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:7 -msgid "On your printer's safety" +msgid "For your printer's safety" msgstr "" #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:10 @@ -4127,22 +4812,36 @@ msgid "" " in case of such catastrophic failure.\n" msgstr "" -#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:17 -msgid "If you enjoy OctoPrint..." -msgstr "" - -#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:20 +#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:16 #, python-format msgid "" "\n" -" Please consider to support OctoPrint's ongoing development,\n" +" You also should never make your " +"OctoPrint instance available for everyone on the\n" +" public internet, even with Access Control enabled. Your " +"instance will be found, and bad people\n" +" will try to abuse it. Don't put yourself at risk,\n" +" use" +" a safe way to access your instance remotely.\n" +msgstr "" + +#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:23 +msgid "If you enjoy OctoPrint..." +msgstr "" + +#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:26 +#, python-format +msgid "" +"\n" +" Please consider supporting OctoPrint's ongoing " +"development,\n" " which can only continue with funding by users like you! You can also " "find this link in the \"About\" dialog.
    \n" " Thank you!\n" msgstr "" -#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:26 +#: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:32 msgid "" "\n" " With all that being said, Happy and Safe Printing!\n" @@ -4170,10 +4869,6 @@ msgstr "" msgid "Forgot password?" msgstr "" -#: src/octoprint/templates/navbar/login.jinja2:13 -msgid "Remember me" -msgstr "" - #: src/octoprint/templates/navbar/login.jinja2:19 msgid "User Settings" msgstr "" @@ -4263,11 +4958,6 @@ msgstr "" msgid "Additional data" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:22 -#: src/octoprint/templates/sidebar/files.jinja2:35 -msgid "Download" -msgstr "" - #: src/octoprint/templates/sidebar/files.jinja2:24 msgid "Load" msgstr "" @@ -4378,10 +5068,6 @@ msgstr "" msgid "User who selected this file for printing" msgstr "" -#: src/octoprint/templates/sidebar/state.jinja2:5 -msgid "User" -msgstr "" - #: src/octoprint/templates/sidebar/state.jinja2:7 msgid "Current timelapse configuration" msgstr "" @@ -5206,26 +5892,6 @@ msgstr "" msgid "Sort by date" msgstr "" -#: src/octoprint/templates/tabs/timelapse.jinja2:109 -#: src/octoprint/templates/tabs/timelapse.jinja2:154 -msgid "Select all on this page" -msgstr "" - -#: src/octoprint/templates/tabs/timelapse.jinja2:110 -#: src/octoprint/templates/tabs/timelapse.jinja2:155 -msgid "Select all" -msgstr "" - -#: src/octoprint/templates/tabs/timelapse.jinja2:112 -#: src/octoprint/templates/tabs/timelapse.jinja2:157 -msgid "Clear selection" -msgstr "" - -#: src/octoprint/templates/tabs/timelapse.jinja2:115 -#: src/octoprint/templates/tabs/timelapse.jinja2:160 -msgid "Delete selected" -msgstr "" - #: src/octoprint/templates/tabs/timelapse.jinja2:148 msgid "Unrendered Timelapses" msgstr ""