diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index c1e15699e..4970021e3 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,8 +1,10 @@ READ THE FOLLOWING FIRST: If not already done, please read the "guidelines for contributing" -that are linked ^-- just up there in the big yellow box. Also read -the FAQ: https://github.com/foosel/OctoPrint/wiki/FAQ. +aka the Contribution Guidelines that are linked ^-- just up there +in the big yellow box. + +Also read the FAQ: https://github.com/foosel/OctoPrint/wiki/FAQ. This is a bug and feature tracker, please only use it to report bugs or request features within OctoPrint (not OctoPi, not any OctoPrint @@ -14,11 +16,18 @@ for contributing" linked above, read it!), NOT here. Mark requests with a "[Request]" prefix in the title please. Fully fill out the bug reporting template for bug reports (if you don't know where -to find some information - it's all described in the contribution -guidelines linked up there in the big yellow box). Do not delete any -lines from the template but those enclosed in [ and ] - and those please -DO delete, they are only provided for your information and removing them -makes your ticket more readable :) +to find some information - it's all described in the Contribution +Guidelines linked up there in the big yellow box). + +When reporting a bug do NOT delete ANY lines from the template but +those enclosed in [ and ] - and those please DO delete, they are +only provided for your information and removing them makes your +ticket more readable :) + +Make sure any bug you want to report is still present with the CURRENT +OctoPrint version and that it does not vanish when you start OctoPrint +in safe mode - how to do that is also explained in the Contribution +Guidelines linked up there in the big yellow box. Thank you! @@ -34,6 +43,12 @@ by heart ;)) reproduce your issue in order to fix it and that is not possible if they don't know what you did to get it to happen in the first place. +Ideally provide exact steps to follow in order to reproduce your problem: + +1. ... +2. ... +3. ... + If you encountered a problem with specific files of any sorts, make sure to also include a link to a file with which to reproduce the problem.] @@ -41,10 +56,20 @@ to also include a link to a file with which to reproduce the problem.] #### What happened instead? +#### Did the same happen when running OctoPrint in safe mode? + +[Try to reproduce your problem in safe mode. You can find information +on how to enable safe mode in the Contribution Guidelines.] + #### Branch & Commit or Version of OctoPrint [Can be found in the lower left corner of the web interface. ALWAYS INCLUDE.] +#### Operating System running OctoPrint + +[OctoPi, Linux, Windows, MacOS, something else? With version please. +OctoPi's version can be found in /etc/octopi_version] + #### Printer model & used firmware incl. version [If applicable, always include if unsure.] @@ -55,7 +80,8 @@ to also include a link to a file with which to reproduce the problem.] #### Link to octoprint.log -[On gist.github.com or pastebin.com. ALWAYS INCLUDE and never truncate.] +[On gist.github.com or pastebin.com. ALWAYS INCLUDE and never truncate. +The Contribution Guidelines tell you where to find that.] #### Link to contents of terminal tab or serial.log @@ -70,9 +96,11 @@ a serial.log.] #### Link to contents of Javascript console in the browser [On gist.github.com or pastebin.com or alternatively a screenshot. If applicable - -always include if unsure or reporting UI issues.] +always include if unsure or reporting UI issues. -#### Screenshot(s) showing the problem: +The Contribution Guidelines tell you where to find that.] + +#### Screenshot(s)/video(s) showing the problem: [If applicable. Always include if unsure or reporting UI issues.] diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b4d5c4175..4c18b123c 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -14,14 +14,15 @@ checklist: made sure your changes don't interfere with current development by talking it through with the maintainers, e.g. through a Brainstorming ticket - * [ ] Your PR targets OctoPrint's devel branch (not master, - maintenance or anything else) + * [ ] Your PR targets OctoPrint's devel branch, or maintenance if it's + a bug fix for an issue present in the current stable version (no PRs + against master or anything else) * [ ] Your PR was opened from a custom branch on your repository (no PRs from your version of master, maintenance or devel please), e.g. dev/my_new_feature * [ ] Your PR only contains relevant changes: no unrelated files, no dead code, ideally only one commit - rebase your PR if necessary! - * [ ] Your changes follow the coding style + * [ ] Your changes follow the existing coding style * [ ] If your changes include style sheets: You have modified the .less source files, not the .css files (those are generated with lessc) diff --git a/.versioneer-lookup b/.versioneer-lookup index 1042df934..342b9dec1 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -16,11 +16,11 @@ prerelease HEAD \(detached.* -# maintenance is currently the branch for preparation of maintenance release 1.3.1 +# maintenance is currently the branch for preparation of maintenance release 1.3.3 # so are any fix/... and improve/... branches -maintenance 1.3.1 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev -fix/.* 1.3.1 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev -improve/.* 1.3.1 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev +maintenance 1.3.3 0a69dbeddb301d5a32827a3f0d561f875df24234 pep440-dev +fix/.* 1.3.3 0a69dbeddb301d5a32827a3f0d561f875df24234 pep440-dev +improve/.* 1.3.3 0a69dbeddb301d5a32827a3f0d561f875df24234 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 a85ff3f29..87c28789c 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -74,6 +74,13 @@ date of first contribution): * [Mathias Rangel Wulff](https://github.com/mathiasrw) * [Clemens Niemeyer](https://github.com/clemniem) * ["I-am-me"](https://github.com/I-am-me) + * [J-J Heinonen](https://github.com/jammi) + * [Noah Martin](https://github.com/noahsmartin) + * [Eyal Soha](https://github.com/eyal0) + * [Greg Hulands](https://github.com/ghulands) + * [Andreas Werner](https://github.com/gallore) + * [Shawn Bruce](https://github.com/kantlivelong) + * [Claudiu Ceia] (https://github.com/ClaudiuCeia) 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 3587919ce..07abd8dba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,147 @@ # OctoPrint Changelog +## 1.3.2 (2017-03-16) + +### Note for plugin authors + +**If you maintain a plugin that extends OctoPrint's [JavaScript Client Library](http://docs.octoprint.org/en/master/jsclientlib/index.html)** like demonstrated in e.g. the bundled Software Update Plugin you'll need to update the way you register your plugin to depend on `OctoPrintClient` and registering your extension as shown [here](https://github.com/foosel/OctoPrint/blob/6e793c2/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js#L1-L84) instead of directly writing to `OctoPrint.plugins` (like it was still done [here](https://github.com/foosel/OctoPrint/blob/23744cd/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js#L1-L81)). That way your extensions will be available on all instances of `OctoPrintClient`, not just the global instance `OctoPrint` that gets created on startup of the core web interface. + +If all you plugin does with regards to JavaScript is registering a custom view model and you have no idea what I'm talking about regarding extending the client library, no action is necessary. This heads-up is really only relevant if you extended the JavaScript Client Library. + +### Improvements + +- [#732](https://github.com/foosel/OctoPrint/pull/732) - Have OctoPrint's `python setup.py clean` build on stock +`python setup.py clean` for better compatibility with packaging systems +- [#1506](https://github.com/foosel/OctoPrint/issues/1506) - Better handle really long "dwell"/`G4` commands on Repetier firmware (as for example apparently recommended to use with Wanhao D6 and similar printers for nozzle cooling) by actively stalling communication from OctoPrint's side as well. That way we no longer run into a communication timeout produced by a 5min dwell immediately happily acknowledged by the printer with an `ok`. +- [#1542](https://github.com/foosel/OctoPrint/issues/1542) - Support for multi-extruder setups with a shared single nozzle and heater (e.g. E3D Cyclops, Diamond hotend, etc). +- [#1676](https://github.com/foosel/OctoPrint/issues/1676) - Trigger line number reset when connected to printer and seeing `start` message. This should fix issues with printer communication when printer resets but reset goes otherwise undetected. +- [#1681](https://github.com/foosel/OctoPrint/issues/1681) - Support for connecting to multiple OctoPrint instances via the [JavaScript Client Library](http://docs.octoprint.org/en/master/jsclientlib/index.html). +- [#1712](https://github.com/foosel/OctoPrint/issues/1712) - Display current folder name in file list if in sub folder. +- [#1723](https://github.com/foosel/OctoPrint/issues/1723) - Ignore leading `v` or `V` on plugin version numbers for version checks in plugin manager and software updater (see also [#1724](https://github.com/foosel/OctoPrint/pull/1724)) +- [#1770](https://github.com/foosel/OctoPrint/issues/1770) - Better resilience against null bytes received from the printer for whatever reason. +- [#1770](https://github.com/foosel/OctoPrint/issues/1770) - Detect printer as connected even when only receiving a `wait` instead of `ok`. Should solve issues with initial connect where printer sends garbage over the line that eats/covers the `ok` if printer also sends regular `wait` messages when idle. +- [#1780](https://github.com/foosel/OctoPrint/issues/1780) - Work around for Safari re-opening one copy of the webcam stream after the other and eating up bandwidth unnecessarily (see also [#1786](https://github.com/foosel/OctoPrint/issues/1786)) +- [#1790](https://github.com/foosel/OctoPrint/issues/1790) - Removed unused "color" property from printer profile editor. +- [#1805](https://github.com/foosel/OctoPrint/issues/1805) - Better error resilience against invalid print history data from plugins that replace the printer communication. +- Better error resilience in Plugin Manager against wonky version data in repository file. +- Added a "Restart in safe mode" system menu entry that will always be available if the restart command is configured +- CLI: Only offer `daemon` sub command on Linux (since that it's the only OS it works on) +- Less throttling of analysis of GCODE files from the analysis backlog. Should still leave Pi and friends air to breathe but allow a slightly faster processing of the backlog. +- Added an explanation of safe mode to the docs. +- Log OctoPrint version & plugin list when detecting log rollover. +- Allow `UiPlugin`s to define additional fields for ETag generation. +- Allow `UiPlugin`s utilizing OctoPrint's stock templates to filter out what they don't need. +- Locales contained in `translations` of plugins will now be registered with the system. That way it's possible to provide translations for the full application through plugins. +- Abort file analysis if file is about to be overwritten +- Software Update Plugin: Refresh cache on startup, prevent concurrent refresh +- More solid parsing of request line number for resend requests. Should improve compatibility with Teacup firmwares. Based on issue reported via PR [#300](https://github.com/foosel/OctoPrint/pull/300) + +### Bug fixes + +- [#733](https://github.com/foosel/OctoPrint/issues/733) - Fixed multiple event handler commands running concurrently. Now they run one after the other, as expected. +- [#1317](https://github.com/foosel/OctoPrint/issues/1317) - Fixed a color distortion issue when rendering timelapses from higher resolution source snapshots that also need to be rotated by adjusting `ffmpeg` parameters to avoid an unexpected behaviour when a pixel format and a filter chain are required for processing. +- [#1560](https://github.com/foosel/OctoPrint/issues/1560) - Make sure we don't try to use an empty `logging.yaml` +- [#1631](https://github.com/foosel/OctoPrint/issues/1631) - Disable "Slice" button in slice dialog if a print is ongoing and a slicer is selected that runs on the same device as OctoPrint. The server would already deny such requests (simply due to performance reasons), but the UI didn't properly reflect that yet. +- [#1671](https://github.com/foosel/OctoPrint/issues/1671) - Removed "Hide empty folders" option from file list. Didn't really add value and caused usability issues. +- [#1771](https://github.com/foosel/OctoPrint/issues/1771) - Fixed `_config_version` in plugin settings not being properly updated. +- [#1732](https://github.com/foosel/OctoPrint/issues/1732) - Fixed a bug in the documentation for the printer profile API +- [#1760](https://github.com/foosel/OctoPrint/issues/1760) - Fixed missing reselect of selected file when updating via the watched folder, causing wrong progress percentages to be reported. +- [#1765](https://github.com/foosel/OctoPrint/issues/1765) - Fixed watched folder not waiting with file move until file stopped growing, causing wrong progress percentages to be reported. +- [#1777](https://github.com/foosel/OctoPrint/issues/1777) - Fixed z-change based timelapses with Slic3r generated z-hops not properly triggering snapshots. +- [#1792](https://github.com/foosel/OctoPrint/issues/1792) - Don't tell Safari we are "web-app-capable" because that means it will throw away all cookies and the user will have to constantly log in again when using a desktop shortcut for the OctoPrint instance. +- [#1812](https://github.com/foosel/OctoPrint/issues/1812) - Don't scroll up navigation in settings when switching between settings screens, very annoying on smaller resolutions (see also [#1814](https://github.com/foosel/OctoPrint/pull/1814)) +- Fix settings helper not allowing to delete values for keys that are present in the local config but not in the defaults. +- Fix wrong replacement value for `__progress` in registered command line or GCODE [event handlers](http://docs.octoprint.org/en/master/events/index.html). +- Various fixes in the Software Update Plugin: + - Don't remove manual software update configurations on settings migration. + - Properly delete old restart/reboot commands that are now defined globally since config version 4. An issue with the settings helper prevented us from properly deleting them during migration to version 4. + - Fixed `python_checker` version check method and `python_updater` update method. + - Fixed update configs without a restart of any kind causing an issue due to an undefined variable. + - Fixed broken doctests. +- Upgrade LESS.min.js from 2.7.1 to 2.7.2 to fix the broken contrast function +- Always create a new user session for requests with an API key +- Fixed an error when reading all user settings via the API +- Fixed a bunch of caching issues for the page, was not properly updated on change of snapshot URL presence, system menu entry presence, gcode viewer enabled/disabled, changes in access control availability. +- Fixed wrong bundling of core and plugin assets +- Software Update Plugin: Fixed wrong ETag calculation +- Disable external heatup detection until firmware is detected +- Fixed login dropdown not closing on click outside of it +- Fixed new user settings getting lost until restart +- Don't call `onUserLoggedIn`/`onUserLoggedOut` on user reload + +### More information + +- [Commits](https://github.com/foosel/OctoPrint/compare/1.3.1...1.3.2) +- Release Candidates: + - [1.3.2rc1](https://github.com/foosel/OctoPrint/releases/tag/1.3.2rc1) + +## 1.3.1 (2017-01-25) + +### Note for upgraders + +#### If you installed OctoPrint manually and used the included init script, you need to update that + +The init script so far shipped with OctoPrint contained a [bug](https://github.com/foosel/OctoPrint/issues/1657) that causes issues with OctoPrint 1.3.0 and higher. Please update your init script to the fixed version OctoPrint now ships under `scripts`: + +``` +sudo cp /path/to/OctoPrint/scripts/octoprint.init /etc/init.d/octoprint +``` + +If you are running OctoPi, this does **not** apply to you and you do not need to do anything here! + +#### Change in stock terminal filter configuration + +1.3.1 fixes an issue with the two terminal filters for suppressing temperature and SD status messages and adds a new filter for filtering out firmware `wait` messages. These changes will only be active automatically though for stock terminal filter configurations. If you have customized your terminal filters, you'll need to apply these changes manually under "Settings > Terminal filters": +- Changed "Suppress temperature messages" filter, new regex is `(Send: (N\d+\s+)?M105)|(Recv: ok (B|T\d*):)` +- Changed "Suppress SD status messages" filter, new regex is `(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)` +- New "Suppress wait responses" filter, regex is `Recv: wait` + +### Improvements +- [#1607](https://github.com/foosel/OctoPrint/issues/1607) - Way better support for password managers (e.g. browser built-in, 1Password, Lastpass, Dashlane) +- [#1638](https://github.com/foosel/OctoPrint/issues/1638) - Make confirmation dialog when cancelling a print optional. +- [#1656](https://github.com/foosel/OctoPrint/issues/1656) - Make wording of buttons on print cancel dialog less confusing. +- [#1705](https://github.com/foosel/OctoPrint/pull/1705) - Simplified install process on Mac by removing dependency on pyobjc. +- [#1706](https://github.com/foosel/OctoPrint/pull/1706) - Added a mask icon for Safari pinned tab and touchbar. +- Support extraction of filament diameter for volume calculation from GCODE files sliced through Simplify3D. +- Abort low priority jobs in the file analysis queue when a high priority job comes in - should make file analysis and hence time estimates show up faster for newly uploaded files. +- Added a terminal filter for firmware `wait` messages to the stock terminal filters. If you did modify your terminal filter configuration, you might want to add this manually: + - New "Suppress wait responses" filter: `Recv: wait` + +### Bug fixes + +- [#1344](https://github.com/foosel/OctoPrint/issues/1344) - Fix ProgressBarPlugins to not correctly be triggered for 0% (second try, this time hopefully for good). +- [#1637](https://github.com/foosel/OctoPrint/issues/1637) - Fix issue preventing a folder to be deleted that has a name which is a common prefix of the file currently being printed. +- [#1641](https://github.com/foosel/OctoPrint/issues/1641) - Fix issue with `octoprint --daemon` not working. +- [#1647](https://github.com/foosel/OctoPrint/issues/1647) - Fix issue with `octoprint` command throwing an error if an environment variable `OCTOPRINT_VERSION` was set to its version number. +- [#1648](https://github.com/foosel/OctoPrint/issues/1648) - Added missing `websocket-client` dependency of `octoprint client` to install script. +- [#1653](https://github.com/foosel/OctoPrint/issues/1653) - Fix for an issue with the included init script on the BBB (see also [#1654](https://github.com/foosel/OctoPrint/issues/1654)) +- [#1657](https://github.com/foosel/OctoPrint/issues/1657) - Fix init script regarding check for configured `CONFIGFILE` variable. +- [#1657](https://github.com/foosel/OctoPrint/issues/1657) - Don't care about ordering of common parameters (like `--basedir`, `--config`) on CLI. +- [#1660](https://github.com/foosel/OctoPrint/issues/1660) - Do not show hint regarding keyboard controls beneath webcam stream if keyboard control feature is disabled. +- [#1667](https://github.com/foosel/OctoPrint/issues/1667) - Fix for matching folders not getting listed in the results when performing a search in the file list. +- [#1675](https://github.com/foosel/OctoPrint/issues/1675) - Fix model size calculation in GCODE analysis, produced wrong values in some cases. Also adjusted calculation to match implementation in GCODE viewer, now both produce identical results. +- [#1685](https://github.com/foosel/OctoPrint/issues/1685) - Cura Plugin: Fix filament extraction from CuraEngine slicing output +- [#1692](https://github.com/foosel/OctoPrint/issues/1692) - Cura Plugin: Fix solid layer calculation (backport from [Ultimaker/CuraEngine#140](https://github.com/Ultimaker/CuraEngine/issues/140)) +- [#1693](https://github.com/foosel/OctoPrint/issues/1693) - Cura Plugin: Support `perimeter_before_infill` profile setting. Additionally added support for `solidarea_speed`, `raft_airgap_all`, `raft_surface_thickness`, `raft_surface_linewidth` profile settings and adjusted mapping for engine settings `raftAirGapLayer0`, `raftFanSpeed`, `raftSurfaceThickness`and `raftSurfaceLinewidth` according to current mapping in Cura Legacy and adjusted Mach3 GCODE flavor to substitute `S` with `P` in temperature commands of generated start code, also like in Cura Legacy. +- [#1697](https://github.com/foosel/OctoPrint/issues/1697) - Pin Jinja to versions <2.9 for now due to a backwards compatibility issue with templates for versions newer than that. Also pushed as a hotfix to 1.3.0 (as 1.3.0post1). +- [#1708](https://github.com/foosel/OctoPrint/issues/1708) - Cura Plugin: Fixed selection of `start.gcode` for sliced file +- Allow a retraction z-hop of 0 in timelapse configuration. +- Fix files in sub folders to not be processed by the initial analysis backlog check during startup of the server. +- Various fixes in the file analysis queue: + - High priority items are now really high priority + - Abort analysis for items that are to be deleted/moved to get around an issue with file access under Windows systems. +- Fix stock terminal filters for suppressing temperature messages and SD status messages to also be able to deal with line number prefixes. If you have added additional terminal filters, you will have to apply this fix manually: + - Changed "Suppress temperature messages" filter: `(Send: (N\d+\s+)?M105)|(Recv: ok (B|T\d*):)` + - Changed "Suppress SD status messages" filter: `(Send: (N\d+\s+)?M27)|(Recv: SD printing byte)` +- Fix issue in german translation. + +### More information + +- [Commits](https://github.com/foosel/OctoPrint/compare/1.3.0...1.3.1) +- Release Candidates: + - [1.3.1rc1](https://github.com/foosel/OctoPrint/releases/tag/1.3.1rc1) + - [1.3.1rc2](https://github.com/foosel/OctoPrint/releases/tag/1.3.1rc2) + ## 1.3.0 (2016-12-08) ### Features diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e7c89f363..4e3a47439 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -12,6 +12,7 @@ or **[creating pull requests](#pull-requests)**. * [Where can I find which version and branch I'm on?](#where-can-i-find-which-version-and-branch-im-on) * [Where can I find those log files you keep talking about?](#where-can-i-find-those-log-files-you-keep-talking-about) * [Where can I find my browser's error console?](#where-can-i-find-my-browsers-error-console) + * [Setting up a development environment](#setting-up-a-development-environment) * [Pull requests](#pull-requests) * [What do the branches mean?](#what-do-the-branches-mean) * [How OctoPrint is versioned](#how-octoprint-is-versioned) @@ -92,11 +93,15 @@ following section *completely* and also follow the instructions in the 2. Please make sure to **test out the current version** of OctoPrint to see whether the problem you are encountering still exists, and **test without - any non-bundled plugins enabled** to make sure it's not a misbehaving - plugin causing the issue at hand. + any third-party plugins enabled** to make sure it's not a misbehaving + plugin causing the issue at hand. For that please restart OctoPrint in + **safe mode**, either by selecting "Restart OctoPrint in safe mode" from + the "System" menu, or by starting OctoPrint from the command line with + `octoprint serve --safe`. Then try to reproduce your issue. Find out + more about safe mode in the [docs](http://docs.octoprint.org/en/master/features/safemode.html). - If you are feeling up to it you might also want to try the current development - version of OctoPrint (if you aren't already). Refer to the [FAQ](https://github.com/foosel/OctoPrint/wiki/FAQ) + You might also want to try the current development version of OctoPrint + (if you aren't already). Refer to the [FAQ](https://github.com/foosel/OctoPrint/wiki/FAQ) for information on how to do this. 3. The problem still exists? Then please **look through the @@ -137,6 +142,12 @@ only provided here as some additional information for you), **even if only addin reproduce your issue in order to fix it and that is not possible if they don't know what you did to get it to happen in the first place. + Ideally provide exact steps to follow in order to reproduce your problem: + + 1. ... + 2. ... + 3. ... + If you encountered a problem with specific files of any sorts, make sure to also include a link to a file with which to reproduce the problem.] @@ -144,10 +155,20 @@ only provided here as some additional information for you), **even if only addin #### What happened instead? + #### Did the same happen when running OctoPrint in safe mode? + + [Try to reproduce your problem in safe mode. You can find information + on how to enable safe mode in the Contribution Guidelines.] + #### Branch & Commit or Version of OctoPrint [Can be found in the lower left corner of the web interface. ALWAYS INCLUDE.] + #### Operating System running OctoPrint + + [OctoPi, Linux, Windows, MacOS, something else? With version please, + OctoPi's version can be found in /etc/octopi_version] + #### Printer model & used firmware incl. version [If applicable, always include if unsure.] @@ -158,7 +179,8 @@ only provided here as some additional information for you), **even if only addin #### Link to octoprint.log - [On gist.github.com or pastebin.com. ALWAYS INCLUDE and never truncate.] + [On gist.github.com or pastebin.com. ALWAYS INCLUDE and never truncate. + The Contribution Guidelines tell you where to find that.] #### Link to contents of terminal tab or serial.log @@ -173,16 +195,19 @@ only provided here as some additional information for you), **even if only addin #### Link to contents of Javascript console in the browser [On gist.github.com or pastebin.com or alternatively a screenshot. If applicable - - always include if unsure or reporting UI issues.] + always include if unsure or reporting UI issues. - #### Screenshot(s) showing the problem: + The Contribution Guidelines tell you where to find that.] + + #### Screenshot(s)/video(s) showing the problem: [If applicable. Always include if unsure or reporting UI issues.] I have read the FAQ. -Copy-paste this template **completely**. Do not skip any lines or the bot -*will* complain! +Copy-paste this template **completely** (or use the version that gets pre-filled +into the "new issue" form). Do not skip any lines or the bot *will* complain! Provide +all requested information or your ticket will be closed. ### Where can I find which version and branch I'm on? @@ -235,6 +260,10 @@ find information on how to do just that in the See [How to open the Javascript Console in different browsers](https://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers) +## Setting up a development environment + +See [the corresponding chapter in the documentation](http://docs.octoprint.org/en/master/development/index.html#setting-up-a-development-environment). + ## Pull requests 1. If you want to add a new feature to OctoPrint, **please always first @@ -253,17 +282,18 @@ See [How to open the Javascript Console in different browsers](https://webmaster just cause unnecessary work and frustration for everyone or possibly get the PR rejected. 3. Create your pull request **from a custom branch** on your end (e.g. - `dev/myNewFeature`)[1] **against the `devel` branch**. Create **one pull request - per feature/bug fix**. If your PR contains an important bug fix, we will - make sure to backport it to the `maintenance` branch to also include it in - the next release. -4. Make sure there are **only relevant changes** included in your PR. No + `dev/myNewFeature`)[1]. +4. Create your pull request **only against the `maintenance` or `devel` branch**: + * if it's a bug fix for a bug in the current stable version: `maintenance` branch + * otherwise: `devel` branch +5. Create **one pull request per feature/bug fix**. +6. Make sure there are **only relevant changes** included in your PR. No changes to unrelated files, no additional files that don't belong (e.g. commits of your full virtual environment). Make sure your PR consists **ideally of only one commit** (use git's rebase and squash functionality). -5. Make sure you **follow the current coding style**. This means: +7. Make sure you **follow the current coding style**. This means: * Tabs instead of spaces in the Python files[2] - * Spaces instead of tabs in the Javascript sources + * Spaces instead of tabs in the JavaScript sources * English language (code, variables, comments, ...) * Comments where necessary: Tell *why* the code does something like it does it, structure your code @@ -272,22 +302,22 @@ See [How to open the Javascript Console in different browsers](https://webmaster ``.less`` files from which the CSS is compiled. * Make sure you do not add dead code (e.g. commented out left-overs from experiments). -6. Ensure your changes **pass the existing unit tests**. PRs that break +8. Ensure your changes **pass the existing unit tests**. PRs that break those cannot be accepted. -7. **Test your changes thoroughly**. That also means testing with usage +9. **Test your changes thoroughly**. That also means testing with usage scenarios you don't normally use, e.g. if you only use access control, test without and vice versa. If you only test with your printer, test with the virtual printer and vice versa. State in your pull request how you tested your changes. Ideally **add unit tests** - OctoPrint severely lacks in that department, but we are trying to change that, so any new code already covered with a test suite helps a lot! -8. In your pull request's description, **state what your pull request does**, - as in, what feature does it implement, what bug does it fix. The more - thoroughly you explain your intent behind the PR here, the higher the - chances it will get merged fast. There is a template provided below - that can help you here. -9. Don't forget to **add yourself to the [AUTHORS](./AUTHORS.md) - file** :) +10. In your pull request's description, **state what your pull request does**, + as in, what feature does it implement, what bug does it fix. The more + thoroughly you explain your intent behind the PR here, the higher the + chances it will get merged fast. There is a template provided below + that can help you here. +11. Don't forget to **add yourself to the [AUTHORS](./AUTHORS.md) + file** :) Template to use for Pull Request descriptions: @@ -315,7 +345,7 @@ There are three main branches in OctoPrint: add a commit after release to this branch - `...post` (e.g. `1.2.9.post1`). * `maintenance`: Improvements and fixes of the current release that make up - the next release go here. More or less continously updated. You can consider + the next release go here. More or less continuously updated. You can consider this a preview of the next release version. It should be very stable at all times. Anything you spot in here helps tremendously with getting a rock solid next stable release, so if you want to help out development, running the @@ -391,6 +421,11 @@ the local version identifier to allow for an exact determination of the active c * 2016-09-09: New `rc/*` branches explained. * 2016-09-23: Some more work on "How to file a bug report" based on recent experiences + * 2017-01-25: Fixed a typo + * 2017-03-09: Allow PRs against `maintenance` branch for bugs in stable. + * 2017-03-10: Reproduce bugs in safe mode to make sure they are really caused + by OctoPrint itself and not a misbehaving plugin. + * 2017-03-27: Added safe mode section to ticket template. ## Footnotes * [1] - If you are wondering why, the problem is that anything that you add diff --git a/README.md b/README.md index 47e9d7a22..dfe174be2 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # OctoPrint -OctoPrint provides a snappy web interface for controlling a 3D printer (RepRap, Ultimaker, ...). It is Free Software +[![GitHub version](https://badge.fury.io/gh/foosel%2FOctoPrint.svg)](https://badge.fury.io/gh/foosel%2FOctoPrint) + +OctoPrint provides a snappy web interface for controlling consumer 3D printers. It is Free Software and released under the [GNU Affero General Public License V3](http://www.gnu.org/licenses/agpl.html). Its website can be found at [octoprint.org](http://octoprint.org). @@ -33,7 +35,7 @@ If you think something is bad about OctoPrint or its documentation the way it is in any way to make it better instead of just complaining about it -- this is an Open Source Project after all :) -For information about how to go about contributions of any kind, please see the project's +For information about how to go about submitting bug reports or pull requests, please see the project's [Contribution Guidelines](https://github.com/foosel/OctoPrint/blob/master/CONTRIBUTING.md). ## Installation @@ -41,7 +43,7 @@ For information about how to go about contributions of any kind, please see the Installation instructions for installing from source for different operating systems can be found [on the wiki](https://github.com/foosel/OctoPrint/wiki#assorted-guides). -If you want to run OctoPrint on a Raspberry Pi you might want to take a look at [OctoPi](https://github.com/guysoft/OctoPi) +If you want to run OctoPrint on a Raspberry Pi, you might want to take a look at [OctoPi](https://github.com/guysoft/OctoPi) which is a custom SD card image that includes OctoPrint plus dependencies. The generic steps that should basically be done regardless of operating system @@ -59,7 +61,7 @@ for details. After installation, please make sure you follow the first-run wizard and set up access control as necessary. If you want to not only be notified about new -releases but also be able to automatically upgrade to them from within +releases, but also be able to automatically upgrade to them from within OctoPrint, take a look [at the documentation of the Software Update Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Software-Update#making-octoprint-updateable-on-existing-installations) and at its settings. @@ -70,7 +72,7 @@ OctoPrint via `setup.py`: python setup.py install -You should also do this every time after pulling from the repository, since the dependencies might have changed. +You should do this every time after pulling from the repository, since the dependencies may have changed. OctoPrint currently only supports Python 2.7. @@ -81,41 +83,46 @@ Running the `setup.py` script via python setup.py install installs the `octoprint` script in your Python installation's scripts folder -(which depending on whether you installed OctoPrint globally or into a virtual env will be on your `PATH` or not). The -following usage examples assume that said `octoprint` script is on your `PATH`. +(which, depending on whether you installed OctoPrint globally or into a virtual env, will be in your `PATH` or not). The +following usage examples assume that the `octoprint` script is on your `PATH`. You can start the server via - octoprint + octoprint serve By default it binds to all interfaces on port 5000 (so pointing your browser to `http://127.0.0.1:5000` will do the trick). If you want to change that, use the additional command line parameters `host` and `port`, which accept the host ip to bind to and the numeric port number respectively. If for example you want the server to only listen on the local interface on port 8080, the command line would be - octoprint --host=127.0.0.1 --port=8080 + octoprint serve --host=127.0.0.1 --port=8080 -Alternatively, the host and port on which to bind can be defined via the configuration. +Alternatively, the host and port on which to bind can be defined via the config file. If you want to run OctoPrint as a daemon (only supported on Linux), use - octoprint --daemon {start|stop|restart} [--pid PIDFILE] + octoprint daemon {start|stop|restart} [--pid PIDFILE] If you do not supply a custom pidfile location via `--pid PIDFILE`, it will be created at `/tmp/octoprint.pid`. -You can also specify the configfile or the base directory (for basing off the `uploads`, `timelapse` and `logs` folders), +You can also specify the config file or the base directory (for basing off the `uploads`, `timelapse` and `logs` folders), e.g.: - octoprint --config /path/to/another/config.yaml --basedir /path/to/my/basedir + octoprint serve --config /path/to/another/config.yaml --basedir /path/to/my/basedir -See `octoprint --help` for further information. +To start OctoPrint in safe mode - which disables all third party plugins that do not come bundled with OctoPrint - use +the ``--safe`` flag: -OctoPrint also ships with a `run` script in its source directory. You can also invoke that to start up the server, it + octoprint serve --safe + +See `octoprint --help` for more information on the available command line parameters. + +OctoPrint also ships with a `run` script in its source directory. You can invoke it to start the server. It takes the same command line arguments as the `octoprint` script. ## Configuration -If not specified via the commandline, the configfile `config.yaml` for OctoPrint is expected in the settings folder, +If not specified via the command line, the config file `config.yaml` for OctoPrint is expected in the settings folder, which is located at `~/.octoprint` on Linux, at `%APPDATA%/OctoPrint` on Windows and at `~/Library/Application Support/OctoPrint` on MacOS. diff --git a/SUPPORTERS.md b/SUPPORTERS.md index f4160f8fd..8fd085416 100644 --- a/SUPPORTERS.md +++ b/SUPPORTERS.md @@ -10,33 +10,28 @@ thanks to everyone who contributed! * Aleph Objects, Inc. * Andrew Moorby * Arnljot Arntsen - * Aurelio Bernal - * Bart Zudell * Boris Hussein * Brad Jackson * Brent Fiegle * Brian E. Tyler - * Charles Mitchell * Christopher Day * Christian Petropolis - * COLLE+McVOY * CreativeTools * D Brian Kimmel * DeltaMaker 3D Printers * Doug Johnson * E3D BigBox - * Erik de Bruijn * Ernesto Martinez * Exovite * Frank Sander * Gary Deen * Gary N McKinney * George Robles - * J. Eckert + * James Seigel + * Jamie R McGuigan * Jamie van Dyke - * Jason Galarneau + * Jeff Moe * Josh Daniels - * Joshua David Gregory * Kaile Riser * Kale Stedman * Kazuhiro Ogura @@ -48,6 +43,7 @@ thanks to everyone who contributed! * Masayoshi Mitsui * Michael Aumock * Miles Flavel + * Mohammed khorakiwala * Noe Ruiz * Patrick McGinnis * Peter Grace @@ -59,14 +55,13 @@ thanks to everyone who contributed! * Samer Najia * SD3D * SeeMeCNC - * Shane Ekerbicer * Simon Hallam * Stefan Krister * Stephane Schittly - * Steven Pearson * Sven Mueller * Terrance Shaw * Thomas Hatley + * Timeshell.ca * Trent Shumay -and 972 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)! +and 1041 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)! diff --git a/THIRDPARTYLICENSES.md b/THIRDPARTYLICENSES.md index 381e182a8..30cc98a82 100644 --- a/THIRDPARTYLICENSES.md +++ b/THIRDPARTYLICENSES.md @@ -32,7 +32,9 @@ ## Server + * [appdirs](http://github.com/ActiveState/appdirs): MIT * [Awesome-Slugify](https://pypi.python.org/pypi/awesome-slugify): GPLv3 + * [chainmap](https://bitbucket.org/jeunice/chainmap): Python * [Click](http://click.pocoo.org/): BSD * [feedparser](https://github.com/kurtmckee/feedparser): BSD * [Flask](http://flask.pocoo.org/): BSD @@ -41,6 +43,7 @@ * [Flask-Login](https://github.com/maxcountryman/flask-login): MIT * [Flask-Markdown](http://github.com/dcolish/flask-markdown): BSD * [Flask-Principal](http://packages.python.org/Flask-Principal/): MIT + * [future](https://python-future.org/): MIT * [netaddr](https://github.com/drkjam/netaddr/): BSD * [netifaces](https://bitbucket.org/al45tair/netifaces): MIT * [pkginfo](http://pypi.python.org/pypi/pkginfo/): Python @@ -51,7 +54,19 @@ * [requests](http://python-requests.org/): Apache License 2.0 * [rsa](http://stuvel.eu/rsa): Apache License 2.0 * [sarge](http://sarge.readthedocs.org/): BSD + * [scandir](https://github.com/benhoyt/scandir): BSD * [semantic_version](https://github.com/rbarrois/python-semanticversion): BSD * [SockJS-Tornado](http://github.com/mrjoes/sockjs-tornado/): MIT * [Tornado](http://www.tornadoweb.org/): Apache License 2.0 * [watchdog](http://github.com/gorakhargosh/watchdog): Apache License 2.0 + * [websocket-client](https://github.com/liris/websocket-client): LGPLv3 + +## Development (testing, documentation generation, etc) + + * [ddt](https://github.com/txels/ddt): MIT + * [mock](https://github.com/testing-cabal/mock): BSD + * [nose](http://pythonhosted.org/nose/): LGPL + * [pypandoc](https://github.com/bebraw/pypandoc): MIT + * [Sphinx](http://sphinx-doc.org/): BSD + * [sphinxcontrib-httpdomain](https://bitbucket.org/birkenfeld/sphinx-contrib/src/default/httpdomain/): BSD + * [sphinx_rtd_theme](https://github.com/snide/sphinx_rtd_theme/): BSD diff --git a/docs/api/datamodel.rst b/docs/api/datamodel.rst index 248c0eb14..076e7dbe4 100644 --- a/docs/api/datamodel.rst +++ b/docs/api/datamodel.rst @@ -286,9 +286,9 @@ Files - Type - Description * - ``hash`` - - 1 + - 0..1 - String - - MD5 hash of the file + - MD5 hash of the file. Only available for ``local`` files. * - ``size`` - 0..1 - Number diff --git a/docs/api/files.rst b/docs/api/files.rst index e5e79dc5f..76b80132e 100644 --- a/docs/api/files.rst +++ b/docs/api/files.rst @@ -16,9 +16,14 @@ Retrieve all files Retrieve information regarding all files currently available and regarding the disk space still available locally in the system. + By default only returns the files and folders in the root directory. If the query parameter ``recursive`` + is provided and set to ``true``, returns all files and folders. + Returns a :ref:`Retrieve response `. - **Example**: + **Example 1**: + + Fetch only the files and folders from the root folder. .. sourcecode:: http @@ -35,6 +40,10 @@ Retrieve all files "files": [ { "name": "whistle_v2.gcode", + "path": "whistle_v2.gcode", + "type": "machinecode", + "typePath": ["machinecode", "gcode"], + "hash": "...", "size": 1468987, "date": 1378847754, "origin": "local", @@ -60,15 +69,140 @@ Retrieve all files }, { "name": "whistle_.gco", + "path": "whistle_.gco", + "type": "machinecode", + "typePath": ["machinecode", "gcode"], "origin": "sdcard", "refs": { "resource": "http://example.com/api/files/sdcard/whistle_.gco" } + }, + { + "name": "folderA", + "path": "folderA", + "type": "folder", + "typePath": ["folder"], + "children": [], + "size": 1334 + } + ], + "free": "3.2GB" + } + + **Example 2** + + Recursively fetch all files and folders. + + Fetch only the files and folders from the root folder. + + .. sourcecode:: http + + GET /api/files?recursive=true HTTP/1.1 + Host: example.com + X-Api-Key: abcdef... + + .. sourcecode:: http + + HTTP/1.1 200 OK + Content-Type: application/json + + { + "files": [ + { + "name": "whistle_v2.gcode", + "path": "whistle_v2.gcode", + "type": "machinecode", + "typePath": ["machinecode", "gcode"], + "hash": "...", + "size": 1468987, + "date": 1378847754, + "origin": "local", + "refs": { + "resource": "http://example.com/api/files/local/whistle_v2.gcode", + "download": "http://example.com/downloads/files/local/whistle_v2.gcode" + }, + "gcodeAnalysis": { + "estimatedPrintTime": 1188, + "filament": { + "length": 810, + "volume": 5.36 + } + }, + "print": { + "failure": 4, + "success": 23, + "last": { + "date": 1387144346, + "success": true + } + } + }, + { + "name": "whistle_.gco", + "path": "whistle_.gco", + "type": "machinecode", + "typePath": ["machinecode", "gcode"], + "origin": "sdcard", + "refs": { + "resource": "http://example.com/api/files/sdcard/whistle_.gco" + } + }, + { + "name": "folderA", + "path": "folderA", + "type": "folder", + "typePath": ["folder"], + "children": [ + { + "name": "test.gcode", + "path": "folderA/test.gcode", + "type": "machinecode", + "typePath": ["machinecode", "gcode"], + "hash": "...", + "size": 1234, + "date": 1378847754, + "origin": "local", + "refs": { + "resource": "http://example.com/api/files/local/folderA/test.gcode", + "download": "http://example.com/downloads/files/local/folderA/test.gcode" + } + }, + { + "name": "subfolder", + "path": "folderA/subfolder", + "type": "folder", + "typePath": ["folder"], + "children": [ + { + "name": "test.gcode", + "path": "folderA/subfolder/test2.gcode", + "type": "machinecode", + "typePath": ["machinecode", "gcode"], + "hash": "...", + "size": 100, + "date": 1378847754, + "origin": "local", + "refs": { + "resource": "http://example.com/api/files/local/folderA/subfolder/test2.gcode", + "download": "http://example.com/downloads/files/local/folderA/subfolder/test2.gcode" + } + }, + ], + "size": 100, + "refs": { + "resource": "http://example.com/api/files/local/folderA/subfolder", + } + ], + "size": 1334, + "refs": { + "resource": "http://example.com/api/files/local/folderA", + } } ], "free": "3.2GB" } + :param recursive: If set to ``true``, return all files and folders recursively. Otherwise only return items on same level. :statuscode 200: No error .. _sec-api-fileops-retrievelocation: @@ -81,6 +215,9 @@ Retrieve files from specific location Retrieve information regarding the files currently available on the selected `location` and -- if targeting the ``local`` location -- regarding the disk space still available locally in the system. + By default only returns the files and folders in the root directory. If the query parameter ``recursive`` + is provided and set to ``true``, returns all files and folders. + Returns a :ref:`Retrieve response `. **Example**: @@ -100,6 +237,10 @@ Retrieve files from specific location "files": [ { "name": "whistle_v2.gcode", + "path": "whistle_v2.gcode", + "type": "machinecode", + "typePath": ["machinecode", "gcode"], + "hash": "...", "size": 1468987, "date": 1378847754, "origin": "local", @@ -130,6 +271,7 @@ Retrieve files from specific location :param location: The origin location from which to retrieve the files. Currently only ``local`` and ``sdcard`` are supported, with ``local`` referring to files stored in OctoPrint's ``uploads`` folder and ``sdcard`` referring to files stored on the printer's SD card (if available). + :param recursive: If set to ``true``, return all files and folders recursively. Otherwise only return items on same level. :statuscode 200: No error :statuscode 404: If `location` is neither ``local`` nor ``sdcard`` @@ -196,6 +338,8 @@ Upload file or create folder "local": { "name": "whistle_v2.gcode", "path": "whistle_v2.gcode", + "type": "machinecode", + "typePath": ["machinecode", "gcode"], "origin": "local", "refs": { "resource": "http://example.com/api/files/local/whistle_v2.gcode", @@ -324,6 +468,9 @@ Retrieve a specific file's or folder's information If the file is unknown, a :http:statuscode:`404` is returned. + If the targeted path is a folder, by default only its direct children will be returned. If ``recursive`` is + provided and set to ``true``, all sub folders and their children will be returned too. + On success, a :http:statuscode:`200` is returned, with a :ref:`file information item ` as the response body. @@ -368,7 +515,7 @@ Retrieve a specific file's or folder's information :param location: The location of the file for which to retrieve the information, either ``local`` or ``sdcard``. :param filename: The filename of the file for which to retrieve the information - :param children: Whether to include children of folders (true, default) or not (false) + :param recursive: If set to ``true``, return all files and folders recursively. Otherwise only return items on same level. :statuscode 200: No error :statuscode 404: If ``target`` is neither ``local`` nor ``sdcard``, ``sdcard`` but SD card support is disabled or the requested file was not found diff --git a/docs/api/printerprofiles.rst b/docs/api/printerprofiles.rst index 8a18713a5..835399d5c 100644 --- a/docs/api/printerprofiles.rst +++ b/docs/api/printerprofiles.rst @@ -34,90 +34,92 @@ Retrieve all printer profiles HTTP/1.1 200 OK Content-Type: application/json - [ - { - "id": "_default", - "name": "Default", - "color": "default", - "model": "Generic RepRap Printer", - "default": true, - "current": true, - "resource": "http://example.com/api/printerprofiles/_default", - "volume": { - "formFactor": "rectangular", - "origin": "lowerleft", - "width": 200, - "depth": 200, - "height": 200 - }, - "heatedBed": true, - "axes": { - "x": { - "speed": 6000, - "inverted": false + { + "profiles": [ + { + "id": "_default", + "name": "Default", + "color": "default", + "model": "Generic RepRap Printer", + "default": true, + "current": true, + "resource": "http://example.com/api/printerprofiles/_default", + "volume": { + "formFactor": "rectangular", + "origin": "lowerleft", + "width": 200, + "depth": 200, + "height": 200 }, - "y": { - "speed": 6000, - "inverted": false + "heatedBed": true, + "axes": { + "x": { + "speed": 6000, + "inverted": false + }, + "y": { + "speed": 6000, + "inverted": false + }, + "z": { + "speed": 200, + "inverted": false + }, + "e": { + "speed": 300, + "inverted": false + } }, - "z": { - "speed": 200, - "inverted": false - }, - "e": { - "speed": 300, - "inverted": false + "extruder": { + "count": 1, + "offsets": [ + {"x": 0.0, "y": 0.0} + ] } }, - "extruder": { - "count": 1, - "offsets": [ - {"x": 0.0, "y": 0.0} - ] - } - }, - { - "id": "my_profile", - "name": "My Profile", - "color": "default", - "model": "My Custom Printer", - "default": false, - "current": false, - "resource": "http://example.com/api/printerprofiles/my_profile", - "volume": { - "formFactor": "rectangular", - "origin": "lowerleft", - "width": 200, - "depth": 200, - "height": 200 - }, - "heatedBed": true, - "axes": { - "x": { - "speed": 6000, - "inverted": false + { + "id": "my_profile", + "name": "My Profile", + "color": "default", + "model": "My Custom Printer", + "default": false, + "current": false, + "resource": "http://example.com/api/printerprofiles/my_profile", + "volume": { + "formFactor": "rectangular", + "origin": "lowerleft", + "width": 200, + "depth": 200, + "height": 200 }, - "y": { - "speed": 6000, - "inverted": false + "heatedBed": true, + "axes": { + "x": { + "speed": 6000, + "inverted": false + }, + "y": { + "speed": 6000, + "inverted": false + }, + "z": { + "speed": 200, + "inverted": false + }, + "e": { + "speed": 300, + "inverted": false + } }, - "z": { - "speed": 200, - "inverted": false - }, - "e": { - "speed": 300, - "inverted": false + "extruder": { + "count": 1, + "offsets": [ + {"x": 0.0, "y": 0.0} + ] } }, - "extruder": { - "count": 1, - "offsets": [ - {"x": 0.0, "y": 0.0} - ] - } - }, - ] + ] + } .. _sec-api-printerprofiles-add: @@ -537,6 +539,41 @@ Profile - 0..1 - ``float`` - The height of the print volume + * - ``volume.custom_box`` + - 0..1 + - ``boolean`` or ``object`` + - If the printer has a custom bounding box where the print head can be safely moved to, exceeding the defined print + volume, that bounding box will be defined here. Otherwise (safe area == print volume) this value will be ``false``. + * - ``volume.custom_box.min_x`` + - 0..1 + - ``float`` + - Minimum X coordinate defining the safe custom bounding box. Smaller value than the minimum X coordinate of the + print volume. + * - ``volume.custom_box.max_x`` + - 0..1 + - ``float`` + - Maximum X coordinate defining the safe custom bounding box. Larger value than the maximum X coordinate of the + print volume. + * - ``volume.custom_box.min_y`` + - 0..1 + - ``float`` + - Minimum Y coordinate defining the safe custom bounding box. Smaller value than the minimum Y coordinate of the + print volume. + * - ``volume.custom_box.max_y`` + - 0..1 + - ``float`` + - Maximum Y coordinate defining the safe custom bounding box. Larger value than the maximum Y coordinate of the + print volume. + * - ``volume.custom_box.min_z`` + - 0..1 + - ``float`` + - Minimum Z coordinate defining the safe custom bounding box. Smaller value than the minimum Z coordinate of the + print volume. + * - ``volume.custom_box.max_z`` + - 0..1 + - ``float`` + - Maximum Z coordinate defining the safe custom bounding box. Larger value than the maximum Z coordinate of the + print volume. * - ``heatedBed`` - 0..1 - ``boolean`` diff --git a/docs/api/settings.rst b/docs/api/settings.rst index 265572d07..acc797220 100644 --- a/docs/api/settings.rst +++ b/docs/api/settings.rst @@ -68,6 +68,23 @@ Save settings // ... } +.. _sec-api-settings-generateapikey: + +Regenerate the system wide API key +================================== + +.. http:post:: /api/settings/apikey + + Generates a new system wide API key. + + Does not expect a body. Will return the generated API key as ``apikey`` + property in the JSON object contained in the response body. + + Requires admin rights. + + :status 200: No error + :status 403: No admin rights + .. _sec-api-settings-datamodel: Data model @@ -87,6 +104,9 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted: - * - ``api.key`` - Only maps to ``api.key`` in ``config.yaml`` if request is sent with admin rights, set to ``n/a`` otherwise. + Starting with OctoPrint 1.3.3 setting this field via :ref:`the API ` is not possible, + only :ref:`regenerting it ` is supported. Setting a custom value is only + possible through `config.yaml`. * - ``api.allowCrossOrigin`` - * - ``appearance.name`` @@ -133,6 +153,12 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted: - * - ``feature.modelSizeDetection`` - + * - ``feature.firmwareDetection`` + - + * - ``feature.printCancelConfirmation`` + - + * - ``feature.blockWhileDwelling`` + - * - ``folder.uploads`` - * - ``folder.timelapse`` diff --git a/docs/api/slicing.rst b/docs/api/slicing.rst index ff3b1fc98..010f1af74 100644 --- a/docs/api/slicing.rst +++ b/docs/api/slicing.rst @@ -268,9 +268,14 @@ Slicer - ``string`` - Identifier of the slicer * - ``displayName`` - - 0..1 + - 1 - ``string`` - Display name of the slicer + * - ``sameDevice`` + - 1 + - ``boolean`` + - Whether the slicer runs on the same device as OctoPrint (``true``) and hence can't be used while printing, + or not (``false``) * - ``default`` - 1 - ``boolean`` diff --git a/docs/bundledplugins/discovery.rst b/docs/bundledplugins/discovery.rst index f35be446b..1fa8acdd7 100644 --- a/docs/bundledplugins/discovery.rst +++ b/docs/bundledplugins/discovery.rst @@ -43,6 +43,13 @@ Installing pybonjour OctoPi versions 0.12.0 and later already come with pybonjour installed and ready to go, you don't need to perform these steps there. +.. note:: + + Currently there are no releases for pybonjour available on the Python Package Index PyPI. The latest pybonjour + release is still available in the `Google Code Archive `_. + Since that URL is hilariously long though, a shortened version is provided with https://goo.gl/SxQZ06 and + used in the installation instructions below. + In order for the Zeroconf discovery to work, the `pybonjour package `_ needs to be available to the Python installation running OctoPrint. @@ -52,7 +59,7 @@ into some folder ``~/OctoPrint``. You executed ``python setup.py install`` withi virtualenv in the same folder called ``venv``. In order to install ``pybonjour`` so it will be available to OctoPrint you'll need to do the following:: - venv/bin/pip install pybonjour + venv/bin/pip install https://goo.gl/SxQZ06 **Linux users:** You'll need to install an additional dependency for this to work, the libdnssd compatibility layer for libavahi. On Debian/Ubuntu that can be achieved with:: @@ -71,7 +78,7 @@ The plugin supports the following configuration keys: optional, if not set the port OctoPrint itself was started under will be used * ``pathPrefix``: Path prefix OctoPrint is running under, optional, if not set ``/`` will be used - * ``useSsl``: ``true``if OctoPrint should be called via HTTPS, ``false`` otherwise + * ``useSsl``: ``true`` if OctoPrint should be called via HTTPS, ``false`` otherwise * ``httpUsername``: HTTP Basic Auth username OctoPrint is reachable with, optional * ``httpPassword``: HTTP Basic Auth password OctoPrint is reachable with, optional * ``upnpUuid``: uPNP UUID used for SSDP service announcements, usually you will diff --git a/docs/configuration/config_yaml.rst b/docs/configuration/config_yaml.rst index 3a49a670a..c48389ae8 100644 --- a/docs/configuration/config_yaml.rst +++ b/docs/configuration/config_yaml.rst @@ -519,6 +519,23 @@ Use the following settings to enable or disable OctoPrint features: # If ignoredIdenticalResends is true, how many consecutive identical resends to ignore identicalResendsCount: 7 + # Whether to support F on its own as a valid GCODE command (true) or not (false) + supportFAsCommand: false + + # Whether to enable model size detection and warning (true) or not (false) + modelSizeDetection: true + + # Whether to attempt to auto detect the firmware of the printer and adjust settings + # accordingly (true) or not and rely on manual configuration (false) + firmwareDetection: true + + # Whether to show a confirmation on print cancelling (true) or not (false) + printCancelConfirmation: true + + # Whether to block all sending to the printer while a G4 (dwell) command is active (true, repetier) + # or not (false) + blockWhileDwelling: false + .. _sec-configuration-config_yaml-folder: Folder @@ -565,6 +582,45 @@ Use the following settings to set custom paths for folders used by OctoPrint: # Absolute path where to store (GCODE) scripts scripts: /path/to/scripts/folder +.. _sec-configuration-config_yaml-gcodeanalysis: + +GCODE Analysis +-------------- + +Settings pertaining to the server side GCODE analysis implementation. + +.. code-block:: yaml + + # Maximum number of extruders to support/to sanity check for + maxExtruders: 10 + + # Pause between each processed GCODE line in normal priority mode, seconds + throttle_normalprio: 0.01 + + # Pause between each processed GCODE line in high priority mode (e.g. on fresh + # uploads), seconds + throttle_highprio: 0.0 + +.. _sec-configuration-config_yaml-gcodeviewer: + +GCODE Viewer +------------ + +Settings pertaining to the built in GCODE Viewer. + +.. code-block:: yaml + + # Whether to enable the GCODE viewer in the UI + enabled: true + + # Maximum size a GCODE file may have on mobile devices to automatically be loaded + # into the viewer, defaults to 2MB + mobileSizeThreshold: 2097152 + + # Maximum size a GCODE file may have to automatically be loaded into the viewer, + # defaults to 20MB + sizeThreshold: 20971520 + .. _sec-configuration-config_yaml-plugins: Plugin settings @@ -679,8 +735,34 @@ Use the following settings to configure the serial connection to the printer: connection: 2 # Timeout during serial communication, in seconds. - # Defaults to 5 sec - communication: 5 + # Defaults to 30 sec + communication: 30 + + # Timeout after which to query temperature when no target is set + temperature: 5 + + # Timeout after which to query temperature when a target is set + temperatureTargetSet: 2 + + # Timeout after which to query the SD status while SD printing + sdStatus: 1 + + # Maximum number of consecutive communication timeouts after which the printer will be considered + # dead and OctoPrint disconnects with an error. + maxCommunicationTimeouts: + + # max. timeouts when the printer is idle + idle: 2 + + # max. timeouts when the printer is printing + printing: 5 + + # max. timeouts when a long running command is active + long: 5 + + # Maximum number of write attempts to serial during which nothing can be written before the communication + # with the printer is considered dead and OctoPrint will disconnect with an error + maxWritePasses: # Use this to define additional patterns to consider for serial port listing. Must be a valid # "glob" pattern (see http://docs.python.org/2/library/glob.html). Defaults to not set. @@ -702,6 +784,7 @@ Use the following settings to configure the serial connection to the printer: - G32 - M400 - M226 + - M600 # Commands which need to always be send with a checksum. Defaults to only M110 checksumRequiringCommands: @@ -746,10 +829,14 @@ Use the following settings to configure the server: # Use this option to define the port to which to bind the server, defaults to 5000 port: 5000 - # If this option is true, OctoPrint will show the First Run dialog and set it to false after that - # completes + # If this option is true, OctoPrint will show the First Run wizard and set the setting to + # false after that completes firstRun: false + # If this option is true, OctoPrint will enable safe mode on the next server start and + # reset the setting to false + startOnceInSafeMode: false + # Secret key for encrypting cookies and such, randomly generated on first run secretKey: someSecretKey @@ -944,10 +1031,12 @@ Use `Javascript regular expressions "Open ...", select OctoPrint checkout folder (e.g. ``~/devel/OctoPrint/venv`` or ``C:\Devel\OctoPrint``) + - "File" > "Open ...", select OctoPrint checkout folder (e.g. ``~/devel/OctoPrint`` or ``C:\Devel\OctoPrint``) - "File" > "Settings ..." > "Project: OctoPrint" > "Project Interpreter" > "Add local ...", select OctoPrint venv folder (e.g. ``~/devel/OctoPrint/venv`` or ``C:\Devel\OctoPrint\venv``) - Right click "src" in project tree, mark as source folder diff --git a/docs/events/index.rst b/docs/events/index.rst index 802ed3856..b471193f5 100644 --- a/docs/events/index.rst +++ b/docs/events/index.rst @@ -152,7 +152,7 @@ File handling ------------- Upload - A file has been uploaded. + A file has been uploaded through the web interface. Payload: * ``name``: the file's name @@ -165,19 +165,74 @@ Upload Still available for reasons of backwards compatibility. Will be removed with 1.4.0. +FileAdded + A file has been added to a storage. + + Payload: + * ``storage``: the storage's identifier + * ``path``: the file's path within its storage location + * ``name``: the file's name + * ``type``: the file's type, a list of the path within the type hierarchy, e.g. ``["machinecode", "gcode"]`` or + ``["model", "stl"]`` + + .. note:: + + A copied file triggers this for its new path. A moved file first triggers ``FileRemoved`` for its original + path and then ``FileAdded`` for the new one. + +FileRemoved + A file has been removed from a storage. + + Payload: + * ``storage``: the storage's identifier + * ``path``: the file's path within its storage location + * ``name``: the file's name + * ``type``: the file's type, a list of the path within the type hierarchy, e.g. ``["machinecode", "gcode"]`` or + ``["model", "stl"]`` + + .. note:: + + A moved file first triggers ``FileRemoved`` for its original path and then ``FileAdded`` for the new one. + +FolderAdded + A folder has been added to a storage. + + Payload: + * ``storage``: the storage's identifier + * ``path``: the folders's path within its storage location + * ``name``: the folders's name + + .. note:: + + A copied folder triggers this for its new path. A moved folder first triggers ``FolderRemoved`` for its original + path and then ``FolderAdded`` for the new one. + +FolderRemoved + A folder has been removed from a storage. + + Payload: + * ``storage``: the storage's identifier + * ``path``: the folders's path within its storage location + * ``name``: the folders's name + + .. note:: + + A moved folder first triggers ``FolderRemoved`` for its original path and then ``FolderAdded`` for the new one. + UpdatedFiles A file list was modified. Payload: - * ``type``: the type of file list that was modified. Currently only ``printables`` and ``gcode`` (DEPRECATED) are supported here. + * ``type``: the type of file list that was modified. Only ``printables`` is supported here. See the deprecation + note below. - .. note:: + .. deprecated:: 1.2.0 + + The ``gcode`` modification type has been superceeded by ``printables``. It is currently still available for + reasons of backwards compatibility and will also be sent on modification of ``printables``. It will however + be removed with 1.4.0. - The type ``gcode`` has been renamed to ``printables`` with the introduction of a new file management layer that - supports STL files as first class citizens as well. For reasons of backwards compatibility the ``UpdatedFiles`` - event for printable files will be fired twice, once with ``type`` set to ``gcode``, once set to ``printables``. - Support for the ``gcode`` type will be removed in the next release after version 1.2.0. MetadataAnalysisStarted The metadata analysis of a file has started. diff --git a/docs/features/gcode_scripts.rst b/docs/features/gcode_scripts.rst index 579edbdfc..e58cfdbc5 100644 --- a/docs/features/gcode_scripts.rst +++ b/docs/features/gcode_scripts.rst @@ -67,10 +67,13 @@ All GCODE scripts have access to the following template variables through the te There are a couple of additional template variables available for the following specific scripts: * ``afterPrintPaused`` and ``beforePrintResumed`` + * ``pause_position``: Position reported by the printer via ``M114`` immediately before the print was paused. Consists of ``x``, ``y``, ``z`` and ``e`` coordinates as received by the printer and tracked values for ``f`` and current tool ``t`` taken from commands sent through OctoPrint. + * ``afterPrintCancelled`` + * ``cancel_position``: Position reported by the printer via ``M114`` immediately before the print was cancelled. Consists of ``x``, ``y``, ``z`` and ``e`` coordinates as received by the printer and tracked values for ``f`` and current tool ``t`` taken from commands sent through OctoPrint. diff --git a/docs/features/index.rst b/docs/features/index.rst index 4d1b9f1f6..ebbf48821 100644 --- a/docs/features/index.rst +++ b/docs/features/index.rst @@ -16,3 +16,4 @@ Features gcode_scripts.rst action_commands.rst plugins.rst + safemode.rst diff --git a/docs/features/plugins.rst b/docs/features/plugins.rst index 1b65b6dc0..2530f7817 100644 --- a/docs/features/plugins.rst +++ b/docs/features/plugins.rst @@ -11,6 +11,16 @@ Right now plugins can be used to extend OctoPrint's web interface, to execute sp shutdown, to provide custom (API) endpoints or whole user interfaces with special functionality, to react to system events or progress reports or to add support for additional slicers. More plugin types are planned for the future. +.. note:: + + Since a plugin might not function properly and cause issues that are hard to diagnose or outright disrupt server + functionality, you might want to be able to start OctoPrint without any third party plugins enabled. This is also + very important when reporting bugs in OctoPrint, to ensure that what you are observing is actually a bug in + OctoPrint and not in any of your installed third party plugins. + + To do that, OctoPrint has a built-in safe mode that disables all plugins not shipped as part of OctoPrint. You can + read more on how to enable that :ref:`here `. + .. _sec-features-plugins-available: Finding Plugins diff --git a/docs/features/safemode.rst b/docs/features/safemode.rst new file mode 100644 index 000000000..a99cbf973 --- /dev/null +++ b/docs/features/safemode.rst @@ -0,0 +1,64 @@ +.. _sec-features-safemode: + +********* +Safe mode +********* + +With the advent of support for plugins in OctoPrint, it quickly became apparent that some of the bugs +reported on OctoPrint's bug tracker were actually bugs with installed third party plugins instead of +OctoPrint itself. + +To allow an easier identification of these cases, OctoPrint 1.3.0 introduced safe mode. Starting +OctoPrint in safe mode disables all plugins that are not bundled with OctoPrint, allowing to easier +identify most cases where a third party plugin is the culprit of an observed issue. + +Additionally, OctoPrint allows uninstalling plugins in this mode, allowing recovery from cases where +a third party plugin causes the server to not start up or the web interface to not render or function +correctly anymore. + +.. _sec-features-safemode-how: + +How to start OctoPrint in safe mode +=================================== + +There exist three ways to start OctoPrint in safe mode: + + * since OctoPrint 1.3.2: by selecting "Restart OctoPrint in safe mode" from the "System" menu, + if the "Restart OctoPrint" server command has been correctly configured (see :numref:`fig-features-safemode-systemmenu`). + * by starting OctoPrint with the command line parameter ``--safe``, e.g. ``octoprint serve --safe`` + * by setting the option ``server.startOnceInSafeMode`` in :ref:`config.yaml ` + to ``true`` and restarting + +The last two options will have OctoPrint enable safe mode only for the next server start - once you +restart OctoPrint again, safe mode will be disabled again. + +.. _fig-features-safemode-systemmenu: +.. figure:: ../images/features-safemode-systemmenu.png + :align: center + :alt: "Restart OctoPrint in safe mode" in the "System" menu + + "Restart OctoPrint in safe mode" in the "System" menu + +.. _sec-features-safemode-differences: + +Differences of safe mode vs normal operation mode +================================================= + +When OctoPrint is running in safe mode the following changes to its normal operation mode apply: + + * OctoPrint will not enable any of the installed third party plugins. OctoPrint considers all plugins third + party plugins that do not ship with OctoPrint's sources, so any plugins installed either via `pip` or + into OctoPrint's plugin folder at ``~/.octoprint/plugins`` (Linux), ``%APPDATA%/OctoPrint`` (Windows) and + ``~/Library/Application Support/OctoPrint`` (MacOS). + * OctoPrint will still allow to uninstall third party plugins through the built-in Plugin Manager. + * OctoPrint will still allow to disable (bundled) plugins that are still enabled. + * OctoPrint will not allow to enable third party plugins. + * OctoPrint's web interface will display a notification to remind you that it is running in + safe mode. + +.. _fig-features-safemode-notification: +.. figure:: ../images/features-safemode-notification.png + :align: center + :alt: Safe mode notification + + Safe mode notification diff --git a/docs/images/features-safemode-notification.png b/docs/images/features-safemode-notification.png new file mode 100644 index 000000000..4cdaa5f40 Binary files /dev/null and b/docs/images/features-safemode-notification.png differ diff --git a/docs/images/features-safemode-systemmenu.png b/docs/images/features-safemode-systemmenu.png new file mode 100644 index 000000000..3bbafa154 Binary files /dev/null and b/docs/images/features-safemode-systemmenu.png differ diff --git a/docs/jsclientlib/base.rst b/docs/jsclientlib/base.rst index 9b1184e66..d393f27e2 100644 --- a/docs/jsclientlib/base.rst +++ b/docs/jsclientlib/base.rst @@ -1,29 +1,45 @@ -.. sec-jsclientlib-base: +.. _sec-jsclientlib-base: -:mod:`OctoPrint` ----------------- +:mod:`OctoPrintClient` +---------------------- -.. js:data:: OctoPrint.options +.. js:class:: OctoPrintClient([options]) - The client library's options. + Instantiates a new instance of the client library. Note that by default there's always an instance registered + globally called ``OctoPrint``. - ``OctoPrint.options.apikey`` + :param object options: An optional object of options to set :js:attr:`OctoPrintClient.options` to. + +.. js:attribute:: OctoPrintClient.options + + The client library instance's options. The following keys are currently supported: + + ``apikey`` The API Key to use for requests against the OctoPrint API. Should usually be the anonymous UI API Key provided on the socket. - ``OctoPrint.options.baseurl`` + ``baseurl`` The base URL of the OctoPrint API - ``OctoPrint.options.locale`` + ``locale`` The locale to set in ``X-Locale`` headers on API requests. Useful for API endpoints that might return localized content. -.. js:data:: OctoPrint.plugins +.. js:attribute:: OctoPrintClient.plugins Registration of client library components provided by plugins. - OctoPrint plugins should always register their library exports - in this object, using their plugin identifier as key. + OctoPrint plugins should always register their client classes here using their plugin identifier as key via + :js:func:`OctoPrintClient.registerPluginComponent`. + + .. note:: + + The registration mechanism has changed slightly with OctoPrint 1.3.2 due to an otherwise unsolvable issue with + allowing multiple clients to exist concurrently and still keeping the existing architecture intact. + + The old mechanism works fine as long as you are only planning to offer your plugin client implementation on the + default client instance ``OctoPrint``, however if you also want to support additional clients you'll need to + use the implementation and registration approach as described below. **Example:** @@ -31,19 +47,26 @@ (function (global, factory) { if (typeof define === "function" && define.amd) { - define(["OctoPrint"], factory); + define(["OctoPrintClient"], factory); } else { - factory(window.OctoPrint); + factory(window.OctoPrintClient); } - })(window || this, function(OctoPrint) { - var exports = {}; + })(window || this, function(OctoPrintClient) { + var MyPluginClient = function(base) { + this.base = base; + }; - // fill exports + MyPluginClient.prototype.someFunction = function() { + // do something + }; - OctoPrint.plugins.myplugin = exports + // further define API + + OctoPrintClient.registerPluginComponent("myplugin", MyPluginClient); + return MyPluginClient; }); -.. js:function:: OctoPrint.getBaseUrl() +.. js:function:: OctoPrintClient.getBaseUrl() Returns the canonical base URL to use for OctoPrint's API. Uses the current value of :js:data:`OctoPrint.options.baseurl `. If that doesn't end in a ``/``, @@ -51,7 +74,7 @@ :returns string: The base url to use to access OctoPrint's API. -.. js:function:: OctoPrint.getRequestHeaders(additional) +.. js:function:: OctoPrintClient.getRequestHeaders(additional) Generates a dictionary of HTTP headers to use for API requests against OctoPrint with all necessary headers and any additionally provided ones. @@ -62,7 +85,7 @@ :param object additional: Additional headers to add to the request. :returns object: HTTP headers to use for requests. -.. js:function:: OctoPrint.ajax(method, url, opts) +.. js:function:: OctoPrintClient.ajax(method, url, opts) Performs an AJAX request against the OctoPrint API, utilizing `jQuery's own ajax function `_. @@ -87,7 +110,7 @@ :param object opts: Additional options to use for the request, see above for details (optional) :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.ajaxWithData(method, url, data, opts) +.. js:function:: OctoPrintClient.ajaxWithData(method, url, data, opts) Performs an AJAX request against the OctoPrint API, including the provided ``data`` in the body of the request. @@ -99,7 +122,7 @@ :param object opts: Additonal options to use for the request (optional) :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.get(url, opts) +.. js:function:: OctoPrintClient.get(url, opts) Performs a ``GET`` request against ``url``. @@ -116,7 +139,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.getWithQuery(url, data, opts) +.. js:function:: OctoPrintClient.getWithQuery(url, data, opts) Performs a ``GET`` request against ``url`` using the provided ``data`` as URL query. @@ -132,7 +155,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.post(url, data, opts) +.. js:function:: OctoPrintClient.post(url, data, opts) Performs a ``POST`` request against ``url`` using the provided ``data`` as request body. @@ -152,7 +175,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.postJson(url, data, opts) +.. js:function:: OctoPrintClient.postJson(url, data, opts) Performs a ``POST`` request against ``url`` using the provided ``data`` object as request body after serializing it to JSON. @@ -172,33 +195,33 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.put(url, data, opts) +.. js:function:: OctoPrintClient.put(url, data, opts) Performs ``PUT`` request against ``url`` using the provided ``data`` as request body. See :js:func:`OctoPrint.post` for details. -.. js:function:: OctoPrint.putJson(url, data, opts) +.. js:function:: OctoPrintClient.putJson(url, data, opts) Performs ``PUT`` request against ``url`` using the provided ``data`` as request body after serializing it to JSON. See :js:func:`OctoPrint.postJson` for details. -.. js:function:: OctoPrint.patch(url, data, opts) +.. js:function:: OctoPrintClient.patch(url, data, opts) Performs ``PATCH`` request against ``url`` using the provided ``data`` as request body. See :js:func:`OctoPrint.post` for details. -.. js:function:: OctoPrint.patchJson(url, data, opts) +.. js:function:: OctoPrintClient.patchJson(url, data, opts) Performs ``PATCH`` request against ``url`` using the provided ``data`` as request body after serializing it to JSON. See :js:func:`OctoPrint.postJson` for details. -.. js:function:: OctoPrint.delete(url, opts) +.. js:function:: OctoPrintClient.delete(url, opts) Performs a ``DELETE`` request against ``url``. @@ -206,7 +229,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.download(url, opts) +.. js:function:: OctoPrintClient.download(url, opts) Downloads a file from ``url``, returning the response body as data type ``text``. @@ -218,7 +241,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.upload(url, file, filename, additional) +.. js:function:: OctoPrintClient.upload(url, file, filename, additional) Uploads a ``file`` to ``url`` using a ``multipart/form-data`` ``POST`` request. @@ -286,7 +309,7 @@ :param string filename: An optional file name to use for the upload :param object additional: An optional object of additional key/value pairs to set on the uploaded form data -.. js:function:: OctoPrint.issueCommand(url, command, payload, opts) +.. js:function:: OctoPrintClient.issueCommand(url, command, payload, opts) Issues a command against an OctoPrint command API endpoint. @@ -318,7 +341,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.getSimpleApiUrl(plugin) +.. js:function:: OctoPrintClient.getSimpleApiUrl(plugin) Returns the proper URL for the endpoint of a :class:`~octoprint.plugin.SimpleApiPlugin`, based on the plugin identifier. @@ -333,7 +356,7 @@ :param string plugin: The identifier of the plugin for which to return the URL :returns string: The URL to use as endpoint -.. js:function:: OctoPrint.simpleApiGet(plugin, opts) +.. js:function:: OctoPrintClient.simpleApiGet(plugin, opts) Performs a ``GET`` request against the endpoint of a :class:`~octoprint.plugin.SimpleApiPlugin` with identifier ``plugin``. @@ -349,7 +372,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.simpleApiCommand(plugin, command, payload, opts) +.. js:function:: OctoPrintClient.simpleApiCommand(plugin, command, payload, opts) Performs the API command ``command`` against the endpoint of a :class:`~octoprint.plugin.SimpleApiPlugin` with identifier ``plugin``, including the optional ``payload``. @@ -370,7 +393,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.getBlueprintUrl(plugin) +.. js:function:: OctoPrintClient.getBlueprintUrl(plugin) Returns the proper base URL for blueprint endpoints of a :class:`~octoprint.plugin.BlueprintPlugin` with identifier ``plugin``. @@ -382,11 +405,15 @@ // prints "plugin/myplugin/" console.log(OctoPrint.getBlueprintUrl("myplugin")); -.. js:function:: OctoPrint.createRejectedDeferred() +.. js:function:: OctoPrintClient.createRejectedDeferred() + + Static method. Shortcut for creating a rejected `jQuery Deferred `_. -.. js:function:: OctoPrint.createCustomException(name) +.. js:function:: OctoPrintClient.createCustomException(name) + + Static method. Creates a custom exception class. ``name`` may be either a function in which case it will be used as constructor for the new exception class, or a string, in which case a constructor with proper @@ -397,9 +424,40 @@ .. code-block:: javascript - MyCustomException = OctoPrint.createCustomException("MyCustomException"); + MyCustomException = OctoPrintClient.createCustomException("MyCustomException"); throw new MyCustomException("Something went horribly wrong!"); -.. js:class:: OctoPrint.InvalidArgumentError +.. js:function:: OctoPrintClient.registerPluginComponent(identifier, clientClass) + + Static method. + + Registers the plugin client component ``clientClass`` under the name ``identifier`` on the + :js:attr:`OctoPrintClient.plugins` registry. + + ``clientClass`` must have a constructor that follows the signature ``ClientClass(base)`` and in which it sets + the attribute ``base`` on the instance to: + + .. code-block:: javascript + + var MyPluginClient = function(base) { + this.base = base; + } + + Each :js:class:`OctoPrintClient` will create its own instance of registered plugin classes and make them available + under :js:attr:`OctoPrintClient.plugins`. It will inject itself into those instances in order to allow plugin + clients to access its functionality via ``this.base``: + + .. code-block:: javascript + + MyPluginClient.prototype.doSomething = function(data, opts) { + return this.base.simpleApiCommand("myplugin", "doSomething", data, opts); + }; + + :param string identifier: The identifier of the plugin for which ``clientClass`` is the client + :param class clientClass: The client class to register. Constructor must follow the signature ``ClientClass(base)`` + where ``base`` will be assigned to the instance as ``this.base`` and be the :js:class:`OctoPrintClient` + instance to use for API calls etc via ``this.base``. + +.. js:class:: OctoPrintClient.InvalidArgumentError Exception to use when functions are called with invalid arguments. diff --git a/docs/jsclientlib/browser.rst b/docs/jsclientlib/browser.rst index 56140c44e..d44ba08bf 100644 --- a/docs/jsclientlib/browser.rst +++ b/docs/jsclientlib/browser.rst @@ -1,9 +1,9 @@ -.. sec-jsclientlib-browser: +.. _sec-jsclientlib-browser: -:mod:`OctoPrint.browser` ------------------------- +:mod:`OctoPrintClient.browser` +------------------------------ -.. js:function:: OctoPrint.browser.login(username, password, remember, opts) +.. js:function:: OctoPrintClient.browser.login(username, password, remember, opts) Logs the browser into OctoPrint, using the provided ``username`` and ``password`` as credentials. If ``remember`` is set to ``true``, the session @@ -24,7 +24,7 @@ :param object opts: Additional request options :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.browser.passiveLogin(opts) +.. js:function:: OctoPrintClient.browser.passiveLogin(opts) Tries to perform a passive login into OctoPrint, using existing session data stored in the browser's cookies. @@ -32,7 +32,7 @@ :param object opts: Additional request options :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.browser.logout(opts) +.. js:function:: OctoPrintClient.browser.logout(opts) Logs the browser out of OctoPrint. diff --git a/docs/jsclientlib/connection.rst b/docs/jsclientlib/connection.rst index 7abe9383d..15d193f67 100644 --- a/docs/jsclientlib/connection.rst +++ b/docs/jsclientlib/connection.rst @@ -1,9 +1,9 @@ -.. sec-jsclientlib-connection: +.. _sec-jsclientlib-connection: -:mod:`OctoPrint.connection` ---------------------------- +:mod:`OctoPrintClient.connection` +--------------------------------- -.. js:function:: OctoPrint.connection.getSettings(opts) +.. js:function:: OctoPrintClient.connection.getSettings(opts) Retrieves the available connection options for connection to a printer. @@ -12,7 +12,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.connection.connect(data, opts) +.. js:function:: OctoPrintClient.connection.connect(data, opts) Connects to the printer, optionally using the provided connection ``data`` as parameters. @@ -30,7 +30,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.connection.disconnect(opts) +.. js:function:: OctoPrintClient.connection.disconnect(opts) Disconnects from the printer. @@ -39,7 +39,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.connection.fakeAck(opts) +.. js:function:: OctoPrintClient.connection.fakeAck(opts) Triggers a fake acknowledgement (``ok``) on the printer. diff --git a/docs/jsclientlib/control.rst b/docs/jsclientlib/control.rst index ae56437d4..90d06cd49 100644 --- a/docs/jsclientlib/control.rst +++ b/docs/jsclientlib/control.rst @@ -1,16 +1,16 @@ -.. sec-jsclientlib-control: +.. _sec-jsclientlib-control: -:mod:`OctoPrint.control` ------------------------- +:mod:`OctoPrintClient.control` +------------------------------ -.. js:function:: OctoPrint.control.getCustomControls(opts) +.. js:function:: OctoPrintClient.control.getCustomControls(opts) Retrieves the defined custom controls from the server. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.control.sendGcode(commands, opts) +.. js:function:: OctoPrintClient.control.sendGcode(commands, opts) Sends the provided ``commands`` to the printer. @@ -21,7 +21,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.control.sendGcodeWithParameters(commands, parameters, opts) +.. js:function:: OctoPrintClient.control.sendGcodeWithParameters(commands, parameters, opts) Sends the provided ``commands`` to the printer, replacing contained placeholders with the provided ``parameters`` first. @@ -34,7 +34,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.control.sendGcodeScript(script, context, opts) +.. js:function:: OctoPrintClient.control.sendGcodeScript(script, context, opts) Sends the provided ``script`` to the printer, enhancing the template with the specified ``context``. @@ -44,7 +44,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.control.sendGcodeScriptWithParameters(script, context, parameters, opts) +.. js:function:: OctoPrintClient.control.sendGcodeScriptWithParameters(script, context, parameters, opts) Sends the provided ``script`` to the printer, enhancing the template with the specified ``context`` and ``parameters``. diff --git a/docs/jsclientlib/files.rst b/docs/jsclientlib/files.rst index 6220b74ae..9c4d8233a 100644 --- a/docs/jsclientlib/files.rst +++ b/docs/jsclientlib/files.rst @@ -1,9 +1,9 @@ -.. sec-jsclientlib-files: +.. _sec-jsclientlib-files: -:mod:`OctoPrint.files` ----------------------- +:mod:`OctoPrintClient.files` +---------------------------- -.. js:function:: OctoPrint.files.get(location, filename, opts) +.. js:function:: OctoPrintClient.files.get(location, filename, opts) Retrieves information about the file ``filename`` at ``location``. @@ -14,7 +14,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.list(recursively, opts) +.. js:function:: OctoPrintClient.files.list(recursively, opts) Retrieves a list of all files from the server. @@ -56,7 +56,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.listForLocation(location, recursively, opts) +.. js:function:: OctoPrintClient.files.listForLocation(location, recursively, opts) Retrieves a list of all files stored at the specified ``location`` from the server. @@ -73,7 +73,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.select(location, path, print, opts) +.. js:function:: OctoPrintClient.files.select(location, path, print, opts) Selects a file at ``location`` named ``filename`` for printing. If ``print`` is supplied and truthy, also starts printing the file immediately. @@ -86,7 +86,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.slice(location, path, parameters, opts) +.. js:function:: OctoPrintClient.files.slice(location, path, parameters, opts) Slices a file at ``location`` called ``filename``, using the supplied slice command ``parameters``. @@ -98,7 +98,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.delete(location, path, opts) +.. js:function:: OctoPrintClient.files.delete(location, path, opts) Deletes the file or folder at ``location`` and ``path``. @@ -109,7 +109,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.copy(location, path, destination, opts) +.. js:function:: OctoPrintClient.files.copy(location, path, destination, opts) Copies file or folder ``path`` on ``location`` to new parent folder ``destination`` on ``location``. @@ -129,7 +129,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.move(location, filename, destination, opts) +.. js:function:: OctoPrintClient.files.move(location, filename, destination, opts) Moves file or folder ``path`` on ``location`` to new parent folder ``destination`` on ``location``. @@ -149,7 +149,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.createFolder(location, name, path, opts) +.. js:function:: OctoPrintClient.files.createFolder(location, name, path, opts) Creates a new folder ``name`` on ``location``. If ``path`` is provided and not empty the folder will be created as a new child of it. @@ -173,7 +173,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.upload(location, file, data) +.. js:function:: OctoPrintClient.files.upload(location, file, data) Uploads a ``file`` to the specified ``location``. @@ -200,7 +200,7 @@ :param object or string file: The file to upload, see :js:func:`OctoPrint.upload` for more details :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.download(location, path, opts) +.. js:function:: OctoPrintClient.files.download(location, path, opts) Downloads the file at ``path`` in ``location``. @@ -222,7 +222,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.files.pathForEntry(entry) +.. js:function:: OctoPrintClient.files.pathForEntry(entry) Utility function to retrieve the path within its location for a given ``entry``. @@ -242,7 +242,7 @@ :param object entry: The entry object for which to retrieve the path :returns string: The path of the entry within its location -.. js:function:: OctoPrint.files.entryForPath(path, root) +.. js:function:: OctoPrintClient.files.entryForPath(path, root) Utility function to retrieve an entry by its ``path`` based on an entry tree provided by its ``root``. diff --git a/docs/jsclientlib/index.rst b/docs/jsclientlib/index.rst index 103e09ff0..d97da3bf4 100644 --- a/docs/jsclientlib/index.rst +++ b/docs/jsclientlib/index.rst @@ -43,6 +43,41 @@ because the library depends on those to be available (as ``$`` and ``_``). You c Note that all components depend on the ``base`` component to be present, so if you are only including a select number of components, make sure to at the very least include that one to be able to utilize the client. +When you import the client library as described above, a global variable ``OctoPrint`` will become available, which is +a prepared instance of the ``OctoPrintClient`` class the library assembles from registered components. You can directly +used that singular ``OctoPrint`` instance if you only need to talk to one OctoPrint server: + +.. code-block:: javascript + + OctoPrint.options.baseurl = "http://example.com/octoprint/" + OctoPrint.options.apikey = "apikey"; + + OctoPrint.files.list() + .done(function(response) { + // do something with the response + }); + +If you want to access multiple servers, you should however instead instantiate your own clients. You can provide the +connection options (``baseurl`` and ``apikey``) directly in the constructor or set them later: + +.. code-block:: javascript + + var client1 = new OctoPrintClient({baseurl: "http://example.com/octoprint1/", apikey: "apikey1"}); + + var client2 = new OctoPrintClient(); + client2.options.baseurl = "http://example.com/octoprint2/"; + client2.options.apikey = "apikey2"; + + client1.files.list() + .done(function(response) { + // do something with the response for server 1 + }); + + client2.files.list() + .done(function(response) { + // do something with the response for server 2 + }); + .. seealso:: `OctoPrint-ForceLogin `_ diff --git a/docs/jsclientlib/job.rst b/docs/jsclientlib/job.rst index 3dd373232..eed5ac808 100644 --- a/docs/jsclientlib/job.rst +++ b/docs/jsclientlib/job.rst @@ -1,9 +1,9 @@ -.. sec-jsclientlib-job: +.. _sec-jsclientlib-job: -:mod:`OctoPrint.job` --------------------- +:mod:`OctoPrintClient.job` +-------------------------- -.. js:function:: OctoPrint.job.get(opts) +.. js:function:: OctoPrintClient.job.get(opts) Retrieves information about the current job. @@ -12,7 +12,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.job.start(opts) +.. js:function:: OctoPrintClient.job.start(opts) Starts the current job. @@ -21,7 +21,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.job.cancel(opts) +.. js:function:: OctoPrintClient.job.cancel(opts) Cancels the current job. @@ -30,7 +30,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.job.restart(opts) +.. js:function:: OctoPrintClient.job.restart(opts) Restarts the current job. This is equivalent to cancelling and immediately restarting the job. @@ -53,7 +53,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.job.pause(opts) +.. js:function:: OctoPrintClient.job.pause(opts) Pauses the current job if it's running, does nothing if it's already paused. @@ -62,7 +62,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.job.resume(opts) +.. js:function:: OctoPrintClient.job.resume(opts) Resumes the current job if it's currently pause, does nothing if it's running. @@ -71,7 +71,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.job.togglePause(opts) +.. js:function:: OctoPrintClient.job.togglePause(opts) Resumes a paused and pauses a running job. diff --git a/docs/jsclientlib/languages.rst b/docs/jsclientlib/languages.rst index 5eae20154..5e187525f 100644 --- a/docs/jsclientlib/languages.rst +++ b/docs/jsclientlib/languages.rst @@ -1,28 +1,28 @@ -.. sec-jsclientlib-languages: +.. _sec-jsclientlib-languages: -:mod:`OctoPrint.languages` --------------------------- +:mod:`OctoPrintClient.languages` +-------------------------------- .. note:: All methods here require that the used API token or a the existing browser session has admin rights. -.. js:function:: OctoPrint.languages.list(opts) +.. js:function:: OctoPrintClient.languages.list(opts) Retrieves a list of available language packs. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.languages.upload(file) +.. js:function:: OctoPrintClient.languages.upload(file) Uploads a language pack. :param object or string file: The file to upload, see :js:func:`OctoPrint.upload` for more details :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.languages.delete(locale, pack, opts) +.. js:function:: OctoPrintClient.languages.delete(locale, pack, opts) Deletes the language pack ``pack`` for the specified locale ``locale``. diff --git a/docs/jsclientlib/logs.rst b/docs/jsclientlib/logs.rst index 6aeab66be..41d928661 100644 --- a/docs/jsclientlib/logs.rst +++ b/docs/jsclientlib/logs.rst @@ -1,14 +1,14 @@ -.. sec-jsclientlib-logs: +.. _sec-jsclientlib-logs: -:mod:`OctoPrint.logs` ---------------------- +:mod:`OctoPrintClient.logs` +--------------------------- .. note:: All methods here require that the used API token or a the existing browser session has admin rights. -.. js:function:: OctoPrint.logs.list(opts) +.. js:function:: OctoPrintClient.logs.list(opts) Retrieves a list of log files. @@ -17,7 +17,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.logs.delete(path, opts) +.. js:function:: OctoPrintClient.logs.delete(path, opts) Deletes the specified log ``path``. @@ -27,7 +27,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.logs.download(path, opts) +.. js:function:: OctoPrintClient.logs.download(path, opts) Downloads the specified log ``file``. diff --git a/docs/jsclientlib/printer.rst b/docs/jsclientlib/printer.rst index f422e56a9..b4e107d45 100644 --- a/docs/jsclientlib/printer.rst +++ b/docs/jsclientlib/printer.rst @@ -1,7 +1,7 @@ -.. sec-jsclientlib-printer: +.. _sec-jsclientlib-printer: -:mod:`OctoPrint.printer` ------------------------- +:mod:`OctoPrintClient.printer` +------------------------------ .. note:: @@ -15,7 +15,7 @@ .. contents:: :local: -.. js:function:: OctoPrint.printer.getFullState(flags, opts) +.. js:function:: OctoPrintClient.printer.getFullState(flags, opts) Retrieves the full printer state, including temperature information, sd state and general printer state. @@ -34,7 +34,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.getToolState(flags, opts) +.. js:function:: OctoPrintClient.printer.getToolState(flags, opts) Retrieves the current printer extruder state/temperature information, and optionally also the temperature history. @@ -52,7 +52,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.setToolTargetTemperatures(targets, opts) +.. js:function:: OctoPrintClient.printer.setToolTargetTemperatures(targets, opts) Sets the given temperatures on the printer's extruders. @@ -72,7 +72,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.setToolTemperatureOffsets(offsets, opts) +.. js:function:: OctoPrintClient.printer.setToolTemperatureOffsets(offsets, opts) Sets the given temperature offsets for the printer's extruders. @@ -93,7 +93,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.selectTool(tool, opts) +.. js:function:: OctoPrintClient.printer.selectTool(tool, opts) Selects the printer's current extruder. @@ -119,7 +119,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.extrude(amount, opts) +.. js:function:: OctoPrintClient.printer.extrude(amount, opts) Extrudes or retracts ``amount`` mm of filament on the currently selected extruder. @@ -140,7 +140,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.setFlowrate(factor, opts) +.. js:function:: OctoPrintClient.printer.setFlowrate(factor, opts) Sets the current flowrate multiplier. @@ -152,7 +152,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.getBedState(data, opts) +.. js:function:: OctoPrintClient.printer.getBedState(data, opts) Retrieves the current printer bed state/temperature information, and optionally also the temperature history. @@ -170,7 +170,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.setBedTargetTemperature(target, opts) +.. js:function:: OctoPrintClient.printer.setBedTargetTemperature(target, opts) Sets the given temperature on the printer's heated bed (if available). @@ -190,7 +190,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.setBedTemperatureOffset(offset, opts) +.. js:function:: OctoPrintClient.printer.setBedTemperatureOffset(offset, opts) Sets the given temperature offset for the printer's heated bed (if available). @@ -210,7 +210,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.jog(amounts, opts) +.. js:function:: OctoPrintClient.printer.jog(amounts, opts) Jogs the specified axes by the specified ``amounts``. @@ -237,7 +237,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.home(axes, opts) +.. js:function:: OctoPrintClient.printer.home(axes, opts) Homes the specified ``axes``. @@ -263,7 +263,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.setFeedrate(factor, opts) +.. js:function:: OctoPrintClient.printer.setFeedrate(factor, opts) Sets the feedrate multiplier to use. @@ -275,7 +275,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.getSdState(opts) +.. js:function:: OctoPrintClient.printer.getSdState(opts) Retrieves the current ready state of the printer's SD card. @@ -284,7 +284,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.initSd(opts) +.. js:function:: OctoPrintClient.printer.initSd(opts) Instructs the printer to initialize its SD card (if present). @@ -293,7 +293,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.refreshSd(opts) +.. js:function:: OctoPrintClient.printer.refreshSd(opts) Instructs the printer to refresh the list of files on the SD card (if present). @@ -302,7 +302,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printer.releaseSd(opts) +.. js:function:: OctoPrintClient.printer.releaseSd(opts) Instructs the printer to release its SD card (if present). diff --git a/docs/jsclientlib/printerprofiles.rst b/docs/jsclientlib/printerprofiles.rst index fe0e11a17..b0eacc190 100644 --- a/docs/jsclientlib/printerprofiles.rst +++ b/docs/jsclientlib/printerprofiles.rst @@ -1,22 +1,22 @@ -.. sec-jsclientlib-printerprofiles: +.. _sec-jsclientlib-printerprofiles: -:mod:`OctoPrint.printerprofiles` --------------------------------- +:mod:`OctoPrintClient.printerprofiles` +-------------------------------------- -.. js:function:: OctoPrint.printerprofiles.list(opts) +.. js:function:: OctoPrintClient.printerprofiles.list(opts) Retrieves a list of all configured printer profiles. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printerprofiles.get(id, opts) +.. js:function:: OctoPrintClient.printerprofiles.get(id, opts) :param string id: The identifier of the profile to retrieve :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printerprofiles.add(profile, additional, opts) +.. js:function:: OctoPrintClient.printerprofiles.add(profile, additional, opts) Adds a new profile to OctoPrint. @@ -25,7 +25,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printerprofiles.update(id, profile, opts) +.. js:function:: OctoPrintClient.printerprofiles.update(id, profile, opts) Updates an existing profile in OctoPrint. @@ -34,7 +34,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.printerprofiles.delete(id, opts) +.. js:function:: OctoPrintClient.printerprofiles.delete(id, opts) Deletes a profile in OctoPrint. diff --git a/docs/jsclientlib/settings.rst b/docs/jsclientlib/settings.rst index 25a6aeb63..a88947186 100644 --- a/docs/jsclientlib/settings.rst +++ b/docs/jsclientlib/settings.rst @@ -1,16 +1,16 @@ -.. sec-jsclientlib-settings: +.. _sec-jsclientlib-settings: -:mod:`OctoPrint.settings` -------------------------- +:mod:`OctoPrintClient.settings` +------------------------------- -.. js:function:: OctoPrint.settings.get(opts) +.. js:function:: OctoPrintClient.settings.get(opts) Retrieves the current settings. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.settings.save(settings, opts) +.. js:function:: OctoPrintClient.settings.save(settings, opts) Saves the provided ``settings``. @@ -18,7 +18,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.settings.getPluginSettings(plugin, opts) +.. js:function:: OctoPrintClient.settings.getPluginSettings(plugin, opts) Retrieves the settings of the specified ``plugin``. @@ -26,7 +26,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.settings.savePluginSettings(plugin, settings, opts) +.. js:function:: OctoPrintClient.settings.savePluginSettings(plugin, settings, opts) Saves the ``settings`` for the specified ``plugin``. @@ -35,6 +35,13 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response +.. js:function:: OctoPrintClient.settings.generateApiKey(opts) + + Generate a new system wide API key. + + :param object opts: Additional options for the request + :returns Promise: A `jQuery Promise `_ for the request's response + .. seealso:: :ref:`Settings API ` diff --git a/docs/jsclientlib/slicing.rst b/docs/jsclientlib/slicing.rst index 9d5377759..af5dc20c3 100644 --- a/docs/jsclientlib/slicing.rst +++ b/docs/jsclientlib/slicing.rst @@ -1,16 +1,16 @@ -.. sec-jsclientlib-slicing: +.. _sec-jsclientlib-slicing: -:mod:`OctoPrint.slicing` ------------------------- +:mod:`OctoPrintClient.slicing` +------------------------------ -.. js:function:: OctoPrint.slicing.listAllSlicersAndProfiles(opts) +.. js:function:: OctoPrintClient.slicing.listAllSlicersAndProfiles(opts) Retrieves a list of all slicers and their available slicing profiles. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.slicing.listProfilesForSlicer(slicer, opts) +.. js:function:: OctoPrintClient.slicing.listProfilesForSlicer(slicer, opts) Retrieves of all slicing profiles for the specified ``slicer``. @@ -18,7 +18,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.slicing.getProfileForSlicer(slicer, profileId, opts) +.. js:function:: OctoPrintClient.slicing.getProfileForSlicer(slicer, profileId, opts) Retrieves the slicing profile with ``profileId`` for the specified ``slicer``. @@ -27,7 +27,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.slicing.addProfileForSlicer(slicer, profileId, profile, opts) +.. js:function:: OctoPrintClient.slicing.addProfileForSlicer(slicer, profileId, profile, opts) Adds the profile with identifier ``profileId`` to the specified ``slicer``, using the provided ``profile`` data. @@ -37,7 +37,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.slicing.updateProfileForSlicer(slicer, profileId, profile, opts) +.. js:function:: OctoPrintClient.slicing.updateProfileForSlicer(slicer, profileId, profile, opts) Updates the profile ``profileId`` for ``slicer`` with the provided ``profile`` data. @@ -47,7 +47,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.slicing.deleteProfileForSlicer(slicer, profileId, opts) +.. js:function:: OctoPrintClient.slicing.deleteProfileForSlicer(slicer, profileId, opts) Deletes the profile ``profileId`` for ``slicer``. diff --git a/docs/jsclientlib/socket.rst b/docs/jsclientlib/socket.rst index 835ba8390..844b845a5 100644 --- a/docs/jsclientlib/socket.rst +++ b/docs/jsclientlib/socket.rst @@ -1,24 +1,24 @@ -.. sec-jsclientlib-socket: +.. _sec-jsclientlib-socket: -:mod:`OctoPrint.socket` ------------------------ +:mod:`OctoPrintClient.socket` +----------------------------- -.. js:data:: OctoPrint.socket.options +.. js:attribute:: OctoPrintClient.socket.options The socket client's options. - ``OctoPrint.socket.options.timeouts`` + ``OctoPrintClient.socket.options.timeouts`` A list of consecutive timeouts after which to attempt reconnecting to a disconnected sockets, in seconds. Defaults to ``[1, 1, 2, 3, 5, 8, 13, 20, 40, 100]``. The default setting here makes the client slowly back off after the first couple of very fast connection attempts don't succeed, and give up after 10 tries. - ``OctoPrint.socket.options.rateSlidingWindowSize`` + ``OctoPrintClient.socket.options.rateSlidingWindowSize`` Number of last rate measurements to take into account for timing analysis and communication throttling. See :ref:`Communication Throttling ` below. -.. js:function:: OctoPrint.socket.connect(opts) +.. js:function:: OctoPrintClient.socket.connect(opts) Connects the socket client to OctoPrint's `SockJS `_ socket. @@ -27,15 +27,15 @@ :param object opts: Additional options for the SockJS constructor. -.. js:function:: OctoPrint.socket.reconnect() +.. js:function:: OctoPrintClient.socket.reconnect() Reconnects the socket client. If the socket is currently connected it will be disconnected first. -.. js:function:: OctoPrint.socket.disconnect() +.. js:function:: OctoPrintClient.socket.disconnect() Disconnects the socket client. -.. js:function:: OctoPrint.socket.onMessage(message, handler) +.. js:function:: OctoPrintClient.socket.onMessage(message, handler) Registers the ``handler`` for messages of type ``message``. @@ -60,7 +60,7 @@ :param string message: The type of message for which to register :param function handler: The handler function -.. js:function:: OctoPrint.socket.sendMessage(type, payload) +.. js:function:: OctoPrintClient.socket.sendMessage(type, payload) Sends a message of type ``type`` with the provided ``payload`` to the server. @@ -70,7 +70,7 @@ :param string type: Type of message to send :param object payload: Payload to send -.. js:function:: OctoPrint.socket.onRateTooLow(measured, minimum) +.. js:function:: OctoPrintClient.socket.onRateTooLow(measured, minimum) Called by the socket client when the measured message round trip times have been lower than the current lower processing limit over the full sliding window, indicating that messages @@ -82,7 +82,7 @@ :param Number measured: Maximal measured message round trip time :param Number minimum: Lower round trip time limit for keeping the rate -.. js:function:: OctoPrint.socket.onRateTooHigh(measured, maximum) +.. js:function:: OctoPrintClient.socket.onRateTooHigh(measured, maximum) Called by the socket client when the last measured round trip time was higher than the current upper procesisng limit, indicating that the messages are now processed slower than @@ -94,11 +94,11 @@ :param Number measured: Measured message round trip time :param Number minimum: Upper round trip time limit for keeping the rate -.. js:function:: OctoPrint.socket.increaseRate() +.. js:function:: OctoPrintClient.socket.increaseRate() Instructs the server to increase the message rate by 500ms. -.. js:function:: OctoPrint.socket.decreaseRate() +.. js:function:: OctoPrintClient.socket.decreaseRate() Instructs the server to decrease the message rate by 500ms. diff --git a/docs/jsclientlib/system.rst b/docs/jsclientlib/system.rst index e313e27b1..709977141 100644 --- a/docs/jsclientlib/system.rst +++ b/docs/jsclientlib/system.rst @@ -1,21 +1,21 @@ .. sec-jsclientlib-system: -:mod:`OctoPrint.system` ------------------------ +:mod:`OctoPrintClient.system` +----------------------------- .. note:: All methods here require that the used API token or a the existing browser session has admin rights. -.. js:function:: OctoPrint.system.getCommands(opts) +.. js:function:: OctoPrintClient.system.getCommands(opts) Retrieves a list of configured system commands for both ``core`` and ``custom`` sources. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.system.getCommandsForSource(source, opts) +.. js:function:: OctoPrintClient.system.getCommandsForSource(source, opts) Retrieves a list of system commands, limiting it to the specified ``source``, which might be either ``core`` or ``custom``. @@ -23,7 +23,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.system.executeCommand(source, action, opts) +.. js:function:: OctoPrintClient.system.executeCommand(source, action, opts) Executes command ``action`` on ``source``. diff --git a/docs/jsclientlib/timelapse.rst b/docs/jsclientlib/timelapse.rst index 5a2e9047a..a16b8ec9a 100644 --- a/docs/jsclientlib/timelapse.rst +++ b/docs/jsclientlib/timelapse.rst @@ -1,9 +1,9 @@ -.. sec-jsclientlib-timelapse: +.. _sec-jsclientlib-timelapse: -:mod:`OctoPrint.timelapse` --------------------------- +:mod:`OctoPrintClient.timelapse` +-------------------------------- -.. js:function:: OctoPrint.timelapse.get(unrendered, opts) +.. js:function:: OctoPrintClient.timelapse.get(unrendered, opts) Get a list of all timelapses and the current timelapse config. @@ -13,7 +13,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.timelapse.list(opts) +.. js:function:: OctoPrintClient.timelapse.list(opts) Get the lists of rendered and unrendered timelapses. The returned promis will be resolved with an object containing the properties ``rendered`` @@ -23,21 +23,21 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.timelapse.listRendered(opts) +.. js:function:: OctoPrintClient.timelapse.listRendered(opts) Get the list of rendered timelapses. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.timelapse.listUnrendered(opts) +.. js:function:: OctoPrintClient.timelapse.listUnrendered(opts) Get the list of unrendered timelapses. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.timelapse.download(filename, opts) +.. js:function:: OctoPrintClient.timelapse.download(filename, opts) Download the rendered timelapse ``filename``. @@ -45,7 +45,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.timelapse.delete(filename, opts) +.. js:function:: OctoPrintClient.timelapse.delete(filename, opts) Delete the rendered timelapse ``filename``. @@ -53,7 +53,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.timelapse.deleteUnrendered(name, opts) +.. js:function:: OctoPrintClient.timelapse.deleteUnrendered(name, opts) Delete the unrendered timelapse ``name``. @@ -61,7 +61,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.timelapse.renderUnrendered(name, opts) +.. js:function:: OctoPrintClient.timelapse.renderUnrendered(name, opts) Render the unrendered timelapse ``name``. @@ -69,14 +69,14 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.timelapse.getConfig(opts) +.. js:function:: OctoPrintClient.timelapse.getConfig(opts) Get the current timelapse configuration. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.timelapse.saveConfig(config, opts) +.. js:function:: OctoPrintClient.timelapse.saveConfig(config, opts) Save the timelapse configuration. diff --git a/docs/jsclientlib/users.rst b/docs/jsclientlib/users.rst index c86b5d198..a07ac7cf9 100644 --- a/docs/jsclientlib/users.rst +++ b/docs/jsclientlib/users.rst @@ -1,7 +1,7 @@ -.. sec-jsclientlib-users: +.. _sec-jsclientlib-users: -:mod:`OctoPrint.users` ----------------------- +:mod:`OctoPrintClient.users` +---------------------------- .. note:: @@ -9,7 +9,7 @@ has admin rights *or* corresponds to the user to be modified. Some methods definitely require admin rights. -.. js:function:: OctoPrint.users.list(opts) +.. js:function:: OctoPrintClient.users.list(opts) Get a list of all registered users. @@ -18,7 +18,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.users.get(name, opts) +.. js:function:: OctoPrintClient.users.get(name, opts) Get information about a specific user. @@ -26,7 +26,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.users.add(user, opts) +.. js:function:: OctoPrintClient.users.add(user, opts) Add a new user. @@ -36,7 +36,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.users.update(name, active, admin, opts) +.. js:function:: OctoPrintClient.users.update(name, active, admin, opts) Update an existing user. @@ -48,7 +48,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.users.delete(name, opts) +.. js:function:: OctoPrintClient.users.delete(name, opts) Delete an existing user. @@ -58,7 +58,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.users.changePassword(name, password, opts) +.. js:function:: OctoPrintClient.users.changePassword(name, password, opts) Change the password for a user. @@ -67,7 +67,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.users.generateApiKey(name, opts) +.. js:function:: OctoPrintClient.users.generateApiKey(name, opts) Generate a new API key for a user. @@ -75,7 +75,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.users.resetApiKey(name, opts) +.. js:function:: OctoPrintClient.users.resetApiKey(name, opts) Reset the API key for a user to being unset. @@ -83,7 +83,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.users.getSettings(name, opts) +.. js:function:: OctoPrintClient.users.getSettings(name, opts) Get the settings for a user. @@ -91,7 +91,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.users.saveSettings(name, settings, opts) +.. js:function:: OctoPrintClient.users.saveSettings(name, settings, opts) Save the settings for a user. diff --git a/docs/jsclientlib/util.rst b/docs/jsclientlib/util.rst index ecc8246c5..6168e1af5 100644 --- a/docs/jsclientlib/util.rst +++ b/docs/jsclientlib/util.rst @@ -1,14 +1,14 @@ -.. sec-jsclientlib-util: +.. _sec-jsclientlib-util: -:mod:`OctoPrint.util` ---------------------- +:mod:`OctoPrintClient.util` +--------------------------- .. note:: All methods here require that the used API token or a the existing browser session has admin rights. -.. js:function:: OctoPrint.util.test(command, parameters, opts) +.. js:function:: OctoPrintClient.util.test(command, parameters, opts) Execute a :ref:`test command `. @@ -19,7 +19,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.util.testPath(path, additional, opts) +.. js:function:: OctoPrintClient.util.testPath(path, additional, opts) Test the provided ``path`` for existance. More test criteria supported by the :ref:`path test command ` can be provided via the ``additional`` object. @@ -59,7 +59,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.util.testExecutable(path, opts) +.. js:function:: OctoPrintClient.util.testExecutable(path, opts) Shortcut to test if a provided ``path`` exists and is executable by OctoPrint. @@ -95,7 +95,7 @@ :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.util.testUrl(url, additional, opts) +.. js:function:: OctoPrintClient.util.testUrl(url, additional, opts) Test if a URL can be accessed. More test criteria supported by the :ref:`URL test command ` can be provided via the ``additional`` object. diff --git a/docs/jsclientlib/wizard.rst b/docs/jsclientlib/wizard.rst index 3a124f942..12a0cad25 100644 --- a/docs/jsclientlib/wizard.rst +++ b/docs/jsclientlib/wizard.rst @@ -1,21 +1,21 @@ -.. sec-jsclientlib-wizard: +.. _sec-jsclientlib-wizard: -:mod:`OctoPrint.wizard` ------------------------ +:mod:`OctoPrintClient.wizard` +----------------------------- .. note:: All methods here require that the used API token or a the existing browser session has admin rights. -.. js:function:: OctoPrint.wizard.get(opts) +.. js:function:: OctoPrintClient.wizard.get(opts) Retrieve additional data about registered wizards. :param object opts: Additional options for the request :returns Promise: A `jQuery Promise `_ for the request's response -.. js:function:: OctoPrint.wizard.finish(handled, opts) +.. js:function:: OctoPrintClient.wizard.finish(handled, opts) Inform wizards that the wizard dialog has been finished. diff --git a/docs/plugins/hooks.rst b/docs/plugins/hooks.rst index cfdf3800f..0d9172285 100644 --- a/docs/plugins/hooks.rst +++ b/docs/plugins/hooks.rst @@ -922,3 +922,35 @@ octoprint.ui.web.templatetypes :param dict template_sorting: read-only dictionary of currently configured template sorting specifications :return: a list of 3-tuples (template type, rule, sorting spec) :rtype: list + +.. _sec-plugins-hook-timelapse-capture-pre: + +octoprint.timelapse.capture.pre +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. py:function:: capture_pre_hook(filename) + + Perform specific actions prior to capturing a timelapse frame. + + ``filename`` will be the future path of the frame to be saved. + + :param str filename: The future path of the frame to be saved. + :return: None + :rtype: None + +.. _sec-plugins-hook-timelapse-capture-post: + +octoprint.timelapse.capture.post +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. py:function:: capture_post_hook(filename, success) + + Perform specific actions after capturing a timelapse frame. + + ``filename`` will be the path of the frame that should have been saved. + ``sucesss`` indicates whether the capture was successful or not. + + :param str filename: The path of the frame that should have been saved. + :param boolean success: Indicates whether the capture was successful or not. + :return: None + :rtype: None \ No newline at end of file diff --git a/scripts/octoprint.init b/scripts/octoprint.init index 97601ebb4..cf047dd10 100644 --- a/scripts/octoprint.init +++ b/scripts/octoprint.init @@ -13,7 +13,7 @@ # /etc/default/octoprint. ### END INIT INFO -# Author: Sami Olmari +# Author: Sami Olmari & Gina Häußge PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="OctoPrint Daemon" @@ -21,9 +21,14 @@ NAME="OctoPrint" PKGNAME=octoprint PIDFILE=/var/run/$PKGNAME.pid SCRIPTNAME=/etc/init.d/$PKGNAME +DEFAULTS=/etc/default/$PKGNAME # Read configuration variable file if it is present -[ -r /etc/default/$PKGNAME ] && . /etc/default/$PKGNAME +[ -r $DEFAULTS ] && . $DEFAULTS + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. +. /lib/lsb/init-functions # Exit if the DAEMON is not set if [ -z "$DAEMON" ] @@ -38,10 +43,6 @@ fi # Load the VERBOSE setting and other rcS variables [ -f /etc/default/rcS ] && . /etc/default/rcS -# Define LSB log_* functions. -# Depend on lsb-base (>= 3.0-6) to ensure that this file is present. -. /lib/lsb/init-functions - if [ -z "$START" -o "$START" != "yes" ] then log_warning_msg "Not starting $PKGNAME, edit /etc/default/$PKGNAME to start it." @@ -55,12 +56,12 @@ then fi COMMAND_ARGS= -if [ -z "$BASEDIR" ] +if [ -n "$BASEDIR" ] then COMMAND_ARGS="--basedir $BASEDIR $COMMAND_ARGS" fi -if [ -z "$CONFIGFILE" ] +if [ -n "$CONFIGFILE" ] then COMMAND_ARGS="--config $CONFIGFILE $COMMAND_ARGS" fi @@ -91,7 +92,7 @@ do_start() if [ $RETVAL != 0 ]; then start-stop-daemon --start --background --quiet --pidfile $PIDFILE --make-pidfile \ --exec $DAEMON --chuid $OCTOPRINT_USER --user $OCTOPRINT_USER --umask $UMASK --nicelevel=$NICELEVEL \ - -- $COMMAND_ARGS serve $DAEMON_ARGS + -- serve $COMMAND_ARGS $DAEMON_ARGS RETVAL="$?" fi } diff --git a/setup.py b/setup.py index 17f6e199e..029ac10c4 100644 --- a/setup.py +++ b/setup.py @@ -14,44 +14,49 @@ import octoprint_setuptools # Requirements for our application INSTALL_REQUIRES = [ - "flask>=0.9,<0.11", - "werkzeug>=0.8.3,<0.9", - "tornado==4.0.2", # pinned for now, we need to migrate to a newer tornado, but due - # to some voodoo needed to get large streamed uploads and downloads - # to work that is probably not completely straightforward and therefore - # something for post-1.3.0-stable release + "flask>=0.12,<0.13", + "werkzeug>=0.11.1,<0.12", + "tornado>=4.4.2,<4.5", + "Jinja2>=2.8,<2.9", # Jinja 2.9 has breaking changes WRT template scope - we can't + # guarantee backwards compatibility for plugins and such with that + # version, hence we need to pin to a lower version for now. See #1697 "sockjs-tornado>=1.0.2,<1.1", - "PyYAML>=3.10,<3.11", - "Flask-Login>=0.2.2,<0.3", - "Flask-Principal>=0.3.5,<0.4", - "Flask-Babel>=0.9,<0.10", - "Flask-Assets>=0.10,<0.11", + "PyYAML>=3.12,<3.13", + "Flask-Login>=0.4,<0.5", + "Flask-Principal>=0.4,<0.5", + "Flask-Babel>=0.11,<0.12", + "Flask-Assets>=0.12,<0.13", "markdown>=2.6.4,<2.7", - "pyserial>=3.0,<3.1", + "pyserial>=3.2.1,<3.3", "netaddr>=0.7.17,<0.8", "watchdog>=0.8.3,<0.9", "sarge>=0.1.4,<0.2", "netifaces>=0.10,<0.11", "pylru>=1.0.9,<1.1", - "rsa>=3.2,<3.3", - "pkginfo>=1.2.1,<1.3", - "requests>=2.7,<2.8", - "semantic_version>=2.4.2,<2.5", - "psutil>=3.2.1,<3.3", - "Click>=6.2,<6.3", + "rsa>=3.4,<3.5", + "pkginfo>=1.4.1,<1.5", + "requests>=2.13.0,<2.14", + "semantic_version>=2.6.0,<2.7", + "psutil>=5.1.3,<5.2", + "Click>=6.7,<6.8", "awesome-slugify>=1.6.5,<1.7", "feedparser>=5.2.1,<5.3", "chainmap>=1.0.2,<1.1", "future>=0.15,<0.16", - "scandir>=1.3,<1.4" + "scandir>=1.3,<1.4", + "websocket-client>=0.40,<0.41", + "python-dateutil>=2.6,<2.7" ] +if sys.platform == "darwin": + INSTALL_REQUIRES.append("appdirs>=1.4.0") + # Additional requirements for optional install options EXTRA_REQUIRES = dict( # Dependencies for developing OctoPrint develop=[ # Testing dependencies - "mock>=1.0.1,<1.1", + "mock>=2.0,<2.1", "nose>=1.3.0,<1.4", "ddt", @@ -66,7 +71,7 @@ EXTRA_REQUIRES = dict( # Dependencies for developing OctoPrint plugins plugins=[ - "cookiecutter>=1.4,<1.5" + "cookiecutter>=1.5,<1.6" ] ) diff --git a/src/octoprint/__init__.py b/src/octoprint/__init__.py index 4c389d00c..3e24895ff 100644 --- a/src/octoprint/__init__.py +++ b/src/octoprint/__init__.py @@ -58,7 +58,8 @@ class FatalStartupError(BaseException): def init_platform(basedir, configfile, use_logging_file=True, logging_file=None, logging_config=None, debug=False, verbosity=0, uncaught_logger=None, uncaught_handler=None, safe_mode=False, after_preinit_logging=None, - after_settings=None, after_logging=None, after_safe_mode=None): + after_settings=None, after_logging=None, after_safe_mode=None, + after_plugin_manager=None): kwargs = dict() logger, recorder = preinit_logging(debug, verbosity, uncaught_logger, uncaught_handler) @@ -94,6 +95,11 @@ def init_platform(basedir, configfile, use_logging_file=True, logging_file=None, after_safe_mode(**kwargs) plugin_manager = init_pluginsystem(settings, safe_mode=safe_mode) + kwargs["plugin_manager"] = plugin_manager + + if callable(after_plugin_manager): + after_plugin_manager(**kwargs) + return settings, logger, safe_mode, plugin_manager @@ -176,7 +182,7 @@ def init_logging(settings, use_logging_file=True, logging_file=None, default_con "stream": "ext://sys.stdout" }, "file": { - "class": "octoprint.logging.handlers.CleaningTimedRotatingFileHandler", + "class": "octoprint.logging.handlers.OctoPrintLogHandler", "level": "DEBUG", "formatter": "simple", "when": "D", @@ -245,6 +251,7 @@ def init_logging(settings, use_logging_file=True, logging_file=None, default_con if verbosity > 2: default_config["root"]["level"] = "DEBUG" + config = default_config if use_logging_file: # further logging configuration from file... if logging_file is None: @@ -257,9 +264,8 @@ def init_logging(settings, use_logging_file=True, logging_file=None, default_con config_from_file = yaml.safe_load(f) # we merge that with the default config - config = dict_merge(default_config, config_from_file) - else: - config = default_config + if config_from_file is not None and isinstance(config_from_file, dict): + config = dict_merge(default_config, config_from_file) # configure logging globally return set_logging_config(config, debug, verbosity, uncaught_logger, uncaught_handler) diff --git a/src/octoprint/cli/__init__.py b/src/octoprint/cli/__init__.py index 826ebbc0f..8ea8db7f1 100644 --- a/src/octoprint/cli/__init__.py +++ b/src/octoprint/cli/__init__.py @@ -7,6 +7,7 @@ __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms import click import octoprint +import sys #~~ click context @@ -47,15 +48,25 @@ def hidden_option(*param_decls, **attrs): return f return decorator -#~~ helper for settings context options +#~~ helper for setting context options def set_ctx_obj_option(ctx, param, value): """Helper for setting eager options on the context.""" if ctx.obj is None: ctx.obj = OctoPrintContext() - - if hasattr(ctx.obj, param.name): + if value != param.default: setattr(ctx.obj, param.name, value) + elif param.default is not None: + setattr(ctx.obj, param.name, param.default) + +#~~ helper for retrieving context options + +def get_ctx_obj_option(ctx, key, default, include_parents=True): + if include_parents and hasattr(ctx, "parent") and ctx.parent: + fallback = get_ctx_obj_option(ctx.parent, key, default) + else: + fallback = default + return getattr(ctx.obj, key, fallback) #~~ helper for setting a lot of bulk options @@ -105,13 +116,13 @@ def standard_options(hidden=False): #~~ helper for settings legacy options we still have to support on "octoprint" legacy_options = bulk_options([ - hidden_option("--host", type=click.STRING), - hidden_option("--port", type=click.INT), - hidden_option("--logging", type=click.Path()), - hidden_option("--debug", "-d", is_flag=True), - hidden_option("--daemon", type=click.Choice(["start", "stop", "restart"])), - hidden_option("--pid", type=click.Path(), default="/tmp/octoprint.pid"), - hidden_option("--iknowwhatimdoing", "allow_root", is_flag=True), + hidden_option("--host", type=click.STRING, callback=set_ctx_obj_option), + hidden_option("--port", type=click.INT, callback=set_ctx_obj_option), + hidden_option("--logging", type=click.Path(), callback=set_ctx_obj_option), + hidden_option("--debug", "-d", is_flag=True, callback=set_ctx_obj_option), + hidden_option("--daemon", type=click.Choice(["start", "stop", "restart"]), callback=set_ctx_obj_option), + hidden_option("--pid", type=click.Path(), default="/tmp/octoprint.pid", callback=set_ctx_obj_option), + hidden_option("--iknowwhatimdoing", "allow_root", is_flag=True, callback=set_ctx_obj_option), ]) """Legacy options available directly on the "octoprint" command in earlier versions. Kept available for reasons of backwards compatibility, but hidden from the @@ -129,9 +140,9 @@ from .config import config_commands sources=[server_commands, plugin_commands, dev_commands, client_commands, config_commands]) @standard_options() @legacy_options -@click.version_option(version=octoprint.__version__) +@click.version_option(version=octoprint.__version__, allow_from_autoenv=False) @click.pass_context -def octo(ctx, debug, host, port, logging, daemon, pid, allow_root): +def octo(ctx, **kwargs): if ctx.invoked_subcommand is None: # We have to support calling the octoprint command without any @@ -140,16 +151,23 @@ def octo(ctx, debug, host, port, logging, daemon, pid, allow_root): # But better print a message to inform people that they should # use the sub commands instead. + def get_value(key): + return get_ctx_obj_option(ctx, key, kwargs.get(key)) + daemon = get_value("daemon") + if daemon: click.echo("Daemon operation via \"octoprint --daemon " "start|stop|restart\" is deprecated, please use " "\"octoprint daemon start|stop|restart\" from now on") - from octoprint.cli.server import daemon_command - ctx.invoke(daemon_command, debug=debug, pid=pid, daemon=daemon, allow_root=allow_root) + if sys.platform.startswith("linux") or sys.platform.startswith("freebsd"): + from octoprint.cli.server import daemon_command + ctx.invoke(daemon_command, command=daemon, **kwargs) + else: + click.echo("Sorry, daemon mode is not supported under your operating system right now") else: click.echo("Starting the server via \"octoprint\" is deprecated, " "please use \"octoprint serve\" from now on.") from octoprint.cli.server import serve_command - ctx.invoke(serve_command, debug=debug, host=host, port=port, logging=logging, allow_root=allow_root) + ctx.invoke(serve_command, **kwargs) diff --git a/src/octoprint/cli/client.py b/src/octoprint/cli/client.py index dc77f1647..070806ad6 100644 --- a/src/octoprint/cli/client.py +++ b/src/octoprint/cli/client.py @@ -9,7 +9,7 @@ import json import octoprint_client -from octoprint.cli import pass_octoprint_ctx, bulk_options, standard_options +from octoprint.cli import get_ctx_obj_option from octoprint import init_settings, FatalStartupError @@ -29,19 +29,37 @@ def client_commands(): @client_commands.group("client", context_settings=dict(ignore_unknown_options=True)) +@click.option("--apikey", "-a", type=click.STRING) @click.option("--host", "-h", type=click.STRING) @click.option("--port", "-p", type=click.INT) @click.option("--httpuser", type=click.STRING) @click.option("--httppass", type=click.STRING) @click.option("--https", is_flag=True) @click.option("--prefix", type=click.STRING) -@pass_octoprint_ctx @click.pass_context -def client(ctx, obj, host, port, httpuser, httppass, https, prefix): +def client(ctx, apikey, host, port, httpuser, httppass, https, prefix): """Basic API client.""" try: - obj.settings = init_settings(obj.basedir, obj.configfile) - octoprint_client.init_client(obj.settings, https=https, httpuser=httpuser, httppass=httppass, host=host, port=port, prefix=prefix) + if not host or not port or not apikey: + settings = init_settings(get_ctx_obj_option(ctx, "basedir", None), get_ctx_obj_option(ctx, "configfile", None)) + + if not host: + host = settings.get(["server", "host"]) + host = host if host != "0.0.0.0" else "127.0.0.1" + if not port: + port = settings.getInt(["server", "port"]) + + if not apikey: + apikey = settings.get(["api", "key"]) + + baseurl = octoprint_client.build_base_url(https=https, + httpuser=httpuser, + httppass=httppass, + host=host, + port=port, + prefix=prefix) + + ctx.obj.client = octoprint_client.Client(baseurl, apikey) except FatalStartupError as e: click.echo(e.message, err=True) click.echo("There was a fatal error initializing the client.", err=True) @@ -61,27 +79,30 @@ def log_response(response, status_code=True, body=True, headers=False): @client.command("get") @click.argument("path") -def get(path): +@click.pass_context +def get(ctx, path): """Performs a GET request against the specified server path.""" - r = octoprint_client.get(path) + r = ctx.obj.client.get(path) log_response(r) @client.command("post_json") @click.argument("path") @click.argument("data", type=JsonStringParamType()) -def post_json(path, data): +@click.pass_context +def post_json(ctx, path, data): """POSTs JSON data to the specified server path.""" - r = octoprint_client.post_json(path, data) + r = ctx.obj.client.post_json(path, data) log_response(r) @client.command("patch_json") @click.argument("path") @click.argument("data", type=JsonStringParamType()) -def patch_json(path, data): +@click.pass_context +def patch_json(ctx, path, data): """PATCHes JSON data to the specified server path.""" - r = octoprint_client.patch(path, data, encoding="json") + r = ctx.obj.client.patch(path, data, encoding="json") log_response(r) @@ -90,7 +111,8 @@ def patch_json(path, data): @click.argument("file_path", type=click.Path(exists=True, dir_okay=False, resolve_path=True)) @click.option("--json", is_flag=True) @click.option("--yaml", is_flag=True) -def post_from_file(path, file_path, json_flag, yaml_flag): +@click.pass_context +def post_from_file(ctx, path, file_path, json_flag, yaml_flag): """POSTs JSON data to the specified server path.""" if json_flag or yaml_flag: if json_flag: @@ -101,12 +123,12 @@ def post_from_file(path, file_path, json_flag, yaml_flag): with open(file_path, "rb") as fp: data = yaml.safe_load(fp) - r = octoprint_client.post_json(path, data) + r = ctx.obj.client.post_json(path, data) else: with open(file_path, "rb") as fp: data = fp.read() - r = octoprint_client.post(path, data) + r = ctx.obj.client.post(path, data) log_response(r) @@ -118,13 +140,14 @@ def post_from_file(path, file_path, json_flag, yaml_flag): @click.option("--int", "-i", "int_params", multiple=True, nargs=2, type=click.Tuple([unicode, int])) @click.option("--float", "-f", "float_params", multiple=True, nargs=2, type=click.Tuple([unicode, float])) @click.option("--bool", "-b", "bool_params", multiple=True, nargs=2, type=click.Tuple([unicode, bool])) -def command(path, command, str_params, int_params, float_params, bool_params): +@click.pass_context +def command(ctx, path, command, str_params, int_params, float_params, bool_params): """Sends a JSON command to the specified server path.""" data = dict() params = str_params + int_params + float_params + bool_params for param in params: data[param[0]] = param[1] - r = octoprint_client.post_command(path, command, additional=data) + r = ctx.obj.client.post_command(path, command, additional=data) log_response(r, body=False) @@ -134,26 +157,29 @@ def command(path, command, str_params, int_params, float_params, bool_params): @click.option("--parameter", "-P", "params", multiple=True, nargs=2, type=click.Tuple([unicode, unicode])) @click.option("--file-name", type=click.STRING) @click.option("--content-type", type=click.STRING) -def upload(path, file_path, params, file_name, content_type): +@click.pass_context +def upload(ctx, path, file_path, params, file_name, content_type): """Uploads the specified file to the specified server path.""" data = dict() for param in params: data[param[0]] = param[1] - r = octoprint_client.upload(path, file_path, additional=data, file_name=file_name, content_type=content_type) + r = ctx.obj.client.upload(path, file_path, additional=data, file_name=file_name, content_type=content_type) log_response(r) @client.command("delete") @click.argument("path") -def delete(path): +@click.pass_context +def delete(ctx, path): """Sends a DELETE request to the specified server path.""" - r = octoprint_client.delete(path) + r = ctx.obj.client.delete(path) log_response(r) @client.command("listen") -def listen(): +@click.pass_context +def listen(ctx): def on_connect(ws): click.echo(">>> Connected!") @@ -169,11 +195,11 @@ def listen(): def on_message(ws, message_type, message_payload): click.echo("Message: {}, Payload: {}".format(message_type, json.dumps(message_payload))) - socket = octoprint_client.connect_socket(on_connect=on_connect, - on_close=on_close, - on_error=on_error, - on_heartbeat=on_heartbeat, - on_message=on_message) + socket = ctx.obj.client.create_socket(on_connect=on_connect, + on_close=on_close, + on_error=on_error, + on_heartbeat=on_heartbeat, + on_message=on_message) click.echo(">>> Waiting for client to exit") try: diff --git a/src/octoprint/cli/config.py b/src/octoprint/cli/config.py index de0250cd6..5e21aad80 100644 --- a/src/octoprint/cli/config.py +++ b/src/octoprint/cli/config.py @@ -9,7 +9,7 @@ import click import logging from octoprint import init_settings, FatalStartupError -from octoprint.cli import pass_octoprint_ctx, standard_options, bulk_options +from octoprint.cli import pass_octoprint_ctx, standard_options, bulk_options, get_ctx_obj_option import yaml import json @@ -46,13 +46,12 @@ def config_commands(): pass @config_commands.group(name="config") -@pass_octoprint_ctx @click.pass_context -def config(ctx, obj): +def config(ctx): """Basic config manipulation.""" - logging.basicConfig(level=logging.DEBUG if obj.verbosity > 0 else logging.WARN) + logging.basicConfig(level=logging.DEBUG if get_ctx_obj_option(ctx, "verbosity", 0) > 0 else logging.WARN) try: - obj.settings = init_settings(obj.basedir, obj.configfile) + ctx.obj.settings = init_settings(get_ctx_obj_option(ctx, "basedir", None), get_ctx_obj_option(ctx, "configfile", None)) except FatalStartupError as e: click.echo(e.message, err=True) click.echo("There was a fatal error initializing the client.", err=True) @@ -73,7 +72,7 @@ def config(ctx, obj): help="Parse value from json") @pass_octoprint_ctx @click.pass_context -def set_command(ctx, obj, path, value, as_bool, as_float, as_int, as_json): +def set_command(ctx, path, value, as_bool, as_float, as_int, as_json): """Sets a config path to the provided value.""" if as_json: try: @@ -90,16 +89,16 @@ def set_command(ctx, obj, path, value, as_bool, as_float, as_int, as_json): elif as_int: data_type = int - _set_helper(obj.settings, path, value, data_type=data_type) + _set_helper(ctx.obj.settings, path, value, data_type=data_type) @config.command(name="remove") @standard_options(hidden=True) @click.argument("path", type=click.STRING) -@pass_octoprint_ctx -def remove_command(obj, path): +@click.pass_context +def remove_command(ctx, path): """Removes a config path.""" - _set_helper(obj.settings, path, None) + _set_helper(ctx.obj.settings, path, None) @config.command(name="append_value") @@ -107,9 +106,8 @@ def remove_command(obj, path): @click.argument("path", type=click.STRING) @click.argument("value", type=click.STRING) @click.option("--json", "as_json", is_flag=True) -@pass_octoprint_ctx @click.pass_context -def append_value_command(ctx, obj, path, value, as_json=False): +def append_value_command(ctx, path, value, as_json=False): """Appends value to list behind config path.""" path = _to_settings_path(path) @@ -120,7 +118,7 @@ def append_value_command(ctx, obj, path, value, as_json=False): click.echo(e.message, err=True) ctx.exit(-1) - current = obj.settings.get(path) + current = ctx.obj.settings.get(path) if current is None: current = [] if not isinstance(current, list): @@ -128,7 +126,7 @@ def append_value_command(ctx, obj, path, value, as_json=False): ctx.exit(-1) current.append(value) - _set_helper(obj.settings, path, current) + _set_helper(ctx.obj.settings, path, current) @config.command(name="insert_value") @@ -137,9 +135,8 @@ def append_value_command(ctx, obj, path, value, as_json=False): @click.argument("index", type=click.INT) @click.argument("value", type=click.STRING) @click.option("--json", "as_json", is_flag=True) -@pass_octoprint_ctx @click.pass_context -def insert_value_command(ctx, obj, path, index, value, as_json=False): +def insert_value_command(ctx, path, index, value, as_json=False): """Inserts value at index of list behind config key.""" path = _to_settings_path(path) @@ -150,7 +147,7 @@ def insert_value_command(ctx, obj, path, index, value, as_json=False): click.echo(e.message, err=True) ctx.exit(-1) - current = obj.settings.get(path) + current = ctx.obj.settings.get(path) if current is None: current = [] if not isinstance(current, list): @@ -158,7 +155,7 @@ def insert_value_command(ctx, obj, path, index, value, as_json=False): ctx.exit(-1) current.insert(index, value) - _set_helper(obj.settings, path, current) + _set_helper(ctx.obj.settings, path, current) @config.command(name="remove_value") @@ -168,7 +165,7 @@ def insert_value_command(ctx, obj, path, index, value, as_json=False): @click.option("--json", "as_json", is_flag=True) @pass_octoprint_ctx @click.pass_context -def remove_value_command(ctx, obj, path, value, as_json=False): +def remove_value_command(ctx, path, value, as_json=False): """Removes value from list at config path.""" path = _to_settings_path(path) @@ -179,7 +176,7 @@ def remove_value_command(ctx, obj, path, value, as_json=False): click.echo(e.message, err=True) ctx.exit(-1) - current = obj.settings.get(path) + current = ctx.obj.settings.get(path) if current is None: current = [] if not isinstance(current, list): @@ -191,7 +188,7 @@ def remove_value_command(ctx, obj, path, value, as_json=False): ctx.exit() current.remove(value) - _set_helper(obj.settings, path, current) + _set_helper(ctx.obj.settings, path, current) @config.command(name="get") @@ -203,11 +200,11 @@ def remove_value_command(ctx, obj, path, value, as_json=False): @click.option("--raw", "as_raw", is_flag=True, help="Output value as raw string representation") @standard_options(hidden=True) -@pass_octoprint_ctx -def get_command(obj, path, as_json=False, as_yaml=False, as_raw=False): +@click.pass_context +def get_command(ctx, path, as_json=False, as_yaml=False, as_raw=False): """Retrieves value from config path.""" path = _to_settings_path(path) - value = obj.settings.get(path, merged=True) + value = ctx.obj.settings.get(path, merged=True) if as_json: output = json.dumps(value) diff --git a/src/octoprint/cli/plugins.py b/src/octoprint/cli/plugins.py index 44d60952b..8b13eb1c5 100644 --- a/src/octoprint/cli/plugins.py +++ b/src/octoprint/cli/plugins.py @@ -8,7 +8,7 @@ __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms import click import logging -from octoprint.cli import pass_octoprint_ctx, OctoPrintContext +from octoprint.cli import pass_octoprint_ctx, OctoPrintContext, get_ctx_obj_option #~~ "octoprint plugin:command" commands @@ -50,8 +50,8 @@ class OctoPrintPluginCommands(click.MultiCommand): # context (basedir and configfile) from octoprint import init_settings, init_pluginsystem, FatalStartupError try: - self.settings = init_settings(ctx.obj.basedir, ctx.obj.configfile) - self.plugin_manager = init_pluginsystem(self.settings, safe_mode=ctx.obj.safe_mode) + self.settings = init_settings(get_ctx_obj_option(ctx, "basedir", None), get_ctx_obj_option(ctx, "configfile", None)) + self.plugin_manager = init_pluginsystem(self.settings, safe_mode=get_ctx_obj_option(ctx, "safe_mode", False)) except FatalStartupError as e: click.echo(e.message, err=True) click.echo("There was a fatal error initializing the settings or the plugin system.", err=True) diff --git a/src/octoprint/cli/server.py b/src/octoprint/cli/server.py index 2ea6fc4b0..f7539d0a0 100644 --- a/src/octoprint/cli/server.py +++ b/src/octoprint/cli/server.py @@ -9,7 +9,7 @@ import click import logging import sys -from octoprint.cli import pass_octoprint_ctx, bulk_options, standard_options +from octoprint.cli import bulk_options, standard_options, set_ctx_obj_option, get_ctx_obj_option def run_server(basedir, configfile, host, port, debug, allow_root, logging_config, verbosity, safe_mode, octoprint_daemon=None): """Initializes the environment and starts up the server.""" @@ -17,20 +17,24 @@ def run_server(basedir, configfile, host, port, debug, allow_root, logging_confi from octoprint import init_platform, __display_version__, FatalStartupError def log_startup(recorder=None, safe_mode=None, **kwargs): + from octoprint.logging import get_divider_line + logger = logging.getLogger("octoprint.server") + + logger.info(get_divider_line("*")) logger.info("Starting OctoPrint {}".format(__display_version__)) if safe_mode: logger.info("Starting in SAFE MODE. Third party plugins will be disabled!") if recorder and len(recorder): - logger.info("--- Logged during platform initialization: ---") + logger.info(get_divider_line("-", "Logged during platform initialization:")) from octoprint.logging.handlers import CombinedLogHandler handler = CombinedLogHandler(*logging.getLogger().handlers) recorder.setTarget(handler) recorder.flush() - logger.info("----------------------------------------------") + logger.info(get_divider_line("-")) from octoprint import urllib3_ssl if not urllib3_ssl: @@ -41,6 +45,30 @@ def run_server(basedir, configfile, host, port, debug, allow_root, logging_confi "update to a Python version >= 2.7.9 or alternatively " "install PyOpenSSL plus its dependencies. For details see " "https://urllib3.readthedocs.org/en/latest/security.html#openssl-pyopenssl") + logger.info(get_divider_line("*")) + + def log_register_rollover(safe_mode=None, plugin_manager=None, **kwargs): + from octoprint.logging import get_handler, log_to_handler, get_divider_line + from octoprint.logging.handlers import OctoPrintLogHandler + + def rollover_callback(): + handler = get_handler("file") + if handler is None: + return + + logger = logging.getLogger("octoprint.server") + + def _log(message, level=logging.INFO): + log_to_handler(logger, handler, level, message) + + _log(get_divider_line("-", "Log roll over detected")) + _log("OctoPrint {}".format(__display_version__)) + if safe_mode: + _log("SAFE MODE is active. Third party plugins are disabled!") + plugin_manager.log_all_plugins(only_to_handler=handler) + _log(get_divider_line("-")) + + OctoPrintLogHandler.registerRolloverCallback(rollover_callback) try: settings, _, safe_mode, plugin_manager = init_platform(basedir, @@ -50,7 +78,8 @@ def run_server(basedir, configfile, host, port, debug, allow_root, logging_confi verbosity=verbosity, uncaught_logger=__name__, safe_mode=safe_mode, - after_safe_mode=log_startup) + after_safe_mode=log_startup, + after_plugin_manager=log_register_rollover) except FatalStartupError as e: click.echo(e.message, err=True) click.echo("There was a fatal error starting up OctoPrint.", err=True) @@ -69,92 +98,125 @@ def run_server(basedir, configfile, host, port, debug, allow_root, logging_confi #~~ server options server_options = bulk_options([ - click.option("--host", type=click.STRING, + click.option("--host", type=click.STRING, callback=set_ctx_obj_option, help="Specify the host on which to bind the server."), - click.option("--port", type=click.INT, + click.option("--port", type=click.INT, callback=set_ctx_obj_option, help="Specify the port on which to bind the server."), - click.option("--logging", type=click.Path(), + click.option("--logging", type=click.Path(), callback=set_ctx_obj_option, help="Specify the config file to use for configuring logging."), - click.option("--iknowwhatimdoing", "allow_root", is_flag=True, + click.option("--iknowwhatimdoing", "allow_root", is_flag=True, callback=set_ctx_obj_option, help="Allow OctoPrint to run as user root."), - click.option("--debug", is_flag=True, help="Enable debug mode.") + click.option("--debug", is_flag=True, callback=set_ctx_obj_option, + help="Enable debug mode.") ]) """Decorator to add the options shared among the server commands: ``--host``, ``--port``, ``--logging``, ``--iknowwhatimdoing`` and ``--debug``.""" +daemon_options = bulk_options([ + click.option("--pid", type=click.Path(), default="/tmp/octoprint.pid", callback=set_ctx_obj_option, + help="Pidfile to use for daemonizing.") +]) +"""Decorator to add the options for the daemon subcommand: ``--pid``.""" + #~~ "octoprint serve" and "octoprint daemon" commands @click.group() -@pass_octoprint_ctx -def server_commands(obj): +def server_commands(): pass @server_commands.command(name="serve") @server_options @standard_options(hidden=True) -@pass_octoprint_ctx -def serve_command(obj, host, port, logging, allow_root, debug): +@click.pass_context +def serve_command(ctx, **kwargs): """Starts the OctoPrint server.""" - run_server(obj.basedir, obj.configfile, host, port, debug, - allow_root, logging, obj.verbosity, obj.safe_mode) + + def get_value(key): + return get_ctx_obj_option(ctx, key, kwargs.get(key)) + + host = get_value("host") + port = get_value("port") + logging = get_value("logging") + allow_root = get_value("allow_root") + debug = get_value("debug") + + basedir = get_value("basedir") + configfile = get_value("configfile") + verbosity = get_value("verbosity") + safe_mode = get_value("safe_mode") + + run_server(basedir, configfile, host, port, debug, + allow_root, logging, verbosity, safe_mode) -@server_commands.command(name="daemon") -@click.option("--pid", type=click.Path(), default="/tmp/octoprint.pid", - help="Pidfile to use for daemonizing.") -@server_options -@standard_options(hidden=True) -@click.argument("command", type=click.Choice(["start", "stop", "restart", "status"]), - metavar="start|stop|restart|status") -@pass_octoprint_ctx -def daemon_command(octoprint_ctx, pid, host, port, logging, allow_root, debug, command): - """ - Starts, stops or restarts in daemon mode. +if sys.platform.startswith("linux") or sys.platform.startswith("freebsd"): + # we only support daemon mode under Linux and FreeBSD for now - Please note that daemon mode is only supported under Linux right now. - """ - if sys.platform == "darwin" or sys.platform == "win32": - click.echo("Sorry, daemon mode is only supported under Linux right now", - file=sys.stderr) - sys.exit(2) + @server_commands.command(name="daemon") + @server_options + @daemon_options + @standard_options(hidden=True) + @click.argument("command", type=click.Choice(["start", "stop", "restart", "status"]), + metavar="start|stop|restart|status") + @click.pass_context + def daemon_command(ctx, command, **kwargs): + """ + Starts, stops or restarts in daemon mode. - if pid is None: - click.echo("No path to a pidfile set", - file=sys.stderr) - sys.exit(1) + Please note that daemon mode is only supported under Linux right now. + """ - from octoprint.daemon import Daemon - class OctoPrintDaemon(Daemon): - def __init__(self, pidfile, basedir, configfile, host, port, debug, allow_root, logging_config, verbosity, safe_mode): - Daemon.__init__(self, pidfile) + def get_value(key): + return get_ctx_obj_option(ctx, key, kwargs.get(key)) - self._basedir = basedir - self._configfile = configfile - self._host = host - self._port = port - self._debug = debug - self._allow_root = allow_root - self._logging_config = logging_config - self._verbosity = verbosity - self._safe_mode = safe_mode + host = get_value("host") + port = get_value("port") + logging = get_value("logging") + allow_root = get_value("allow_root") + debug = get_value("debug") + pid = get_value("pid") - def run(self): - run_server(self._basedir, self._configfile, self._host, self._port, self._debug, - self._allow_root, self._logging_config, self._verbosity, self._safe_mode, - octoprint_daemon=self) + basedir = get_value("basedir") + configfile = get_value("configfile") + verbosity = get_value("verbosity") + safe_mode = get_value("safe_mode") - octoprint_daemon = OctoPrintDaemon(pid, octoprint_ctx.basedir, octoprint_ctx.configfile, - host, port, debug, allow_root, logging, octoprint_ctx.verbosity, - octoprint_ctx.safe_mode) + if pid is None: + click.echo("No path to a pidfile set", + file=sys.stderr) + sys.exit(1) - if command == "start": - octoprint_daemon.start() - elif command == "stop": - octoprint_daemon.stop() - elif command == "restart": - octoprint_daemon.restart() - elif command == "status": - octoprint_daemon.status() + from octoprint.daemon import Daemon + class OctoPrintDaemon(Daemon): + def __init__(self, pidfile, basedir, configfile, host, port, debug, allow_root, logging_config, verbosity, safe_mode): + Daemon.__init__(self, pidfile) + + self._basedir = basedir + self._configfile = configfile + self._host = host + self._port = port + self._debug = debug + self._allow_root = allow_root + self._logging_config = logging_config + self._verbosity = verbosity + self._safe_mode = safe_mode + + def run(self): + run_server(self._basedir, self._configfile, self._host, self._port, self._debug, + self._allow_root, self._logging_config, self._verbosity, self._safe_mode, + octoprint_daemon=self) + + octoprint_daemon = OctoPrintDaemon(pid, basedir, configfile, host, port, debug, allow_root, logging, verbosity, + safe_mode) + + if command == "start": + octoprint_daemon.start() + elif command == "stop": + octoprint_daemon.stop() + elif command == "restart": + octoprint_daemon.restart() + elif command == "status": + octoprint_daemon.status() diff --git a/src/octoprint/events.py b/src/octoprint/events.py index b8f12ad06..367fd9851 100644 --- a/src/octoprint/events.py +++ b/src/octoprint/events.py @@ -53,6 +53,11 @@ class Events(object): METADATA_ANALYSIS_FINISHED = "MetadataAnalysisFinished" METADATA_STATISTICS_UPDATED = "MetadataStatisticsUpdated" + FILE_ADDED = "FileAdded", + FILE_REMOVED = "FileRemoved", + FOLDER_ADDED = "FolderAdded", + FOLDER_REMOVED = "FolderRemoved", + # SD Upload TRANSFER_STARTED = "TransferStarted" TRANSFER_DONE = "TransferDone" @@ -332,24 +337,34 @@ class CommandTrigger(GenericEventListener): self._executeGcodeCommand(command, debug=debug) def _executeSystemCommand(self, command, debug=False): - def commandExecutioner(command): + def commandExecutioner(cmd): if debug: - self._logger.info("Executing system command: %s" % command) + self._logger.info("Executing system command: {}".format(cmd)) + else: + self._logger.info("Executing a system command") # we run this with shell=True since we have to trust whatever # our admin configured as command and since we want to allow # shell-alike handling here... - subprocess.Popen(command, shell=True) + subprocess.check_call(cmd, shell=True) - try: - if isinstance(command, (list, tuple, set)): - for c in command: - commandExecutioner(c) - else: - commandExecutioner(command) - except subprocess.CalledProcessError as e: - self._logger.warn("Command failed with return code %i: %s" % (e.returncode, str(e))) - except: - self._logger.exception("Command failed") + def process(): + try: + if isinstance(command, (list, tuple, set)): + for c in command: + commandExecutioner(c) + else: + commandExecutioner(command) + except subprocess.CalledProcessError as e: + if debug: + self._logger.warn("Command failed with return code {}: {}".format(e.returncode, str(e))) + else: + self._logger.warn("Command failed with return code {}, enable debug logging on target 'octoprint.events' for details".format(e.returncode)) + except: + self._logger.exception("Command failed") + + t = threading.Thread(target=process) + t.daemon = True + t.start() def _executeGcodeCommand(self, command, debug=False): commands = [command] @@ -397,7 +412,7 @@ class CommandTrigger(GenericEventListener): currentData = self._printer.get_current_data() - if "currentZ" in currentData.keys() and currentData["currentZ"] is not None: + if "currentZ" in currentData and currentData["currentZ"] is not None: params["__currentZ"] = str(currentData["currentZ"]) if "job" in currentData and "file" in currentData["job"] and "name" in currentData["job"]["file"] \ @@ -405,9 +420,9 @@ class CommandTrigger(GenericEventListener): params["__filename"] = currentData["job"]["file"]["name"] params["__filepath"] = currentData["job"]["file"]["path"] params["__fileorigin"] = currentData["job"]["file"]["origin"] - if "progress" in currentData.keys() and currentData["progress"] is not None \ - and "completion" in currentData["progress"].keys() and currentData["progress"]["completion"] is not None: - params["__progress"] = str(round(currentData["progress"]["completion"] * 100)) + if "progress" in currentData and currentData["progress"] is not None \ + and "completion" in currentData["progress"] and currentData["progress"]["completion"] is not None: + params["__progress"] = str(round(currentData["progress"]["completion"])) # now add the payload keys as well if isinstance(payload, dict): diff --git a/src/octoprint/filemanager/__init__.py b/src/octoprint/filemanager/__init__.py index 86aab3ff1..f6907699e 100644 --- a/src/octoprint/filemanager/__init__.py +++ b/src/octoprint/filemanager/__init__.py @@ -205,17 +205,26 @@ class FileManager(object): # callback was not registered pass - def _determine_analysis_backlog(self, storage_type, storage_manager): + def _determine_analysis_backlog(self, storage_type, storage_manager, root=None, high_priority=False): counter = 0 - for entry, path, printer_profile in storage_manager.analysis_backlog: + + backlog_generator = storage_manager.analysis_backlog + if root is not None: + backlog_generator = storage_manager.analysis_backlog_for_path(path=root) + + for entry, path, printer_profile in backlog_generator: file_type = get_file_type(path)[-1] 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()) - if self._analysis_queue.enqueue(queue_entry, high_priority=False): + if self._analysis_queue.enqueue(queue_entry, high_priority=high_priority): counter += 1 - self._logger.info("Added {counter} items from storage type \"{storage_type}\" to analysis queue".format(**locals())) + + if root: + self._logger.info("Added {counter} items from storage type \"{storage_type}\" and root \"{root}\" to analysis queue".format(**locals())) + else: + self._logger.info("Added {counter} items from storage type \"{storage_type}\" to analysis queue".format(**locals())) def add_storage(self, storage_type, storage_manager): self._storage_managers[storage_type] = storage_manager @@ -396,53 +405,135 @@ class FileManager(object): if hook_file_object is not None: file_object = hook_file_object - file_path = self._storage(destination).add_file(path, file_object, links=links, printer_profile=printer_profile, allow_overwrite=allow_overwrite) - absolute_path = self._storage(destination).path_on_disk(file_path) - _, file_name = self._storage(destination).split_path(file_path) + + queue_entry = self._analysis_queue_entry(destination, path) + self._analysis_queue.dequeue(queue_entry) + + path_in_storage = self._storage(destination).add_file(path, file_object, links=links, printer_profile=printer_profile, allow_overwrite=allow_overwrite) if analysis is None: - file_type = get_file_type(absolute_path) - if file_type: - queue_entry = QueueEntry(file_name, file_path, file_type[-1], destination, absolute_path, printer_profile) + queue_entry = self._analysis_queue_entry(destination, 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) + _, name = self._storage(destination).split_path(path_in_storage) + eventManager().fire(Events.FILE_ADDED, dict(storage=destination, + path=path_in_storage, + name=name, + type=get_file_type(name))) eventManager().fire(Events.UPDATED_FILES, dict(type="printables")) - return file_path + return path_in_storage def remove_file(self, destination, path): + queue_entry = self._analysis_queue_entry(destination, path) + self._analysis_queue.dequeue(queue_entry) self._storage(destination).remove_file(path) + + _, name = self._storage(destination).split_path(path) + eventManager().fire(Events.FILE_REMOVED, dict(storage=destination, + path=path, + name=name, + type=get_file_type(name))) eventManager().fire(Events.UPDATED_FILES, dict(type="printables")) def copy_file(self, destination, source, dst): - self._storage(destination).copy_file(source, dst) + path_in_storage = self._storage(destination).copy_file(source, dst) + if not self.has_analysis(destination, path_in_storage): + queue_entry = self._analysis_queue_entry(destination, path_in_storage) + if queue_entry: + self._analysis_queue.enqueue(queue_entry) + + _, name = self._storage(destination).split_path(path_in_storage) + eventManager().fire(Events.FILE_ADDED, dict(storage=destination, + path=path_in_storage, + name=name, + type=get_file_type(name))) eventManager().fire(Events.UPDATED_FILES, dict(type="printables")) def move_file(self, destination, source, dst): - self._storage(destination).move_file(source, dst) + queue_entry = self._analysis_queue_entry(destination, source) + self._analysis_queue.dequeue(queue_entry) + path = self._storage(destination).move_file(source, dst) + if not self.has_analysis(destination, path): + queue_entry = self._analysis_queue_entry(destination, path) + if queue_entry: + self._analysis_queue.enqueue(queue_entry) + + source_path_in_storage = self._storage(destination).path_in_storage(source) + _, source_name = self._storage(destination).split_path(source_path_in_storage) + dst_path_in_storage = self._storage(destination).path_in_storage(dst) + _, dst_name = self._storage(destination).split_path(dst_path_in_storage) + + eventManager().fire(Events.FILE_REMOVED, dict(storage=destination, + path=source_path_in_storage, + name=source_name, + type=get_file_type(source_name))) + eventManager().fire(Events.FILE_ADDED, dict(storage=destination, + path=dst_path_in_storage, + name=dst_name, + type=get_file_type(dst_name))) eventManager().fire(Events.UPDATED_FILES, dict(type="printables")) def add_folder(self, destination, path, ignore_existing=True): - folder_path = self._storage(destination).add_folder(path, ignore_existing=ignore_existing) + path_in_storage = self._storage(destination).add_folder(path, ignore_existing=ignore_existing) + + _, name = self._storage(destination).split_path(path_in_storage) + eventManager().fire(Events.FOLDER_ADDED, dict(storage=destination, + path=path_in_storage, + name=name)) eventManager().fire(Events.UPDATED_FILES, dict(type="printables")) - return folder_path + return path_in_storage def remove_folder(self, destination, path, recursive=True): + self._analysis_queue.dequeue_folder(destination, path) + self._analysis_queue.pause() self._storage(destination).remove_folder(path, recursive=recursive) + self._analysis_queue.resume() + + _, name = self._storage(destination).split_path(path) + eventManager().fire(Events.FOLDER_REMOVED, dict(storage=destination, + path=path, + name=name)) eventManager().fire(Events.UPDATED_FILES, dict(type="printables")) def copy_folder(self, destination, source, dst): - self._storage(destination).copy_folder(source, dst) + path_in_storage = self._storage(destination).copy_folder(source, dst) + self._determine_analysis_backlog(destination, self._storage(destination), root=dst) + + _, name = self._storage(destination).split_path(path_in_storage) + eventManager().fire(Events.FOLDER_ADDED, dict(storage=destination, + path=path_in_storage, + name=name)) eventManager().fire(Events.UPDATED_FILES, dict(type="printables")) def move_folder(self, destination, source, dst): + self._analysis_queue.dequeue_folder(destination, source) + self._analysis_queue.pause() self._storage(destination).move_folder(source, dst) + self._determine_analysis_backlog(destination, self._storage(destination), root=dst) + self._analysis_queue.resume() + + source_path_in_storage = self._storage(destination).path_in_storage(source) + _, source_name = self._storage(destination).split_path(source_path_in_storage) + dst_path_in_storage = self._storage(destination).path_in_storage(destination) + _, dst_name = self._storage(destination).split_path(dst_path_in_storage) + + eventManager().fire(Events.FOLDER_REMOVED, dict(storage=destination, + path=source_path_in_storage, + name=source_name)) + eventManager().fire(Events.FOLDER_ADDED, dict(storage=destination, + path=dst_path_in_storage, + name=dst_name)) eventManager().fire(Events.UPDATED_FILES, dict(type="printables")) def get_print_job(self, destination, path): return self._storage(destination).get_print_job(path) + def has_analysis(self, destination, path): + return self._storage(destination).has_analysis(path) + def get_metadata(self, destination, path): return self._storage(destination).get_metadata(path) @@ -545,3 +636,15 @@ class FileManager(object): def _on_analysis_finished(self, entry, result): self._add_analysis_result(entry.location, entry.path, result) + def _analysis_queue_entry(self, destination, path, printer_profile=None): + if printer_profile is None: + printer_profile = self._printer_profile_manager.get_current_or_default() + + absolute_path = self._storage(destination).path_on_disk(path) + _, file_name = self._storage(destination).split_path(path) + file_type = get_file_type(absolute_path) + + if file_type: + return QueueEntry(file_name, path, file_type[-1], destination, absolute_path, printer_profile) + else: + return None diff --git a/src/octoprint/filemanager/analysis.py b/src/octoprint/filemanager/analysis.py index 3685ab5f1..a774cc378 100644 --- a/src/octoprint/filemanager/analysis.py +++ b/src/octoprint/filemanager/analysis.py @@ -17,6 +17,7 @@ import collections import time from octoprint.events import Events, eventManager +from octoprint.settings import settings import octoprint.util.gcodeInterpreter as gcodeInterpreter @@ -40,6 +41,12 @@ class QueueEntry(collections.namedtuple("QueueEntry", "name, path, type, locatio return "{location}:{path}".format(location=self.location, path=self.path) +class AnalysisAborted(Exception): + def __init__(self, reenqueue=True, *args, **kwargs): + Exception.__init__(self, *args, **kwargs) + self.reenqueue = reenqueue + + class AnalysisQueue(object): """ OctoPrint's :class:`AnalysisQueue` can manage various :class:`AbstractAnalysisQueue` implementations, mapped @@ -77,6 +84,16 @@ class AnalysisQueue(object): self._queues[entry.type].enqueue(entry, high_priority=high_priority) return True + def dequeue(self, entry): + if not entry.type in self._queues: + return False + + self._queues[entry.type].dequeue(entry.location, entry.path) + + def dequeue_folder(self, destination, path): + for queue in self._queues.values(): + queue.dequeue_folder(destination, path) + def pause(self): for queue in self._queues.values(): queue.pause() @@ -112,8 +129,10 @@ class AbstractAnalysisQueue(object): .. automethod:: _do_abort """ - LOW_PRIO = 0 - HIGH_PRIO = 100 + LOW_PRIO = 100 + LOW_PRIO_ABORTED = 75 + HIGH_PRIO = 50 + HIGH_PRIO_ABORTED = 0 def __init__(self, finished_callback): self._logger = logging.getLogger(__name__) @@ -123,11 +142,15 @@ class AbstractAnalysisQueue(object): self._active = threading.Event() self._active.set() + self._done = threading.Event() + self._done.clear() + self._currentFile = None self._currentProgress = None self._queue = queue.PriorityQueue() self._current = None + self._current_highprio = False self._worker = threading.Thread(target=self._work) self._worker.daemon = True @@ -153,7 +176,24 @@ class AbstractAnalysisQueue(object): self._logger.debug("Adding entry {entry} to analysis queue with low priority".format(entry=entry)) prio = self.__class__.LOW_PRIO - self._queue.put((prio, entry)) + self._queue.put((prio, entry, high_priority)) + if high_priority and self._current is not None and not self._current_highprio: + self._logger.debug("Aborting current analysis in favor of high priority one") + self._do_abort() + + def dequeue(self, location, path): + if self._current is not None and self._current.location == location \ + and self._current.path == path: + self._do_abort(reenqueue=False) + self._done.wait() + self._done.clear() + + def dequeue_folder(self, location, path): + if self._current is not None and self._current.location == location \ + and self._current.path.startswith(path + "/"): + self._do_abort(reenqueue=False) + self._done.wait() + self._done.clear() def pause(self): """ @@ -175,24 +215,23 @@ class AbstractAnalysisQueue(object): self._active.set() def _work(self): - aborted = None while True: - if aborted is not None: - entry = aborted - aborted = None - self._logger.debug("Got an aborted analysis job for entry {entry}, processing this instead of first item in queue".format(**locals())) - else: - (priority, entry) = self._queue.get() - self._logger.debug("Processing entry {entry} from queue (priority {priority})".format(**locals())) - + (priority, entry, high_priority) = self._queue.get() + self._logger.debug("Processing entry {} from queue (priority {})".format(entry, priority)) self._active.wait() try: - self._analyze(entry, high_priority=(priority == self.__class__.HIGH_PRIO)) + self._analyze(entry, high_priority=high_priority) self._queue.task_done() - except gcodeInterpreter.AnalysisAborted: - aborted = entry - self._logger.debug("Running analysis of entry {entry} aborted".format(**locals())) + self._done.set() + except AnalysisAborted as ex: + if ex.reenqueue: + self._queue.put((self.__class__.HIGH_PRIO_ABORTED if high_priority else self.__class__.LOW_PRIO_ABORTED, + entry, + high_priority)) + self._logger.debug("Running analysis of entry {} aborted".format(entry)) + self._queue.task_done() + self._done.set() else: time.sleep(1.0) @@ -202,10 +241,12 @@ class AbstractAnalysisQueue(object): return self._current = entry + self._current_highprio = high_priority self._current_progress = 0 try: - self._logger.info("Starting analysis of {entry}".format(**locals())) + start_time = time.time() + self._logger.info("Starting analysis of {}".format(entry)) eventManager().fire(Events.METADATA_ANALYSIS_STARTED, {"name": entry.name, "path": entry.path, "origin": entry.location, @@ -217,7 +258,7 @@ class AbstractAnalysisQueue(object): result = self._do_analysis(high_priority=high_priority) except TypeError: result = self._do_analysis() - self._logger.debug("Analysis of entry {entry} finished, notifying callback".format(**locals())) + self._logger.info("Analysis of entry {} finished, needed {:.2f}s".format(entry, time.time() - start_time)) self._finished_callback(self._current, result) finally: self._current = None @@ -237,7 +278,7 @@ class AbstractAnalysisQueue(object): """ return None - def _do_abort(self): + def _do_abort(self, reenqueue=True): """ Aborts analysis of the current entry. Needs to be overridden by sub classes. """ @@ -266,11 +307,14 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue): def _do_analysis(self, high_priority=False): try: - def throttle(): - time.sleep(0.01) - - throttle_callback = throttle - if high_priority: + throttle = settings().getFloat(["gcodeAnalysis", "throttle_highprio"]) if high_priority else settings().getFloat(["gcodeAnalysis", "throttle_normalprio"]) + throttle_lines = settings().getInt(["gcodeAnalysis", "throttle_lines"]) + if throttle > 0: + def throttle_callback(filePos, readBytes): + if filePos % throttle_lines == 0: + # only apply throttle every 100 lines + time.sleep(throttle) + else: throttle_callback = None self._gcode = gcodeInterpreter.gcode() @@ -289,9 +333,11 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue): "volume": self._gcode.extrusionVolume[i] } return result + except gcodeInterpreter.AnalysisAborted as ex: + raise AnalysisAborted(reenqueue=ex.reenqueue) finally: self._gcode = None - def _do_abort(self): + def _do_abort(self, reenqueue=True): if self._gcode: - self._gcode.abort() + self._gcode.abort(reenqueue=reenqueue) diff --git a/src/octoprint/filemanager/storage.py b/src/octoprint/filemanager/storage.py index a282ec9d3..85d22e882 100644 --- a/src/octoprint/filemanager/storage.py +++ b/src/octoprint/filemanager/storage.py @@ -29,7 +29,6 @@ class StorageInterface(object): Interface of storage adapters for OctoPrint. """ - @property def analysis_backlog(self): """ @@ -44,6 +43,11 @@ class StorageInterface(object): return yield + def analysis_backlog_for_path(self, path=None): + # empty generator pattern, yield is intentionally unreachable + return + yield + def last_modified(self, path=None, recursive=False): """ Get the last modification date of the specified ``path`` or ``path``'s subtree. @@ -150,7 +154,9 @@ class StorageInterface(object): def add_folder(self, path, ignore_existing=True): """ - Adds a folder as ``path``. The ``path`` will be sanitized. + Adds a folder as ``path`` + + The ``path`` will be sanitized. :param string path: the path of the new folder :param bool ignore_existing: if set to True, no error will be raised if the folder to be added already exists @@ -160,7 +166,7 @@ class StorageInterface(object): def remove_folder(self, path, recursive=True): """ - Removes the folder at ``path``. + Removes the folder at ``path`` :param string path: the path of the folder to remove :param bool recursive: if set to True, contained folders and files will also be removed, otherwise and error will @@ -174,6 +180,8 @@ class StorageInterface(object): :param string source: path to the source folder :param string destination: path to destination + + :return: the path in the storage to the copy of the folder """ raise NotImplementedError() @@ -183,6 +191,8 @@ class StorageInterface(object): :param string source: path to the source folder :param string destination: path to destination + + :return: the new path in the storage to the folder """ raise NotImplementedError() @@ -203,7 +213,9 @@ class StorageInterface(object): def remove_file(self, path): """ - Removes the file at ``path``. Will also take care of deleting the corresponding entries + Removes the file at ``path`` + + Will also take care of deleting the corresponding entries in the metadata and deleting all links pointing to the file. :param string path: path of the file to remove @@ -216,6 +228,8 @@ class StorageInterface(object): :param string source: path to the source file :param string destination: path to destination + + :return: the path in the storage to the copy of the file """ raise NotImplementedError() @@ -225,6 +239,16 @@ class StorageInterface(object): :param string source: path to the source file :param string destination: path to destination + + :return: the new path in the storage to the file + """ + raise NotImplementedError() + + def has_analysis(self, path): + """ + Returns whether the file at path has been analysed yet + + :param path: virtual path to the file for which to retrieve the metadata """ raise NotImplementedError() @@ -469,7 +493,13 @@ class LocalFileStorage(StorageInterface): @property def analysis_backlog(self): - for entry in self._analysis_backlog_generator(): + return self.analysis_backlog_for_path() + + def analysis_backlog_for_path(self, path=None): + if path: + path = self.sanitize_path(path) + + for entry in self._analysis_backlog_generator(path): yield entry def _analysis_backlog_generator(self, path=None): @@ -480,10 +510,10 @@ class LocalFileStorage(StorageInterface): if not metadata: metadata = dict() for entry in scandir(path): - if is_hidden_path(entry.name) or not octoprint.filemanager.valid_file_type(entry.name): + if is_hidden_path(entry.name): continue - if entry.is_file(): + if entry.is_file() and octoprint.filemanager.valid_file_type(entry.name): if not entry.name in metadata or not isinstance(metadata[entry.name], dict) or not "analysis" in metadata[entry.name]: printer_profile_rels = self.get_link(entry.path, "printerprofile") if printer_profile_rels: @@ -518,7 +548,7 @@ class LocalFileStorage(StorageInterface): filepath = self.sanitize_path(filepath) path = self.sanitize_path(path) - return filepath.startswith(path) + return filepath == path or filepath.startswith(path + os.sep) def file_exists(self, path): path, name = self.sanitize(path) @@ -611,6 +641,8 @@ class LocalFileStorage(StorageInterface): except Exception as e: raise StorageError("Could not copy %s in %s to %s in %s" % (source_data["name"], source_data["path"], destination_data["name"], destination_data["path"]), cause=e) + return self.path_in_storage(destination_data["fullpath"]) + def move_folder(self, source, destination): source_data, destination_data = self._get_source_destination_data(source, destination) @@ -621,6 +653,8 @@ class LocalFileStorage(StorageInterface): self._delete_metadata(source_data["fullpath"]) + return self.path_in_storage(destination_data["fullpath"]) + def add_file(self, path, file_object, printer_profile=None, links=None, allow_overwrite=False): path, name = self.sanitize(path) if not octoprint.filemanager.valid_file_type(name): @@ -694,6 +728,8 @@ class LocalFileStorage(StorageInterface): self._copy_metadata_entry(source_data["path"], source_data["name"], destination_data["path"], destination_data["name"]) + return self.path_in_storage(destination_data["fullpath"]) + def move_file(self, source, destination, allow_overwrite=False): source_data, destination_data = self._get_source_destination_data(source, destination) @@ -706,6 +742,12 @@ class LocalFileStorage(StorageInterface): destination_data["path"], destination_data["name"], delete_source=True) + return self.path_in_storage(destination_data["fullpath"]) + + def has_analysis(self, path): + metadata = self.get_metadata(path) + return "analysis" in metadata + def get_print_job(self, path): from octoprint.job import LocalGcodeFilePrintjob return LocalGcodeFilePrintjob(self.path_on_disk(path), name=path) @@ -957,7 +999,15 @@ class LocalFileStorage(StorageInterface): continue printer_profile = history_entry["printerProfile"] + if not printer_profile: + continue + print_time = history_entry["printTime"] + try: + print_time = float(print_time) + except: + self._logger.warn("Invalid print time value found in print history for {} in {}/.metadata.yaml: {!r}".format(name, path, print_time)) + continue if not printer_profile in former_print_times: former_print_times[printer_profile] = [] @@ -1134,11 +1184,16 @@ class LocalFileStorage(StorageInterface): # no hidden files and folders continue - entry_name = entry.name - entry_path = entry.path - entry_is_file = entry.is_file() - entry_is_dir = entry.is_dir() - entry_stat = entry.stat() + try: + entry_name = entry.name + entry_path = entry.path + entry_is_file = entry.is_file() + entry_is_dir = entry.is_dir() + entry_stat = entry.stat() + except: + # error while trying to fetch file metadata, that might be thanks to file already having + # been moved or deleted - ignore it and continue + continue try: new_entry_name, new_entry_path = self._sanitize_entry(entry_name, path, entry_path) diff --git a/src/octoprint/logging/__init__.py b/src/octoprint/logging/__init__.py index 6e016b167..1f78abae7 100644 --- a/src/octoprint/logging/__init__.py +++ b/src/octoprint/logging/__init__.py @@ -1,4 +1,137 @@ # coding=utf-8 from __future__ import absolute_import -from . import handlers +from octoprint.logging import handlers + +def log_to_handler(logger, handler, level, msg, exc_info=None, extra=None, *args): + """ + Logs to the provided handler only. + + Arguments: + logger: logger to log to + handler: handler to restrict logging to + level: level to log at + msg: message to log + exc_info: optional exception info + extra: optional extra data + *args: log args + """ + from logging import _srcfile + import sys + + # this is just the same as logging.Logger._log + + if _srcfile: + # IronPython doesn't track Python frames, so findCaller raises an + # exception on some versions of IronPython. We trap it here so that + # IronPython can use logging. + try: + fn, lno, func = logger.findCaller() + except ValueError: + fn, lno, func = "(unknown file)", 0, "(unknown function)" + else: + fn, lno, func = "(unknown file)", 0, "(unknown function)" + if exc_info: + if not isinstance(exc_info, tuple): + exc_info = sys.exc_info() + + record = logger.makeRecord(logger.name, level, fn, lno, msg, args, exc_info, func, extra) + + # and this is a mixture of logging.Logger.handle and logging.Logger.callHandlers + + if (not logger.disabled) and logger.filter(record): + if record.levelno >= handler.level: + handler.handle(record) + + +def get_handler(name, logger=None): + """ + Retrieves the handler named ``name``. + + If optional ``logger`` is provided, search will be + limited to that logger, otherwise the root logger will be + searched. + + Arguments: + name: the name of the handler to look for + logger: (optional) the logger to search in, root logger if not provided + + Returns: + the handler if it could be found, None otherwise + """ + import logging + + if logger is None: + logger = logging.getLogger() + + for handler in logger.handlers: + if handler.get_name() == name: + return handler + + return None + + +def get_divider_line(c, message=None, length=78, indent=3): + """ + Generate a divider line for logging, optionally with included message. + + Examples: + + >>> get_divider_line("-") + '------------------------------------------------------------------------------' + >>> get_divider_line("=", length=10) + '==========' + >>> get_divider_line("-", message="Hi", length=10) + '--- Hi ---' + >>> get_divider_line("-", message="A slightly longer text") + '--- A slightly longer text ---------------------------------------------------' + >>> get_divider_line("-", message="A slightly longer text", indent=5) + '----- A slightly longer text -------------------------------------------------' + >>> get_divider_line("-", message="Hello World!", length=10) + '--- Hello World!' + >>> get_divider_line(None) + Traceback (most recent call last): + ... + AssertionError: c is not text + >>> get_divider_line("´`") + Traceback (most recent call last): + ... + AssertionError: c is not a single character + >>> get_divider_line("-", message=3) + Traceback (most recent call last): + ... + AssertionError: message is not text + >>> get_divider_line("-", length="hello") + Traceback (most recent call last): + ... + AssertionError: length is not an int + >>> get_divider_line("-", indent="hi") + Traceback (most recent call last): + ... + AssertionError: indent is not an int + + Arguments: + c: character to use for the line + message: message to print in the line + length: length of the line + indent: indentation of message in line + + Returns: + formatted divider line + """ + + assert isinstance(c, (str, unicode, bytes)), "c is not text" + assert len(c) == 1, "c is not a single character" + assert isinstance(length, int), "length is not an int" + assert isinstance(indent, int), "indent is not an int" + + if message is None: + return c * length + + assert isinstance(message, (str, unicode, bytes)), "message is not text" + + space = length - 2 * (indent + 1) + if space >= len(message): + return c * indent + " " + message + " " + c * (length - indent - 2 - len(message)) + else: + return c * indent + " " + message diff --git a/src/octoprint/logging/handlers.py b/src/octoprint/logging/handlers.py index fc2d5e430..7d106a4b1 100644 --- a/src/octoprint/logging/handlers.py +++ b/src/octoprint/logging/handlers.py @@ -17,6 +17,21 @@ class CleaningTimedRotatingFileHandler(logging.handlers.TimedRotatingFileHandler os.remove(s) +class OctoPrintLogHandler(CleaningTimedRotatingFileHandler): + rollover_callbacks = [] + + @classmethod + def registerRolloverCallback(cls, callback, *args, **kwargs): + cls.rollover_callbacks.append((callback, args, kwargs)) + + def doRollover(self): + CleaningTimedRotatingFileHandler.doRollover(self) + + for rcb in self.__class__.rollover_callbacks: + callback, args, kwargs = rcb + callback(*args, **kwargs) + + class SerialLogHandler(logging.handlers.RotatingFileHandler): _do_rollover = False diff --git a/src/octoprint/plugin/core.py b/src/octoprint/plugin/core.py index 61ba0ff7a..f8a168f5d 100644 --- a/src/octoprint/plugin/core.py +++ b/src/octoprint/plugin/core.py @@ -71,6 +71,9 @@ class PluginInfo(object): attr_description = '__plugin_description__' """ Module attribute from which to retrieve the plugin's description. """ + attr_disabling_discouraged = '__plugin_disabling_discouraged__' + """ Module attribute from which to retrieve the reason why disabling the plugin is discouraged. Only effective if ``self.bundled`` is True. """ + attr_version = '__plugin_version__' """ Module attribute from which to retrieve the plugin's version. """ @@ -294,6 +297,19 @@ class PluginInfo(object): """ return self._get_instance_attribute(self.__class__.attr_description, default=self._description) + @property + def disabling_discouraged(self): + """ + Reason why disabling of this plugin is discouraged. Only evaluated for bundled plugins! Will be taken from + the disabling_discouraged attribute of the plugin module as defined in :attr:`attr_disabling_discouraged` if + available. False if unset or plugin not bundled. + + Returns: + str or None: Reason why disabling this plugin is discouraged (only for bundled plugins) + """ + return self._get_instance_attribute(self.__class__.attr_disabling_discouraged, default=False) if self.bundled \ + else False + @property def version(self): """ @@ -1062,21 +1078,30 @@ class PluginManager(object): return True - def log_all_plugins(self, show_bundled=True, bundled_str=(" (bundled)", ""), show_location=True, location_str=" = {location}", show_enabled=True, enabled_str=(" ", "!")): + def log_all_plugins(self, show_bundled=True, bundled_str=(" (bundled)", ""), show_location=True, + location_str=" = {location}", show_enabled=True, enabled_str=(" ", "!"), + only_to_handler=None): all_plugins = self.enabled_plugins.values() + self.disabled_plugins.values() + def _log(message, level=logging.INFO): + if only_to_handler is not None: + import octoprint.logging + octoprint.logging.log_to_handler(self.logger, only_to_handler, level, message, []) + else: + self.logger.log(level, message) + if len(all_plugins) <= 0: - self.logger.info("No plugins available") + _log("No plugins available") else: - self.logger.info("{count} plugin(s) registered with the system:\n{plugins}".format(count=len(all_plugins), plugins="\n".join( - map(lambda x: "| " + x.long_str(show_bundled=show_bundled, - bundled_strs=bundled_str, - show_location=show_location, - location_str=location_str, - show_enabled=show_enabled, - enabled_strs=enabled_str), - sorted(self.plugins.values(), key=lambda x: str(x).lower())) - ))) + formatted_plugins = "\n".join(map(lambda x: "| " + x.long_str(show_bundled=show_bundled, + bundled_strs=bundled_str, + show_location=show_location, + location_str=location_str, + show_enabled=show_enabled, + enabled_strs=enabled_str), + sorted(self.plugins.values(), key=lambda x: str(x).lower()))) + _log("{count} plugin(s) registered with the system:\n{plugins}".format(count=len(all_plugins), + plugins=formatted_plugins)) def get_plugin(self, identifier, require_enabled=True): """ diff --git a/src/octoprint/plugin/types.py b/src/octoprint/plugin/types.py index 6f72856a3..2886fb208 100644 --- a/src/octoprint/plugin/types.py +++ b/src/octoprint/plugin/types.py @@ -746,6 +746,21 @@ class UiPlugin(OctoPrintPlugin, SortablePlugin): """ return None + def get_ui_additional_etag(self, default_additional): + """ + Allows to provide a list of additional fields to use for ETag generation. + + By default the same list will be returned that is also used in the stock UI (and injected + via the parameter ``default_additional``). + + Arguments: + default_additional (list): The list of default fields added to the ETag of the default UI + + Returns: + (list): A list of additional fields for the ETag generation, or None + """ + return default_additional + def get_ui_custom_lastmodified(self): """ Allows to calculate the LastModified differently than using the most recent modification @@ -806,6 +821,25 @@ class UiPlugin(OctoPrintPlugin, SortablePlugin): """ return False + def get_ui_custom_template_filter(self, default_template_filter): + """ + Allows to specify a custom template filter to use for filtering the template contained in the + ``render_kwargs`` provided to the templating sub system. + + Only relevant for UiPlugins that actually utilize the stock templates of OctoPrint. + + By default simply returns the provided ``default_template_filter``. + + Arguments: + default_template_filter (callable): The default template filter used by the default UI + + Returns: + (callable) A filter function accepting the ``template_type`` and ``template_key`` of a template + and returning ``True`` to keep it and ``False`` to filter it out. If ``None`` is returned, no + filtering will take place. + """ + return default_template_filter + class WizardPlugin(OctoPrintPlugin, ReloadNeedingPlugin): """ The ``WizardPlugin`` mixin allows plugins to report to OctoPrint whether @@ -1375,7 +1409,7 @@ class SettingsPlugin(OctoPrintPlugin): :return: the current settings of the plugin, as a dictionary """ - from flask.ext.login import current_user + from flask_login import current_user import copy data = copy.deepcopy(self._settings.get_all_data(merged=True)) @@ -1420,8 +1454,8 @@ class SettingsPlugin(OctoPrintPlugin): else: node[key] = None - conditions = dict(user=lambda: current_user is not None and not current_user.is_anonymous(), - admin=lambda: current_user is not None and not current_user.is_anonymous() and current_user.is_admin(), + conditions = dict(user=lambda: current_user is not None and not current_user.is_anonymous, + admin=lambda: current_user is not None and not current_user.is_anonymous and current_user.is_admin, never=lambda: False) for level, condition in conditions.items(): @@ -1515,7 +1549,7 @@ class SettingsPlugin(OctoPrintPlugin): path=dict(to=dict(never=dict(return="return")))) def get_settings_restricted_path(self): - return dict(admin=[["some", "admin_only", "path], ["another", "admin_only", "path"], + return dict(admin=[["some", "admin_only", "path"], ["another", "admin_only", "path"], user=[["some", "user_only", "path"],], never=[["path", "to", "never", "return"],]) diff --git a/src/octoprint/plugins/announcements/__init__.py b/src/octoprint/plugins/announcements/__init__.py index 0ae7d9a51..00a2664a9 100644 --- a/src/octoprint/plugins/announcements/__init__.py +++ b/src/octoprint/plugins/announcements/__init__.py @@ -18,9 +18,11 @@ import threading import feedparser import flask +from collections import OrderedDict + from octoprint.server import admin_permission from octoprint.server.util.flask import restricted_access, with_revalidation_checking, check_etag -from flask.ext.babel import gettext +from flask_babel import gettext class AnnouncementPlugin(octoprint.plugin.AssetPlugin, octoprint.plugin.SettingsPlugin, @@ -44,35 +46,64 @@ class AnnouncementPlugin(octoprint.plugin.AssetPlugin, # SettingsPlugin def get_settings_defaults(self): - return dict(channels=dict(_important=dict(name="Important OctoPrint Announcements", - priority=1, - type="rss", - url="http://octoprint.org/feeds/important.xml"), - _news=dict(name="OctoPrint News", - priority=2, - type="rss", - url="http://octoprint.org/feeds/news.xml"), - _releases=dict(name="OctoPrint Release Announcements", + settings = dict(channels=dict(_important=dict(name="Important Announcements", + description="Important announcements about OctoPrint.", + priority=1, + type="rss", + url="http://octoprint.org/feeds/important.xml"), + _releases=dict(name="Release Announcements", + description="Announcements of new releases and release candidates of OctoPrint.", + priority=2, + type="rss", + url="http://octoprint.org/feeds/releases.xml"), + _blog=dict(name="On the OctoBlog", + description="Development news, community spotlights, OctoPrint On Air episodes and more from the official OctoBlog.", priority=2, type="rss", - url="http://octoprint.org/feeds/releases.xml"), - _spotlight=dict(name="OctoPrint Community Spotlights", - priority=2, - type="rss", - url="http://octoprint.org/feeds/spotlight.xml"), - _octopi=dict(name="OctoPi Announcements", - priority=2, - type="rss", - url="http://octoprint.org/feeds/octopi.xml"), - _plugins=dict(name="New Plugins in the Repository", - priority=2, - type="rss", - url="http://plugins.octoprint.org/feed.xml")), - enabled_channels=[], - forced_channels=["_important"], - ttl=6*60, - display_limit=3, - summary_limit=300) + url="http://octoprint.org/feeds/octoblog.xml"), + _plugins=dict(name="New Plugins in the Repository", + description="Announcements of new plugins released on the official Plugin Repository.", + priority=2, + type="rss", + url="http://plugins.octoprint.org/feed.xml"), + _octopi=dict(name="OctoPi News", + description="News around OctoPi, the Raspberry Pi image including OctoPrint.", + priority=2, + type="rss", + url="http://octoprint.org/feeds/octopi.xml")), + enabled_channels=[], + forced_channels=["_important"], + channel_order=["_important", "_releases", "_blog", "_plugins", "_octopi"], + ttl=6*60, + display_limit=3, + summary_limit=300) + settings["enabled_channels"] = settings["channels"].keys() + return settings + + def get_settings_version(self): + return 1 + + def on_settings_migrate(self, target, current): + if current is None: + # first version had different default feeds and only _important enabled by default + channels = self._settings.get(["channels"]) + if "_news" in channels: + del channels["_news"] + if "_spotlight" in channels: + del channels["_spotlight"] + self._settings.set(["channels"], channels) + + enabled = self._settings.get(["enabled_channels"]) + add_blog = False + if "_news" in enabled: + add_blog = True + enabled.remove("_news") + if "_spotlight" in enabled: + add_blog = True + enabled.remove("_spotlight") + if add_blog and not "_blog" in enabled: + enabled.append("_blog") + self._settings.set(["enabled_channels"], enabled) # AssetPlugin @@ -97,7 +128,7 @@ class AnnouncementPlugin(octoprint.plugin.AssetPlugin, def get_channel_data(self): from octoprint.settings import valid_boolean_trues - result = dict() + result = [] force = flask.request.values.get("force", "false") in valid_boolean_trues @@ -118,15 +149,17 @@ class AnnouncementPlugin(octoprint.plugin.AssetPlugin, last = entries[0]["published"] self._mark_read_until(key, last) - result[key] = dict(channel=data["name"], + result.append(dict(key=key, + channel=data["name"], url=data["url"], + description=data.get("description", ""), priority=data.get("priority", 2), enabled=key in enabled or key in forced, forced=key in forced, data=entries, - unread=unread) + unread=unread)) - return flask.jsonify(result) + return flask.jsonify(channels=result) def etag(): import hashlib @@ -141,11 +174,11 @@ class AnnouncementPlugin(octoprint.plugin.AssetPlugin, return hash.hexdigest() - def condition(): - return check_etag(etag()) + def condition(lm, etag): + return check_etag(etag) return with_revalidation_checking(etag_factory=lambda *args, **kwargs: etag(), - condition=lambda *args, **kwargs: condition(), + condition=lambda lm, etag: condition(lm, etag), unless=lambda: force)(view)() @octoprint.plugin.BlueprintPlugin.route("/channels/", methods=["POST"]) @@ -208,9 +241,13 @@ class AnnouncementPlugin(octoprint.plugin.AssetPlugin, with self._cached_channel_configs_mutex: if self._cached_channel_configs is None or force: configs = self._settings.get(["channels"], merged=True) - result = dict() - for key, config in configs.items(): - if "url" not in config or "name" not in config: + order = self._settings.get(["channel_order"]) + all_keys = order + [key for key in sorted(configs.keys()) if not key in order] + + result = OrderedDict() + for key in all_keys: + config = configs.get(key) + if config is None or "url" not in config or "name" not in config: # strip invalid entries continue result[self._slugify(key)] = config @@ -374,4 +411,9 @@ def _strip_tags(text): __plugin_name__ = "Announcement Plugin" +__plugin_author__ = "Gina Häußge" +__plugin_description__ = "Announcements all around OctoPrint" +__plugin_disabling_discouraged__ = gettext("Without this plugin you might miss important announcements " + "regarding security or other critical issues concerning OctoPrint.") +__plugin_license__ = "AGPLv3" __plugin_implementation__ = AnnouncementPlugin() diff --git a/src/octoprint/plugins/announcements/static/css/announcements.css b/src/octoprint/plugins/announcements/static/css/announcements.css index 08e9a9bd0..4df82b396 100644 --- a/src/octoprint/plugins/announcements/static/css/announcements.css +++ b/src/octoprint/plugins/announcements/static/css/announcements.css @@ -1 +1 @@ -table td.settings_plugin_announcements_channels_name,table th.settings_plugin_announcements_channels_name{text-overflow:ellipsis;text-align:left}table td.settings_plugin_announcements_channels_actions,table th.settings_plugin_announcements_channels_actions{text-align:center;width:80px}table td.settings_plugin_announcements_channels_actions a,table th.settings_plugin_announcements_channels_actions a{text-decoration:none;color:#000}table td.settings_plugin_announcements_channels_actions a.disabled,table th.settings_plugin_announcements_channels_actions a.disabled{color:#ccc;cursor:default}#plugin_announcements_dialog .unread{font-weight:700}#plugin_announcements_dialog article{padding-right:20px}#plugin_announcements_dialog article.read{opacity:.5}#plugin_announcements_dialog article.read:hover{opacity:1}#plugin_announcements_dialog article .actions{background-color:#f5f5f5;border-radius:2px;padding:2px 5px;margin-top:5px}#plugin_announcements_dialog article .actions .markread{float:right}#plugin_announcements_dialog article .actions a{color:#000} \ No newline at end of file +table td.settings_plugin_announcements_channels_name,table th.settings_plugin_announcements_channels_name{text-overflow:ellipsis;text-align:left}table td.settings_plugin_announcements_channels_actions,table th.settings_plugin_announcements_channels_actions{text-align:center;width:80px}table td.settings_plugin_announcements_channels_actions a,table th.settings_plugin_announcements_channels_actions a{text-decoration:none;color:#000}table td.settings_plugin_announcements_channels_actions a.disabled,table th.settings_plugin_announcements_channels_actions a.disabled{color:#ccc;cursor:default}#plugin_announcements_dialog .unread{font-weight:700}#plugin_announcements_dialog article{padding-right:20px}#plugin_announcements_dialog article.read{opacity:.5}#plugin_announcements_dialog article.read:hover{opacity:1}#plugin_announcements_dialog article .actions{background-color:#f5f5f5;border-radius:2px;padding:2px 5px;margin-top:5px}#plugin_announcements_dialog article .actions .markread{float:right}#plugin_announcements_dialog article .actions a{color:#000}#plugin_announcements_dialog .modal-footer .configurelink{float:left} \ No newline at end of file diff --git a/src/octoprint/plugins/announcements/static/js/announcements.js b/src/octoprint/plugins/announcements/static/js/announcements.js index 55c208151..dfd6d7d9a 100644 --- a/src/octoprint/plugins/announcements/static/js/announcements.js +++ b/src/octoprint/plugins/announcements/static/js/announcements.js @@ -120,12 +120,13 @@ $(function() { }; self.fromResponse = function(data) { + if (!self.loginState.isAdmin()) return; + var currentTab = $("li.active a", self.announcementDialogTabs).attr("href"); var unread = 0; var channels = []; - _.each(data, function(value, key) { - value.key = key; + _.each(data.channels, function(value) { value.last = value.data.length ? value.data[0].published : undefined; value.count = value.data.length; unread += value.unread; @@ -140,6 +141,8 @@ $(function() { }; self.showAnnouncementDialog = function(channel) { + if (!self.loginState.isAdmin()) return; + self.announcementDialogContent.scrollTop(0); if (!self.announcementDialog.hasClass("in")) { @@ -172,6 +175,8 @@ $(function() { }; self.displayAnnouncements = function(channels) { + if (!self.loginState.isAdmin()) return; + var displayLimit = self.settings.settings.plugins.announcements.display_limit(); var maxLength = self.settings.settings.plugins.announcements.summary_limit(); @@ -222,7 +227,7 @@ $(function() { } var rest = newItems.length - displayedItems.length; - var text = "
    "; + var text = "
      "; _.each(displayedItems, function(item) { var limitedSummary = stripParagraphs(item.summary_without_images.trim()); if (limitedSummary.length > maxLength) { @@ -239,6 +244,8 @@ $(function() { text += gettext(_.sprintf("... and %(rest)d more.", {rest: rest})); } + text += "" + gettext("You can edit your announcement subscriptions under Settings > Announcements.") + ""; + var options = { title: channel, text: text, @@ -284,10 +291,25 @@ $(function() { }); }; + self.hideAnnouncements = function() { + _.each(self.channelNotifications, function(notification, key) { + notification.remove(); + }); + self.channelNotifications = {}; + }; + + self.configureAnnouncements = function() { + self.settings.show("settings_plugin_announcements"); + }; + self.onUserLoggedIn = function() { self.retrieveData(); }; + self.onUserLoggedOut = function() { + self.hideAnnouncements(); + }; + self.onStartup = function() { self.announcementDialog = $("#plugin_announcements_dialog"); self.announcementDialogContent = $("#plugin_announcements_dialog_content"); diff --git a/src/octoprint/plugins/announcements/static/less/announcements.less b/src/octoprint/plugins/announcements/static/less/announcements.less index 1f57d796c..9e90b346c 100644 --- a/src/octoprint/plugins/announcements/static/less/announcements.less +++ b/src/octoprint/plugins/announcements/static/less/announcements.less @@ -53,4 +53,10 @@ table { } } } + + .modal-footer { + .configurelink { + float: left; + } + } } diff --git a/src/octoprint/plugins/announcements/templates/announcements.jinja2 b/src/octoprint/plugins/announcements/templates/announcements.jinja2 index 6c565254d..24fbe551f 100644 --- a/src/octoprint/plugins/announcements/templates/announcements.jinja2 +++ b/src/octoprint/plugins/announcements/templates/announcements.jinja2 @@ -11,7 +11,7 @@
    • - +
    • @@ -40,6 +40,7 @@ diff --git a/src/octoprint/plugins/announcements/templates/announcements_settings.jinja2 b/src/octoprint/plugins/announcements/templates/announcements_settings.jinja2 index 3d62eeb3a..0d76029c1 100644 --- a/src/octoprint/plugins/announcements/templates/announcements_settings.jinja2 +++ b/src/octoprint/plugins/announcements/templates/announcements_settings.jinja2 @@ -10,7 +10,8 @@ -
      +
      +
       
      diff --git a/src/octoprint/plugins/corewizard/__init__.py b/src/octoprint/plugins/corewizard/__init__.py index 7ce014be0..64525a1a4 100644 --- a/src/octoprint/plugins/corewizard/__init__.py +++ b/src/octoprint/plugins/corewizard/__init__.py @@ -9,7 +9,7 @@ __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms import octoprint.plugin -from flask.ext.babel import gettext +from flask_babel import gettext class CoreWizardPlugin(octoprint.plugin.AssetPlugin, @@ -87,9 +87,9 @@ class CoreWizardPlugin(octoprint.plugin.AssetPlugin, from flask import request from octoprint.server.api import valid_boolean_trues, NO_CONTENT - data = request.values - if hasattr(request, "json") and request.json: - data = request.json + data = request.get_json() + if data is None: + data = request.values if "ac" in data and data["ac"] in valid_boolean_trues and \ "user" in data.keys() and "pass1" in data.keys() and \ @@ -172,5 +172,9 @@ class CoreWizardPlugin(octoprint.plugin.AssetPlugin, __plugin_name__ = "Core Wizard" +__plugin_author__ = "Gina Häußge" __plugin_description__ = "Provides wizard dialogs for core components and functionality" +__plugin_disabling_discouraged__ = gettext("Without this plugin OctoPrint will no longer be able to perform " + "setup steps that might be required after an update.") +__plugin_license__ = "AGPLv3" __plugin_implementation__ = CoreWizardPlugin() diff --git a/src/octoprint/plugins/cura/__init__.py b/src/octoprint/plugins/cura/__init__.py index cca716cca..5fd933fb0 100644 --- a/src/octoprint/plugins/cura/__init__.py +++ b/src/octoprint/plugins/cura/__init__.py @@ -246,11 +246,11 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin, machinecode_path = path + ".gco" if position and isinstance(position, dict) and "x" in position and "y" in position: - posX = position["x"] - posY = position["y"] + pos_x = position["x"] + pos_y = position["y"] else: - posX = None - posY = None + pos_x = None + pos_y = None if on_progress: if not on_progress_args: @@ -266,7 +266,24 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin, working_dir = os.path.dirname(executable) - engine_settings = self._convert_to_engine(profile_path, printer_profile, posX, posY) + slicing_profile = Profile(self._load_profile(profile_path), printer_profile, pos_x, pos_y) + + # NOTE: We can assume an extruder count of 1 here since the only way we currently + # support dual extrusion in this implementation is by using the second extruder for support (which + # the engine conversion will automatically detect and adapt accordingly). + # + # We currently do only support STL files as sliceables, which by default can only contain one mesh, + # so no risk of having to slice multi-objects at the moment, which would necessitate a full analysis + # of the objects to slice to determine amount of needed extruders to use here. If we ever decide to + # also support dual extrusion slicing (including composition from multiple STLs or support for OBJ or + # AMF files and the like), this code needs to be adapted! + # + # The extruder count is needed to decide which start/end gcode will be used from the Cura profile. + # Stock Cura implementation counts the number of objects in the scene for this (and also takes a look + # at the support usage, like the engine conversion here does). We only ever have one object. + engine_settings = self._convert_to_engine(profile_path, printer_profile, + pos_x=pos_x, pos_y=pos_y, + used_extruders=1) # Start building the argument list for the CuraEngine command execution args = [executable, '-v', '-p'] @@ -375,11 +392,11 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin, if not tool_key in analysis["filament"]: analysis["filament"][tool_key] = dict() - if profile.get_float("filament_diameter") != None: - if profile.get("gcode_flavor") == GcodeFlavors.ULTIGCODE or profile.get("gcode_flavor") == GcodeFlavors.REPRAP_VOLUME: - analysis["filament"][tool_key] = _get_usage_from_volume(filament, profile.get_float("filament_diameter")) + if slicing_profile.get_float("filament_diameter") is not None: + if slicing_profile.get("gcode_flavor") == GcodeFlavors.ULTIGCODE or slicing_profile.get("gcode_flavor") == GcodeFlavors.REPRAP_VOLUME: + analysis["filament"][tool_key] = _get_usage_from_volume(filament, slicing_profile.get_float("filament_diameter")) else: - analysis["filament"][tool_key] = _get_usage_from_length(filament, profile.get_float("filament_diameter")) + analysis["filament"][tool_key] = _get_usage_from_length(filament, slicing_profile.get_float("filament_diameter")) except: pass @@ -442,9 +459,9 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin, with octoprint.util.atomic_write(path, "wb", max_permissions=0o666) as f: yaml.safe_dump(profile, f, default_flow_style=False, indent=" ", allow_unicode=True) - def _convert_to_engine(self, profile_path, printer_profile, posX, posY): - profile = Profile(self._load_profile(profile_path), printer_profile, posX, posY) - return profile.convert_to_engine() + def _convert_to_engine(self, profile_path, printer_profile, pos_x=None, pos_y=None, used_extruders=1): + profile = Profile(self._load_profile(profile_path), printer_profile, pos_x, pos_y) + return profile.convert_to_engine(used_extruders=used_extruders) def _sanitize_name(name): if name is None: @@ -488,7 +505,7 @@ def _get_usage_from_length(filament_length, filament_diameter): __plugin_name__ = "CuraEngine (<= 15.04)" __plugin_author__ = "Gina Häußge" -__plugin_url__ = "https://github.com/foosel/OctoPrint/wiki/Plugin:-Cura" +__plugin_url__ = "http://docs.octoprint.org/en/master/bundledplugins/cura.html" __plugin_description__ = "Adds support for slicing via CuraEngine versions up to and including version 15.04 from within OctoPrint" __plugin_license__ = "AGPLv3" __plugin_implementation__ = CuraPlugin() diff --git a/src/octoprint/plugins/cura/profile.py b/src/octoprint/plugins/cura/profile.py index 9e3ce7bef..2f8792d09 100644 --- a/src/octoprint/plugins/cura/profile.py +++ b/src/octoprint/plugins/cura/profile.py @@ -63,12 +63,14 @@ defaults = dict( solid_top=True, solid_bottom=True, fill_overlap=15, + perimeter_before_infill=False, # speeds print_speed=50.0, travel_speed=150.0, bottom_layer_speed=20.0, infill_speed=0.0, + solidarea_speed=0.0, outer_shell_speed=0.0, inner_shell_speed=0.0, @@ -117,8 +119,11 @@ defaults = dict( raft_base_linewidth=1.0, raft_interface_thickness=0.27, raft_interface_linewidth=0.4, + raft_airgap_all=0.0, raft_airgap=0.22, raft_surface_layers=2, + raft_surface_thickness=0.27, + raft_surface_linewidth=0.4, # repairing fix_horrible_union_all_type_a=True, @@ -597,8 +602,8 @@ class Profile(object): diameters = self._get("filament_diameter") if not match.group(1): return diameters[0] - index = int(match.group(1)) - if index >= len(diameters): + index = int(match.group(1)) - 1 + if index >= len(diameters) or index < 0: return 0.0 return diameters[index] @@ -610,8 +615,8 @@ class Profile(object): temperatures = self._get("print_temperature") if not match.group(1): return temperatures[0] - index = int(match.group(1)) - if index >= len(temperatures): + index = int(match.group(1)) - 1 + if index >= len(temperatures) or index < 0: return 0.0 return temperatures[index] @@ -669,9 +674,7 @@ class Profile(object): return default return int(value * 1000) - def get_gcode_template(self, key): - extruder_count = self.get_int("extruder_amount") - + def get_gcode_template(self, key, extruder_count=1): if key in self._profile: gcode = self._profile[key] else: @@ -731,7 +734,7 @@ class Profile(object): return pre + str(f) - def get_gcode(self, key): + def get_gcode(self, key, extruder_count=1): prefix = "" postfix = "" @@ -741,11 +744,11 @@ class Profile(object): return "" if key == "start_gcode": - contents = self.get_gcode_template("start_gcode") + contents = self.get_gcode_template("start_gcode", extruder_count=extruder_count) prefix += self.get_start_gcode_prefix(contents) else: - contents = self.get_gcode_template(key) + 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' @@ -754,9 +757,13 @@ class Profile(object): prefix = "" + gcode_parameter_key = "S" + if self.get("gcode_flavor") == GcodeFlavors.MACH3: + gcode_parameter_key = "P" + e_steps = self.get_float("steps_per_e") if e_steps > 0: - prefix += "M92 E{e_steps}\n" % (e_steps) + prefix += "M92 E{e_steps}\n".format(e_steps=e_steps) temp = self.get_float("print_temperature") bed_temp = 0 @@ -765,30 +772,30 @@ class Profile(object): include_bed_temp = bed_temp > 0 and not "{print_bed_temperature}" in Profile.regex_strip_comments.sub("", contents) if include_bed_temp: - prefix += "M140 S{bed_temp}\n".format(bed_temp=bed_temp) + prefix += "M140 {param}{bed_temp}\n".format(param=gcode_parameter_key, bed_temp=bed_temp) if temp > 0 and not "{print_temperature}" in Profile.regex_strip_comments.sub("", contents): if extruder_count > 0: - def temp_line(temp, extruder, template): + def temp_line(temp, extruder, param, template): t = temp if extruder > 0: print_temp = self.get_float("print_temperature%d" % (extruder + 1)) if print_temp > 0: t = print_temp - return template.format(extruder=extruder, temp=t) + return template.format(extruder=extruder, temp=t, param=param) prefix_preheat = "" prefix_waitheat = "" for n in range(0, extruder_count): if n > 0: - prefix_preheat += temp_line(temp, n, "M104 T{extruder} S{temp}\n") - prefix_waitheat += temp_line(temp, n, "M109 T{extruder} S{temp}\n") + prefix_preheat += temp_line(temp, n, gcode_parameter_key, "M104 T{extruder} {param}{temp}\n") + prefix_waitheat += temp_line(temp, n, gcode_parameter_key, "M109 T{extruder} {param}{temp}\n") prefix += prefix_preheat + prefix_waitheat + "T0\n" else: - prefix += "M109 S{temp}\n".format(temp=temp) + prefix += "M109 {param}{temp}\n".format(param=gcode_parameter_key, temp=temp) if include_bed_temp: - prefix += "M190 S{bed_temp}\n".format(bed_temp=bed_temp) + prefix += "M190 {param}{bed_temp}\n".format(param=gcode_parameter_key, bed_temp=bed_temp) return prefix @@ -822,7 +829,7 @@ class Profile(object): if layer_height == 0.0: return 1 import math - return int(math.ceil(solid_thickness / (layer_height - 0.0001))) + return int(math.ceil((solid_thickness - 0.0001) / layer_height)) def calculate_minimal_extruder_count(self): extruder_count = self.get("extruder_amount") @@ -852,13 +859,14 @@ class Profile(object): return int(self.get_float("machine_depth") / 2.0) if not self.get_boolean("machine_center_is_zero") else 0.0 - def convert_to_engine(self): + def convert_to_engine(self, used_extruders=1): edge_width, line_count = self.calculate_edge_width_and_line_count() solid_layer_count = self.calculate_solid_layer_count() extruder_count = self.get_int("extruder_amount") minimal_extruder_count = self.calculate_minimal_extruder_count() + actual_extruder_count = max(minimal_extruder_count, used_extruders) settings = { "layerThickness": self.get_microns("layer_height"), @@ -871,12 +879,14 @@ class Profile(object): "downSkinCount": solid_layer_count if self.get_boolean("solid_bottom") else 0, "upSkinCount": solid_layer_count if self.get_boolean("solid_top") else 0, "infillOverlap": self.get_int("fill_overlap"), + "perimeterBeforeInfill": 1 if self.get_boolean("perimeter_before_infill") else 0, "initialSpeedupLayers": int(4), "initialLayerSpeed": self.get_int("bottom_layer_speed"), "printSpeed": self.get_int("print_speed"), "infillSpeed": self.get_int("infill_speed") if self.get_int("infill_speed") > 0 else self.get_int("print_speed"), "inset0Speed": self.get_int("outer_shell_speed") if self.get_int("outer_shell_speed") > 0 else self.get_int("print_speed"), "insetXSpeed": self.get_int("inner_shell_speed") if self.get_int("inner_shell_speed") > 0 else self.get_int("print_speed"), + "skinSpeed": self.get_int("solidarea_speed") if self.get_int("solidarea_speed") > 0 > 0 else self.get_int("print_speed"), "moveSpeed": self.get_int("travel_speed"), "fanSpeedMin": self.get_int("fan_speed") if self.get_boolean("fan_enabled") else 0, "fanSpeedMax": self.get_int("fan_speed_max") if self.get_boolean("fan_enabled") else 0, @@ -892,22 +902,23 @@ class Profile(object): "retractionAmountExtruderSwitch": self.get_microns("retraction_dual_amount"), "retractionZHop": self.get_microns("retraction_hop"), "minimalExtrusionBeforeRetraction": self.get_microns("retraction_minimal_extrusion"), - "enableCombing": 1 if self.get("retraction_combing") == RetractionCombingTypes.ALL else (2 if self.get("retraction_combing") == RetractionCombingTypes.NO_SKIN else 0), "multiVolumeOverlap": self.get_microns("overlap_dual"), "objectSink": max(0, self.get_microns("object_sink")), "minimalLayerTime": self.get_int("cool_min_layer_time"), "minimalFeedrate": self.get_int("cool_min_feedrate"), "coolHeadLift": 1 if self.get_boolean("cool_head_lift") else 0, + "enableCombing": 1 if self.get("retraction_combing") == RetractionCombingTypes.ALL else (2 if self.get("retraction_combing") == RetractionCombingTypes.NO_SKIN else 0), + # model positioning "posx": self.get_pos_x() * 1000, # in microns "posy": self.get_pos_y() * 1000, # in microns # gcodes - "startCode": self.get_gcode("start_gcode"), - "endCode": self.get_gcode("end_gcode"), - "preSwitchExtruderCode": self.get_gcode("preSwitchExtruder_gcode"), - "postSwitchExtruderCode": self.get_gcode("postSwitchExtruder_gcode"), + "startCode": self.get_gcode("start_gcode", extruder_count=actual_extruder_count), + "endCode": self.get_gcode("end_gcode", extruder_count=actual_extruder_count), + "preSwitchExtruderCode": self.get_gcode("preSwitchExtruder_gcode", extruder_count=actual_extruder_count), + "postSwitchExtruderCode": self.get_gcode("postSwitchExtruder_gcode", extruder_count=actual_extruder_count), # fixing "fixHorrible": 0, @@ -952,12 +963,13 @@ class Profile(object): settings["raftInterfaceThickness"] = self.get_microns("raft_interface_thickness") settings["raftInterfaceLinewidth"] = self.get_microns("raft_interface_linewidth") settings["raftInterfaceLineSpacing"] = self.get_microns("raft_interface_linewidth") * 2 - settings["raftAirGapLayer0"] = self.get_microns("raft_airgap") + settings["raftAirGapLayer0"] = self.get_microns("raft_airgap") + self.get_microns("raft_airgap_all") + settings["raftAirGap"] = self.get_microns("raft_airgap_all") settings["raftBaseSpeed"] = self.get_int("bottom_layer_speed") - settings["raftFanSpeed"] = 100 - settings["raftSurfaceThickness"] = settings["raftInterfaceThickness"] - settings["raftSurfaceLinewidth"] = int(edge_width * 1000) - settings["raftSurfaceLineSpacing"] = int(edge_width * 1000 * 0.9) + settings["raftFanSpeed"] = 0 + settings["raftSurfaceThickness"] = self.get_microns("raft_surface_thickness") + settings["raftSurfaceLinewidth"] = self.get_microns("raft_surface_linewidth") + settings["raftSurfaceLineSpacing"] = self.get_microns("raft_surface_linewidth") settings["raftSurfaceLayers"] = self.get_int("raft_surface_layers") settings["raftSurfaceSpeed"] = self.get_int("bottom_layer_speed") diff --git a/src/octoprint/plugins/discovery/__init__.py b/src/octoprint/plugins/discovery/__init__.py index 7e055a27e..7d5b5f44c 100644 --- a/src/octoprint/plugins/discovery/__init__.py +++ b/src/octoprint/plugins/discovery/__init__.py @@ -12,6 +12,7 @@ The SSDP/UPNP implementations has been largely inspired by https://gist.github.c import logging import os import flask +from flask_babel import gettext from builtins import range import octoprint.plugin @@ -25,8 +26,10 @@ except: __plugin_name__ = "Discovery" __plugin_author__ = "Gina Häußge" -__plugin_url__ = "https://github.com/foosel/OctoPrint/wiki/Plugin:-Discovery" +__plugin_url__ = "http://docs.octoprint.org/en/master/bundledplugins/discovery.html" __plugin_description__ = "Makes the OctoPrint instance discoverable via Bonjour/Avahi/Zeroconf and uPnP" +__plugin_disabling_discouraged__ = gettext("Without this plugin your OctoPrint instance will no longer be " + "discoverable on the network via Bonjour and uPnP.") __plugin_license__ = "AGPLv3" def __plugin_load__(): diff --git a/src/octoprint/plugins/pluginmanager/__init__.py b/src/octoprint/plugins/pluginmanager/__init__.py index 7e6b96f54..8dfabd050 100644 --- a/src/octoprint/plugins/pluginmanager/__init__.py +++ b/src/octoprint/plugins/pluginmanager/__init__.py @@ -15,7 +15,8 @@ from octoprint.server import admin_permission, VERSION from octoprint.util.pip import LocalPipCaller, UnknownPip from flask import jsonify, make_response -from flask.ext.babel import gettext +from flask_babel import gettext +from collections import OrderedDict import logging import sarge @@ -24,6 +25,9 @@ import requests import re import os import pkg_resources +import copy +import dateutil.parser +import time class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, octoprint.plugin.TemplatePlugin, @@ -34,6 +38,10 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, ARCHIVE_EXTENSIONS = (".zip", ".tar.gz", ".tgz", ".tar") + OPERATING_SYSTEMS = dict(windows=["win32"], + linux=["linux2"], + macos=["darwin"]) + pip_inapplicable_arguments = dict(uninstall=["--user"]) def __init__(self): @@ -49,12 +57,19 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._repository_cache_path = None self._repository_cache_ttl = 0 + self._notices = dict() + self._notices_available = False + self._notices_cache_path = None + self._notices_cache_ttl = 0 + self._console_logger = None def initialize(self): self._console_logger = logging.getLogger("octoprint.plugins.pluginmanager.console") self._repository_cache_path = os.path.join(self.get_plugin_data_folder(), "plugins.json") self._repository_cache_ttl = self._settings.get_int(["repository_ttl"]) * 60 + self._notices_cache_path = os.path.join(self.get_plugin_data_folder(), "notices.json") + self._notices_cache_ttl = self._settings.get_int(["notices_ttl"]) * 60 self._pip_caller = LocalPipCaller(force_user=self._settings.get_boolean(["pip_force_user"])) self._pip_caller.on_log_call = self._log_call @@ -80,6 +95,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._console_logger.propagate = False self._repository_available = self._fetch_repository_from_disk() + self._notices_available = self._fetch_notices_from_disk() ##~~ SettingsPlugin @@ -87,6 +103,8 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, return dict( repository="http://plugins.octoprint.org/plugins.json", repository_ttl=24*60, + notices="http://plugins.octoprint.org/notices.json", + notices_ttl=6*60, pip_args=None, pip_force_user=False, dependency_links=False, @@ -97,6 +115,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, octoprint.plugin.SettingsPlugin.on_settings_save(self, data) self._repository_cache_ttl = self._settings.get_int(["repository_ttl"]) * 60 + self._notices_cache_ttl = self._settings.get_int(["notices_ttl"]) * 60 self._pip_caller.force_user = self._settings.get_boolean(["pip_force_user"]) ##~~ AssetPlugin @@ -188,6 +207,10 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, if refresh_repository: self._repository_available = self._refresh_repository() + refresh_notices = request.values.get("refresh_notices", "false") in valid_boolean_trues + if refresh_notices: + self._notices_available = self._refresh_notices() + def view(): return jsonify(plugins=self._get_plugins(), repository=dict( @@ -213,6 +236,8 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, hash.update(repr(self._get_plugins())) hash.update(str(self._repository_available)) hash.update(repr(self._repository_plugins)) + hash.update(str(self._notices_available)) + hash.update(repr(self._notices)) hash.update(repr(safe_mode)) return hash.hexdigest() @@ -221,7 +246,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, return with_revalidation_checking(etag_factory=lambda *args, **kwargs: etag(), condition=lambda *args, **kwargs: condition(), - unless=lambda: refresh_repository)(view)() + unless=lambda: refresh_repository or refresh_notices)(view)() def on_api_command(self, command, data): if not admin_permission.can(): @@ -236,7 +261,8 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, plugin_name = data["plugin"] if "plugin" in data else None return self.command_install(url=url, force="force" in data and data["force"] in valid_boolean_trues, - dependency_links="dependency_links" in data and data["dependency_links"] in valid_boolean_trues, + dependency_links="dependency_links" in data + and data["dependency_links"] in valid_boolean_trues, reinstall=plugin_name) elif command == "uninstall": @@ -257,37 +283,84 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, def command_install(self, url=None, path=None, force=False, reinstall=None, dependency_links=False): if url is not None: - pip_args = ["install", sarge.shell_quote(url)] + source = url + source_type = "url" + already_installed_check = lambda line: url in line + elif path is not None: - pip_args = ["install", sarge.shell_quote(path)] + path = os.path.abspath(path) + path_url = "file://" + path + if os.sep != "/": + # windows gets special handling + path = path.replace(os.sep, "/").lower() + path_url = "file:///" + path + + source = path + source_type = "path" + already_installed_check = lambda line: path_url in line.lower() # lower case in case of windows + else: raise ValueError("Either URL or path must be provided") + self._logger.info("Installing plugin from {}".format(source)) + pip_args = ["install", sarge.shell_quote(source)] + if dependency_links or self._settings.get_boolean(["dependency_links"]): pip_args.append("--process-dependency-links") - all_plugins_before = self._plugin_manager.find_plugins() + 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) + + # pip's output for a package that is already installed looks something like any of these: + # + # Requirement already satisfied (use --upgrade to upgrade): OctoPrint-Plugin==1.0 from \ + # https://example.com/foobar.zip in + # Requirement already satisfied (use --upgrade to upgrade): OctoPrint-Plugin in + # Requirement already satisfied (use --upgrade to upgrade): OctoPrint-Plugin==1.0 from \ + # file:///tmp/foobar.zip in + # Requirement already satisfied (use --upgrade to upgrade): OctoPrint-Plugin==1.0 from \ + # file:///C:/Temp/foobar.zip in + # + # If we detect any of these matching what we just tried to install, we'll need to trigger a second + # install with reinstall flags. + + if not force and any(map(lambda x: x.strip().startswith(already_installed_string) and already_installed_check(x), + stdout)): + self._logger.info("Plugin to be installed from {} was already installed, forcing a reinstall".format(source)) + self._log_message("Looks like the plugin was already installed. Forcing a reinstall.") + force = True except: self._logger.exception("Could not install plugin from %s" % url) return make_response("Could not install plugin from URL, see the log for more details", 500) else: if force: + # We don't use --upgrade here because that will also happily update all our dependencies - we'd rather + # do that in a controlled manner pip_args += ["--ignore-installed", "--force-reinstall", "--no-deps"] try: returncode, stdout, stderr = self._call_pip(pip_args) except: - self._logger.exception("Could not install plugin from %s" % url) - return make_response("Could not install plugin from URL, see the log for more details", 500) + self._logger.exception("Could not install plugin from {}".format(source)) + return make_response("Could not install plugin from source {}, see the log for more details" + .format(source), 500) try: - result_line = filter(lambda x: x.startswith(success_string) or x.startswith(failure_string), stdout)[-1] + result_line = filter(lambda x: x.startswith(success_string) or x.startswith(failure_string), + stdout)[-1] except IndexError: - result = dict(result=False, reason="Could not parse output from pip") + self._logger.error("Installing the plugin from {} failed, could not parse output from pip. " + "See plugin_pluginmanager_console.log for generated output".format(source)) + result = dict(result=False, + source=source, + source_type=source_type, + reason="Could not parse output from pip, see plugin_pluginmanager_console.log " + "for generated output") self._send_result_notification("install", result) return jsonify(result) @@ -300,8 +373,8 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, # Successfully installed OctoPrint-Plugin Dependency-One Dependency-Two # Cleaning up... # - # So we'll need to fetch the "Successfully installed" line, strip the "Successfully" part, then split by whitespace - # and strip to get all installed packages. + # So we'll need to fetch the "Successfully installed" line, strip the "Successfully" part, then split + # by whitespace and strip to get all installed packages. # # We then need to iterate over all known plugins and see if either the package name or the package name plus # version number matches one of our installed packages. If it does, that's our installed plugin. @@ -313,58 +386,54 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, result_line = result_line.strip() if not result_line.startswith(success_string): - result = dict(result=False, reason="Pip did not report successful installation") + self._logger.error("Installing the plugin from {} failed, pip did not report successful installation" + .format(source)) + result = dict(result=False, + source=source, + source_type=source_type, + reason="Pip did not report successful installation") self._send_result_notification("install", result) return jsonify(result) installed = map(lambda x: x.strip(), result_line[len(success_string):].split(" ")) all_plugins_after = self._plugin_manager.find_plugins(existing=dict(), ignore_uninstalled=False) - for key, plugin in all_plugins_after.items(): - if plugin.origin is None or plugin.origin.type != "entry_point": - continue - - package_name = plugin.origin.package_name - package_version = plugin.origin.package_version - versioned_package = "{package_name}-{package_version}".format(**locals()) - - if package_name in installed or versioned_package in installed: - # exact match, we are done here - new_plugin_key = key - new_plugin = plugin - break - - else: - # it might still be a version that got stripped by python's package resources, e.g. 1.4.5a0 => 1.4.5a - found = False - - for inst in installed: - if inst.startswith(versioned_package): - found = True - break - - if found: - new_plugin_key = key - new_plugin = plugin - break - else: - self._logger.warn("The plugin was installed successfully, but couldn't be found afterwards to initialize properly during runtime. Please restart OctoPrint.") - result = dict(result=True, url=url, needs_restart=True, needs_refresh=True, was_reinstalled=False, plugin="unknown") + new_plugin = self._find_installed_plugin(installed, plugins=all_plugins_after) + if new_plugin is None: + self._logger.warn("The plugin was installed successfully, but couldn't be found afterwards to " + "initialize properly during runtime. Please restart OctoPrint.") + result = dict(result=True, + source=source, + source_type=source_type, + needs_restart=True, + needs_refresh=True, + was_reinstalled=False, + plugin="unknown") self._send_result_notification("install", result) return jsonify(result) self._plugin_manager.reload_plugins() - needs_restart = self._plugin_manager.is_restart_needing_plugin(new_plugin) or new_plugin_key in all_plugins_before or reinstall is not None - needs_refresh = new_plugin.implementation and isinstance(new_plugin.implementation, octoprint.plugin.ReloadNeedingPlugin) + needs_restart = self._plugin_manager.is_restart_needing_plugin(new_plugin) \ + or new_plugin.key in all_plugins_before \ + or reinstall is not None + needs_refresh = new_plugin.implementation \ + and isinstance(new_plugin.implementation, octoprint.plugin.ReloadNeedingPlugin) - is_reinstall = self._plugin_manager.is_plugin_marked(new_plugin_key, "uninstalled") - self._plugin_manager.mark_plugin(new_plugin_key, + is_reinstall = self._plugin_manager.is_plugin_marked(new_plugin.key, "uninstalled") + self._plugin_manager.mark_plugin(new_plugin.key, uninstalled=False, installed=not is_reinstall and needs_restart) self._plugin_manager.log_all_plugins() - result = dict(result=True, url=url, needs_restart=needs_restart, needs_refresh=needs_refresh, was_reinstalled=new_plugin_key in all_plugins_before or reinstall is not None, plugin=self._to_external_representation(new_plugin)) + self._logger.info("The plugin was installed successfully: {}, version {}".format(new_plugin.name, new_plugin.version)) + result = dict(result=True, + source=source, + source_type=source_type, + needs_restart=needs_restart, + needs_refresh=needs_refresh, + was_reinstalled=new_plugin.key in all_plugins_before or reinstall is not None, + plugin=self._to_external_plugin(new_plugin)) self._send_result_notification("install", result) return jsonify(result) @@ -444,7 +513,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._plugin_manager.reload_plugins() - result = dict(result=True, needs_restart=needs_restart, needs_refresh=needs_refresh, plugin=self._to_external_representation(plugin)) + result = dict(result=True, needs_restart=needs_restart, needs_refresh=needs_refresh, plugin=self._to_external_plugin(plugin)) self._send_result_notification("uninstall", result) return jsonify(result) @@ -469,13 +538,49 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._logger.exception(u"Problem toggling enabled state of {name}: {reason}".format(name=plugin.key, reason=e.reason)) result = dict(result=False, reason=e.reason) except octoprint.plugin.core.PluginNeedsRestart: - result = dict(result=True, needs_restart=True, needs_refresh=True, plugin=self._to_external_representation(plugin)) + result = dict(result=True, + needs_restart=True, + needs_refresh=True, + plugin=self._to_external_plugin(plugin)) else: - result = dict(result=True, needs_restart=needs_restart_api, needs_refresh=needs_refresh_api, plugin=self._to_external_representation(plugin)) + result = dict(result=True, + needs_restart=needs_restart_api, + needs_refresh=needs_refresh_api, + plugin=self._to_external_plugin(plugin)) self._send_result_notification(command, result) return jsonify(result) + def _find_installed_plugin(self, packages, plugins=None): + if plugins is None: + plugins = self._plugin_manager.find_plugins(existing=dict(), ignore_uninstalled=False) + + for key, plugin in plugins.items(): + if plugin.origin is None or plugin.origin.type != "entry_point": + continue + + package_name = plugin.origin.package_name + package_version = plugin.origin.package_version + versioned_package = "{package_name}-{package_version}".format(**locals()) + + if package_name in packages or versioned_package in packages: + # exact match, we are done here + return plugin + + else: + # it might still be a version that got stripped by python's package resources, e.g. 1.4.5a0 => 1.4.5a + found = False + + for inst in packages: + if inst.startswith(versioned_package): + found = True + break + + if found: + return plugin + + return None + def _send_result_notification(self, action, result): notification = dict(type="result", action=action) notification.update(result) @@ -568,7 +673,6 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, return self._refresh_repository(repo_data=repo_data) def _fetch_repository_from_url(self): - import requests repository_url = self._settings.get(["repository"]) try: r = requests.get(repository_url) @@ -598,7 +702,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, octoprint_version = self._get_octoprint_version(base=True) def map_repository_entry(entry): - result = dict(entry) + result = copy.deepcopy(entry) if not "follow_dependency_links" in result: result["follow_dependency_links"] = False @@ -609,10 +713,10 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, ) if "compatibility" in entry: - if "octoprint" in entry["compatibility"] and entry["compatibility"]["octoprint"] is not None and len(entry["compatibility"]["octoprint"]): + 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"] = self._is_octoprint_compatible(octoprint_version, entry["compatibility"]["octoprint"]) - if "os" in entry["compatibility"] and entry["compatibility"]["os"] is not None and len(entry["compatibility"]["os"]): + 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 @@ -620,18 +724,84 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, self._repository_plugins = map(map_repository_entry, repo_data) return True + def _fetch_notices_from_disk(self): + notice_data = None + if os.path.isfile(self._notices_cache_path): + import time + mtime = os.path.getmtime(self._notices_cache_path) + if mtime + self._notices_cache_ttl >= time.time() > mtime: + try: + import json + with open(self._notices_cache_path) as f: + notice_data = json.load(f) + self._logger.info("Loaded notices from disk, was still valid") + except: + self._logger.exception("Error while loading notices from {}".format(self._notices_cache_path)) + + return self._refresh_notices(notice_data=notice_data) + + def _fetch_notices_from_url(self): + notices_url = self._settings.get(["notices"]) + try: + r = requests.get(notices_url) + self._logger.info("Loaded plugin notices data from {}".format(notices_url)) + except Exception as e: + self._logger.exception("Could not fetch notices from {notices_url}: {message}".format(notices_url=notices_url, message=str(e))) + return None + + notice_data = r.json() + + try: + import json + with octoprint.util.atomic_write(self._notices_cache_path, "wb") as f: + json.dump(notice_data, f) + except Exception as e: + self._logger.exception("Error while saving notices to {}: {}".format(self._notices_cache_path, str(e))) + return notice_data + + def _refresh_notices(self, notice_data=None): + if notice_data is None: + notice_data = self._fetch_notices_from_url() + if notice_data is None: + return False + + notices = dict() + for notice in notice_data: + if not "plugin" in notice or not "text" in notice or not "date" in notice: + continue + + key = notice["plugin"] + + try: + parsed_date = dateutil.parser.parse(notice["date"]) + notice["timestamp"] = parsed_date.timetuple() + except Exception as e: + self._logger.warn("Error while parsing date {!r} for plugin notice " + "of plugin {}, ignoring notice: {}".format(notice["date"], key, str(e))) + continue + + if not key in notices: + notices[key] = [] + notices[key].append(notice) + + self._notices = notices + return True + def _is_octoprint_compatible(self, octoprint_version, compatibility_entries): """ Tests if the current ``octoprint_version`` is compatible to any of the provided ``compatibility_entries``. """ for octo_compat in compatibility_entries: - if not any(octo_compat.startswith(c) for c in ("<", "<=", "!=", "==", ">=", ">", "~=", "===")): - octo_compat = ">={}".format(octo_compat) + try: + if not any(octo_compat.startswith(c) for c in ("<", "<=", "!=", "==", ">=", ">", "~=", "===")): + octo_compat = ">={}".format(octo_compat) - s = next(pkg_resources.parse_requirements("OctoPrint" + octo_compat)) - if octoprint_version in s: - break + s = next(pkg_resources.parse_requirements("OctoPrint" + octo_compat)) + if octoprint_version in s: + break + except: + self._logger.exception("Something is wrong with this compatibility string for OctoPrint: {}".format(octo_compat)) else: return False @@ -641,15 +811,12 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, """ Tests if the ``current_os`` matches any of the provided ``compatibility_entries``. """ - return current_os in compatibility_entries + return current_os in filter(lambda x: x in self.__class__.OPERATING_SYSTEMS.keys(), compatibility_entries) def _get_os(self): - if sys.platform == "win32": - return "windows" - elif sys.platform == "linux2": - return "linux" - elif sys.platform == "darwin": - return "macos" + for identifier, platforms in self.__class__.OPERATING_SYSTEMS.items(): + if sys.platform in platforms: + return identifier else: return "unknown" @@ -663,6 +830,13 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, octoprint_version_string = octoprint_version_string[:octoprint_version_string.find("-")] octoprint_version = pkg_resources.parse_version(octoprint_version_string) + + # A leading v is common in github release tags and old setuptools doesn't remove it. While OctoPrint's + # versions should never contains such a prefix, we'll make sure to have stuff behave the same + # regardless of setuptools version anyhow. + if octoprint_version and isinstance(octoprint_version, tuple) and octoprint_version[0].lower() == "*v": + octoprint_version = octoprint_version[1:] + if base: if isinstance(octoprint_version, tuple): # old setuptools @@ -683,18 +857,19 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, hidden = self._settings.get(["hidden"]) result = [] - for name, plugin in plugins.items(): - if name in hidden: + for key, plugin in plugins.items(): + if key in hidden: continue - result.append(self._to_external_representation(plugin)) + result.append(self._to_external_plugin(plugin)) return result - def _to_external_representation(self, plugin): + def _to_external_plugin(self, plugin): return dict( key=plugin.key, name=plugin.name, description=plugin.description, + disabling_discouraged=gettext(plugin.disabling_discouraged) if plugin.disabling_discouraged else False, author=plugin.author, version=plugin.version, url=plugin.url, @@ -708,12 +883,45 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, pending_disable=((plugin.enabled or getattr(plugin, "safe_mode_enabled", False)) and plugin.key in self._pending_disable), pending_install=(self._plugin_manager.is_plugin_marked(plugin.key, "installed")), pending_uninstall=(self._plugin_manager.is_plugin_marked(plugin.key, "uninstalled")), - origin=plugin.origin.type + origin=plugin.origin.type, + notifications = self._get_notifications(plugin) ) + def _get_notifications(self, plugin): + key = plugin.key + if not plugin.enabled: + return + + if key not in self._notices: + return + + octoprint_version = self._get_octoprint_version(base=True) + plugin_notifications = self._notices.get(key, []) + + def filter_relevant(notification): + return "text" in notification and "date" in notification and \ + ("versions" not in notification or plugin.version in notification["versions"]) and \ + ("octoversions" not in notification or self._is_octoprint_compatible(octoprint_version, notification["octoversions"])) + + def map_notification(notification): + return self._to_external_notification(key, notification) + + return filter(lambda x: x is not None, + map(map_notification, + filter(filter_relevant, + plugin_notifications))) + + def _to_external_notification(self, key, notification): + return dict(key=key, + date=time.mktime(notification["timestamp"]), + text=notification["text"], + link=notification.get("link"), + versions=notification.get("versions", []), + important=notification.get("important", False)) + __plugin_name__ = "Plugin Manager" __plugin_author__ = "Gina Häußge" -__plugin_url__ = "https://github.com/foosel/OctoPrint/wiki/Plugin:-Plugin-Manager" +__plugin_url__ = "http://docs.octoprint.org/en/master/bundledplugins/pluginmanager.html" __plugin_description__ = "Allows installing and managing OctoPrint plugins" __plugin_license__ = "AGPLv3" diff --git a/src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css b/src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css index b1cbc9af7..91383181e 100644 --- a/src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css +++ b/src/octoprint/plugins/pluginmanager/static/css/pluginmanager.css @@ -1 +1 @@ -table th.settings_plugin_plugin_manager_plugins_name,table td.settings_plugin_plugin_manager_plugins_name{text-overflow:ellipsis;text-align:left}table th.settings_plugin_plugin_manager_plugins_actions,table td.settings_plugin_plugin_manager_plugins_actions{text-align:center;width:80px}table th.settings_plugin_plugin_manager_plugins_actions a,table td.settings_plugin_plugin_manager_plugins_actions a{text-decoration:none;color:#000}table th.settings_plugin_plugin_manager_plugins_actions a.disabled,table td.settings_plugin_plugin_manager_plugins_actions a.disabled{color:#ccc;cursor:default}#settings_plugin_pluginmanager_repositorydialog .slimScrollDiv{margin-bottom:20px}#settings_plugin_pluginmanager_repositorydialog h4{position:relative}#settings_plugin_pluginmanager_repositorydialog h4 a.dropdown-toggle{color:inherit;text-decoration:none;font-size:14px}#settings_plugin_pluginmanager_repositorydialog h4 ul.dropdown-menu{font-size:14px}#settings_plugin_pluginmanager_repositorydialog .form-search{text-align:center;margin-bottom:5px!important}#settings_plugin_pluginmanager_repositorydialog .form-inline{padding:5px;padding-right:10px;margin-bottom:0}#settings_plugin_pluginmanager_repositorydialog .form-inline .help-block{margin-bottom:0;font-size:85%}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable{overflow:hidden;width:100%;height:300px;background-image:url("../img/repo_unavailable.png");text-align:center;display:table}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable div{display:table-cell;vertical-align:middle}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list{overflow:hidden;width:auto;height:300px}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list .entry{border-bottom:1px solid #ddd;padding:5px;padding-right:10px}#settings_plugin_pluginmanager_workingdialog_output .message{font-weight:bold}#settings_plugin_pluginmanager_workingdialog_output .stdout{color:#333}#settings_plugin_pluginmanager_workingdialog_output .stderr{color:#900}#settings_plugin_pluginmanager_workingdialog_output .call{color:#009} \ No newline at end of file +table td.settings_plugin_plugin_manager_plugins_name,table th.settings_plugin_plugin_manager_plugins_name{text-overflow:ellipsis;text-align:left}table td.settings_plugin_plugin_manager_plugins_actions,table th.settings_plugin_plugin_manager_plugins_actions{text-align:center;width:80px}table td.settings_plugin_plugin_manager_plugins_actions a,table th.settings_plugin_plugin_manager_plugins_actions a{text-decoration:none;color:#000}table td.settings_plugin_plugin_manager_plugins_actions a.disabled,table th.settings_plugin_plugin_manager_plugins_actions a.disabled{color:#ccc;cursor:default}#settings_plugin_pluginmanager_repositorydialog .slimScrollDiv{margin-bottom:20px}#settings_plugin_pluginmanager_repositorydialog h4{position:relative}#settings_plugin_pluginmanager_repositorydialog h4 a.dropdown-toggle{color:inherit;text-decoration:none;font-size:14px}#settings_plugin_pluginmanager_repositorydialog h4 ul.dropdown-menu{font-size:14px}#settings_plugin_pluginmanager_repositorydialog .form-search{text-align:center;margin-bottom:5px!important}#settings_plugin_pluginmanager_repositorydialog .form-inline{padding:5px 10px 5px 5px;margin-bottom:0}#settings_plugin_pluginmanager_repositorydialog .form-inline .help-block{margin-bottom:0;font-size:85%}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable{overflow:hidden;width:100%;height:300px;background-image:url(../img/repo_unavailable.png);text-align:center;display:table}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable div{display:table-cell;vertical-align:middle}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list{overflow:hidden;width:auto;height:300px}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list .entry{border-bottom:1px solid #ddd;padding:5px 10px 5px 5px}#settings_plugin_pluginmanager_workingdialog_output .message{font-weight:700}#settings_plugin_pluginmanager_workingdialog_output .error{font-weight:700;color:#900}#settings_plugin_pluginmanager_workingdialog_output .stdout{color:#333}#settings_plugin_pluginmanager_workingdialog_output .stderr{color:#900}#settings_plugin_pluginmanager_workingdialog_output .call{color:#009} \ No newline at end of file diff --git a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js index 2301e1dfe..57b1b92d0 100644 --- a/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js +++ b/src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js @@ -1,68 +1,84 @@ (function (global, factory) { if (typeof define === "function" && define.amd) { - define(["OctoPrint"], factory); + define(["OctoPrintClient"], factory); } else { - factory(window.OctoPrint); + factory(global.OctoPrintClient); } -})(window || this, function(OctoPrint) { - var exports = {}; - - exports.get = function(refresh, opts) { - return OctoPrint.get(OctoPrint.getSimpleApiUrl("pluginmanager") + ((refresh) ? "?refresh_repository=true" : ""), opts); +})(this, function(OctoPrintClient) { + var OctoPrintPluginManagerClient = function(base) { + this.base = base; }; - exports.getWithRefresh = function(opts) { - return exports.get(true, opts); + 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); }; - exports.getWithoutRefresh = function(opts) { - return exports.get(false, opts); + OctoPrintPluginManagerClient.prototype.getWithRefresh = function(opts) { + return this.get(true, opts); }; - exports.install = function(pluginUrl, dependencyLinks, 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 OctoPrint.simpleApiCommand("pluginmanager", "install", data, opts); + return this.base.simpleApiCommand("pluginmanager", "install", data, opts); }; - exports.reinstall = function(plugin, pluginUrl, dependencyLinks, opts) { + OctoPrintPluginManagerClient.prototype.reinstall = function(plugin, pluginUrl, dependencyLinks, opts) { var data = { url: pluginUrl, dependency_links: !!dependencyLinks, reinstall: plugin, force: true }; - return OctoPrint.simpleApiCommand("pluginmanager", "install", data, opts); + return this.base.simpleApiCommand("pluginmanager", "install", data, opts); }; - exports.uninstall = function(plugin, opts) { + OctoPrintPluginManagerClient.prototype.uninstall = function(plugin, opts) { var data = { plugin: plugin }; - return OctoPrint.simpleApiCommand("pluginmanager", "uninstall", data, opts); + return this.base.simpleApiCommand("pluginmanager", "uninstall", data, opts); }; - exports.enable = function(plugin, opts) { + OctoPrintPluginManagerClient.prototype.enable = function(plugin, opts) { var data = { plugin: plugin }; - return OctoPrint.simpleApiCommand("pluginmanager", "enable", data, opts); + return this.base.simpleApiCommand("pluginmanager", "enable", data, opts); }; - exports.disable = function(plugin, opts) { + OctoPrintPluginManagerClient.prototype.disable = function(plugin, opts) { var data = { plugin: plugin }; - return OctoPrint.simpleApiCommand("pluginmanager", "disable", data, opts); + return this.base.simpleApiCommand("pluginmanager", "disable", data, opts); }; - exports.upload = function(file) { - return OctoPrint.upload(OctoPrint.getBlueprintUrl("pluginmanager") + "upload_archive", file); + OctoPrintPluginManagerClient.prototype.upload = function(file) { + return this.base.upload(this.base.getBlueprintUrl("pluginmanager") + "upload_archive", file); }; - OctoPrint.plugins.pluginmanager = exports; + OctoPrintClient.registerPluginComponent("pluginmanager", OctoPrintPluginManagerClient); + return OctoPrintPluginManagerClient; }); $(function() { @@ -76,6 +92,8 @@ $(function() { self.config_repositoryUrl = ko.observable(); self.config_repositoryTtl = ko.observable(); + self.config_noticesUrl = ko.observable(); + self.config_noticesTtl = ko.observable(); self.config_pipAdditionalArgs = ko.observable(); self.config_pipForceUser = ko.observable(); @@ -182,6 +200,20 @@ $(function() { }); self.notifications = []; + self.noticeNotifications = []; + self.hiddenNoticeNotifications = {}; + self.noticeCount = ko.observable(0); + + self.noticeCountText = ko.pureComputed(function() { + var count = self.noticeCount(); + if (count == 0) { + return gettext("There are no plugin notices. Great!"); + } else if (count == 1) { + return gettext("There is a plugin notice for one of your installed plugins."); + } else { + return _.sprintf(gettext("There are %(count)d plugin notices for one or more of your installed plugins."), {count: count}); + } + }); self.enableManagement = ko.pureComputed(function() { return !self.printerState.isPrinting(); @@ -247,7 +279,13 @@ $(function() { }); }, done: function(e, data) { - self._markDone(); + var response = data.result; + if (response.result) { + self._markDone(); + } else { + self._markDone(response.reason); + } + self.uploadButton.unbind("click"); self.uploadFilename(undefined); }, @@ -258,7 +296,7 @@ $(function() { type: "error", hide: false }); - self._markDone(); + self._markDone("Could not install plugin, unknown error."); self.uploadButton.unbind("click"); self.uploadFilename(undefined); } @@ -277,19 +315,36 @@ $(function() { return false; }; - self.fromResponse = function(data) { - self._fromPluginsResponse(data.plugins); - self._fromRepositoryResponse(data.repository); - self._fromPipResponse(data.pip); + self.fromResponse = function(data, options) { + self._fromPluginsResponse(data.plugins, options); + self._fromRepositoryResponse(data.repository, options); + self._fromPipResponse(data.pip, options); self.safeMode(data.safe_mode || false); }; - self._fromPluginsResponse = function(data) { + self._fromPluginsResponse = function(data, options) { + var evalNotices = options.eval_notices || false; + var ignoreNoticeHidden = options.ignore_notice_hidden || false; + var ignoreNoticeIgnored = options.ignore_notice_ignored || false; + + if (evalNotices) self._removeAllNoticeNotifications(); + var installedPlugins = []; + var noticeCount = 0; _.each(data, function(plugin) { installedPlugins.push(plugin.key); + + if (evalNotices && plugin.notifications && plugin.notifications.length) { + _.each(plugin.notifications, function(notification) { + noticeCount++; + if (!ignoreNoticeIgnored && self._isNoticeNotificationIgnored(plugin.key, notification.date)) return; + if (!ignoreNoticeHidden && self._isNoticeNotificationHidden(plugin.key, notification.date)) return; + self._showPluginNotification(plugin, notification); + }); + } }); + if (evalNotices) self.noticeCount(noticeCount); self.installedPlugins(installedPlugins); self.plugins.updateItems(data); }; @@ -321,13 +376,28 @@ $(function() { } }; - self.requestData = function(includeRepo) { + self.requestData = function(options) { if (!self.loginState.isAdmin()) { return; } - OctoPrint.plugins.pluginmanager.get(includeRepo) - .done(self.fromResponse); + if (!_.isPlainObject(options)) { + options = { + refresh_repo: options, + refresh_notices: false, + eval_notices: false + }; + + } + + options.refresh_repo = options.refresh_repo || false; + options.refresh_notices = options.refresh_notices || false; + options.eval_notices = options.eval_notices || false; + + OctoPrint.plugins.pluginmanager.get({repo: options.refresh_repo, notices: options.refresh_notices}) + .done(function(data) { + self.fromResponse(data, options); + }); }; self.togglePlugin = function(data) { @@ -341,7 +411,9 @@ $(function() { if (data.key == "pluginmanager") return; - var onSuccess = self.requestData, + var onSuccess = function() { + self.requestData(); + }, onError = function() { new PNotify({ title: gettext("Something went wrong"), @@ -357,9 +429,26 @@ $(function() { .done(onSuccess) .fail(onError); } else { - OctoPrint.plugins.pluginmanager.disable(data.key) - .done(onSuccess) - .fail(onError); + var perform = function() { + OctoPrint.plugins.pluginmanager.disable(data.key) + .done(onSuccess) + .fail(onError); + }; + + if (data.disabling_discouraged) { + var message = _.sprintf(gettext("You are about to disable \"%(name)s\"."), {name: data.name}) + + "

      " + data.disabling_discouraged; + showConfirmationDialog({ + title: gettext("This is not recommended"), + message: message, + question: gettext("Do you still want to disable it?"), + cancel: gettext("Keep enabled"), + proceed: gettext("Disable anyway"), + onproceed: perform + }) + } else { + perform(); + } } }; @@ -415,20 +504,23 @@ $(function() { } self._markWorking(workTitle, workText); - var onSuccess = function() { + var onSuccess = function(response) { + if (response.result) { + self._markDone(); + } else { + self._markDone(response.reason) + } self.requestData(); self.installUrl(""); }, onError = function() { + self._markDone("Could not install plugin, unknown error, please consult octoprint.log for details"); new PNotify({ title: gettext("Something went wrong"), text: gettext("Please consult octoprint.log for details"), type: "error", hide: false }); - }, - onAlways = function() { - self._markDone(); }; if (reinstall) { @@ -459,7 +551,9 @@ $(function() { self._markWorking(gettext("Uninstalling plugin..."), _.sprintf(gettext("Uninstalling plugin \"%(name)s\""), {name: data.name})); OctoPrint.plugins.pluginmanager.uninstall(data.key) - .done(self.requestData) + .done(function() { + self.requestData(); + }) .fail(function() { new PNotify({ title: gettext("Something went wrong"), @@ -477,8 +571,23 @@ $(function() { if (!self.loginState.isAdmin()) { return; } + self.requestData({refresh_repo: true}); + }; - self.requestData(true); + self.refreshNotices = function() { + if (!self.loginState.isAdmin()) { + return; + } + + self.requestData({refresh_notices: true, eval_notices: true, ignore_notice_hidden: true, ignore_notice_ignored: true}); + }; + + self.reshowNotices = function() { + if (!self.loginState.isAdmin()) { + return; + } + + self.requestData({eval_notices: true, ignore_notice_hidden: true, ignore_notice_ignored: true}); }; self.showPluginSettings = function() { @@ -499,6 +608,18 @@ $(function() { repositoryTtl = null; } + var notices = self.config_noticesUrl(); + if (notices != undefined && notices.trim() == "") { + notices = null; + } + + var noticesTtl; + try { + noticesTtl = parseInt(self.config_noticesTtl()); + } catch (ex) { + noticesTtl = null; + } + var pipArgs = self.config_pipAdditionalArgs(); if (pipArgs != undefined && pipArgs.trim() == "") { pipArgs = null; @@ -509,6 +630,8 @@ $(function() { pluginmanager: { repository: repository, repository_ttl: repositoryTtl, + notices: notices, + notices_ttl: noticesTtl, pip_args: pipArgs, pip_force_user: self.config_pipForceUser() } @@ -517,13 +640,15 @@ $(function() { self.settingsViewModel.saveData(data, function() { self.configurationDialog.modal("hide"); self._copyConfig(); - self.refreshRepository(); + self.requestData({refresh_repo: true, refresh_notices: true, eval_notices: true}); }); }; self._copyConfig = function() { self.config_repositoryUrl(self.settingsViewModel.settings.plugins.pluginmanager.repository()); self.config_repositoryTtl(self.settingsViewModel.settings.plugins.pluginmanager.repository_ttl()); + self.config_noticesUrl(self.settingsViewModel.settings.plugins.pluginmanager.notices()); + self.config_noticesTtl(self.settingsViewModel.settings.plugins.pluginmanager.notices_ttl()); self.config_pipAdditionalArgs(self.settingsViewModel.settings.plugins.pluginmanager.pip_args()); self.config_pipForceUser(self.settingsViewModel.settings.plugins.pluginmanager.pip_force_user()); }; @@ -537,7 +662,7 @@ $(function() { }; self.installButtonText = function(data) { - return self.isCompatible(data) ? (self.installed(data) ? gettext("Reinstall") : gettext("Install")) : gettext("Incompatible"); + return self.isCompatible(data) ? (self.installed(data) ? gettext("Reinstall") : gettext("Install")) : (data.disabled ? gettext("Disabled") : gettext("Incompatible")); }; self._displayNotification = function(response, titleSuccess, textSuccess, textRestart, textReload, titleError, textError) { @@ -651,9 +776,14 @@ $(function() { self.workingDialog.modal({keyboard: false, backdrop: "static", show: true}); }; - self._markDone = function() { + self._markDone = function(error) { self.working(false); - self.loglines.push({line: gettext("Done!"), stream: "message"}); + if (error) { + self.loglines.push({line: gettext("Error!"), stream: "error"}); + self.loglines.push({line: error, stream: "error"}) + } else { + self.loglines.push({line: gettext("Done!"), stream: "message"}); + } self._scrollWorkingOutputToEnd(); }; @@ -686,13 +816,184 @@ $(function() { } }; + self.showPluginNotifications = function(plugin) { + if (!plugin.notifications || plugin.notifications.length == 0) return; + + self._removeAllNoticeNotificationsForPlugin(plugin.key); + _.each(plugin.notifications, function(notification) { + self._showPluginNotification(plugin, notification); + }); + }; + + self.showPluginNotificationsLinkText = function(plugins) { + if (!plugins.notifications || plugins.notifications.length == 0) return; + + var count = plugins.notifications.length; + var importantCount = _.filter(plugins.notifications, function(notification) { return notification.important }).length; + if (count > 1) { + if (importantCount) { + return _.sprintf(gettext("There are %(count)d notices (%(important)d marked as important) available regarding this plugin - click to show!"), {count: count, important: importantCount}); + } else { + return _.sprintf(gettext("There are %(count)d notices available regarding this plugin - click to show!"), {count: count}); + } + } else { + if (importantCount) { + return gettext("There is an important notice available regarding this plugin - click to show!"); + } else { + return gettext("There is a notice available regarding this plugin - click to show!"); + } + } + }; + + self._showPluginNotification = function(plugin, notification) { + var name = plugin.name; + var version = plugin.version; + + var important = notification.important; + var link = notification.link; + + var title; + if (important) { + title = _.sprintf(gettext("Important notice regarding plugin \"%(name)s\""), {name: name}); + } else { + title = _.sprintf(gettext("Notice regarding plugin \"%(name)s\""), {name: name}); + } + + var text = ""; + + if (notification.versions && notification.versions.length > 0) { + var versions = _.map(notification.versions, function(v) { return (v == version) ? "" + v + "" : v; }).join(", "); + text += "" + _.sprintf(gettext("Affected versions: %(versions)s"), {versions: versions}) + ""; + } else { + text += "" + gettext("Affected versions: all") + ""; + } + + text += "

      " + notification.text + "

      "; + if (link) { + text += "

      " + gettext("Read more...") + "

      "; + } + + var beforeClose = function(notification) { + if (!self.noticeNotifications[plugin.key]) return; + self.noticeNotifications[plugin.key] = _.without(self.noticeNotifications[plugin.key], notification); + }; + + var options = { + title: title, + text: text, + type: (important) ? "error" : "notice", + before_close: beforeClose, + hide: false, + confirm: { + confirm: true, + buttons: [{ + text: gettext("Later"), + click: function(notice) { + self._hideNoticeNotification(plugin.key, notification.date); + notice.remove(); + notice.get().trigger("pnotify.cancel", notice); + } + }, { + text: gettext("Mark read"), + click: function(notice) { + self._ignoreNoticeNotification(plugin.key, notification.date); + notice.remove(); + notice.get().trigger("pnotify.cancel", notice); + } + }] + }, + buttons: { + sticker: false, + closer: false + } + }; + + if (!self.noticeNotifications[plugin.key]) { + self.noticeNotifications[plugin.key] = []; + } + self.noticeNotifications[plugin.key].push(new PNotify(options)); + }; + + self._removeAllNoticeNotifications = function() { + _.each(_.keys(self.noticeNotifications), function(key) { + self._removeAllNoticeNotificationsForPlugin(key); + }); + }; + + self._removeAllNoticeNotificationsForPlugin = function(key) { + if (!self.noticeNotifications[key] || !self.noticeNotifications[key].length) return; + _.each(self.noticeNotifications[key], function(notification) { + notification.remove(); + }); + }; + + self._hideNoticeNotification = function(key, date) { + if (!self.hiddenNoticeNotifications[key]) { + self.hiddenNoticeNotifications[key] = []; + } + if (!_.contains(self.hiddenNoticeNotifications[key], date)) { + self.hiddenNoticeNotifications[key].push(date); + } + }; + + self._isNoticeNotificationHidden = function(key, date) { + if (!self.hiddenNoticeNotifications[key]) return false; + return _.any(_.map(self.hiddenNoticeNotifications[key], function(d) { return date == d; })); + }; + + var noticeLocalStorageKey = "plugin.pluginmanager.seen_notices"; + self._ignoreNoticeNotification = function(key, date) { + if (!Modernizr.localstorage) + return false; + if (!self.loginState.isAdmin()) + return false; + + var currentString = localStorage[noticeLocalStorageKey]; + var current; + if (currentString === undefined) { + current = {}; + } else { + current = JSON.parse(currentString); + } + if (!current[self.loginState.username()]) { + current[self.loginState.username()] = {}; + } + if (!current[self.loginState.username()][key]) { + current[self.loginState.username()][key] = []; + } + + if (!_.contains(current[self.loginState.username()][key], date)) { + current[self.loginState.username()][key].push(date); + localStorage[noticeLocalStorageKey] = JSON.stringify(current); + } + }; + + self._isNoticeNotificationIgnored = function(key, date) { + if (!Modernizr.localstorage) + return false; + + if (localStorage[noticeLocalStorageKey] == undefined) + return false; + + var knownData = JSON.parse(localStorage[noticeLocalStorageKey]); + + if (!self.loginState.isAdmin()) + return true; + + var userData = knownData[self.loginState.username()]; + if (userData === undefined) + return false; + + return userData[key] && _.contains(userData[key], date); + }; + self.onBeforeBinding = function() { self.settings = self.settingsViewModel.settings; }; self.onUserLoggedIn = function(user) { if (user.admin) { - self.requestData(); + self.requestData({eval_notices: true}); } else { self.onUserLoggedOut(); } @@ -784,22 +1085,42 @@ $(function() { } titleError = gettext("Something went wrong"); - var url = "unknown"; - if (data.hasOwnProperty("url")) { - url = data.url; + var source = "unknown"; + if (data.hasOwnProperty("source")) { + source = data.source; + } + var sourceType = "unknown"; + if (data.hasOwnProperty("source_type")) { + sourceType = data.source_type; } if (data.hasOwnProperty("reason")) { if (data.was_reinstalled) { - textError = _.sprintf(gettext("Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s"), {reason: data.reason, url: url}); + if (sourceType == "path") { + textError = _.sprintf(gettext("Reinstalling the plugin from file failed: %(reason)s"), {reason: data.reason}); + } else { + textError = _.sprintf(gettext("Reinstalling the plugin from \"%(source)s\" failed: %(reason)s"), {reason: data.reason, source: source}); + } } else { - textError = _.sprintf(gettext("Installing the plugin from URL \"%(url)s\" failed: %(reason)s"), {reason: data.reason, url: url}); + if (sourceType == "path") { + textError = _.sprintf(gettext("Installing the plugin from file failed: %(reason)s"), {reason: data.reason}); + } else { + textError = _.sprintf(gettext("Installing the plugin from \"%(source)s\" failed: %(reason)s"), {reason: data.reason, source: source}); + } } } else { if (data.was_reinstalled) { - textError = _.sprintf(gettext("Reinstalling the plugin from URL \"%(url)s\" failed, please see the log for details."), {url: url}); + if (sourceType == "path") { + textError = gettext("Reinstalling the plugin from file failed, please see the log for details."); + } else { + textError = _.sprintf(gettext("Reinstalling the plugin from \"%(source)s\" failed, please see the log for details."), {source: source}); + } } else { - textError = _.sprintf(gettext("Installing the plugin from URL \"%(url)s\" failed, please see the log for details."), {url: url}); + if (sourceType == "path") { + textError = gettext("Installing the plugin from file failed, please see the log for details."); + } else { + textError = _.sprintf(gettext("Installing the plugin from \"%(source)s\" failed, please see the log for details."), {source: source}); + } } } diff --git a/src/octoprint/plugins/pluginmanager/static/less/pluginmanager.less b/src/octoprint/plugins/pluginmanager/static/less/pluginmanager.less index a14c2f6b3..2b591e9cb 100644 --- a/src/octoprint/plugins/pluginmanager/static/less/pluginmanager.less +++ b/src/octoprint/plugins/pluginmanager/static/less/pluginmanager.less @@ -89,6 +89,11 @@ table { font-weight: bold; } + .error { + font-weight: bold; + color: #990000; + } + .stdout { color: #333333; } diff --git a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 index 8f01183c0..93b65dfd3 100644 --- a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 +++ b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 @@ -40,7 +40,8 @@ -
      ()
      +
      ()
      +
       
      {{ _('Homepage') }} @@ -72,7 +73,7 @@
      - + Using pip of "", Version @@ -86,12 +87,28 @@
      + +
      @@ -237,6 +255,24 @@ + {{ _('Notices configuration') }} + +
      + +
      + +
      +
      +
      + +
      +
      + + min +
      +
      +
      + {{ _('pip configuration') }}
      diff --git a/src/octoprint/plugins/softwareupdate/__init__.py b/src/octoprint/plugins/softwareupdate/__init__.py index 4098366ae..58b1e8636 100644 --- a/src/octoprint/plugins/softwareupdate/__init__.py +++ b/src/octoprint/plugins/softwareupdate/__init__.py @@ -18,10 +18,11 @@ import hashlib from . import version_checks, updaters, exceptions, util, cli +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 +from octoprint.util import dict_merge, to_unicode import octoprint.settings @@ -40,6 +41,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, self._configured_checks = None self._refresh_configured_checks = False + self._get_versions_mutex = threading.Lock() + self._version_cache = dict() self._version_cache_ttl = 0 self._version_cache_path = None @@ -70,24 +73,62 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, self._console_logger.setLevel(logging.DEBUG) 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 + self.get_current_versions() + def _get_configured_checks(self): with self._configured_checks_mutex: if self._refresh_configured_checks or self._configured_checks is None: self._refresh_configured_checks = False self._configured_checks = self._settings.get(["checks"], merged=True) + update_check_hooks = self._plugin_manager.get_hooks("octoprint.plugin.softwareupdate.check_config") check_providers = self._settings.get(["check_providers"], merged=True) + effective_configs = dict() + for name, hook in update_check_hooks.items(): try: hook_checks = hook() except: self._logger.exception("Error while retrieving update information from plugin {name}".format(**locals())) else: - for key, data in hook_checks.items(): + for key, default_config in hook_checks.items(): + if key in effective_configs or key == "octoprint": + if key == name: + self._logger.warn("Software update hook {} provides check for itself but that was already registered by {} - overwriting that third party registration now!".format(name, check_providers.get(key, "unknown hook"))) + else: + self._logger.warn("Software update hook {} tried to overwrite config for check {} but that was already configured elsewhere".format(name, key)) + continue + check_providers[key] = name + + yaml_config = dict() + effective_config = default_config if key in self._configured_checks: - data = dict_merge(data, self._configured_checks[key]) - self._configured_checks[key] = data + yaml_config = self._configured_checks[key] + effective_config = dict_merge(default_config, yaml_config) + + # Make sure there's nothing persisted in that check that shouldn't be persisted + # + # This used to be part of the settings migration (version 2) due to a bug - it can't + # stay there though since it interferes with manual entries to the checks not + # originating from within a plugin. Hence we do that step now here. + if "type" not in effective_config or effective_config["type"] != "github_commit": + deletables = ["current", "displayVersion"] + else: + deletables = [] + self._clean_settings_check(key, yaml_config, default_config, delete=deletables, save=False) + + if effective_config: + effective_configs[key] = effective_config + else: + self._logger.warn("Update for {} is empty or None, ignoring it".format(key)) + + # finally set all our internal representations to our processed results + for key, config in effective_configs.items(): + self._configured_checks[key] = config + self._settings.set(["check_providers"], check_providers) self._settings.save() @@ -173,6 +214,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, "check_providers": {}, "cache_ttl": 24 * 60, + + "notify_users": True } def on_settings_load(self): @@ -220,7 +263,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, def on_settings_save(self, data): for key in self.get_settings_defaults(): - if key in ("checks", "cache_ttl", "octoprint_checkout_folder", "octoprint_type", "octoprint_release_channel"): + if key in ("checks", "cache_ttl", "notify_user", "octoprint_checkout_folder", "octoprint_type", "octoprint_release_channel"): continue if key in data: self._settings.set([key], data[key]) @@ -229,6 +272,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, self._settings.set_int(["cache_ttl"], data["cache_ttl"]) self._version_cache_ttl = self._settings.get_int(["cache_ttl"]) * 60 + if "notify_users" in data: + self._settings.set_boolean(["notify_users"], data["notify_users"]) + checks = self._get_configured_checks() if "octoprint" in checks: check = checks["octoprint"] @@ -287,11 +333,18 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, self._refresh_configured_checks = True def get_settings_version(self): - return 4 + return 5 def on_settings_migrate(self, target, current=None): - if current is None or current < 4: + if current == 4: + # config version 4 didn't correctly remove the old settings for octoprint_restart_command + # and environment_restart_command + + self._settings.set(["environment_restart_command"], None) + self._settings.set(["octoprint_restart_command"], None) + + if current is None or current < 5: # config version 4 and higher moves octoprint_restart_command and # environment_restart_command to the core configuration @@ -315,50 +368,27 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, if current is None or current == 2: # No config version and config version 2 need the same fix, stripping - # accidentally persisted data off the checks + # accidentally persisted data off the checks. + # + # We used to do the same processing for the plugin entries too here, but that interfered + # with manual configuration entries. Stuff got deleted that wasn't supposed to be deleted. + # + # The problem is that we don't know if an entry we are looking at and which didn't come through + # a plugin hook is simply an entry from a now uninstalled/unactive plugin, or if it was something + # manually configured by the user. So instead of just blindly removing anything that doesn't + # come from a plugin here we instead clean up anything that indeed comes from a plugin + # during run time and leave everything else as is in the hopes that will not cause trouble. + # + # We still handle the "octoprint" entry here though. configured_checks = self._settings.get(["checks"], incl_defaults=False) - if configured_checks is None: - configured_checks = dict() - - check_keys = configured_checks.keys() - - # take care of the octoprint entry - if "octoprint" in configured_checks: + if configured_checks is not None and "octoprint" in configured_checks: octoprint_check = dict(configured_checks["octoprint"]) if "type" not in octoprint_check or octoprint_check["type"] != "github_commit": deletables=["current", "displayName", "displayVersion"] else: deletables=[] - octoprint_check = self._clean_settings_check("octoprint", octoprint_check, self.get_settings_defaults()["checks"]["octoprint"], delete=deletables, save=False) - check_keys.remove("octoprint") - - # and the hooks - update_check_hooks = self._plugin_manager.get_hooks("octoprint.plugin.softwareupdate.check_config") - for name, hook in update_check_hooks.items(): - try: - hook_checks = hook() - except: - self._logger.exception("Error while retrieving update information from plugin {name}".format(**locals())) - else: - for key, data in hook_checks.items(): - if key in configured_checks: - settings_check = dict(configured_checks[key]) - merged = dict_merge(data, settings_check) - if "type" not in merged or merged["type"] != "github_commit": - deletables = ["current", "displayVersion"] - else: - deletables = [] - - self._clean_settings_check(key, settings_check, data, delete=deletables, save=False) - check_keys.remove(key) - - # and anything that's left over we'll just remove now - for key in check_keys: - dummy_defaults = dict(plugins=dict()) - dummy_defaults["plugins"][self._identifier] = dict(checks=dict()) - dummy_defaults["plugins"][self._identifier]["checks"][key] = None - self._settings.set(["checks", key], None, defaults=dummy_defaults) + self._clean_settings_check("octoprint", octoprint_check, self.get_settings_defaults()["checks"]["octoprint"], delete=deletables, save=False) elif current == 1: # config version 1 had the error that the octoprint check got accidentally @@ -377,6 +407,10 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, self._settings.set(["checks", "octoprint"], None, defaults=dummy_defaults) def _clean_settings_check(self, key, data, defaults, delete=None, save=True): + if not data: + # nothing to do + return data + if delete is None: delete = [] @@ -416,6 +450,15 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, def view(): try: information, update_available, update_possible = self.get_current_versions(check_targets=check_targets, force=force) + + # we don't want to transfer python_checker or python_updater values through json - replace with True + for key, data in information.items(): + if "check" in data: + if "python_checker" in data["check"]: + data["check"]["python_checker"] = True + if "python_updater" in data["check"]: + data["check"]["python_updater"] = True + return flask.jsonify(dict(status="updatePossible" if update_available and update_possible else "updateAvailable" if update_available else "current", information=information)) except exceptions.ConfigurationInvalid as e: @@ -464,7 +507,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, if not "application/json" in flask.request.headers["Content-Type"]: return flask.make_response("Expected content-type JSON", 400) - json_data = flask.request.json + json_data = flask.request.get_json(silent=True) + if json_data is None: + return flask.make_response("Invalid JSON", 400) if "check" in json_data: check_targets = map(lambda x: x.strip(), json_data["check"]) @@ -491,7 +536,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, ##~~ TemplatePlugin API def get_template_configs(self): - from flask.ext.babel import gettext + from flask_babel import gettext return [ dict(type="settings", name=gettext("Software Update")) ] @@ -522,54 +567,70 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, update_possible = False information = dict() - for target, check in checks.items(): - if not target in check_targets: - continue + # we don't want to do the same work twice, so let's use a lock + with self._get_versions_mutex: + for target, check in checks.items(): + if not target in check_targets: + continue - try: - populated_check = self._populated_check(target, check) - target_information, target_update_available, target_update_possible = self._get_current_version(target, populated_check, force=force) - if target_information is None: - target_information = dict() - except exceptions.UnknownCheckType: - self._logger.warn("Unknown update check type for target {}: {}".format(target, check.get("type", ""))) - continue + if not check: + continue - target_information = dict_merge(dict(local=dict(name="unknown", value="unknown"), remote=dict(name="unknown", value="unknown", release_notes=None)), target_information) + try: + populated_check = self._populated_check(target, check) + target_information, target_update_available, target_update_possible = self._get_current_version(target, populated_check, force=force) + if target_information is None: + target_information = dict() + except exceptions.UnknownCheckType: + self._logger.warn("Unknown update check type for target {}: {}".format(target, check.get("type", ""))) + continue - update_available = update_available or target_update_available - update_possible = update_possible or (target_update_possible and target_update_available) + target_information = dict_merge(dict(local=dict(name="unknown", value="unknown"), remote=dict(name="unknown", value="unknown", release_notes=None)), target_information) - local_name = target_information["local"]["name"] - local_value = target_information["local"]["value"] + update_available = update_available or target_update_available + update_possible = update_possible or (target_update_possible and target_update_available) - release_notes = None - if target_information and target_information["remote"] and target_information["remote"]["value"]: - if "release_notes" in populated_check and populated_check["release_notes"]: - release_notes = populated_check["release_notes"] - elif "release_notes" in target_information["remote"]: - release_notes = target_information["remote"]["release_notes"] + local_name = target_information["local"]["name"] + local_value = target_information["local"]["value"] - if release_notes: - release_notes = release_notes.format(octoprint_version=VERSION, - target_name=target_information["remote"]["name"], - target_version=target_information["remote"]["value"]) + release_notes = None + if target_information and target_information["remote"] and target_information["remote"]["value"]: + if "release_notes" in populated_check and populated_check["release_notes"]: + release_notes = populated_check["release_notes"] + elif "release_notes" in target_information["remote"]: + release_notes = target_information["remote"]["release_notes"] - information[target] = dict(updateAvailable=target_update_available, - updatePossible=target_update_possible, - information=target_information, - displayName=populated_check["displayName"], - displayVersion=populated_check["displayVersion"].format(octoprint_version=VERSION, local_name=local_name, local_value=local_value), - check=populated_check, - releaseNotes=release_notes) + if release_notes: + release_notes = release_notes.format(octoprint_version=VERSION, + target_name=target_information["remote"]["name"], + target_version=target_information["remote"]["value"]) - if self._version_cache_dirty: - self._save_version_cache() + information[target] = dict(updateAvailable=target_update_available, + updatePossible=target_update_possible, + information=target_information, + displayName=populated_check["displayName"], + displayVersion=populated_check["displayVersion"].format(octoprint_version=VERSION, local_name=local_name, local_value=local_value), + check=populated_check, + releaseNotes=release_notes) + + if self._version_cache_dirty: + self._save_version_cache() return information, update_available, update_possible def _get_check_hash(self, check): + def dict_to_sorted_repr(d): + lines = [] + for key in sorted(d.keys()): + value = d[key] + if isinstance(value, dict): + lines.append("{!r}: {}".format(key, dict_to_sorted_repr(value))) + else: + lines.append("{!r}: {!r}".format(key, value)) + + return "{" + ", ".join(lines) + "}" + hash = hashlib.md5() - hash.update(repr(check)) + hash.update(dict_to_sorted_repr(check)) return hash.hexdigest() def _get_current_version(self, target, check, force=False): @@ -677,6 +738,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, target_restart_type = check["restart"] elif "pip" in check: target_restart_type = "octoprint" + else: + target_restart_type = None # if our update requires a restart we have to determine which type if restart_type is None or (restart_type == "octoprint" and target_restart_type == "environment"): @@ -806,9 +869,17 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, result = dict(check) if target == "octoprint": - from flask.ext.babel import gettext - result["displayName"] = check.get("displayName", gettext("OctoPrint")) - result["displayVersion"] = check.get("displayVersion", "{octoprint_version}") + from flask_babel import gettext + + result["displayName"] = to_unicode(check.get("displayName"), errors="replace") + if result["displayName"] is None: + # displayName missing or set to None + result["displayName"] = to_unicode(gettext("OctoPrint"), errors="replace") + + result["displayVersion"] = to_unicode(check.get("displayVersion"), errors="replace") + if result["displayVersion"] is None: + # displayVersion missing or set to None + result["displayVersion"] = u"{octoprint_version}" stable_branch = "master" release_branches = [] @@ -863,8 +934,16 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, result["release_compare"] = "python_unequal" else: - result["displayName"] = check.get("displayName", target) - result["displayVersion"] = check.get("displayVersion", check.get("current", "unknown")) + result["displayName"] = to_unicode(check.get("displayName"), errors="replace") + if result["displayName"] is None: + # displayName missing or None + result["displayName"] = to_unicode(target, errors="replace") + + result["displayVersion"] = to_unicode(check.get("displayVersion", check.get("current")), errors="replace") + if result["displayVersion"] is None: + # displayVersion AND current missing or None + result["displayVersion"] = u"unknown" + if check["type"] in ("github_commit",): result["current"] = check.get("current", None) else: @@ -930,7 +1009,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, elif "pip" in check: method = "pip" elif "python_updater" in check: - method = "python_updated" + method = "python_updater" if method is None or (valid_methods and not method in valid_methods): raise exceptions.UnknownUpdateType() @@ -967,8 +1046,11 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin, __plugin_name__ = "Software Update" __plugin_author__ = "Gina Häußge" -__plugin_url__ = "https://github.com/foosel/OctoPrint/wiki/Plugin:-Software-Update" +__plugin_url__ = "http://docs.octoprint.org/en/master/bundledplugins/softwareupdate.html" __plugin_description__ = "Allows receiving update notifications and performing updates of OctoPrint and plugins" +__plugin_disabling_discouraged__ = gettext("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.") __plugin_license__ = "AGPLv3" def __plugin_load__(): global __plugin_implementation__ diff --git a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js index bcac211e7..62bd0003a 100644 --- a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js +++ b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js @@ -1,17 +1,19 @@ (function (global, factory) { if (typeof define === "function" && define.amd) { - define(["OctoPrint"], factory); + define(["OctoPrintClient"], factory); } else { - factory(window.OctoPrint); + factory(global.OctoPrintClient); } -})(window || this, function(OctoPrint) { - var exports = {}; +})(this, function(OctoPrintClient) { + var OctoPrintSoftwareUpdateClient = function(base) { + this.base = base; - var url = OctoPrint.getBlueprintUrl("softwareupdate"); - var checkUrl = url + "check"; - var updateUrl = url + "update"; + var url = this.base.getBlueprintUrl("softwareupdate"); + this.checkUrl = url + "check"; + this.updateUrl = url + "update"; + }; - exports.checkEntries = function(entries, force, opts) { + OctoPrintSoftwareUpdateClient.prototype.checkEntries = function(entries, force, opts) { if (arguments.length == 1 && _.isObject(arguments[0])) { var params = arguments[0]; entries = params.entries; @@ -31,20 +33,20 @@ if (entries && entries.length) { data.check = entries.join(","); } - return OctoPrint.getWithQuery(checkUrl, data, opts); + return this.base.getWithQuery(this.checkUrl, data, opts); }; - exports.check = function(force, 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 exports.checkEntries({entries: [], force: force, opts: opts}); + return this.checkEntries({entries: [], force: force, opts: opts}); }; - exports.update = function(entries, force, opts) { + OctoPrintSoftwareUpdateClient.prototype.update = function(entries, force, opts) { if (arguments.length == 1 && _.isObject(arguments[0])) { var params = arguments[0]; entries = params.entries; @@ -61,10 +63,10 @@ entries: entries, force: !!force }; - return OctoPrint.postJson(updateUrl, data, opts); + return this.base.postJson(this.updateUrl, data, opts); }; - exports.updateAll = function(force, opts) { + OctoPrintSoftwareUpdateClient.prototype.updateAll = function(force, opts) { if (arguments.length == 1 && _.isObject(arguments[0])) { var params = arguments[0]; force = params.force; @@ -74,10 +76,11 @@ var data = { force: !!force }; - return OctoPrint.postJson(updateUrl, data, opts); + return this.base.postJson(this.updateUrl, data, opts); }; - OctoPrint.plugins.softwareupdate = exports; + OctoPrintClient.registerPluginComponent("softwareupdate", OctoPrintSoftwareUpdateClient); + return OctoPrintSoftwareUpdateClient; }); $(function() { @@ -109,6 +112,7 @@ $(function() { self.octoprintUnreleased = ko.observable(); self.config_cacheTtl = ko.observable(); + self.config_notifyUsers = ko.observable(); self.config_checkoutFolder = ko.observable(); self.config_checkType = ko.observable(); self.config_updateMethod = ko.observable(); @@ -150,9 +154,20 @@ $(function() { self.performCheck(); }; - self._showPopup = function(options, eventListeners) { + self.onUserLoggedOut = function() { self._closePopup(); - self.popup = new PNotify(options); + }; + + self._showPopup = function(options, eventListeners, singleButtonNotify) { + singleButtonNotify = singleButtonNotify || false; + + self._closePopup(); + + if (singleButtonNotify) { + self.popup = PNotify.singleButtonNotify(options); + } else { + self.popup = new PNotify(options); + } if (eventListeners) { var popupObj = self.popup.get(); @@ -189,6 +204,7 @@ $(function() { plugins: { softwareupdate: { cache_ttl: parseInt(self.config_cacheTtl()), + notify_users: self.config_notifyUsers(), octoprint_checkout_folder: self.config_checkoutFolder(), octoprint_type: self.config_checkType(), octoprint_release_channel: self.config_releaseChannel() @@ -228,6 +244,7 @@ $(function() { self.config_updateMethod(updateMethod); self.config_cacheTtl(self.settings.settings.plugins.softwareupdate.cache_ttl()); + self.config_notifyUsers(self.settings.settings.plugins.softwareupdate.notify_users()); self.config_checkoutFolder(self.settings.settings.plugins.softwareupdate.octoprint_checkout_folder()); self.config_checkType(self.settings.settings.plugins.softwareupdate.octoprint_type()); self.config_releaseChannel(self.settings.settings.plugins.softwareupdate.octoprint_release_channel()); @@ -285,6 +302,8 @@ $(function() { } } + if (!self.loginState.isAdmin() && !self.settings.settings.plugins.softwareupdate.notify_users()) return; + if (data.status == "updateAvailable" || data.status == "updatePossible") { var text = "
      " + gettext("There are updates available for the following components:"); @@ -300,7 +319,11 @@ $(function() { }); text += "
    "; - text += "" + gettext("Those components marked with can be updated directly.") + ""; + 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.") + "

    "; + } text += ""; @@ -311,8 +334,9 @@ $(function() { }; var eventListeners = {}; + var singleButtonNotify = false; if (data.status == "updatePossible" && self.loginState.isAdmin()) { - // if user is admin, add action buttons + // if update is possible and user is admin, add action buttons for ignore and update options["confirm"] = { confirm: true, buttons: [{ @@ -333,10 +357,27 @@ $(function() { closer: false, sticker: false }; + } else { + // if update is not possible or user is not admin, only add ignore button + options["confirm"] = { + confirm: true, + buttons: [{ + text: gettext("Ignore"), + click: function(notice) { + notice.remove(); + self._markNotificationAsSeen(data.information); + } + }] + }; + options["buttons"] = { + closer: false, + sticker: false + }; + singleButtonNotify = true; } if ((ignoreSeen || !self._hasNotificationBeenSeen(data.information)) && !OctoPrint.coreui.wizardOpen) { - self._showPopup(options, eventListeners); + self._showPopup(options, eventListeners, singleButtonNotify); } } else if (data.status == "current") { if (showIfNothingNew) { @@ -352,7 +393,8 @@ $(function() { }; self.performCheck = function(showIfNothingNew, force, ignoreSeen) { - if (!self.loginState.isUser()) return; + if (!self.loginState.isAdmin() && !self.settings.settings.plugins.softwareupdate.notify_users()) return; + self.checking(true); OctoPrint.plugins.softwareupdate.check(force) .done(function(data) { @@ -366,7 +408,18 @@ $(function() { self._markNotificationAsSeen = function(data) { if (!Modernizr.localstorage) return false; - localStorage["plugin.softwareupdate.seen_information"] = JSON.stringify(self._informationToRemoteVersions(data)); + if (!self.loginState.isUser()) + return false; + + var currentString = localStorage["plugin.softwareupdate.seen_information"]; + var current; + if (currentString === undefined) { + current = {}; + } else { + current = JSON.parse(currentString); + } + current[self.loginState.username()] = self._informationToRemoteVersions(data); + localStorage["plugin.softwareupdate.seen_information"] = JSON.stringify(current); }; self._hasNotificationBeenSeen = function(data) { @@ -377,11 +430,19 @@ $(function() { return false; var knownData = JSON.parse(localStorage["plugin.softwareupdate.seen_information"]); + + if (!self.loginState.isUser()) + return true; + + var userData = knownData[self.loginState.username()]; + if (userData === undefined) + return false; + var freshData = self._informationToRemoteVersions(data); var hasBeenSeen = true; _.each(freshData, function(value, key) { - if (!_.has(knownData, key) || knownData[key] != freshData[key]) { + if (!_.has(userData, key) || userData[key] != freshData[key]) { hasBeenSeen = false; } }); @@ -397,6 +458,8 @@ $(function() { }; self.performUpdate = function(force, items) { + if (!self.loginState.isAdmin()) return; + self.updateInProgress = true; var options = { @@ -702,7 +765,10 @@ $(function() { } }; - self._forcedStdoutLine = /You are using pip version .*?, however version .*? is available\.|You should consider upgrading via the '.*?' command\./; + self._forcedStdoutPatterns = ["You are using pip version .*?, however version .*? is available\.", + "You should consider upgrading via the '.*?' command\.", + "'.*?' does not exist -- can't clean it"]; + self._forcedStdoutLine = new RegExp(self._forcedStdoutPatterns.join("|")); self._preprocessLine = function(line) { if (line.stream == "stderr" && line.line.match(self._forcedStdoutLine)) { line.stream = "stdout"; diff --git a/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 b/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 index 27adb7e6a..857630909 100644 --- a/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 +++ b/src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2 @@ -86,6 +86,14 @@ +
    +
    + +
    +
diff --git a/src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2 b/src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2 index 2e09ad586..d509f1175 100644 --- a/src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2 +++ b/src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2 @@ -17,28 +17,38 @@
+
- {{ _('Please specify the nozzle offsets of the extruders relative to the first nozzle T0.') }} + + {{ _('Check this if your printer has a single nozzle and heater shared among its extruders instead of one nozzle and heater per extruder') }}
- -
- -
- -
- - mm -
- -
- - mm +
+
+
+ {{ _('Please specify the nozzle offsets of the extruders relative to the first nozzle T0.') }}
+ + +
+ +
+ +
+ + mm +
+ +
+ + mm +
+
+
+
-

diff --git a/src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2 b/src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2 index b0e8e3b7d..4e9c4a043 100644 --- a/src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2 +++ b/src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2 @@ -19,11 +19,4 @@

-
- -
- -
-
diff --git a/src/octoprint/templates/snippets/settings/printerprofiles/profiles.jinja2 b/src/octoprint/templates/snippets/settings/printerprofiles/profiles.jinja2 index 643458be9..8ad8f4617 100644 --- a/src/octoprint/templates/snippets/settings/printerprofiles/profiles.jinja2 +++ b/src/octoprint/templates/snippets/settings/printerprofiles/profiles.jinja2 @@ -8,10 +8,10 @@ - + -  |  |  +  |  |  diff --git a/src/octoprint/templates/tabs/timelapse.jinja2 b/src/octoprint/templates/tabs/timelapse.jinja2 index e876abb5a..5ed1ee924 100644 --- a/src/octoprint/templates/tabs/timelapse.jinja2 +++ b/src/octoprint/templates/tabs/timelapse.jinja2 @@ -13,6 +13,14 @@ {{ _('Warning') }} {{ _('Do not use with spiralized ("Joris") vases or similar continuous Z models.') }} {{ _('Note') }} {% trans %}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.{% endtrans %} +
+ +
+ + {{ _('sec') }} +
+
+
@@ -31,15 +39,6 @@
- -
- -
- - {{ _('sec') }} -
-
-
@@ -52,22 +51,44 @@
- + + {{ _('You have unsaved changes.') }}

{{ _('Finished Timelapses') }}

+ + @@ -75,6 +96,7 @@ + @@ -96,9 +118,22 @@
{{ _('Name') }} {{ _('Size') }} {{ _('Action') }}
 | 
+ @@ -107,6 +142,7 @@ + diff --git a/src/octoprint/timelapse.py b/src/octoprint/timelapse.py index 5e913bf62..8ded0bc90 100644 --- a/src/octoprint/timelapse.py +++ b/src/octoprint/timelapse.py @@ -17,6 +17,7 @@ except ImportError: import Queue as queue import requests +import octoprint.plugin import octoprint.util as util from octoprint.settings import settings @@ -294,18 +295,23 @@ def configure_timelapse(config=None, persist=False): if type is None or "off" == type: current = None + elif "zchange" == type: retractionZHop = 0 if "options" in config and "retractionZHop" in config["options"] and config["options"]["retractionZHop"] > 0: retractionZHop = config["options"]["retractionZHop"] + current = ZTimelapse(post_roll=postRoll, retraction_zhop=retractionZHop, fps=fps) + elif "timed" == type: interval = 10 if "options" in config and "interval" in config["options"] and config["options"]["interval"] > 0: interval = config["options"]["interval"] - capture_post_roll = True + + capture_post_roll = False if "options" in config and "capturePostRoll" in config["options"] and isinstance(config["options"]["capturePostRoll"], bool): capture_post_roll = config["options"]["capturePostRoll"] + current = TimedTimelapse(post_roll=postRoll, interval=interval, fps=fps, capture_post_roll=capture_post_roll) notify_callbacks(current) @@ -339,6 +345,11 @@ class Timelapse(object): self._fps = fps + + self._pluginManager = octoprint.plugin.plugin_manager() + self._pre_capture_hooks = self._pluginManager.get_hooks("octoprint.timelapse.capture.pre") + self._post_capture_hooks = self._pluginManager.get_hooks("octoprint.timelapse.capture.post") + self._capture_mutex = threading.Lock() self._capture_queue = queue.Queue() self._capture_queue_active = True @@ -548,6 +559,13 @@ class Timelapse(object): entry["callback"](*args, **kwargs) def _perform_capture(self, filename, onerror=None): + # pre-capture hook + for name, hook in self._pre_capture_hooks.items(): + try: + hook(filename) + except: + self._logger.exception("Error while processing hook {name}.".format(**locals())) + eventManager().fire(Events.CAPTURE_START, dict(file=filename)) try: self._logger.debug("Going to capture {} from {}".format(filename, self._snapshot_url)) @@ -563,17 +581,31 @@ class Timelapse(object): self._logger.debug("Image {} captured from {}".format(filename, self._snapshot_url)) except Exception as e: self._logger.exception("Could not capture image {} from {}".format(filename, self._snapshot_url)) + self._capture_errors += 1 + success = False + else: + self._capture_success += 1 + success = True + + # post-capture hook + for name, hook in self._post_capture_hooks.items(): + try: + hook(filename, success) + except: + self._logger.exception("Error while processing hook {name}.".format(**locals())) + + # handle events and onerror call + if success: + eventManager().fire(Events.CAPTURE_DONE, dict(file=filename)) + return True + else: if callable(onerror): onerror() eventManager().fire(Events.CAPTURE_FAILED, dict(file=filename, error=str(e), url=self._snapshot_url)) - self._capture_errors += 1 return False - else: - eventManager().fire(Events.CAPTURE_DONE, dict(file=filename)) - self._capture_success += 1 - return True + def _copying_postroll(self): with self._capture_mutex: @@ -627,10 +659,10 @@ class ZTimelapse(Timelapse): def _on_z_change(self, event, payload): if self._retraction_zhop != 0 and payload["old"] is not None and payload["new"] is not None: - # check if height difference equals z-hop or is negative, if so don't take a picture - diff = round(payload["new"] - payload["old"], 3) + # check if height difference equals z-hop, if so don't take a picture + diff = round(abs(payload["new"] - payload["old"]), 3) zhop = round(self._retraction_zhop, 3) - if diff == zhop or diff <= 0: + if diff == zhop: return self.capture_image() @@ -809,17 +841,10 @@ class TimelapseRenderJob(object): @classmethod def _create_ffmpeg_command_string(cls, ffmpeg, fps, bitrate, threads, input, output, hflip=False, vflip=False, - rotate=False, watermark=None): + rotate=False, watermark=None, pixfmt="yuv420p"): """ Create ffmpeg command string based on input parameters. - Examples: - - >>> TimelapseRenderJob._create_ffmpeg_command_string("/path/to/ffmpeg", 25, "10000k", 1, "/path/to/input/files_%d.jpg", "/path/to/output.mpg") - '/path/to/ffmpeg -framerate 25 -loglevel error -i "/path/to/input/files_%d.jpg" -vcodec mpeg2video -threads 1 -pix_fmt yuv420p -r 25 -y -b 10000k -f vob "/path/to/output.mpg"' - >>> TimelapseRenderJob._create_ffmpeg_command_string("/path/to/ffmpeg", 25, "10000k", 1, "/path/to/input/files_%d.jpg", "/path/to/output.mpg", hflip=True) - '/path/to/ffmpeg -framerate 25 -loglevel error -i "/path/to/input/files_%d.jpg" -vcodec mpeg2video -threads 1 -pix_fmt yuv420p -r 25 -y -b 10000k -f vob -vf \\'[in] hflip [out]\\' "/path/to/output.mpg"' - Arguments: ffmpeg (str): Path to ffmpeg fps (int): Frames per second for output @@ -831,16 +856,19 @@ class TimelapseRenderJob(object): vflip (bool): Perform vertical flip on input material. rotate (bool): Perform 90° CCW rotation on input material. watermark (str): Path to watermark to apply to lower left corner. + pixfmt (str): Pixel format to use for output. Default of yuv420p should usually fit the bill. Returns: (str): Prepared command string to render `input` to `output` using ffmpeg. """ + ### See unit tests in test/timelapse/test_timelapse_renderjob.py + logger = logging.getLogger(__name__) command = [ ffmpeg, '-framerate', str(fps), '-loglevel', 'error', '-i', '"{}"'.format(input), '-vcodec', 'mpeg2video', - '-threads', str(threads), '-pix_fmt', 'yuv420p', '-r', "25", '-y', '-b', str(bitrate), + '-threads', str(threads), '-r', "25", '-y', '-b', str(bitrate), '-f', 'vob'] filter_string = cls._create_filter_string(hflip=hflip, @@ -859,38 +887,25 @@ class TimelapseRenderJob(object): return " ".join(command) @classmethod - def _create_filter_string(cls, hflip=False, vflip=False, rotate=False, watermark=None): + def _create_filter_string(cls, hflip=False, vflip=False, rotate=False, watermark=None, pixfmt="yuv420p"): """ Creates an ffmpeg filter string based on input parameters. - Examples: - - >>> TimelapseRenderJob._create_filter_string() - >>> TimelapseRenderJob._create_filter_string(hflip=True) - '[in] hflip [out]' - >>> TimelapseRenderJob._create_filter_string(vflip=True) - '[in] vflip [out]' - >>> TimelapseRenderJob._create_filter_string(rotate=True) - '[in] transpose=2 [out]' - >>> TimelapseRenderJob._create_filter_string(vflip=True, rotate=True) - '[in] vflip,transpose=2 [out]' - >>> TimelapseRenderJob._create_filter_string(vflip=True, hflip=True, rotate=True) - '[in] hflip,vflip,transpose=2 [out]' - >>> TimelapseRenderJob._create_filter_string(watermark="/path/to/watermark.png") - 'movie=/path/to/watermark.png [wm]; [in][wm] overlay=10:main_h-overlay_h-10 [out]' - >>> TimelapseRenderJob._create_filter_string(hflip=True, watermark="/path/to/watermark.png") - '[in] hflip [postprocessed]; movie=/path/to/watermark.png [wm]; [postprocessed][wm] overlay=10:main_h-overlay_h-10 [out]' - Arguments: hflip (bool): Perform horizontal flip on input material. vflip (bool): Perform vertical flip on input material. rotate (bool): Perform 90° CCW rotation on input material. watermark (str): Path to watermark to apply to lower left corner. + pixfmt (str): Pixel format to use, defaults to "yuv420p" which should usually fit the bill Returns: (str or None): filter string or None if no filters are required """ - filters = [] + + ### See unit tests in test/timelapse/test_timelapse_renderjob.py + + # apply pixel format + filters = ["format={}".format(pixfmt)] # flip video if configured if hflip: diff --git a/src/octoprint/translations/de/LC_MESSAGES/messages.mo b/src/octoprint/translations/de/LC_MESSAGES/messages.mo index 59189bd65..89e81a75a 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 997041aeb..a9e98176c 100644 --- a/src/octoprint/translations/de/LC_MESSAGES/messages.po +++ b/src/octoprint/translations/de/LC_MESSAGES/messages.po @@ -1,23 +1,23 @@ # German translations for OctoPrint. -# Copyright (C) 2016 The OctoPrint Project +# Copyright (C) 2017 The OctoPrint Project # This file is distributed under the same license as the OctoPrint project. -# FIRST AUTHOR , 2016. +# FIRST AUTHOR , 2017. # msgid "" msgstr "" -"Project-Id-Version: OctoPrint\n" +"Project-Id-Version: OctoPrint\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2016-12-02 12:37+0100\n" -"PO-Revision-Date: 2016-12-02 12:38+0100\n" +"POT-Creation-Date: 2017-03-16 11:53+0100\n" +"PO-Revision-Date: 2017-03-10 14:32+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.2.0\n" -"X-Generator: Poedit 1.6.8\n" +"Generated-By: Babel 2.3.4\n" #: src/octoprint/plugins/announcements/__init__.py:88 #: src/octoprint/plugins/announcements/templates/announcements.jinja2:4 @@ -95,12 +95,12 @@ msgstr "Ankündigungen aktualisieren" #: src/octoprint/plugins/corewizard/__init__.py:80 #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:1 -#: src/octoprint/server/views.py:528 +#: src/octoprint/server/views.py:557 msgid "Access Control" msgstr "Zugangsbeschränkung" #: src/octoprint/plugins/corewizard/__init__.py:125 -#: src/octoprint/server/views.py:516 +#: src/octoprint/server/views.py:551 msgid "Webcam & Timelapse" msgstr "Webcam & Zeitraffer" @@ -114,61 +114,90 @@ msgid "Default Printer Profile" msgstr "Default Druckerprofil" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:43 -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:79 msgid "Please set up Access Control" msgstr "Bitte konfiguriere die Zugangsbeschränkung" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:80 -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/templates/corewizard_acl_wizard.jinja2:3 msgid "" "

\n" -" Please read the following, it is very important for your printer's health!\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 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" "

\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" +" 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" +" 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ä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" "

\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" +" 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/templates/dialogs/settings/accesscontrol.jinja2:45 -#: src/octoprint/templates/navbar/login.jinja2:6 #: src/octoprint/templates/navbar/login.jinja2:7 +#: src/octoprint/templates/navbar/login.jinja2:8 msgid "Username" msgstr "Username" #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:3 -#: src/octoprint/templates/navbar/login.jinja2:8 #: src/octoprint/templates/navbar/login.jinja2:9 +#: src/octoprint/templates/navbar/login.jinja2:10 msgid "Password" msgstr "Passwort" @@ -186,22 +215,30 @@ 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" +" 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" "

\n" "

\n" -" Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n" +" Do NOT underestimate the risk of an unsecured access from the" +" internet to your printer!\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" +" 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 @@ -215,16 +252,20 @@ msgstr "Zugangsbeschränkung aktiviert lassen" #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:53 msgid "" "\n" -" Access control is enabled.\n" +" Access control is enabled.\n" " " msgstr "Zugriffsbeschränkung aktiviert." #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:56 msgid "" "\n" -" Access control is disabled.\n" +" Access control is disabled.\n" +" " +msgstr "" +"Zugriffsbeschränkung deaktiviert." " " -msgstr "Zugriffsbeschränkung deaktiviert. " #: src/octoprint/plugins/corewizard/templates/corewizard_printerprofile_wizard.jinja2:1 msgid "Set up your printer profile" @@ -232,9 +273,15 @@ 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." +"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." #: src/octoprint/plugins/corewizard/templates/corewizard_printerprofile_wizard.jinja2:7 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:1 @@ -261,10 +308,14 @@ 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" +" 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" @@ -293,24 +344,46 @@ 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" +" 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:8 @@ -320,28 +393,31 @@ 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" +" 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:176 -#: src/octoprint/static/js/app/viewmodels/settings.js:296 +#: src/octoprint/static/js/app/viewmodels/settings.js:298 msgid "The path doesn't exist" msgstr "Der Pfad existiert nicht" #: src/octoprint/plugins/cura/static/js/cura.js:178 -#: src/octoprint/static/js/app/viewmodels/settings.js:298 +#: src/octoprint/static/js/app/viewmodels/settings.js:300 msgid "The path is not a file" msgstr "Der Pfad ist keine Datei" #: src/octoprint/plugins/cura/static/js/cura.js:180 -#: src/octoprint/static/js/app/viewmodels/settings.js:300 +#: src/octoprint/static/js/app/viewmodels/settings.js:302 msgid "The path is not an executable" msgstr "Der Pfad ist nicht ausführbar" #: src/octoprint/plugins/cura/static/js/cura.js:183 -#: src/octoprint/static/js/app/viewmodels/settings.js:303 +#: src/octoprint/static/js/app/viewmodels/settings.js:305 msgid "The path is valid" msgstr "Der Pfad ist valide" @@ -355,7 +431,8 @@ msgid "" 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" @@ -370,8 +447,14 @@ 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" @@ -380,7 +463,8 @@ 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" +" 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. " @@ -391,21 +475,37 @@ 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" +"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, ausOctoPrint heraus zu slicen, dann solltest Du das jetzt tun. Andernfalls überspringe diesenSchritt einfach." +msgstr "" +"Du hast noch kein Slicingprofile zum Slicen mit CuraEngine importiert. " +"Falls Du vor hast, ausOctoPrint heraus zu slicen, dann solltest Du das " +"jetzt tun. Andernfalls überspringe diesenSchritt 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" +" 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 "" +"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." #: src/octoprint/plugins/cura/templates/snippets/settings/cura/engineLog.jinja2:4 msgid "Log the output of CuraEngine to plugin_cura_engine.log" @@ -458,12 +558,23 @@ 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 especiallymeans 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" +" You can import your existing profile .ini files " +"from Cura 15.04.x or older\n" +" here. Anything but those are not supported. " +"That especiallymeans 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 funktionierenwerden, 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 funktionierenwerden," +" 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 @@ -504,275 +615,351 @@ msgstr "Als Standard festlegen" msgid "Delete Profile" msgstr "Profil entfernen" -#: src/octoprint/plugins/pluginmanager/__init__.py:115 +#: src/octoprint/plugins/pluginmanager/__init__.py:119 msgid "Plugin Manager" msgstr "Pluginmanager" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:241 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:406 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:244 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:409 msgid "Installing plugin..." msgstr "Installiere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:241 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:244 msgid "Installing plugin from uploaded archive..." msgstr "Installiere Plugin von hochgeladenem Archiv..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:256 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:347 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:424 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:465 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:583 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:786 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:816 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:833 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:850 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:259 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:350 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:427 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:468 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:789 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:819 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:836 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:853 msgid "Something went wrong" msgstr "Etwas ist schief gegangen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:257 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:348 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:425 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:466 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:260 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:351 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:428 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:469 msgid "Please consult octoprint.log for details" msgstr "Bitte konsultiere octoprint.log für Details" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:408 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:411 #, 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:410 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:413 #, python-format msgid "Installing plugin from %(url)s..." msgstr "Installiere Plugin von %(url)s..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:413 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:416 msgid "Reinstalling plugin..." msgstr "Reinstalliere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:414 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:417 #, 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:459 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:462 msgid "Uninstalling plugin..." msgstr "Deinstalliere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:459 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:462 #, python-format msgid "Uninstalling plugin \"%(name)s\"" msgstr "Deinstalliere Plugin \"%(name)s\"" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 msgid "Reinstall" msgstr "Reinstallieren" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:172 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:188 msgid "Install" msgstr "Installieren" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 msgid "Incompatible" msgstr "Inkompatibel" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572 msgid "Restart now" msgstr "Jetzt neu starten" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:575 msgid "This will restart your OctoPrint server." msgstr "Das wird deinen OctoPrint Server neu starten." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:577 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:580 msgid "Restart in progress" msgstr "Neustart findet statt" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:578 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:581 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:584 -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:587 +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:602 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605 #: src/octoprint/templates/overlays/reloadui.jinja2:14 msgid "Reload now" msgstr "Jetzt neu laden" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:656 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:659 msgid "Done!" msgstr "Fertig!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:680 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:683 msgid "Disabled due to active safe mode" msgstr "Deaktiviert wegen aktiviertem Safe Mode" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:682 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:685 msgid "Enable Plugin" msgstr "Plugin enablen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:685 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:688 msgid "Disable Plugin" msgstr "Plugin disablen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:770 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:773 msgid "Plugin installed" msgstr "Plugin installiert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:771 -msgid "A plugin was installed successfully, however it was impossible to detect which one. Please Restart OctoPrint to make sure everything will be registered properly" -msgstr "Ein Plugin wurde erfolgreich installiert, es war aber unmöglich zu detektieren, welches. Bitte starte OctoPrint neu um sicherzustellen, dass alles ordnungsgemäß registriert wird." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:774 +msgid "" +"A plugin was installed successfully, however it was impossible to detect " +"which one. Please Restart OctoPrint to make sure everything will be " +"registered properly" +msgstr "" +"Ein Plugin wurde erfolgreich installiert, es war aber unmöglich zu " +"detektieren, welches. Bitte starte OctoPrint neu um sicherzustellen, dass" +" alles ordnungsgemäß registriert wird." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:775 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:778 #, python-format msgid "Plugin \"%(name)s\" reinstalled" msgstr "Plugin \"%(name)s\" reinstalliert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:776 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:779 msgid "The plugin was reinstalled successfully" msgstr "Das Plugin wurde erfolgreich reinstalliert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:777 -msgid "The plugin was reinstalled successfully, however a restart of OctoPrint is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neustart von OctoPrint notwendig bevor es genutzt werden kann." - -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:778 -msgid "The plugin was reinstalled successfully, however a reload of the page is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neuladen der Seite notwendig bevor es genutzt werden kann." - #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:780 +msgid "" +"The plugin was reinstalled successfully, however a restart of OctoPrint " +"is needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neustart von " +"OctoPrint notwendig bevor es genutzt werden kann." + +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:781 +msgid "" +"The plugin was reinstalled successfully, however a reload of the page is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neuladen der " +"Seite notwendig bevor es genutzt werden kann." + +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:783 #, python-format msgid "Plugin \"%(name)s\" installed" msgstr "Plugin \"%(name)s\" installiert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:781 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:784 msgid "The plugin was installed successfully" msgstr "Das Plugin wurde erfolgreich installiert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:782 -msgid "The plugin was installed successfully, however a restart of OctoPrint is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neustart von OctoPrint notwendig bevor es genutzt werden kann." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:785 +msgid "" +"The plugin was installed successfully, however a restart of OctoPrint is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neustart von " +"OctoPrint notwendig bevor es genutzt werden kann." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:783 -msgid "The plugin was installed successfully, however a reload of the page is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neuladen der Seite notwendig bevor es genutzt werden kann." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:786 +msgid "" +"The plugin was installed successfully, however a reload of the page is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neuladen der " +"Seite notwendig bevor es genutzt werden kann." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:794 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:797 #, python-format msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s" msgstr "Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:796 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:799 #, python-format msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s" msgstr "Installation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:800 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:803 #, python-format -msgid "Reinstalling the plugin from URL \"%(url)s\" failed, please see the log for details." -msgstr "Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte konsultiere das Log für Details." +msgid "" +"Reinstalling the plugin from URL \"%(url)s\" failed, please see the log " +"for details." +msgstr "" +"Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte " +"konsultiere das Log für Details." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:802 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:805 #, python-format -msgid "Installing the plugin from URL \"%(url)s\" failed, please see the log for details." -msgstr "Installation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte konsultiere das Log für Details" +msgid "" +"Installing the plugin from URL \"%(url)s\" failed, please see the log for" +" details." +msgstr "" +"Installation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte " +"konsultiere das Log für Details" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:811 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814 #, python-format msgid "Plugin \"%(name)s\" uninstalled" msgstr "Plugin \"%(name)s\" deinstalliert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:812 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815 msgid "The plugin was uninstalled successfully" msgstr "Das Plugin wurde erfolgreich deinstalliert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:813 -msgid "The plugin was uninstalled successfully, however a restart of OctoPrint is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neustart von OctoPrint notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:816 +msgid "" +"The plugin was uninstalled successfully, however a restart of OctoPrint " +"is needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neustart " +"von OctoPrint notwendig." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814 -msgid "The plugin was uninstalled successfully, however a reload of the page is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neuladen der Seite notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:817 +msgid "" +"The plugin was uninstalled successfully, however a reload of the page is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neuladen " +"der Seite notwendig." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:818 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:821 #, python-format msgid "Uninstalling the plugin failed: %(reason)s" msgstr "Deinstallation des Plugins fehlgeschlagen: %(reason)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:820 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:823 msgid "Uninstalling the plugin failed, please see the log for details." -msgstr "Deinstallation des Plugins fehlgeschlagen, bitte konsultiere das Log für Details." +msgstr "" +"Deinstallation des Plugins fehlgeschlagen, bitte konsultiere das Log für " +"Details." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:828 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:831 #, python-format msgid "Plugin \"%(name)s\" enabled" msgstr "Plugin \"%(name)s\" aktiviert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:829 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:832 msgid "The plugin was enabled successfully." msgstr "Das Plugin wurde erfolgreich aktiviert." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:830 -msgid "The plugin was enabled successfully, however a restart of OctoPrint is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neustart von OctoPrint notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:833 +msgid "" +"The plugin was enabled successfully, however a restart of OctoPrint is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neustart von " +"OctoPrint notwendig." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:831 -msgid "The plugin was enabled successfully, however a reload of the page is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neuladen der Seite notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:834 +msgid "" +"The plugin was enabled successfully, however a reload of the page is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neuladen der " +"Seite notwendig." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:835 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:852 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:838 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:855 #, python-format msgid "Toggling the plugin failed: %(reason)s" msgstr "Togglen des Plugins fehlgeschalgen: %(reason)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:837 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:854 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:840 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:857 msgid "Toggling the plugin failed, please see the log for details." msgstr "Togglen des Plugins fehlgeschlagen, bitte konsultiere das Log für Details." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:845 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:848 #, python-format msgid "Plugin \"%(name)s\" disabled" msgstr "Plugin \"%(name)s\" deaktiviert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:846 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:849 msgid "The plugin was disabled successfully." msgstr "Das Plugin wurde erfolgreich deaktiviert." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:847 -msgid "The plugin was disabled successfully, however a restart of OctoPrint is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neustart von OctoPrint notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:850 +msgid "" +"The plugin was disabled successfully, however a restart of OctoPrint is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neustart von " +"OctoPrint notwendig." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:848 -msgid "The plugin was disabled successfully, however a reload of the page is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neuladen der Seite notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:851 +msgid "" +"The plugin was disabled successfully, however a reload of the page is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neuladen der " +"Seite notwendig." #: 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" +" 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" +" 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" +" 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:28 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:216 @@ -795,7 +982,9 @@ msgstr "Kann nicht aus OctoPrint heraus deinstalliert werden" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:43 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:43 msgid "Pending install" @@ -893,8 +1082,14 @@ msgid "... from an uploaded archive" msgstr "... von einem hochgeladenen Archiv" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:190 -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" +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:194 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:63 @@ -906,27 +1101,42 @@ msgstr "Erweiterte Optionen" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:200 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:220 -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:222 msgid "Plugin repository configuration" msgstr "Pluginrepositorykonfiguration" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:224 -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:225 msgid "Repository URL" msgstr "Repository-URL" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:230 -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:231 msgid "Repository cache TTL" @@ -937,15 +1147,21 @@ msgid "pip configuration" msgstr "pip Konfiguration" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:242 -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:243 msgid "Additional arguments" msgstr "Weitere Argumente" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:251 -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:258 @@ -953,7 +1169,7 @@ msgstr "--user mit pip install verwenden" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:92 #: src/octoprint/static/js/app/helpers.js:639 #: src/octoprint/templates/dialogs/files.jinja2:18 -#: src/octoprint/templates/dialogs/slicing.jinja2:50 +#: src/octoprint/templates/dialogs/slicing.jinja2:57 #: src/octoprint/templates/sidebar/state.jinja2:25 msgid "Cancel" msgstr "Abbruch" @@ -963,159 +1179,201 @@ msgstr "Abbruch" msgid "Save" msgstr "Speichern" -#: src/octoprint/plugins/softwareupdate/__init__.py:496 +#: src/octoprint/plugins/softwareupdate/__init__.py:533 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:1 msgid "Software Update" msgstr "Software Update" -#: src/octoprint/plugins/softwareupdate/__init__.py:810 -#: src/octoprint/server/views.py:520 -#: src/octoprint/static/js/app/viewmodels/appearance.js:11 +#: src/octoprint/plugins/softwareupdate/__init__.py:869 +#: src/octoprint/server/views.py:555 #: 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/templates/dialogs/about/about.jinja2:1 msgid "OctoPrint" msgstr "OctoPrint" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:216 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:219 msgid "Release" msgstr "Release" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:217 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:220 msgid "Commit" msgstr "Commit" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:256 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:259 #, python-format msgid "%(name)s: %(version)s" msgstr "%(name)s: %(version)s" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:259 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:262 msgid "unknown" msgstr "unbekannt" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:289 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:292 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:297 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:300 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate.jinja2:14 msgid "Release Notes" msgstr "Release Notes" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:303 -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:306 +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:308 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:311 msgid "Update Available" msgstr "Aktualisierung verfügbar" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:319 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:322 msgid "Ignore" msgstr "Ignorieren" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:323 -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:326 +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:327 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:330 msgid "Update now" msgstr "Jetzt aktualisieren" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:344 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:347 msgid "Everything is up-to-date" msgstr "Alles ist auf dem neusten Stand" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:403 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:417 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:558 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:406 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:420 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:561 msgid "Updating..." msgstr "Aktualisiere..." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:404 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:407 msgid "Now updating, please wait." msgstr "Aktualisiere gerade, bitte warten." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:417 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:558 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:420 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:561 msgid "Updating, please wait." msgstr "Aktualisiere gerade, bitte warten." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:422 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:425 msgid "Update not started!" msgstr "Aktualisierung nicht gestartet!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:423 -msgid "The update could not be started. Is it already active? Please consult the log for details." -msgstr "Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? Bitte konsultiere das Log für Details." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:426 +msgid "" +"The update could not be started. Is it already active? Please consult the" +" log for details." +msgstr "" +"Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? " +"Bitte konsultiere das Log für Details." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:439 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:442 msgid "Can't update while printing" msgstr "Aktualisierung nicht möglich während gedruckt wird" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:440 -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:443 +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:561 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:564 #, 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:580 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:583 msgid "Update successful, restarting!" msgstr "Aktualisierung erfolgreich, starte neu!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:581 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:584 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:598 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:647 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:601 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:650 msgid "Restart failed" msgstr "Neustart fehlgeschlagen" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:599 -msgid "The server apparently did not restart by itself, you'll have to do it manually. Please consult the log file on what went wrong." -msgstr "Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das manuell tun müssen. Bitte konsultiere das Logfile." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:602 +msgid "" +"The server apparently did not restart by itself, you'll have to do it " +"manually. Please consult the log file on what went wrong." +msgstr "" +"Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das " +"manuell tun müssen. Bitte konsultiere das Logfile." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:621 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:624 msgid "The update finished successfully, please restart OctoPrint now." -msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte OctoPrint jetzt neu." - -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:623 -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 starte " +"OctoPrint jetzt neu." #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:626 +msgid "The update finished successfully, please reboot the server now." +msgstr "" +"Die Aktualisierung wurde erfolgreich abgeschlossen, bitte reboote den " +"Server jetzt." + +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:629 msgid "Update successful, restart required!" msgstr "Aktualisierung erfolgreich, Neustart notwendig!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:642 -msgid "Restarting OctoPrint failed, please restart it manually. You might also want to consult the log file on what went wrong here." -msgstr "Der Neustart von OctoPrint ist fehlgeschlagen, bitte starte es manuell neu. Du solltest das Logfile konsultieren, um herauszufinden, was hier schief gelaufen ist." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:645 +msgid "" +"Restarting OctoPrint failed, please restart it manually. You might also " +"want to consult the log file on what went wrong here." +msgstr "" +"Der Neustart von OctoPrint ist fehlgeschlagen, bitte starte es manuell " +"neu. Du solltest das Logfile konsultieren, um herauszufinden, was hier " +"schief gelaufen ist." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:644 -msgid "Rebooting the server failed, please reboot it manually. You might also want to consult the log file on what went wrong here." -msgstr "Reboot des Servers fehlgeschlagen, bitte reboote ihn manuell. Du solltest auch das Logfile konsultieren, um herauszufinden, was hier gerade schief gelaufen ist." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:647 +msgid "" +"Rebooting the server failed, please reboot it manually. You might also " +"want to consult the log file on what went wrong here." +msgstr "" +"Reboot des Servers fehlgeschlagen, bitte reboote ihn manuell. Du solltest" +" auch das Logfile konsultieren, um herauszufinden, was hier gerade schief" +" gelaufen ist." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:663 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:666 msgid "Update successful!" msgstr "Aktualisierung erfolgreich!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:664 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:667 msgid "The update finished successfully." msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:679 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:682 msgid "Update failed!" msgstr "Aktualisierung fehlgeschlagen!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:680 -msgid "The update did not finish successfully. Please consult the log for details." -msgstr "Die Aktualisierung wurde nicht erfolgreich abgeschlossen. Bitte konsultiere das Log für Details." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:683 +msgid "" +"The update did not finish successfully. Please consult the log for " +"details." +msgstr "" +"Die Aktualisierung wurde nicht erfolgreich abgeschlossen. Bitte " +"konsultiere das Log für Details." #: src/octoprint/plugins/softwareupdate/templates/softwareupdate.jinja2:4 msgid "Are you sure you want to update now?" @@ -1123,11 +1381,19 @@ msgstr "Bist Du sicher, dass du jetzt aktualisieren willst?" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate.jinja2:8 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/templates/softwareupdate.jinja2:19 -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." +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/templates/softwareupdate.jinja2:22 #: src/octoprint/static/js/app/helpers.js:638 @@ -1142,29 +1408,51 @@ msgstr "Fortfahren" #: 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" +" 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 "" "\n" -" 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.\n" +" 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.\n" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:6 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" +"

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 msgid "Current versions" @@ -1196,7 +1484,9 @@ msgstr "Jetzt nach Aktualisierungen suchen" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:65 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:66 msgid "Force update now (even if no new versions are available)" @@ -1209,18 +1499,27 @@ msgstr "TTL des Versionscaches" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:3 msgid "" "

\n" -" OctoPrint can update itself via git, but it needs to know its checkout folder and the way\n" -" it should track available updates in order to be able to do that. You can configure that here.\n" +" OctoPrint can update itself via git, but it needs to " +"know its checkout folder and the way\n" +" it should track available updates in order to be able to do that. You" +" can configure that here.\n" "

" -msgstr "

OctoPrint kann sich selbst über git aktualisieren, aber dazu muss es sein Checkout-Verzeichnis kennen und wissen, wie es verfügbare Updates tracken soll. Du kannst das hier konfigurieren.

" +msgstr "" +"

OctoPrint kann sich selbst über git aktualisieren, aber " +"dazu muss es sein Checkout-Verzeichnis kennen und wissen, wie es " +"verfügbare Updates tracken soll. Du kannst das hier konfigurieren.

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

\n" -" If you are running a release version of OctoPrint, leave at \"Release\" tracking. If you are running a different\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" @@ -1232,150 +1531,164 @@ msgstr "OctoPrint Release Channel" #: src/octoprint/plugins/softwareupdate/templates/snippets/plugins/softwareupdate/releaseChannel.jinja2:5 #, python-format -msgid "Make sure you have read \"Using Release Channels\" before switching to a release channel other than \"Stable\"" -msgstr "Stelle sicher, dass du \"Using Release Channels\" gelesen hast, bevor du einen anderen Release Channel als \"Stable\" auswählst." +msgid "" +"Make sure you have read \"Using Release Channels\" before " +"switching to a release channel other than \"Stable\"" +msgstr "" +"Stelle sicher, dass du \"Using Release Channels\" 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/server/views.py:426 +#: src/octoprint/server/views.py:465 msgid "Plugins" msgstr "Plugins" -#: src/octoprint/server/views.py:485 +#: src/octoprint/server/views.py:522 msgid "Connection" msgstr "Verbindung" -#: src/octoprint/server/views.py:486 +#: src/octoprint/server/views.py:523 #: src/octoprint/templates/sidebar/state.jinja2:1 msgid "State" msgstr "Status" -#: src/octoprint/server/views.py:487 +#: src/octoprint/server/views.py:524 msgid "Files" msgstr "Dateien" -#: src/octoprint/server/views.py:493 +#: src/octoprint/server/views.py:530 msgid "Temperature" msgstr "Temperatur" -#: src/octoprint/server/views.py:494 +#: src/octoprint/server/views.py:531 msgid "Control" msgstr "Steuerung" -#: src/octoprint/server/views.py:495 -msgid "Terminal" -msgstr "Terminal" - -#: src/octoprint/server/views.py:498 +#: src/octoprint/server/views.py:532 msgid "GCode Viewer" msgstr "GCode Viewer" -#: src/octoprint/server/views.py:500 +#: src/octoprint/server/views.py:533 +msgid "Terminal" +msgstr "Terminal" + +#: src/octoprint/server/views.py:534 #: src/octoprint/templates/sidebar/state.jinja2:4 msgid "Timelapse" msgstr "Zeitraffer" -#: src/octoprint/server/views.py:505 +#: src/octoprint/server/views.py:540 msgid "Printer" msgstr "Drucker" -#: src/octoprint/server/views.py:507 +#: src/octoprint/server/views.py:542 msgid "Serial Connection" msgstr "Serielle Verbindung" -#: src/octoprint/server/views.py:508 +#: src/octoprint/server/views.py:543 #: src/octoprint/templates/dialogs/settings/printerprofiles.jinja2:1 msgid "Printer Profiles" msgstr "Druckerprofile" -#: src/octoprint/server/views.py:509 +#: src/octoprint/server/views.py:544 msgid "Temperatures" msgstr "Temperaturen" -#: src/octoprint/server/views.py:510 +#: src/octoprint/server/views.py:545 msgid "Terminal Filters" msgstr "Terminalfilter" -#: src/octoprint/server/views.py:511 +#: src/octoprint/server/views.py:546 msgid "GCODE Scripts" msgstr "GCODE Scripts" -#: src/octoprint/server/views.py:513 src/octoprint/server/views.py:515 +#: src/octoprint/server/views.py:548 src/octoprint/server/views.py:550 msgid "Features" msgstr "Funktionen" -#: src/octoprint/server/views.py:517 +#: src/octoprint/server/views.py:552 msgid "GCODE Visualizer" msgstr "GCode Viewer" -#: src/octoprint/server/views.py:518 +#: src/octoprint/server/views.py:553 msgid "API" msgstr "API" -#: src/octoprint/server/views.py:522 +#: src/octoprint/server/views.py:558 #: src/octoprint/templates/dialogs/settings/folders.jinja2:2 #: src/octoprint/templates/sidebar/files_header.jinja2:10 msgid "Folders" msgstr "Verzeichnisse" -#: src/octoprint/server/views.py:523 +#: src/octoprint/server/views.py:559 msgid "Appearance" msgstr "Aussehen" -#: src/octoprint/server/views.py:524 +#: src/octoprint/server/views.py:560 #: src/octoprint/templates/dialogs/settings/logs.jinja2:2 msgid "Logs" msgstr "Logs" -#: src/octoprint/server/views.py:525 +#: src/octoprint/server/views.py:561 msgid "Server" msgstr "Server" -#: src/octoprint/server/views.py:534 +#: src/octoprint/server/views.py:567 msgid "Access" msgstr "Zugriff" -#: src/octoprint/server/views.py:535 +#: src/octoprint/server/views.py:568 msgid "Interface" msgstr "Interface" -#: src/octoprint/server/views.py:551 +#: src/octoprint/server/views.py:584 msgid "Start" msgstr "Start" -#: src/octoprint/server/views.py:552 +#: src/octoprint/server/views.py:585 #: src/octoprint/templates/dialogs/wizard.jinja2:57 msgid "Finish" msgstr "Beenden" -#: src/octoprint/server/api/system.py:132 +#: src/octoprint/server/api/system.py:146 #: src/octoprint/templates/snippets/settings/server/serverCommandSystemShutdown.jinja2:2 msgid "Shutdown system" msgstr "System herunterfahren" -#: src/octoprint/server/api/system.py:133 +#: src/octoprint/server/api/system.py:147 msgid "You are about to shutdown the system." msgstr "Du bist dabei, das System herunterzufahren." -#: src/octoprint/server/api/system.py:136 +#: src/octoprint/server/api/system.py:150 msgid "Reboot system" msgstr "System neustarten" -#: src/octoprint/server/api/system.py:137 +#: src/octoprint/server/api/system.py:151 msgid "You are about to reboot the system." msgstr "Du bist dabei, das System neu zu starten." -#: src/octoprint/server/api/system.py:140 +#: src/octoprint/server/api/system.py:154 #: src/octoprint/templates/snippets/settings/server/serverCommandServerRestart.jinja2:2 msgid "Restart OctoPrint" msgstr "OctoPrint neustarten" -#: src/octoprint/server/api/system.py:141 +#: src/octoprint/server/api/system.py:155 msgid "You are about to restart the OctoPrint server." msgstr "Du bist dabei, das System neu zu starten." +#: src/octoprint/server/api/system.py:158 +msgid "Restart OctoPrint in safe mode" +msgstr "OctoPrint im Sicherheitsmodus neustarten" + +#: src/octoprint/server/api/system.py:159 +msgid "You are about to restart the OctoPrint server in safe mode." +msgstr "Du bist dabei, das System im Sicherheitsmodus neu zu starten." + #: src/octoprint/static/js/app/dataupdater.js:79 #: src/octoprint/static/js/app/dataupdater.js:98 #: src/octoprint/static/js/app/helpers.js:566 @@ -1384,24 +1697,43 @@ msgid "Server is offline" msgstr "Der Server ist offline" #: src/octoprint/static/js/app/dataupdater.js:80 -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:99 -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:127 msgid "Safe mode is active" msgstr "Sicherheitsmodus ist aktiv" #: src/octoprint/static/js/app/dataupdater.js:128 -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:170 -#: src/octoprint/static/js/app/viewmodels/files.js:848 -#: src/octoprint/static/js/app/viewmodels/files.js:855 +#: src/octoprint/static/js/app/viewmodels/files.js:846 +#: src/octoprint/static/js/app/viewmodels/files.js:853 #, python-format msgid "Slicing ... (%(percentage)d%%)" msgstr "Slice ... (%(percentage)d%%)" @@ -1413,13 +1745,22 @@ msgstr "Unbehandelter Kommunikationsfehler" #: src/octoprint/static/js/app/dataupdater.js:195 #, python-format -msgid "There was an unhandled error while talking to the printer. Due to that the ongoing print job was cancelled. Error: %(firmwareError)s" -msgstr "Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. Daher wurder der laufende Druckauftrag abgebrochen. Fehler: %(firmwareError)s" +msgid "" +"There was an unhandled error while talking to the printer. Due to that " +"the ongoing print job was cancelled. Error: %(firmwareError)s" +msgstr "" +"Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. " +"Daher wurder der laufende Druckauftrag abgebrochen. Fehler: " +"%(firmwareError)s" #: src/octoprint/static/js/app/dataupdater.js:203 #, python-format -msgid "The was an unhandled error while talking to the printer. Due to that OctoPrint disconnected. Error: %(error)s" -msgstr "Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. Daher hat OctoPrint die Verbindung getrennt. Fehler: %(error)s" +msgid "" +"The was an unhandled error while talking to the printer. Due to that " +"OctoPrint disconnected. Error: %(error)s" +msgstr "" +"Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. " +"Daher hat OctoPrint die Verbindung getrennt. Fehler: %(error)s" #: src/octoprint/static/js/app/helpers.js:372 #, python-format @@ -1567,15 +1908,15 @@ msgid "Disconnect" msgstr "Trennen" #: src/octoprint/static/js/app/viewmodels/control.js:62 -#: src/octoprint/static/js/app/viewmodels/files.js:589 -#: src/octoprint/static/js/app/viewmodels/gcode.js:482 -#: src/octoprint/static/js/app/viewmodels/printerstate.js:231 -#: src/octoprint/static/js/app/viewmodels/temperature.js:62 +#: src/octoprint/static/js/app/viewmodels/files.js:586 +#: src/octoprint/static/js/app/viewmodels/gcode.js:489 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:232 +#: src/octoprint/static/js/app/viewmodels/temperature.js:63 msgid "Tool" msgstr "Werkzeug" #: src/octoprint/static/js/app/viewmodels/control.js:68 -#: src/octoprint/static/js/app/viewmodels/temperature.js:73 +#: src/octoprint/static/js/app/viewmodels/temperature.js:74 msgid "Hotend" msgstr "Hotend" @@ -1591,110 +1932,133 @@ msgstr "Dein verfügbarer freier Plattenplatz wird langsam knapp." msgid "Your current disk usage." msgstr "Dein aktuell verfügbarer freier Plattenplatz." -#: src/octoprint/static/js/app/viewmodels/files.js:390 +#: src/octoprint/static/js/app/viewmodels/files.js:387 #, python-format -msgid "You are about to delete the folder \"%(folder)s\" which still contains files and/or sub folders." -msgstr "Du bist dabei, 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 dabei, das Verzeichnis \"%(folder)s\" zu löschen, das noch " +"Dateien und/oder Unterverzeichnisse enthält." -#: src/octoprint/static/js/app/viewmodels/files.js:578 -#: src/octoprint/static/js/app/viewmodels/gcode.js:441 +#: src/octoprint/static/js/app/viewmodels/files.js:575 +#: src/octoprint/static/js/app/viewmodels/gcode.js:448 msgid "Model size" msgstr "Modelgröße" -#: src/octoprint/static/js/app/viewmodels/files.js:584 -#: src/octoprint/static/js/app/viewmodels/files.js:589 -#: src/octoprint/static/js/app/viewmodels/gcode.js:479 -#: src/octoprint/static/js/app/viewmodels/gcode.js:482 +#: src/octoprint/static/js/app/viewmodels/files.js:581 +#: src/octoprint/static/js/app/viewmodels/files.js:586 +#: src/octoprint/static/js/app/viewmodels/gcode.js:486 +#: src/octoprint/static/js/app/viewmodels/gcode.js:489 msgid "Filament" msgstr "Filament" -#: src/octoprint/static/js/app/viewmodels/files.js:593 -#: src/octoprint/static/js/app/viewmodels/gcode.js:486 +#: src/octoprint/static/js/app/viewmodels/files.js:590 +#: src/octoprint/static/js/app/viewmodels/gcode.js:493 msgid "Estimated print time" msgstr "Geschätzte Dauer" -#: src/octoprint/static/js/app/viewmodels/files.js:596 +#: src/octoprint/static/js/app/viewmodels/files.js:593 msgid "Last printed" msgstr "Zuletzt gedruckt" -#: src/octoprint/static/js/app/viewmodels/files.js:598 +#: src/octoprint/static/js/app/viewmodels/files.js:595 msgid "Last print time" msgstr "Letzte Dauer" -#: src/octoprint/static/js/app/viewmodels/files.js:658 +#: src/octoprint/static/js/app/viewmodels/files.js:655 #, 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:668 +#: src/octoprint/static/js/app/viewmodels/files.js:665 msgid "Object exceeds print volume in width.
" msgstr "Objekt überschreitet Druckvolumen in der Breite.
" -#: src/octoprint/static/js/app/viewmodels/files.js:671 +#: src/octoprint/static/js/app/viewmodels/files.js:668 msgid "Object exceeds print volume in depth.
" msgstr "Objekt überschreitet Druckvolumen in der Tiefe.
" -#: src/octoprint/static/js/app/viewmodels/files.js:674 +#: src/octoprint/static/js/app/viewmodels/files.js:671 msgid "Object exceeds print volume in height.
" msgstr "Objekt überschreitet Druckvolumen in der Höhe.
" -#: src/octoprint/static/js/app/viewmodels/files.js:680 -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:677 +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:682 -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:679 +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:689 +#: src/octoprint/static/js/app/viewmodels/files.js:686 msgid "Object doesn't fit print volume" msgstr "Objekt passt nicht in Druckvolumen" -#: src/octoprint/static/js/app/viewmodels/files.js:850 +#: src/octoprint/static/js/app/viewmodels/files.js:848 msgid "Slicing ..." msgstr "Slice ..." -#: src/octoprint/static/js/app/viewmodels/files.js:876 +#: src/octoprint/static/js/app/viewmodels/files.js:874 msgid "Slicing done" msgstr "Slicing abgeschlossen" -#: src/octoprint/static/js/app/viewmodels/files.js:877 +#: src/octoprint/static/js/app/viewmodels/files.js:875 #, python-format msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds" msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden" -#: src/octoprint/static/js/app/viewmodels/files.js:892 +#: src/octoprint/static/js/app/viewmodels/files.js:890 #, python-format msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s" msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s" -#: src/octoprint/static/js/app/viewmodels/files.js:893 +#: src/octoprint/static/js/app/viewmodels/files.js:891 msgid "Slicing failed" msgstr "Slicing fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/files.js:910 +#: src/octoprint/static/js/app/viewmodels/files.js:908 msgid "Streaming ..." msgstr "Streaming ..." -#: src/octoprint/static/js/app/viewmodels/files.js:922 +#: src/octoprint/static/js/app/viewmodels/files.js:920 msgid "Streaming done" msgstr "Streaming abgeschlossen" -#: src/octoprint/static/js/app/viewmodels/files.js:923 +#: src/octoprint/static/js/app/viewmodels/files.js:921 #, python-format msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds" msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden" -#: src/octoprint/static/js/app/viewmodels/files.js:1019 +#: src/octoprint/static/js/app/viewmodels/files.js:1017 #, 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:1040 +#: src/octoprint/static/js/app/viewmodels/files.js:1038 msgid "Saving ..." msgstr "Speichere ..." -#: src/octoprint/static/js/app/viewmodels/files.js:1040 +#: src/octoprint/static/js/app/viewmodels/files.js:1038 msgid "Uploading ..." msgstr "Uploade ..." @@ -1710,240 +2074,276 @@ msgstr "Analysiere..." msgid "Analyzed" msgstr "Analysiert" -#: src/octoprint/static/js/app/viewmodels/gcode.js:442 +#: src/octoprint/static/js/app/viewmodels/gcode.js:449 msgid "Estimated total print time" msgstr "Geschätzte Gesamtdauer" -#: src/octoprint/static/js/app/viewmodels/gcode.js:443 +#: src/octoprint/static/js/app/viewmodels/gcode.js:450 msgid "Estimated layer height" msgstr "Geschätzte Schichthöhe" -#: src/octoprint/static/js/app/viewmodels/gcode.js:443 +#: src/octoprint/static/js/app/viewmodels/gcode.js:450 #: src/octoprint/templates/tabs/timelapse.jinja2:47 msgid "mm" msgstr "mm" -#: src/octoprint/static/js/app/viewmodels/gcode.js:444 +#: src/octoprint/static/js/app/viewmodels/gcode.js:451 msgid "Layer count" msgstr "Schichtanzahl" -#: src/octoprint/static/js/app/viewmodels/gcode.js:444 +#: src/octoprint/static/js/app/viewmodels/gcode.js:451 msgid "printed" msgstr "gedruckt" -#: src/octoprint/static/js/app/viewmodels/gcode.js:444 +#: src/octoprint/static/js/app/viewmodels/gcode.js:451 msgid "visited" msgstr "besucht" -#: src/octoprint/static/js/app/viewmodels/gcode.js:474 +#: src/octoprint/static/js/app/viewmodels/gcode.js:481 msgid "Layer number" msgstr "Schichtnummer" -#: src/octoprint/static/js/app/viewmodels/gcode.js:475 +#: src/octoprint/static/js/app/viewmodels/gcode.js:482 msgid "Layer height" msgstr "Schichthöhe" -#: src/octoprint/static/js/app/viewmodels/gcode.js:476 +#: src/octoprint/static/js/app/viewmodels/gcode.js:483 msgid "GCODE commands" msgstr "GCODE Befehle" #: src/octoprint/static/js/app/viewmodels/loginstate.js:26 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:34 #: src/octoprint/templates/navbar/login.jinja2:2 -#: src/octoprint/templates/navbar/login.jinja2:13 +#: src/octoprint/templates/navbar/login.jinja2:14 msgid "Login" msgstr "Login" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:73 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:32 +#, python-format +msgid "Logged in as %(name)s" +msgstr "Eingeloggt als %(name)s" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:87 msgid "Login successful" msgstr "Login erfolgreich" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:73 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:87 #, 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:81 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:99 msgid "Login failed" msgstr "Login fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:81 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:99 msgid "User unknown or wrong password" msgstr "Nutzer unbekannt oder falsches Passwort" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:88 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:106 msgid "Logout successful" msgstr "Logout erfolgreich" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:88 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:106 msgid "You are now logged out" msgstr "Du bist jetzt ausgeloggt" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:136 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:138 msgid "Identifier must be set" msgstr "Identifier muss gesetzt sein" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:138 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:140 msgid "Invalid characters, only a-z, A-Z, 0-9, -, ., _, ( and ) are allowed" msgstr "Invalide Zeichen, es sind nur a-z, A-Z, 0-9, -, ., _, ( und ) erlaubt" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:140 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:142 msgid "A profile with such an identifier already exists" msgstr "Es gibt bereits ein Profil mit diesem Identifier" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:153 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:155 #: src/octoprint/static/js/app/viewmodels/settings.js:58 #: src/octoprint/static/js/app/viewmodels/settings.js:88 msgid "default" msgstr "Standard" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:154 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:156 #: src/octoprint/static/js/app/viewmodels/settings.js:59 #: src/octoprint/static/js/app/viewmodels/settings.js:72 msgid "red" msgstr "Rot" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:155 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:157 #: src/octoprint/static/js/app/viewmodels/settings.js:60 #: src/octoprint/static/js/app/viewmodels/settings.js:74 msgid "orange" msgstr "Orange" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:156 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:158 #: src/octoprint/static/js/app/viewmodels/settings.js:61 #: src/octoprint/static/js/app/viewmodels/settings.js:76 msgid "yellow" msgstr "Gelb" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:157 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:159 #: src/octoprint/static/js/app/viewmodels/settings.js:62 #: src/octoprint/static/js/app/viewmodels/settings.js:78 msgid "green" msgstr "Grün" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:158 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:160 #: src/octoprint/static/js/app/viewmodels/settings.js:63 #: src/octoprint/static/js/app/viewmodels/settings.js:80 msgid "blue" msgstr "Blau" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:159 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:161 #: src/octoprint/static/js/app/viewmodels/settings.js:65 #: src/octoprint/static/js/app/viewmodels/settings.js:84 msgid "black" msgstr "Schwarz" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:166 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:168 msgid "Lower Left" msgstr "Unten links" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:167 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:169 msgid "Center" msgstr "Mittelpunkt" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:482 -msgid "There was unexpected error while saving the printer profile, please consult the logs." +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:486 +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:483 -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:498 -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:520 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:487 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:502 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:524 msgid "Saving failed" msgstr "Speichern fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:497 -msgid "There was unexpected error while removing the printer profile, please consult the logs." +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:501 +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:519 -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:523 +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:535 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:539 msgid "Add Printer Profile" msgstr "Druckerprofil hinzufügen" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:535 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:539 #, python-format msgid "Edit Printer Profile \"%(name)s\"" msgstr "Druckerprofile \"%(name)s\" bearbeiten" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:46 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:47 msgid "Restarts the print job from the beginning" msgstr "Started den Druckjob von vorne" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:47 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:48 msgid "Starts the print job" msgstr "Startet den Druckjob" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:48 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:49 msgid "Resumes the print job" msgstr "Setzt den Druckjob fort" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:49 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:50 msgid "Pauses the print job" msgstr "Pausiert den Druckjob" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:82 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:83 msgid "Still stabilizing..." msgstr "Noch zu ungenau..." -#: src/octoprint/static/js/app/viewmodels/printerstate.js:92 -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:93 +msgid "" +"Based on a linear approximation (very low accuracy, especially at the " +"beginning of the print)" +msgstr "" +"Basiert auf einer linearen Approximation (sehr geringe Genauigkeit, " +"insbesondere zu Beginn eines Drucks)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:95 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:96 msgid "Based on the estimate from analysis of file (medium accuracy)" msgstr "Basiert auf der Schätzung der Analyse der Datei (mittlere Genauigkeit)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:98 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:99 msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)" -msgstr "Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung (mittlere Genauigkeit)" +msgstr "" +"Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung " +"(mittlere Genauigkeit)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:101 -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:102 +msgid "" +"Based on the average total of past prints of this model with the same " +"printer profile (usually good accuracy)" +msgstr "" +"Basiert auf der durchschnittlichen Dauer vergangener Druckjobs dieses " +"Modells mit dem selben Druckerprofil (normalerweise gute Genauigkeit)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:104 -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:105 +msgid "" +"Based on a mix of average total from past prints and calculation (usually" +" good accuracy)" +msgstr "" +"Basiert auf einem Mix der durschnittlichen Dauer vergangener Druckjobs " +"und der Berechnung (normalerweise gute Genauigkeit)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:107 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:108 msgid "Based on the calculated estimate (best accuracy)" msgstr "Basiert auf der berechneten Schätzung (beste Genauigkeit)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:145 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:146 msgid "Continue" msgstr "Fortsetzen" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:147 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:148 #: src/octoprint/templates/sidebar/state.jinja2:24 msgid "Pause" msgstr "Pause" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:158 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:159 #: src/octoprint/templates/tabs/timelapse.jinja2:11 msgid "On Z Change" msgstr "Bei Ebenenwechsel" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:160 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:161 #: src/octoprint/templates/tabs/timelapse.jinja2:10 msgid "Timed" msgstr "Nach Zeit" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:160 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:161 #: src/octoprint/templates/tabs/timelapse.jinja2:25 #: src/octoprint/templates/tabs/timelapse.jinja2:39 msgid "sec" msgstr "Sek" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:268 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:269 msgid "This will restart the print job from the beginning." msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen." -#: src/octoprint/static/js/app/viewmodels/printerstate.js:292 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:296 msgid "This will cancel your print." msgstr "Das wird deinen Druck abbrechen." +#: src/octoprint/static/js/app/viewmodels/printerstate.js:297 +msgid "No" +msgstr "Nein" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:298 +msgid "Yes" +msgstr "Ja" + #: src/octoprint/static/js/app/viewmodels/settings.js:64 #: src/octoprint/static/js/app/viewmodels/settings.js:82 msgid "violet" @@ -1958,47 +2358,61 @@ msgstr "weiß" msgid "Autodetect from browser" msgstr "Automatisch vom Browser erkennen" -#: src/octoprint/static/js/app/viewmodels/settings.js:230 +#: src/octoprint/static/js/app/viewmodels/settings.js:232 msgid "If you see your webcam stream below, the entered stream URL is ok." msgstr "Falls du unten den Webcamstream sehen kannst, ist die Stream-URL ok." -#: src/octoprint/static/js/app/viewmodels/settings.js:236 +#: src/octoprint/static/js/app/viewmodels/settings.js:238 msgid "Stream test" msgstr "Stream Test" -#: src/octoprint/static/js/app/viewmodels/settings.js:249 +#: src/octoprint/static/js/app/viewmodels/settings.js:251 msgid "Could not retrieve snapshot URL, please double check the URL" msgstr "Konnte die Snapshot-URL nicht abgreifen, bitte prüfen" -#: src/octoprint/static/js/app/viewmodels/settings.js:250 +#: src/octoprint/static/js/app/viewmodels/settings.js:252 msgid "Snapshot test failed" msgstr "Snapshot Test fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/settings.js:272 -msgid "If you see your webcam snapshot picture below, the entered snapshot URL is ok." +#: src/octoprint/static/js/app/viewmodels/settings.js:274 +msgid "" +"If you see your webcam snapshot picture below, the entered snapshot URL " +"is ok." msgstr "Falls du unten dein Snapshotbild sehen kannst, ist die Snapshot-URL ok." -#: src/octoprint/static/js/app/viewmodels/settings.js:274 +#: src/octoprint/static/js/app/viewmodels/settings.js:276 msgid "Snapshot test" msgstr "Snapshot Test" -#: src/octoprint/static/js/app/viewmodels/slicing.js:107 +#: src/octoprint/static/js/app/viewmodels/slicing.js:123 msgid "Do nothing" msgstr "Nichts machen" -#: src/octoprint/static/js/app/viewmodels/slicing.js:108 +#: src/octoprint/static/js/app/viewmodels/slicing.js:124 msgid "Select for printing" msgstr "Zum Drucken auswählen" -#: src/octoprint/static/js/app/viewmodels/slicing.js:109 +#: src/octoprint/static/js/app/viewmodels/slicing.js:125 msgid "Start printing" msgstr "Drucken" -#: src/octoprint/static/js/app/viewmodels/slicing.js:128 +#: src/octoprint/static/js/app/viewmodels/slicing.js:144 #, python-format msgid "Slicing %(filename)s" msgstr "Slice %(filename)s" +#: src/octoprint/static/js/app/viewmodels/slicing.js:181 +msgid "Cannot slice on the same device while printing" +msgstr "Kann nicht auf dem selben Server slicen, während gedruckt wird" + +#: src/octoprint/static/js/app/viewmodels/slicing.js:183 +msgid "Cannot slice, not all parameters specified" +msgstr "Kann nicht slicen, nicht alle Parameter spezifiziert" + +#: src/octoprint/static/js/app/viewmodels/slicing.js:186 +msgid "Start the slicing process" +msgstr "Starte the Slicingvorgang" + #: src/octoprint/static/js/app/viewmodels/system.js:50 #, python-format msgid "The command \"%(command)s\" executed successfully" @@ -2014,37 +2428,43 @@ msgid "Error" msgstr "Fehler" #: src/octoprint/static/js/app/viewmodels/temperature.js:23 -#: src/octoprint/static/js/app/viewmodels/temperature.js:80 +#: src/octoprint/static/js/app/viewmodels/temperature.js:81 #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:16 msgid "Bed" msgstr "Bett" -#: src/octoprint/static/js/app/viewmodels/temperature.js:123 +#: src/octoprint/static/js/app/viewmodels/temperature.js:124 msgid "just now" msgstr "gerade eben" -#: src/octoprint/static/js/app/viewmodels/temperature.js:125 +#: src/octoprint/static/js/app/viewmodels/temperature.js:126 msgid "min" msgstr "Min" -#: src/octoprint/static/js/app/viewmodels/temperature.js:292 +#: src/octoprint/static/js/app/viewmodels/temperature.js:293 #: src/octoprint/templates/tabs/temperature.jinja2:11 msgid "Actual" msgstr "Ist" -#: src/octoprint/static/js/app/viewmodels/temperature.js:297 +#: src/octoprint/static/js/app/viewmodels/temperature.js:298 #: src/octoprint/templates/tabs/temperature.jinja2:12 msgid "Target" msgstr "Soll" #: src/octoprint/static/js/app/viewmodels/terminal.js:101 #, 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:103 #, 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:107 @@ -2072,8 +2492,12 @@ msgstr "%(minutes)d Min" #: src/octoprint/static/js/app/viewmodels/timelapse.js:274 #, 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:276 #, python-format @@ -2082,12 +2506,20 @@ msgstr "%(seconds)d Sek" #: src/octoprint/static/js/app/viewmodels/timelapse.js:277 #, 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:307 -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:310 msgid "Could not capture snapshots" @@ -2099,8 +2531,13 @@ msgstr "Zeitrafferaufnahme wird gerendert" #: src/octoprint/static/js/app/viewmodels/timelapse.js:320 #, 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:329 msgid "Cannot render timelapse" @@ -2108,8 +2545,12 @@ msgstr "Kann Zeitrafferaufnahme nicht rendern" #: src/octoprint/static/js/app/viewmodels/timelapse.js:330 #, 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:332 #: src/octoprint/static/js/app/viewmodels/timelapse.js:336 @@ -2118,13 +2559,21 @@ msgstr "Rendern von Zeitrafferaufnahme fehlgeschlagen" #: src/octoprint/static/js/app/viewmodels/timelapse.js:333 #, 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:337 #, 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:350 msgid "Timelapse ready" @@ -2164,12 +2613,23 @@ 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" @@ -2180,32 +2640,42 @@ msgid "Select a slicer..." msgstr "Slicer wählen..." #: src/octoprint/templates/dialogs/slicing.jinja2:20 +msgid "Runs locally" +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" + +#: src/octoprint/templates/dialogs/slicing.jinja2:27 msgid "Slicing Profile" msgstr "Slicingprofil" -#: src/octoprint/templates/dialogs/slicing.jinja2:22 +#: src/octoprint/templates/dialogs/slicing.jinja2:29 msgid "Select a slicing profile..." msgstr "Wähle ein Slicingprofile..." -#: src/octoprint/templates/dialogs/slicing.jinja2:26 +#: src/octoprint/templates/dialogs/slicing.jinja2:33 #: src/octoprint/templates/sidebar/connection.jinja2:5 msgid "Printer Profile" msgstr "Druckerprofil" -#: src/octoprint/templates/dialogs/slicing.jinja2:28 +#: src/octoprint/templates/dialogs/slicing.jinja2:35 msgid "Select a printer profile..." msgstr "Wähle ein Druckerprofil..." -#: src/octoprint/templates/dialogs/slicing.jinja2:32 +#: src/octoprint/templates/dialogs/slicing.jinja2:39 msgid "Output Filename" msgstr "Ausgabedateiname" -#: src/octoprint/templates/dialogs/slicing.jinja2:41 +#: src/octoprint/templates/dialogs/slicing.jinja2:48 msgid "After slicing..." msgstr "Nach dem Slicing..." -#: src/octoprint/templates/dialogs/slicing.jinja2:51 -#: src/octoprint/templates/sidebar/files.jinja2:32 +#: src/octoprint/templates/dialogs/slicing.jinja2:58 +#: src/octoprint/templates/sidebar/files.jinja2:35 msgid "Slice" msgstr "Slicen" @@ -2216,7 +2686,8 @@ msgstr "Setup Wizard" #: src/octoprint/templates/dialogs/wizard.jinja2:41 msgid "" "\n" -" Mandatory Step! You need to fill this out now.\n" +" Mandatory " +"Step! You need to fill this out now.\n" " " msgstr "Obligatorischer Schritt! Du musst das jetzt ausfüllen." @@ -2229,8 +2700,12 @@ 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" @@ -2325,8 +2800,12 @@ 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" @@ -2334,10 +2813,11 @@ 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 -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2:23 msgid "Color" msgstr "Farbe" @@ -2362,11 +2842,17 @@ 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." +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 -msgid "Show temperatures in Fahrenheit as well as Celcius" +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 @@ -2395,18 +2881,28 @@ msgstr "Zusätzliche Sprachepakete hochladen" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:95 #: src/octoprint/templates/overlays/dragndrop.jinja2:10 -#: src/octoprint/templates/sidebar/files.jinja2:57 -#: src/octoprint/templates/sidebar/files.jinja2:68 +#: src/octoprint/templates/sidebar/files.jinja2:60 +#: src/octoprint/templates/sidebar/files.jinja2:71 msgid "Upload" msgstr "Upload" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:97 -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" +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:100 -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." +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" @@ -2414,82 +2910,109 @@ 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" msgstr "Beta" #: src/octoprint/templates/dialogs/settings/features.jinja2:19 +msgid "Confirm before cancelling a print" +msgstr "Vor Abbruch eines Druckjobs bestätigen" + +#: src/octoprint/templates/dialogs/settings/features.jinja2:26 msgid "Enable SD support" msgstr "SD-Unterstützung aktivieren" -#: src/octoprint/templates/dialogs/settings/features.jinja2:26 +#: src/octoprint/templates/dialogs/settings/features.jinja2:33 msgid "Enable Keyboard Control" msgstr "Tastatursteuerung aktivieren" -#: src/octoprint/templates/dialogs/settings/features.jinja2:33 +#: src/octoprint/templates/dialogs/settings/features.jinja2:40 msgid "Wait for start on connect" msgstr "Bei der Verbindung auf start warten" -#: src/octoprint/templates/dialogs/settings/features.jinja2:41 +#: src/octoprint/templates/dialogs/settings/features.jinja2:47 msgid "Enable automatic firmware detection" msgstr "Automatische Firmwareerkennung einschalten" -#: src/octoprint/templates/dialogs/settings/features.jinja2:42 +#: src/octoprint/templates/dialogs/settings/features.jinja2:48 msgid "" "\n" -" If enabled, OctoPrint will try to figure out your printer's firmware automatically and adjust a couple of communication parameters based on that.\n" -" 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" +" If enabled, OctoPrint will try to figure out your " +"printer's firmware automatically and adjust a couple of 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 Konfigurationeingeblendet." +msgstr "" +"Falls diese Option eingeschaltet ist, versucht OctoPrint die Firmware des" +" Druckers automatisch zu erkennen und darauf basierend diverse " +"Kommunikationsparameter zu konfigurieren.Falls das für dich nicht korrekt" +" funktioniert oder du mehr Kontrolle haben möchtest, schalte diese Option" +" aus und die entsprechenden Parameter werden zur manuellen " +"Konfigurationeingeblendet." -#: src/octoprint/templates/dialogs/settings/features.jinja2:53 +#: src/octoprint/templates/dialogs/settings/features.jinja2:59 msgid "Select SD files by relative path" msgstr "SD Dateien per relativem Pfad addressieren" -#: src/octoprint/templates/dialogs/settings/features.jinja2:53 +#: src/octoprint/templates/dialogs/settings/features.jinja2:59 msgid "RepRap Firmware" msgstr "RepRap Firmware" -#: src/octoprint/templates/dialogs/settings/features.jinja2:60 +#: src/octoprint/templates/dialogs/settings/features.jinja2:66 msgid "Always assume SD card is present" msgstr "Immer davon ausgehen, dass eine SD-Karte vorhanden ist" -#: src/octoprint/templates/dialogs/settings/features.jinja2:60 -#: src/octoprint/templates/dialogs/settings/features.jinja2:67 -#: src/octoprint/templates/dialogs/settings/features.jinja2:74 -#: src/octoprint/templates/dialogs/settings/features.jinja2:81 -#: src/octoprint/templates/dialogs/settings/features.jinja2:92 +#: src/octoprint/templates/dialogs/settings/features.jinja2:66 +#: src/octoprint/templates/dialogs/settings/features.jinja2:73 +#: src/octoprint/templates/dialogs/settings/features.jinja2:80 +#: src/octoprint/templates/dialogs/settings/features.jinja2:87 +#: src/octoprint/templates/dialogs/settings/features.jinja2:94 +#: src/octoprint/templates/dialogs/settings/features.jinja2:105 msgid "Repetier" msgstr "Repetier" -#: src/octoprint/templates/dialogs/settings/features.jinja2:67 +#: src/octoprint/templates/dialogs/settings/features.jinja2:73 msgid "Ignore consecutive resend requests for the same line" msgstr "Aufeinanderfolgende Resend Requests für die selbe Zeilennummer ignorieren" -#: src/octoprint/templates/dialogs/settings/features.jinja2:74 +#: src/octoprint/templates/dialogs/settings/features.jinja2:80 #, python-format -msgid "Support 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/features.jinja2:81 +#: src/octoprint/templates/dialogs/settings/features.jinja2:87 msgid "Disable detection of external heatups" msgstr "Detektierung externer Aufheizvorgänge deaktivieren" -#: src/octoprint/templates/dialogs/settings/features.jinja2:86 +#: src/octoprint/templates/dialogs/settings/features.jinja2:94 +msgid "Actively pause communication during G4 dwell command" +msgstr "" +"Pausiere Kommunikation mit dem Drucker aktiv während eines " +"G4 dwell Befehls." + +#: src/octoprint/templates/dialogs/settings/features.jinja2:99 msgid "Send a checksum with the command" msgstr "Eine Prüfsumme mit dem Befehl senden" -#: src/octoprint/templates/dialogs/settings/features.jinja2:89 +#: src/octoprint/templates/dialogs/settings/features.jinja2:102 msgid "When printing" msgstr "Beim Drucken" -#: src/octoprint/templates/dialogs/settings/features.jinja2:92 +#: src/octoprint/templates/dialogs/settings/features.jinja2:105 msgid "Always" msgstr "Immer" -#: src/octoprint/templates/dialogs/settings/features.jinja2:95 +#: src/octoprint/templates/dialogs/settings/features.jinja2:108 msgid "Never" msgstr "Nie" @@ -2514,16 +3037,25 @@ msgid "Watched Folder" msgstr "Beobachtetes Verzeichnis" #: src/octoprint/templates/dialogs/settings/folders.jinja2:37 -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:42 msgid "Disk space thresholds" msgstr "Plattenplatzschwellwerte" #: src/octoprint/templates/dialogs/settings/folders.jinja2:44 -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:47 #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:77 @@ -2539,8 +3071,14 @@ msgstr "Kritisch" #: src/octoprint/templates/dialogs/settings/folders.jinja2:59 #: 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" @@ -2571,8 +3109,12 @@ msgid "Before connection to printer is closed" msgstr "Bevor die Verbindung zum Drucker geschlossen wird" #: src/octoprint/templates/dialogs/settings/gcodescripts.jinja2:43 -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" @@ -2580,7 +3122,9 @@ 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" @@ -2600,9 +3144,9 @@ msgstr "Änderungsdatum" #: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:13 -#: src/octoprint/templates/sidebar/files.jinja2:14 -#: src/octoprint/templates/sidebar/files.jinja2:28 -#: src/octoprint/templates/sidebar/files.jinja2:38 +#: src/octoprint/templates/sidebar/files.jinja2:17 +#: src/octoprint/templates/sidebar/files.jinja2:31 +#: src/octoprint/templates/sidebar/files.jinja2:41 #: src/octoprint/templates/tabs/timelapse.jinja2:66 #: src/octoprint/templates/tabs/timelapse.jinja2:72 #: src/octoprint/templates/tabs/timelapse.jinja2:104 @@ -2618,8 +3162,13 @@ msgid "Add Profile..." msgstr "Profil hinzufügen..." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:2 -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:3 #: src/octoprint/templates/sidebar/connection.jinja2:1 @@ -2627,8 +3176,12 @@ msgid "Serial Port" msgstr "Serialport" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:8 -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:9 #: src/octoprint/templates/sidebar/connection.jinja2:3 @@ -2636,8 +3189,12 @@ msgid "Baudrate" msgstr "Baudrate" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:14 -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:17 msgid "Auto-connect to printer on server start" @@ -2645,7 +3202,9 @@ msgstr "Automatisch bei Serverstart verbinden" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:21 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:22 msgid "Temperature interval" @@ -2660,32 +3219,53 @@ msgid "When a target temperature is set" msgstr "Wenn eine Zieltemperatur eingestellt ist" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:38 -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:39 msgid "SD status interval" msgstr "SD-Status-Intervall" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:47 -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. This is also the interval in which the temperature will be polled from the printer while not printing." -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. Das ist ebenfalls das Intervall in welchem die Temperaturdaten vom Drucker abgerufen werden wenn gerade kein Druckjob läuft." +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:48 msgid "Communication timeout" msgstr "Kommunikationstimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:56 -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:57 msgid "Connection timeout" msgstr "Verbindungstimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:65 -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:66 msgid "Autodetection timeout" @@ -2693,7 +3273,9 @@ msgstr "Autodetectiontimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:77 msgid "Log communication to serial.log (might negatively impact performance)" -msgstr "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)" +msgstr "" +"Logge die Kommunikation in das serial.log (kann die Performance negativ " +"beeinflussen)" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:82 msgid "Additional serial ports" @@ -2701,60 +3283,107 @@ msgstr "Zusätzliche serielle Ports" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:85 #, 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:89 msgid "Additional baud rates" msgstr "Weitere Baudraten" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:92 -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:98 -msgid "Not only cancel ongoing prints but also disconnect on unhandled errors from the firmware." -msgstr "Bei unbehalten Firmwarefehlern nicht nur den Druckauftrag abbrechen, sondern auch die Verbindung zum Drucker trennen." +msgid "" +"Not only cancel ongoing prints but also disconnect on unhandled errors " +"from the firmware." +msgstr "" +"Bei unbehandelten Firmwarefehlern nicht nur den Druckauftrag abbrechen, " +"sondern auch die Verbindung zum Drucker trennen." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:105 -msgid "Ignore any unhandled errors from the firmware. Only use this if your firmware sends stuff prefixed with \"Error\" that is not an actual error. Might mask printer issues, be careful!" -msgstr "Alle unbehalten Firmwarefehler ignorieren. Nur nutzen wenn Deine Firmware Dinge mit \"Error\" sendet die nicht wirklich Fehler sind. Könnte Druckerprobleme maskieren, vorsicht!" +msgid "" +"Ignore any unhandled errors from the firmware. Only use this if your " +"firmware sends stuff prefixed with \"Error\" that is not an actual error." +" Might mask printer issues, be careful!" +msgstr "" +"Alle unbehandelten Firmwarefehler ignorieren. Nur nutzen wenn Deine " +"Firmware Dinge mit \"Error\" sendet die nicht wirklich Fehler sind. " +"Könnte Druckerprobleme maskieren, vorsicht!" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:113 msgid "Command to send to the firmware on first handshake attempt." -msgstr "Kommando, das als erster Handshakeversuch an die Firmware gesendet werden soll" +msgstr "" +"Kommando, das als erster Handshakeversuch an die Firmware gesendet werden" +" soll" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:114 msgid "\"Hello\" command" msgstr "\"Hallo\"-Befehl" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:117 -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." +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:120 -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." +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:121 msgid "Long running commands" msgstr "Lang laufende Befehle" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:124 -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." +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:127 -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." +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:128 msgid "Commands that always require a checksum" msgstr "Befehle, die immer eine Prüfsumme benötigen" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:131 -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." +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:136 msgid "Generate additional ok for M29" @@ -2762,33 +3391,55 @@ msgstr "Zusätzliches ok für M29 generieren" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:136 msgid "Most Marlin < v1.1.0" -msgstr "Viele Marlin < v1.1.0" +msgstr "Die meisten Varianten von Marlin < v1.1.0" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:141 -msgid "Simulate an additional `ok` for resend requests" -msgstr "Zusätzliches `ok` für Resendrequests simulieren" +msgid "Simulate an additional ok for resend requests" +msgstr "Zusätzliches ok für Resendrequests simulieren" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:144 -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:145 msgid "Max. consecutive timeouts while idle" msgstr "Max. aufeinanderfolgende Timeouts wenn idle" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:150 -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:148 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:155 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:162 +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:151 +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:152 msgid "Max. consecutive timeouts while printing" msgstr "Max. aufeinanderfolgende Timeouts beim Drucken" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:156 -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:158 +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:157 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:159 msgid "Max. consecutive timeouts during long running commands" msgstr "Max. aufeinanderfolgende Timeouts während lang laufender Befehle" @@ -2821,16 +3472,24 @@ 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/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!" @@ -2841,15 +3500,25 @@ msgid "" "\n" " Your OctoPrint installation is now all set up and ready to go. Happy\n" " printing!\n" -msgstr "Deine OctoPrint Installation ist jetzt eingerichtet und es kann losgehen. Happy printing!" +msgstr "" +"Deine OctoPrint Installation ist jetzt eingerichtet und es kann losgehen." +" Happy printing!" #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:8 #, python-format msgid "" "\n" -" If you enjoy OctoPrint, please consider supporting its ongoing\n" -" development, which is fully funded by users like you! You can also find this link in the \"About\" dialog. Thank you!\n" -msgstr "Falls Dir OctoPrint gefällt, bitte denke darüber nach, seine fortlaufende Entwicklung zu unterstützen, welche vollständig durch User wie Dich finanziert wird! Du kannst diesen Link auch im \"Über\" Dialog finden. Vielen Dank!" +" If you enjoy OctoPrint, please consider supporting its ongoing\n" +" development, which is fully funded by users like you! You can " +"also find this link in the \"About\" dialog. Thank you!" +"\n" +msgstr "" +"Falls Dir OctoPrint gefällt, bitte denke darüber nach, seine fortlaufende Entwicklung zu " +"unterstützen, welche vollständig durch User wie Dich finanziert wird!" +" Du kannst diesen Link auch im \"Über\" Dialog finden. Vielen " +"Dank!" #: src/octoprint/templates/dialogs/wizard/firstrun_start.jinja2:1 msgid "Hello!" @@ -2858,28 +3527,33 @@ msgstr "Hallo!" #: src/octoprint/templates/dialogs/wizard/firstrun_start.jinja2:3 msgid "" "\n" -" Thank you for installing OctoPrint! This wizard will lead you through the\n" -" final steps to get your OctoPrint instance all setup and ready to go. We'll\n" +" Thank you for installing OctoPrint! This wizard will lead you through" +" the\n" +" final steps to get your OctoPrint instance all setup and ready to go." +" We'll\n" " get you printing in no time!\n" -msgstr "Danke, dass du OctoPrint installiert hast! Dieser Wizard wird dich nun durch die letzten Schritte begleiten, um deine OctoPrint Instanz fertig einzurichten." +msgstr "" +"Danke, dass du OctoPrint installiert hast! Dieser Wizard wird dich nun " +"durch die letzten Schritte begleiten, um deine OctoPrint Instanz fertig " +"einzurichten." -#: src/octoprint/templates/navbar/login.jinja2:11 +#: src/octoprint/templates/navbar/login.jinja2:12 msgid "Remember me" msgstr "Login merken" -#: src/octoprint/templates/navbar/login.jinja2:16 +#: src/octoprint/templates/navbar/login.jinja2:18 msgid "User Settings" msgstr "Nutzereinstellungen" -#: src/octoprint/templates/navbar/login.jinja2:17 +#: src/octoprint/templates/navbar/login.jinja2:19 msgid "Logout" msgstr "Logout" -#: src/octoprint/templates/navbar/settings.jinja2:2 +#: src/octoprint/templates/navbar/settings.jinja2:1 msgid "Settings" msgstr "Einstellungen" -#: src/octoprint/templates/navbar/systemmenu.jinja2:2 +#: src/octoprint/templates/navbar/systemmenu.jinja2:1 msgid "System" msgstr "System" @@ -2888,7 +3562,7 @@ msgid "Upload locally" msgstr "Upload (lokal)" #: src/octoprint/templates/overlays/dragndrop.jinja2:7 -#: src/octoprint/templates/sidebar/files.jinja2:62 +#: src/octoprint/templates/sidebar/files.jinja2:65 msgid "Upload to SD" msgstr "Upload (SD)" @@ -2907,12 +3581,18 @@ 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" +" 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" @@ -2922,51 +3602,55 @@ msgstr "Verbindungseinstellungen speichern" msgid "Auto-connect on server startup" msgstr "Automatisch bei Serverstart verbinden" -#: src/octoprint/templates/sidebar/files.jinja2:5 +#: src/octoprint/templates/sidebar/files.jinja2:6 msgid "Back" msgstr "Zurück" -#: src/octoprint/templates/sidebar/files.jinja2:13 -#: src/octoprint/templates/sidebar/files.jinja2:27 +#: src/octoprint/templates/sidebar/files.jinja2:7 +msgid "Currently in" +msgstr "Aktuell in" + +#: src/octoprint/templates/sidebar/files.jinja2:16 +#: src/octoprint/templates/sidebar/files.jinja2:30 msgid "Uploaded" msgstr "Hochgeladen" -#: src/octoprint/templates/sidebar/files.jinja2:17 +#: src/octoprint/templates/sidebar/files.jinja2:20 msgid "Additional data" msgstr "Weitere Daten" -#: src/octoprint/templates/sidebar/files.jinja2:18 -#: src/octoprint/templates/sidebar/files.jinja2:30 +#: src/octoprint/templates/sidebar/files.jinja2:21 +#: src/octoprint/templates/sidebar/files.jinja2:33 msgid "Download" msgstr "Download" -#: src/octoprint/templates/sidebar/files.jinja2:19 -#: src/octoprint/templates/sidebar/files.jinja2:31 -#: src/octoprint/templates/sidebar/files.jinja2:40 +#: src/octoprint/templates/sidebar/files.jinja2:22 +#: src/octoprint/templates/sidebar/files.jinja2:34 +#: src/octoprint/templates/sidebar/files.jinja2:43 msgid "Remove" msgstr "Entfernen" -#: src/octoprint/templates/sidebar/files.jinja2:20 +#: src/octoprint/templates/sidebar/files.jinja2:23 msgid "Load" msgstr "Laden" -#: src/octoprint/templates/sidebar/files.jinja2:21 +#: src/octoprint/templates/sidebar/files.jinja2:24 msgid "Load and Print" msgstr "Laden und Drucken" -#: src/octoprint/templates/sidebar/files.jinja2:45 +#: src/octoprint/templates/sidebar/files.jinja2:48 msgid "Free" msgstr "Frei" -#: src/octoprint/templates/sidebar/files.jinja2:45 +#: src/octoprint/templates/sidebar/files.jinja2:48 msgid "Total" msgstr "Gesamt" -#: src/octoprint/templates/sidebar/files.jinja2:50 +#: src/octoprint/templates/sidebar/files.jinja2:53 msgid "Create folder..." msgstr "Neues Verzeichnis..." -#: src/octoprint/templates/sidebar/files.jinja2:80 +#: src/octoprint/templates/sidebar/files.jinja2:83 msgid "Hint: You can also drag and drop files on this page to upload them." msgstr "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen." @@ -3060,7 +3744,9 @@ msgstr "Zeitraffer rendern" #: src/octoprint/templates/sidebar/state.jinja2:8 msgid "Estimated total print time base on statical analysis 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:8 msgid "Approx. Total Print Time" @@ -3075,8 +3761,12 @@ msgid "Print Time" msgstr "Dauer" #: src/octoprint/templates/sidebar/state.jinja2:11 -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:11 msgid "Print Time Left" @@ -3107,8 +3797,12 @@ 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" @@ -3133,8 +3827,13 @@ 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ädtst." +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ädtst." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorBuildvolume.jinja2:3 msgid "Form Factor" @@ -3179,10 +3878,15 @@ 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" +" 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" @@ -3201,8 +3905,15 @@ 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ädtst!" +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ädtst!" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:4 msgid "Nozzle Diameter" @@ -3212,18 +3923,43 @@ msgstr "Düsendurchmesser" msgid "Number of Extruders" msgstr "Anzahl Extruder" -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:21 -msgid "Please specify the nozzle offsets of the extruders relative to the first nozzle T0." -msgstr "Bitte spezifiziere die Düsenoffsets der Extruder relativ zur ersten Düse T0." +#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:20 +msgid "Shared nozzle" +msgstr "Geteilte Düse" -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:27 +#: 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)" + +#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:30 +msgid "" +"Please specify the nozzle offsets of the extruders relative to the first " +"nozzle T0." +msgstr "" +"Bitte spezifiziere die Düsenoffsets der Extruder relativ zur ersten Düse " +"T0." + +#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:36 #: src/octoprint/templates/tabs/temperature.jinja2:13 msgid "Offset" msgstr "Offset" -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:45 -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ädtst." +#: 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ädtst." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2:6 msgid "Name must be set" @@ -3300,7 +4036,9 @@ msgstr "Webcam um 90° gegen den Uhrzeigersinn rotieren" #: 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" @@ -3312,15 +4050,21 @@ msgstr "Voll definierte URL, muss von OctoPrints Server erreichbar sein" #: 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:7 msgid "Keyboard controls active" @@ -3359,7 +4103,9 @@ msgid "Stepsize" msgstr "Schrittgröße" #: src/octoprint/templates/tabs/control.jinja2:23 -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:69 @@ -3449,27 +4195,40 @@ msgstr "Neu laden" #: src/octoprint/templates/tabs/gcodeviewer.jinja2:76 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" +" 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" +" 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:87 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" +" 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" @@ -3477,9 +4236,13 @@ msgid "" "

" 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. might be too large for rendering and cause your browser to become unresponsive or crash.\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" @@ -3514,8 +4277,12 @@ msgid "Select all" msgstr "Alles auswählen" #: src/octoprint/templates/tabs/terminal.jinja2:6 -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:20 msgid "Send" @@ -3523,15 +4290,30 @@ msgstr "Senden" #: src/octoprint/templates/tabs/terminal.jinja2:22 msgid "Hint: Use the arrow up/down keys to recall commands sent previously" -msgstr "Hinweis: Nutze die Pfeil hoch/runter Tasten um vorher versandte Befehle wieder aufzurufen " +msgstr "" +"Hinweis: Nutze die Pfeil hoch/runter Tasten um vorher versandte Befehle " +"wieder aufzurufen " #: src/octoprint/templates/tabs/terminal.jinja2:30 msgid "Fake Acknowledgement" msgstr "Bestätigung faken" #: src/octoprint/templates/tabs/terminal.jinja2:31 -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 occurences 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 dass 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 occurences 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 dass du daher versuchen solltest, zu beseitigen!" #: src/octoprint/templates/tabs/terminal.jinja2:34 msgid "Force fancy functionality" @@ -3542,12 +4324,24 @@ msgid "Force terminal output during printing" msgstr "Terminalausgabe beim Druck erzwingen" #: src/octoprint/templates/tabs/terminal.jinja2:36 -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:5 msgid "Timelapse Configuration" @@ -3558,16 +4352,25 @@ msgid "Timelapse Mode" msgstr "Zeitraffermodus" #: src/octoprint/templates/tabs/timelapse.jinja2:13 -msgid "Do not use with spiralized (\"Joris\") vases or similar continuous Z models." -msgstr "Nicht mit spiralisierten Vasen (\"Joris\") oder ähnlichen Modellen mit ständigen Z-Achsen-Änderungen verwenden." +msgid "" +"Do not use with spiralized (\"Joris\") vases or similar continuous Z " +"models." +msgstr "" +"Nicht mit spiralisierten Vasen (\"Joris\") oder ähnlichen Modellen mit " +"ständigen Z-Achsen-Änderungen verwenden." #: src/octoprint/templates/tabs/timelapse.jinja2:14 msgid "Note" msgstr "Bemerkung" #: src/octoprint/templates/tabs/timelapse.jinja2:14 -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:16 msgid "Timelapse frame rate (in frames per second)" @@ -3586,8 +4389,13 @@ msgid "Capture post roll images" msgstr "Bilder für Zeitraffernachlauf aufzeichnen" #: src/octoprint/templates/tabs/timelapse.jinja2:30 -msgid "If this is unchecked, OctoPrint will simply repeat the last frame for the post roll instead of continuing to capture new frames." -msgstr "Wenn diese Option nicht angehakt ist wird OctoPrint einfach den letzten Frame der regulären Aufnahme für den Nachlauf verwenden, anstatt neue Frames aufzuzeichnen." +msgid "" +"If this is unchecked, OctoPrint will simply repeat the last frame for the" +" post roll instead of continuing to capture new frames." +msgstr "" +"Wenn diese Option nicht angehakt ist wird OctoPrint einfach den letzten " +"Frame der regulären Aufnahme für den Nachlauf verwenden, anstatt neue " +"Frames aufzuzeichnen." #: src/octoprint/templates/tabs/timelapse.jinja2:36 msgid "Interval" @@ -3598,8 +4406,16 @@ msgid "Retraction Z-Hop (in mm)" msgstr "Retraction Z-Hop (in mm)" #: src/octoprint/templates/tabs/timelapse.jinja2:49 -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:54 msgid "Save as default" @@ -3656,6 +4472,14 @@ msgstr "Zeitrafferaufnahme rendern" #~ msgid "" #~ msgstr "" +#~ "Falls dir OctoPrint gefällt, bitte ziehe" +#~ " es in Betracht seine fortlaufende Entwicklung zu" +#~ " unterstützen. Diese Entwicklung wird " +#~ "vollständig durch User wie Dich " +#~ "finanziert! Du kannst diesen Link auch" +#~ " im \"Über\" Dialog finden. " +#~ "Danke!" #~ msgid "Bundled" #~ msgstr "Gebundled" @@ -3696,8 +4520,3 @@ msgstr "Zeitrafferaufnahme rendern" #~ msgid "Reboot" #~ msgstr "Neustart" -#~ msgid "" -#~ "\n" -#~ " If you enjoy OctoPrint, please consider supporting its ongoing\n" -#~ " development. It's fully funded by users like you! You can also find this link in the \"About\" dialog. Thank you!\n" -#~ msgstr "Falls dir OctoPrint gefällt, bitte ziehe es in Betracht seine fortlaufende Entwicklung zu unterstützen. Diese Entwicklung wird vollständig durch User wie Dich finanziert! Du kannst diesen Link auch im \"Über\" Dialog finden. Danke!" diff --git a/src/octoprint/users.py b/src/octoprint/users.py index 0147329e8..c51686132 100644 --- a/src/octoprint/users.py +++ b/src/octoprint/users.py @@ -5,8 +5,8 @@ __author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" -from flask.ext.login import UserMixin -from flask.ext.principal import Identity +from flask_login import UserMixin, AnonymousUserMixin +from flask_principal import Identity from werkzeug.local import LocalProxy import hashlib import os @@ -26,7 +26,7 @@ class UserManager(object): def __init__(self): self._logger = logging.getLogger(__name__) self._session_users_by_session = dict() - self._session_users_by_userid = dict() + self._sessionids_by_userid = dict() self._enabled = True @property @@ -61,9 +61,10 @@ class UserManager(object): self._session_users_by_session[user.get_session()] = user userid = user.get_id() - if not userid in self._session_users_by_userid: - self._session_users_by_userid[userid] = [] - self._session_users_by_userid[userid].append(user) + if not userid in self._sessionids_by_userid: + self._sessionids_by_userid[userid] = set() + + self._sessionids_by_userid[userid].add(user.get_session()) self._logger.debug("Logged in user: %r" % user) @@ -80,15 +81,16 @@ class UserManager(object): return userid = user.get_id() - if userid in self._session_users_by_userid: - users_by_userid = self._session_users_by_userid[userid] - for u in users_by_userid: - if u.get_session() == user.get_session(): - users_by_userid.remove(u) - break + sessionid = user.get_session() - if user.get_session() in self._session_users_by_session: - del self._session_users_by_session[user.get_session()] + if userid in self._sessionids_by_userid: + try: + self._sessionids_by_userid[userid].remove(sessionid) + except KeyError: + pass + + if sessionid in self._session_users_by_session: + del self._session_users_by_session[sessionid] self._logger.debug("Logged out user: %r" % user) @@ -165,13 +167,12 @@ class UserManager(object): pass def removeUser(self, username): - if username in self._session_users_by_userid: - users = self._session_users_by_userid[username] - sessions = [user.get_session() for user in users if isinstance(user, SessionUser)] + if username in self._sessionids_by_userid: + sessions = self._sessionids_by_userid[username] for session in sessions: if session in self._session_users_by_session: del self._session_users_by_session[session] - del self._session_users_by_userid[username] + del self._sessionids_by_userid[username] def findUser(self, userid=None, session=None): if session is not None and session in self._session_users_by_session: @@ -217,6 +218,9 @@ class FilebasedUserManager(UserManager): if "settings" in attributes: settings = attributes["settings"] self._users[name] = User(name, attributes["password"], attributes["active"], attributes["roles"], apikey=apikey, settings=settings) + for sessionid in self._sessionids_by_userid.get(name, set()): + if sessionid in self._session_users_by_session: + self._session_users_by_session[sessionid].update_user(self._users[name]) else: self._customized = False @@ -310,9 +314,8 @@ class FilebasedUserManager(UserManager): raise UnknownUser(username) user = self._users[username] - current = user.get_setting(key) - if not current or current != value: - old_value = user.get_setting(key) + old_value = user.get_setting(key) + if not old_value or old_value != value: user.set_setting(key, value) self._dirty = self._dirty or old_value != value self._save() @@ -329,7 +332,7 @@ class FilebasedUserManager(UserManager): self._save() def getAllUserSettings(self, username): - if not username in self._users.key(): + if not username in self._users.keys(): raise UnknownUser(username) user = self._users[username] @@ -413,6 +416,65 @@ class UnknownRole(Exception): ##~~ User object +class MethodReplacedByBooleanProperty(object): + + def __init__(self, name, message, getter): + self._name = name + self._message = message + self._getter = getter + + @property + def _attr(self): + return self._getter() + + def __call__(self): + from warnings import warn + warn(DeprecationWarning(self._message.format(name=self._name)), stacklevel=2) + return self._attr + + def __eq__(self, other): + return self._attr == other + + def __ne__(self, other): + return self._attr != other + + def __bool__(self): + # Python 3 + return self._attr + + def __nonzero__(self): + # Python 2 + return self._attr + + def __hash__(self): + return hash(self._attr) + + def __repr__(self): + return "MethodReplacedByProperty({}, {}, {})".format(self._name, self._message, self._getter) + + def __str__(self): + return str(self._attr) + + +# TODO: Remove compatibility layer in OctoPrint 1.5.0 +class FlaskLoginMethodReplacedByBooleanProperty(MethodReplacedByBooleanProperty): + + def __init__(self, name, getter): + message = "{name} is now a property in Flask-Login versions >= 0.3.0, which OctoPrint now uses. " + \ + "Use {name} instead of {name}(). This compatibility layer will be removed in OctoPrint 1.5.0." + MethodReplacedByBooleanProperty.__init__(self, name, message, getter) + + +# TODO: Remove compatibility layer in OctoPrint 1.5.0 +class OctoPrintUserMethodReplacedByBooleanProperty(MethodReplacedByBooleanProperty): + + def __init__(self, name, getter): + message = "{name} is now a property for consistency reasons with Flask-Login versions >= 0.3.0, which " + \ + "OctoPrint now uses. Use {name} instead of {name}(). This compatibility layer will be removed " + \ + "in OctoPrint 1.5.0." + MethodReplacedByBooleanProperty.__init__(self, name, message, getter) + + class User(UserMixin): def __init__(self, username, passwordHash, active, roles, apikey=None, settings=None): self._username = username @@ -421,16 +483,16 @@ class User(UserMixin): self._roles = roles self._apikey = apikey - if not settings: + if settings is None: settings = dict() self._settings = settings def asDict(self): return { "name": self._username, - "active": self.is_active(), - "admin": self.is_admin(), - "user": self.is_user(), + "active": bool(self.is_active), + "admin": bool(self.is_admin), + "user": bool(self.is_user), "apikey": self._apikey, "settings": self._settings } @@ -444,14 +506,25 @@ class User(UserMixin): def get_name(self): return self._username + @property + def is_anonymous(self): + return FlaskLoginMethodReplacedByBooleanProperty("is_anonymous", lambda: False) + + @property + def is_authenticated(self): + return FlaskLoginMethodReplacedByBooleanProperty("is_authenticated", lambda: True) + + @property def is_active(self): - return self._active + return FlaskLoginMethodReplacedByBooleanProperty("is_active", lambda: self._active) + @property def is_user(self): - return "user" in self._roles + return OctoPrintUserMethodReplacedByBooleanProperty("is_user", lambda: "user" in self._roles) + @property def is_admin(self): - return "admin" in self._roles + return OctoPrintUserMethodReplacedByBooleanProperty("is_admin", lambda: "admin" in self._roles) def get_all_settings(self): return self._settings @@ -478,7 +551,7 @@ class User(UserMixin): def _get_setting(self, path): s = self._settings for p in path: - if p in s: + if isinstance(s, dict) and p in s: s = s[p] else: return None @@ -491,7 +564,7 @@ class User(UserMixin): s[p] = dict() if not isinstance(s[p], dict): - return False + s[p] = dict() s = s[p] @@ -500,12 +573,27 @@ class User(UserMixin): return True def __repr__(self): - return "User(id=%s,name=%s,active=%r,user=%r,admin=%r)" % (self.get_id(), self.get_name(), self.is_active(), self.is_user(), self.is_admin()) + return "User(id=%s,name=%s,active=%r,user=%r,admin=%r)" % (self.get_id(), self.get_name(), bool(self.is_active), bool(self.is_user), bool(self.is_admin)) + + +class AnonymousUser(AnonymousUserMixin): + + @property + def is_anonymous(self): + return FlaskLoginMethodReplacedByBooleanProperty("is_anonymous", lambda: True) + + @property + def is_authenticated(self): + return FlaskLoginMethodReplacedByBooleanProperty("is_authenticated", lambda: False) + + @property + def is_active(self): + return FlaskLoginMethodReplacedByBooleanProperty("is_active", lambda: False) + class SessionUser(User): def __init__(self, user): self._user = user - User.__init__(self, user._username, user._passwordHash, user._active, user._roles, user._apikey, user._settings) import string import random @@ -515,7 +603,7 @@ class SessionUser(User): self._created = time.time() def __getattribute__(self, item): - if item in ("get_session", "_user", "_session", "_created"): + if item in ("get_session", "update_user", "_user", "_session", "_created"): return object.__getattribute__(self, item) else: return getattr(object.__getattribute__(self, "_user"), item) @@ -529,8 +617,11 @@ class SessionUser(User): def get_session(self): return self._session + def update_user(self, user): + self._user = user + def __repr__(self): - return "SessionUser(id=%s,name=%s,active=%r,user=%r,admin=%r,session=%s,created=%s)" % (self.get_id(), self.get_name(), self.is_active(), self.is_user(), self.is_admin(), self._session, self._created) + return "SessionUser(id=%s,name=%s,active=%r,user=%r,admin=%r,session=%s,created=%s)" % (self.get_id(), self.get_name(), bool(self.is_active), bool(self.is_user), bool(self.is_admin), self._session, self._created) ##~~ DummyUser object to use when accessControl is disabled diff --git a/src/octoprint/util/__init__.py b/src/octoprint/util/__init__.py index 7312256cb..bf40d6da6 100644 --- a/src/octoprint/util/__init__.py +++ b/src/octoprint/util/__init__.py @@ -471,6 +471,12 @@ def dict_merge(a, b): >>> expected = dict(foo="other foo", bar="bar", fnord=dict(a=1, b=2, l=["some", "list"])) >>> dict_merge(a, b) == expected True + >>> dict_merge(a, None) == a + True + >>> dict_merge(None, b) == b + True + >>> dict_merge(None, None) == dict() + True Arguments: a (dict): The dictionary to merge ``b`` into @@ -482,6 +488,11 @@ def dict_merge(a, b): from copy import deepcopy + if a is None: + a = dict() + if b is None: + b = dict() + if not isinstance(b, dict): return b result = deepcopy(a) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index dd0ab9c6a..bb49d3b38 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -127,6 +127,9 @@ Groups will be as follows: regex_firmware_splitter = re.compile("\s*([A-Z0-9_]+):") """Regex to use for splitting M115 responses.""" +regex_resend_linenumber = re.compile("(N|N:)?(?P%s)" % regex_int_pattern) +"""Regex to use for request line numbers in resend requests""" + def serialList(): baselist=[] if os.name=="nt": @@ -144,6 +147,7 @@ def serialList(): + glob.glob("/dev/tty.usb*") \ + glob.glob("/dev/cu.*") \ + glob.glob("/dev/cuaU*") \ + + glob.glob("/dev/ttyS*") \ + glob.glob("/dev/rfcomm*") additionalPorts = settings().get(["serial", "additionalPorts"]) @@ -284,6 +288,7 @@ class MachineCom(object): self._long_running_command = False self._heating = False + self._dwelling_until = False self._connection_closing = False self._timeout = None @@ -315,6 +320,7 @@ class MachineCom(object): self._unknownCommandsNeedAck = settings().getBoolean(["feature", "unknownCommandsNeedAck"]) self._sdAlwaysAvailable = settings().getBoolean(["feature", "sdAlwaysAvailable"]) self._sdRelativePath = settings().getBoolean(["feature", "sdRelativePath"]) + self._blockWhileDwelling = settings().getBoolean(["feature", "blockWhileDwelling"]) self._currentLine = 1 self._line_mutex = threading.RLock() self._resendDelta = None @@ -387,7 +393,7 @@ class MachineCom(object): self._currentFile = None # multithreading locks - self._sendNextLock = threading.Lock() + self._jobLock = threading.RLock() self._sendingLock = threading.RLock() # monitoring thread @@ -743,41 +749,42 @@ class MachineCom(object): self._pauseWaitTimeLost = 0.0 try: - self._currentFile.start() + with self._jobLock: + self._currentFile.start() - self._changeState(self.STATE_PRINTING) + self._changeState(self.STATE_PRINTING) - self.resetLineNumbers() + self.resetLineNumbers() - self._callback.on_comm_print_job_started() + self._callback.on_comm_print_job_started() - if self.isSdFileSelected(): - #self.sendCommand("M26 S0") # setting the sd pos apparently sometimes doesn't work, so we re-select - # the file instead + if self.isSdFileSelected(): + #self.sendCommand("M26 S0") # setting the sd pos apparently sometimes doesn't work, so we re-select + # the file instead - # make sure to ignore the "file selected" later on, otherwise we'll reset our progress data - self._ignore_select = True - self.sendCommand("M23 {filename}".format(filename=self._currentFile.getFilename())) - if pos is not None and isinstance(pos, int) and pos > 0: - self._currentFile.setFilepos(pos) - self.sendCommand("M26 S{}".format(pos)) + # make sure to ignore the "file selected" later on, otherwise we'll reset our progress data + self._ignore_select = True + self.sendCommand("M23 {filename}".format(filename=self._currentFile.getFilename())) + if pos is not None and isinstance(pos, int) and pos > 0: + self._currentFile.setFilepos(pos) + self.sendCommand("M26 S{}".format(pos)) + else: + self._currentFile.setFilepos(0) + + self.sendCommand("M24") + + self._sd_status_timer = RepeatedTimer(self._timeout_intervals.get("sdStatus", 1.0), self._poll_sd_status, run_first=True) + self._sd_status_timer.start() else: - self._currentFile.setFilepos(0) + if pos is not None and isinstance(pos, int) and pos > 0: + self._currentFile.seek(pos) - self.sendCommand("M24") + line = self._getNext() + if line is not None: + self.sendCommand(line) - self._sd_status_timer = RepeatedTimer(self._timeout_intervals.get("sdStatus", 1.0), self._poll_sd_status, run_first=True) - self._sd_status_timer.start() - else: - if pos is not None and isinstance(pos, int) and pos > 0: - self._currentFile.seek(pos) - - line = self._getNext() - if line is not None: - self.sendCommand(line) - - # now make sure we actually do something, up until now we only filled up the queue - self._sendFromQueue() + # now make sure we actually do something, up until now we only filled up the queue + self._sendFromQueue() except: self._logger.exception("Error while trying to start printing") self._errorValue = get_exception_string() @@ -786,17 +793,18 @@ class MachineCom(object): def startFileTransfer(self, filename, localFilename, remoteFilename): if not self.isOperational() or self.isBusy(): - logging.info("Printer is not operation or busy") + logging.info("Printer is not operational or busy") return - self.resetLineNumbers() + with self._jobLock: + self.resetLineNumbers() - self._currentFile = StreamingGcodeFileInformation(filename, localFilename, remoteFilename) - self._currentFile.start() + self._currentFile = StreamingGcodeFileInformation(filename, localFilename, remoteFilename) + self._currentFile.start() - self.sendCommand("M28 %s" % remoteFilename) - eventManager().fire(Events.TRANSFER_STARTED, {"local": localFilename, "remote": remoteFilename}) - self._callback.on_comm_file_transfer_started(remoteFilename, self._currentFile.getFilesize()) + self.sendCommand("M28 %s" % remoteFilename) + eventManager().fire(Events.TRANSFER_STARTED, {"local": localFilename, "remote": remoteFilename}) + self._callback.on_comm_file_transfer_started(remoteFilename, self._currentFile.getFilesize()) def selectFile(self, filename, sd): if self.isBusy(): @@ -835,18 +843,6 @@ class MachineCom(object): # we aren't even printing, nothing to cancel... return - self._changeState(self.STATE_OPERATIONAL) - - if self.isSdFileSelected(): - self.sendCommand("M25") # pause print - self.sendCommand("M27") # get current byte position in file - self.sendCommand("M26 S0") # reset position in file to byte 0 - if self._sd_status_timer is not None: - try: - self._sd_status_timer.cancel() - except: - pass - def _on_M400_sent(): # we don't call on_print_job_cancelled on our callback here # because we do this only after our M114 has been answered @@ -854,7 +850,20 @@ class MachineCom(object): self._record_cancel_position = True self.sendCommand("M114") - self.sendCommand("M400", on_sent=_on_M400_sent) + with self._jobLock: + self._changeState(self.STATE_OPERATIONAL) + + if self.isSdFileSelected(): + self.sendCommand("M25") # pause print + self.sendCommand("M27") # get current byte position in file + self.sendCommand("M26 S0") # reset position in file to byte 0 + if self._sd_status_timer is not None: + try: + self._sd_status_timer.cancel() + except: + pass + + self.sendCommand("M400", on_sent=_on_M400_sent) def _pause_preparation_done(self): self._callback.on_comm_print_job_paused() @@ -866,41 +875,42 @@ class MachineCom(object): if not self._currentFile: return - if not pause and self.isPaused(): - if self._pauseWaitStartTime: - self._pauseWaitTimeLost = self._pauseWaitTimeLost + (time.time() - self._pauseWaitStartTime) - self._pauseWaitStartTime = None + with self._jobLock: + if not pause and self.isPaused(): + if self._pauseWaitStartTime: + self._pauseWaitTimeLost = self._pauseWaitTimeLost + (time.time() - self._pauseWaitStartTime) + self._pauseWaitStartTime = None - self._changeState(self.STATE_PRINTING) - self._callback.on_comm_print_job_resumed() + self._changeState(self.STATE_PRINTING) + self._callback.on_comm_print_job_resumed() - if self.isSdFileSelected(): - self.sendCommand("M24") - self.sendCommand("M27") - else: - line = self._getNext() - if line is not None: - self.sendCommand(line) + if self.isSdFileSelected(): + self.sendCommand("M24") + self.sendCommand("M27") + else: + line = self._getNext() + if line is not None: + self.sendCommand(line) - # now make sure we actually do something, up until now we only filled up the queue - self._sendFromQueue() + # now make sure we actually do something, up until now we only filled up the queue + self._sendFromQueue() - elif pause and self.isPrinting(): - if not self._pauseWaitStartTime: - self._pauseWaitStartTime = time.time() + elif pause and self.isPrinting(): + if not self._pauseWaitStartTime: + self._pauseWaitStartTime = time.time() - self._changeState(self.STATE_PAUSED) - if self.isSdFileSelected(): - self.sendCommand("M25") # pause print + self._changeState(self.STATE_PAUSED) + if self.isSdFileSelected(): + self.sendCommand("M25") # pause print - def _on_M400_sent(): - # we don't call on_print_job_paused on our callback here - # because we do this only after our M114 has been answered - # by the firmware - self._record_pause_position = True - self.sendCommand("M114") + def _on_M400_sent(): + # we don't call on_print_job_paused on our callback here + # because we do this only after our M114 has been answered + # by the firmware + self._record_pause_position = True + self.sendCommand("M114") - self.sendCommand("M400", on_sent=_on_M400_sent) + self.sendCommand("M400", on_sent=_on_M400_sent) def getSdFiles(self): return self._sdFiles @@ -1058,6 +1068,7 @@ class MachineCom(object): self.sayHello() while self._monitoring_active: + now = time.time() try: line = self._readline() if line is None: @@ -1066,6 +1077,9 @@ class MachineCom(object): self._consecutive_timeouts = 0 self._timeout = get_new_timeout("communication", self._timeout_intervals) + if self._dwelling_until and now > self._dwelling_until: + self._dwelling_until = False + ##~~ debugging output handling if line.startswith("//"): debugging_output = line[2:].strip() @@ -1094,7 +1108,7 @@ class MachineCom(object): def convert_line(line): if line is None: return None, None - stripped_line = line.strip() + stripped_line = line.strip().strip("\0") return stripped_line, stripped_line.lower() ##~~ Error handling @@ -1138,7 +1152,7 @@ class MachineCom(object): # a response to an M105 or an M114 self._handle_ok() needs_further_handling = "T:" in line or "T0:" in line or "B:" in line or "C:" in line or \ - "X:" in line or "FIRMWARE_NAME:" in line + "X:" in line or "NAME:" in line handled = (line == "wait" or line == "ok" or not needs_further_handling) # process resends @@ -1147,7 +1161,7 @@ class MachineCom(object): handled = True # process timeouts - elif line == "" and time.time() > self._timeout: + elif line == "" and (not self._blockWhileDwelling or not self._dwelling_until or now > self._dwelling_until) and now > self._timeout: # timeout only considered handled if the printer is printing self._handle_timeout() handled = self.isPrinting() @@ -1189,7 +1203,7 @@ class MachineCom(object): # temperature processing elif ' T:' in line or line.startswith('T:') or ' T0:' in line or line.startswith('T0:') or ((' B:' in line or line.startswith('B:')) and not 'A:' in line): - if not disable_external_heatup_detection and not line.strip().startswith("ok") and not self._heating: + if not disable_external_heatup_detection and not line.strip().startswith("ok") and not self._heating and self._firmwareInfoReceived: self._logger.debug("Externally triggered heatup detected") self._heating = True self._heatupWaitStartTime = time.time() @@ -1225,18 +1239,35 @@ class MachineCom(object): pass ##~~ firmware name & version - elif "FIRMWARE_NAME:" in line: + elif "NAME:" in line: # looks like a response to M115 data = parse_firmware_line(line) firmware_name = data.get("FIRMWARE_NAME") - self._logger.info("Printer reports firmware name \"{}\"".format(firmware_name)) + + if firmware_name is None: + # Malyan's "Marlin compatible firmware" isn't actually Marlin compatible and doesn't even + # report its firmware name properly in response to M115. Wonderful - why stick to established + # protocol when you can do your own thing, right? + # + # Example: NAME: Malyan VER: 2.9 MODEL: M200 HW: HA02 + # + # We do a bit of manual fiddling around here to circumvent that issue and get ourselves a + # reliable firmware name (NAME + VER) out of the Malyan M115 response. + name = data.get("NAME") + ver = data.get("VER") + if "malyan" in name.lower() and ver: + firmware_name = name.strip() + " " + ver.strip() if not self._firmwareInfoReceived and firmware_name: + firmware_name = firmware_name.strip() + self._logger.info("Printer reports firmware name \"{}\"".format(firmware_name)) + if "repetier" in firmware_name.lower(): self._logger.info("Detected Repetier firmware, enabling relevant features for issue free communication") self._alwaysSendChecksum = True self._resendSwallowRepetitions = True + self._blockWhileDwelling = True supportRepetierTargetTemp = True disable_external_heatup_detection = True @@ -1249,6 +1280,16 @@ class MachineCom(object): self._logger.info("Detected RepRapFirmware, enabling relevant features for issue free communication") self._sdRelativePath = True + elif "malyan" in firmware_name.lower(): + self._logger.info("Detected Malyan firmware, enabling relevant features for issue free communication") + + self._alwaysSendChecksum = True + + sd_always_available = self._sdAlwaysAvailable + self._sdAlwaysAvailable = True + if not sd_always_available and not self._sdAvailable: + self.initSdCard() + self._firmwareInfoReceived = True ##~~ SD Card handling @@ -1376,12 +1417,27 @@ class MachineCom(object): if "start" in line and not startSeen: startSeen = True self.sayHello() - elif line.startswith("ok"): + elif line.startswith("ok") or (supportWait and line == "wait"): + if line == "wait": + # if it was a wait we probably missed an ok, so let's simulate that now + self._handle_ok() self._onConnected() elif time.time() > self._timeout: self._log("There was a timeout while trying to connect to the printer") self.close(wait=False) + ### Operational (idle or busy) + elif self._state in (self.STATE_OPERATIONAL, + self.STATE_PRINTING, + self.STATE_PAUSED, + self.STATE_TRANSFERING_FILE): + if line == "start": # exact match, to be on the safe side + message = "Printer sent 'start' while already operational. External reset? " \ + "Resetting line numbers to be on the safe side" + self._log(message) + self._logger.warn(message) + self.resetLineNumbers() + except: self._logger.exception("Something crashed inside the serial connection loop, please report this in OctoPrint's bug tracker:") @@ -1544,24 +1600,24 @@ class MachineCom(object): def _poll_temperature(self): """ - Polls the temperature after the temperature timeout, re-enqueues itself. + Polls the temperature. If the printer is not operational, closing the connection, not printing from sd, busy with a long running command or heating, no poll will be done. """ - if self.isOperational() and not self._connection_closing and not self.isStreaming() and not self._long_running_command and not self._heating and not self._manualStreaming: + if self.isOperational() and not self._connection_closing and not self.isStreaming() and not self._long_running_command and not self._heating and not self._dwelling_until and not self._manualStreaming: self.sendCommand("M105", cmd_type="temperature_poll") def _poll_sd_status(self): """ - Polls the sd printing status after the sd status timeout, re-enqueues itself. + Polls the sd printing status. If the printer is not operational, closing the connection, not printing from sd, busy with a long running command or heating, no poll will be done. """ - if self.isOperational() and not self._connection_closing and self.isSdPrinting() and not self._long_running_command and not self._heating: + if self.isOperational() and not self._connection_closing and self.isSdPrinting() and not self._long_running_command and not self._dwelling_until and not self._heating: self.sendCommand("M27", cmd_type="sd_status_poll") def _onConnected(self): @@ -1818,7 +1874,7 @@ class MachineCom(object): return line def _sendNext(self): - with self._sendNextLock: + with self._jobLock: while self._active: # we loop until we've actually enqueued a line for sending if self._state != self.STATE_PRINTING: @@ -1840,13 +1896,7 @@ class MachineCom(object): def _handleResendRequest(self, line): try: - lineToResend = None - try: - lineToResend = int(line.replace("N:", " ").replace("N", " ").replace(":", " ").split()[-1]) - except: - if "rs" in line: - lineToResend = int(line.split()[1]) - + lineToResend = parse_resend_line(line) if lineToResend is None: return False @@ -2018,6 +2068,12 @@ class MachineCom(object): if not self._send_queue_active: break + # sleep if we are dwelling + now = time.time() + if self._blockWhileDwelling and self._dwelling_until and now < self._dwelling_until: + time.sleep(self._dwelling_until - now) + self._dwelling_until = False + # fetch command, command type and optional linenumber and sent callback from queue command, linenumber, command_type, on_sent = entry @@ -2422,7 +2478,9 @@ class MachineCom(object): _timeout = float(p_match.group("value")) / 1000.0 elif s_match: _timeout = float(s_match.group("value")) + self._timeout = get_new_timeout("communication", self._timeout_intervals) + _timeout + self._dwelling_until = time.time() + _timeout ##~~ command phase handlers @@ -2580,6 +2638,7 @@ class PrintingGcodeFileInformation(PrintingFileInformation): PrintingFileInformation.__init__(self, filename) self._handle = None + self._handle_mutex = threading.RLock() self._offsets_callback = offsets_callback self._current_tool_callback = current_tool_callback @@ -2591,76 +2650,80 @@ class PrintingGcodeFileInformation(PrintingFileInformation): self._read_lines = 0 def seek(self, offset): - if self._handle is None: - return + with self._handle_mutex: + if self._handle is None: + return - self._handle.seek(offset) - self._pos = self._handle.tell() - self._read_lines = 0 + self._handle.seek(offset) + self._pos = self._handle.tell() + self._read_lines = 0 def start(self): """ Opens the file for reading and determines the file size. """ PrintingFileInformation.start(self) - self._handle = bom_aware_open(self._filename, encoding="utf-8", errors="replace") - self._pos = self._handle.tell() - if self._handle.encoding.endswith("-sig"): - # Apparently we found an utf-8 bom in the file. - # We need to add its length to our pos because it will - # be stripped transparently and we'll have no chance - # catching that. - import codecs - self._pos += len(codecs.BOM_UTF8) - self._read_lines = 0 + with self._handle_mutex: + self._handle = bom_aware_open(self._filename, encoding="utf-8", errors="replace") + self._pos = self._handle.tell() + if self._handle.encoding.endswith("-sig"): + # Apparently we found an utf-8 bom in the file. + # We need to add its length to our pos because it will + # be stripped transparently and we'll have no chance + # catching that. + import codecs + self._pos += len(codecs.BOM_UTF8) + self._read_lines = 0 def close(self): """ Closes the file if it's still open. """ PrintingFileInformation.close(self) - if self._handle is not None: - try: - self._handle.close() - except: - pass - self._handle = None + with self._handle_mutex: + if self._handle is not None: + try: + self._handle.close() + except: + pass + self._handle = None def getNext(self): """ Retrieves the next line for printing. """ - if self._handle is None: - raise ValueError("File %s is not open for reading" % self._filename) + with self._handle_mutex: + if self._handle is None: + raise ValueError("File %s is not open for reading" % self._filename) - try: - offsets = self._offsets_callback() if self._offsets_callback is not None else None - current_tool = self._current_tool_callback() if self._current_tool_callback is not None else None + try: + offsets = self._offsets_callback() if self._offsets_callback is not None else None + current_tool = self._current_tool_callback() if self._current_tool_callback is not None else None - processed = None - while processed is None: - if self._handle is None: - # file got closed just now - self._pos = self._size - self._report_stats() - return None + processed = None + while processed is None: + if self._handle is None: + # file got closed just now + self._pos = self._size + self._report_stats() + return None - # we need to manually keep track of our pos here since - # codecs' readline will make our handle's tell not - # return the actual number of bytes read, but also the - # already buffered bytes (for detecting the newlines) - line = self._handle.readline() - self._pos += len(line.encode("utf-8")) + # we need to manually keep track of our pos here since + # codecs' readline will make our handle's tell not + # return the actual number of bytes read, but also the + # already buffered bytes (for detecting the newlines) + line = self._handle.readline() + self._pos += len(line.encode("utf-8")) - if not line: - self.close() - processed = self._process(line, offsets, current_tool) - self._read_lines += 1 - return processed - except Exception as e: - self.close() - self._logger.exception("Exception while processing line") - raise e + if not line: + self.close() + processed = self._process(line, offsets, current_tool) + self._read_lines += 1 + return processed + except Exception as e: + self.close() + self._logger.exception("Exception while processing line") + raise e def _process(self, line, offsets, current_tool): return process_gcode_line(line, offsets=offsets, current_tool=current_tool) @@ -2984,6 +3047,24 @@ def parse_firmware_line(line): result[key] = value return result +def parse_resend_line(line): + """ + Parses the provided resend line and returns requested line number. + + Args: + line (str): the line to parse + + Returns: + int or None: the extracted line number to resend, or None if no number could be extracted + """ + + match = regex_resend_linenumber.search(line) + if match is not None: + return int(match.group("n")) + + return None + + def gcode_command_for_cmd(cmd): """ Tries to parse the provided ``cmd`` and extract the GCODE command identifier from it (e.g. "G0" for "G0 X10.0"). diff --git a/src/octoprint/util/gcodeInterpreter.py b/src/octoprint/util/gcodeInterpreter.py index d06766b85..ac10954db 100644 --- a/src/octoprint/util/gcodeInterpreter.py +++ b/src/octoprint/util/gcodeInterpreter.py @@ -172,7 +172,9 @@ class MinMax3D(object): class AnalysisAborted(Exception): - pass + def __init__(self, reenqueue=True, *args, **kwargs): + self.reenqueue = reenqueue + Exception.__init__(self, *args, **kwargs) class gcode(object): @@ -185,6 +187,7 @@ class gcode(object): self.filename = None self.progressCallback = None self._abort = False + self._reenqueue = True self._filamentDiameter = 0 self._minMax = MinMax3D() @@ -213,11 +216,12 @@ class gcode(object): with codecs.open(filename, encoding="utf-8", errors="replace") as f: self._load(f, printer_profile, throttle=throttle) - def abort(self): + def abort(self, reenqueue=True): self._abort = True + self._reenqueue = reenqueue def _load(self, gcodeFile, printer_profile, throttle=None): - filePos = 0 + lineNo = 0 readBytes = 0 pos = Vector3D(0.0, 0.0, 0.0) posOffset = Vector3D(0.0, 0.0, 0.0) @@ -240,19 +244,19 @@ class gcode(object): for line in gcodeFile: if self._abort: - raise AnalysisAborted() - filePos += 1 + raise AnalysisAborted(reenqueue=self._reenqueue) + lineNo += 1 readBytes += len(line) if isinstance(gcodeFile, (file)): percentage = float(readBytes) / float(self._fileSize) elif isinstance(gcodeFile, (list)): - percentage = float(filePos) / float(len(gcodeFile)) + percentage = float(lineNo) / float(len(gcodeFile)) else: percentage = None try: - if self.progressCallback is not None and (filePos % 1000 == 0) and percentage is not None: + if self.progressCallback is not None and (lineNo % 1000 == 0) and percentage is not None: self.progressCallback(percentage) except: pass @@ -260,6 +264,7 @@ class gcode(object): if ';' in line: comment = line[line.find(';')+1:].strip() if comment.startswith("filament_diameter"): + # Slic3r filamentValue = comment.split("=", 1)[1].strip() try: self._filamentDiameter = float(filamentValue) @@ -269,6 +274,7 @@ class gcode(object): except ValueError: self._filamentDiameter = 0.0 elif comment.startswith("CURA_PROFILE_STRING") or comment.startswith("CURA_OCTO_PROFILE_STRING"): + # Cura 15.04.* & OctoPrint Cura plugin if comment.startswith("CURA_PROFILE_STRING"): prefix = "CURA_PROFILE_STRING:" else: @@ -280,6 +286,13 @@ class gcode(object): self._filamentDiameter = float(curaOptions["filament_diameter"]) except: self._filamentDiameter = 0.0 + elif comment.startswith("filamentDiameter,"): + # Simplify3D + filamentValue = comment.split(",", 1)[1].strip() + try: + self._filamentDiameter = float(filamentValue) + except ValueError: + self._filamentDiameter = 0.0 line = line[0:line.find(';')] G = getCodeInt(line, 'G') @@ -294,15 +307,28 @@ class gcode(object): e = getCodeFloat(line, 'E') f = getCodeFloat(line, 'F') + if x is not None or y is not None or z is not None: + # this is a move + move = True + else: + # print head stays on position + move = False + oldPos = pos - newPos = Vector3D(x if x is not None else pos.x, - y if y is not None else pos.y, - z if z is not None else pos.z) + + # Use new coordinates if provided. If not provided, use prior coordinates in absolute + # and 0.0 in relative mode. + newPos = Vector3D(x if x is not None else (pos.x if posAbs else 0.0), + y if y is not None else (pos.y if posAbs else 0.0), + z if z is not None else (pos.z if posAbs else 0.0)) if posAbs: + # Absolute mode: scale coordinates and apply offsets pos = newPos * scale + posOffset else: + # Relative mode: scale and add to current position pos += newPos * scale + if f is not None and f != 0: feedrate = f @@ -310,10 +336,12 @@ class gcode(object): if absoluteE: # make sure e is relative e -= currentE[currentExtruder] - # If move includes extrusion, calculate new min/max coordinates of model - if e > 0.0: - # extrusion -> relevant for print area & dimensions + + # If move with extrusion, calculate new min/max coordinates of model + if e > 0.0 and move: + # extrusion and move -> relevant for print area & dimensions self._minMax.record(pos) + totalExtrusion[currentExtruder] += e currentE[currentExtruder] += e maxExtrusion[currentExtruder] = max(maxExtrusion[currentExtruder], @@ -416,8 +444,7 @@ class gcode(object): totalExtrusion.append(0.0) if throttle is not None: - throttle() - + throttle(lineNo, readBytes) if self.progressCallback is not None: self.progressCallback(100.0) diff --git a/src/octoprint/util/pip.py b/src/octoprint/util/pip.py index 437427be1..d03e00340 100644 --- a/src/octoprint/util/pip.py +++ b/src/octoprint/util/pip.py @@ -370,10 +370,6 @@ class PipCaller(CommandlineCaller): def _preprocess_lines(self, *lines): return map(self._preprocess, lines) - @staticmethod - def _convert_lines(lines): - return map(PipCaller._convert_line, lines) - @staticmethod def _preprocess(text): """ diff --git a/src/octoprint_client/__init__.py b/src/octoprint_client/__init__.py index b62a144c7..e5fb3cdd5 100644 --- a/src/octoprint_client/__init__.py +++ b/src/octoprint_client/__init__.py @@ -8,8 +8,15 @@ __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms import requests import time -apikey = None -baseurl = None + +def build_base_url(https=False, httpuser=None, httppass=None, host=None, port=None, prefix=None): + protocol = "https" if https else "http" + httpauth = "{}:{}@".format(httpuser, httppass) if httpuser and httppass else "" + host = host if host else "127.0.0.1" + port = ":{}".format(port) if port else ":5000" + prefix = prefix if prefix else "" + + return "{}://{}{}{}{}".format(protocol, httpauth, host, port, prefix) class SocketTimeout(BaseException): @@ -202,183 +209,146 @@ class SocketClient(object): # a reconnect, that's a failure return False +class Client(object): -def build_base_url(https=False, httpuser=None, httppass=None, host=None, port=None, prefix=None): - protocol = "https" if https else "http" - httpauth = "{}:{}@".format(httpuser, httppass) if httpuser and httppass else "" - host = host if host else "127.0.0.1" - port = ":{}".format(port) if port else ":5000" - prefix = prefix if prefix else "" + def __init__(self, baseurl, apikey): + self.baseurl = baseurl + self.apikey = apikey - return "{}://{}{}{}{}".format(protocol, httpauth, host, port, prefix) + def prepare_request(self, method=None, path=None, params=None): + url = None + if self.baseurl: + while path.startswith("/"): + path = path[1:] + url = self.baseurl + "/" + path + return requests.Request(method=method, url=url, params=params, headers={"X-Api-Key": self.apikey}).prepare() + def request(self, method, path, data=None, files=None, encoding=None, params=None): + s = requests.Session() + request = self.prepare_request(method, path, params=params) + if data or files: + if encoding == "json": + request.prepare_body(None, None, json=data) + else: + request.prepare_body(data, files=files) + response = s.send(request) + return response -def init_client(settings, https=False, httpuser=None, httppass=None, host=None, port=None, prefix=None): - """ - Initializes the API client with the provided settings. + def get(self, path, params=None): + return self.request("GET", path, params=params) - Basically a convenience method to set ``apikey`` and ``baseurl`` from settings - and/or command line arguments. + def post(self, path, data, encoding=None, params=None): + return self.request("POST", path, data=data, encoding=encoding, params=params) - Arguments: - settings (octoprint.settings.Settings): A :class:`~octoprint.settings.Settings` instance to use - for client configuration - https (bool): Whether to connect via HTTPS (True) or not (False, default) - httpuser (str or None): HTTP Basic Auth username to use. No Basic Auth will be - used if unset. - httppass (str or None): HTTP Basic Auth password to use. No Basic Auth will be - used if unset. - host (str or None): Host to connect to, overrides data from settings if set. - port (int or None): Port to connect to, overrides data from settings if set. - prefix (str or None): Path prefix, overrides data from settings if set. - """ - settings_host = settings.get(["server", "host"]) - settings_port = settings.getInt(["server", "port"]) - settings_apikey = settings.get(["api", "key"]) + def post_json(self, path, data, params=None): + return self.post(path, data, encoding="json", params=params) - global apikey, baseurl - apikey = settings_apikey - baseurl = build_base_url(https=https, - httpuser=httpuser, - httppass=httppass, - host=host or settings_host if settings_host != "0.0.0.0" else "127.0.0.1", - port=port or settings_port, - prefix=prefix) + def post_command(self, path, command, additional=None): + data = dict(command=command) + if additional: + data.update(additional) + return self.post_json(path, data, params=data) -def prepare_request(method=None, path=None, params=None): - url = None - if baseurl: - while path.startswith("/"): - path = path[1:] - url = baseurl + "/" + path - return requests.Request(method=method, url=url, params=params, headers={"X-Api-Key": apikey}).prepare() + def upload(self, path, file_path, additional=None, file_name=None, content_type=None, params=None): + import os -def request(method, path, data=None, files=None, encoding=None, params=None): - s = requests.Session() - request = prepare_request(method, path, params=params) - if data or files: - if encoding == "json": - request.prepare_body(None, None, json=data) - else: - request.prepare_body(data, files=files) - response = s.send(request) - return response + if not os.path.isfile(file_path): + raise ValueError("{} cannot be uploaded since it is not a file".format(file_path)) -def get(path, params=None): - return request("GET", path, params=params) + if file_name is None: + file_name = os.path.basename(file_path) -def post(path, data, encoding=None, params=None): - return request("POST", path, data=data, encoding=encoding, params=params) + with open(file_path, "rb") as fp: + if content_type: + files = dict(file=(file_name, fp, content_type)) + else: + files = dict(file=(file_name, fp)) -def post_json(path, data, params=None): - return post(path, data, encoding="json", params=params) + response = self.request("POST", path, data=additional, files=files, params=params) -def post_command(path, command, additional=None): - data = dict(command=command) - if additional: - data.update(additional) - return post_json(path, data, params=data) + return response -def upload(path, file_path, additional=None, file_name=None, content_type=None, params=None): - import os + def delete(self, path, params=None): + return self.request("DELETE", path, params=params) - if not os.path.isfile(file_path): - raise ValueError("{} cannot be uploaded since it is not a file".format(file_path)) + def patch(self, path, data, encoding=None, params=None): + return self.request("PATCH", path, data=data, encoding=encoding, params=params) - if file_name is None: - file_name = os.path.basename(file_path) + def put(self, path, data, encoding=None, params=None): + return self.request("PUT", path, data=data, encoding=encoding, params=params) - with open(file_path, "rb") as fp: - if content_type: - files = dict(file=(file_name, fp, content_type)) - else: - files = dict(file=(file_name, fp)) + def create_socket(self, **kwargs): + import uuid + import random + import json - response = request("POST", path, data=additional, files=files, params=params) + # creates websocket URL for SockJS according to + # - http://sockjs.github.io/sockjs-protocol/sockjs-protocol-0.3.3.html#section-37 + # - http://sockjs.github.io/sockjs-protocol/sockjs-protocol-0.3.3.html#section-50 + url = "ws://{}/sockjs/{:0>3d}/{}/websocket".format( + self.baseurl[self.baseurl.find("//") + 2:], # host + port + prefix, but no protocol + random.randrange(0, stop=999), # server_id + uuid.uuid4() # session_id + ) + use_ssl = self.baseurl.startswith("https:") - return response + on_open_cb = kwargs.get("on_open", None) + on_heartbeat_cb = kwargs.get("on_heartbeat", None) + on_message_cb = kwargs.get("on_message", None) + on_close_cb = kwargs.get("on_close", None) + on_error_cb = kwargs.get("on_error", None) + daemon = kwargs.get("daemon", True) -def delete(path, params=None): - return request("DELETE", path, params=params) + def on_message(ws, message): + message_type = message[0] -def patch(path, data, encoding=None, params=None): - return request("PATCH", path, data=data, encoding=encoding, params=params) - -def put(path, data, encoding=None, params=None): - return request("PUT", path, data=data, encoding=encoding, params=params) - -def connect_socket(**kwargs): - import uuid - import random - import json - - # creates websocket URL for SockJS according to - # - http://sockjs.github.io/sockjs-protocol/sockjs-protocol-0.3.3.html#section-37 - # - http://sockjs.github.io/sockjs-protocol/sockjs-protocol-0.3.3.html#section-50 - url = "ws://{}/sockjs/{:0>3d}/{}/websocket".format( - baseurl[baseurl.find("//") + 2:], # host + port + prefix, but no protocol - random.randrange(0, stop=999), # server_id - uuid.uuid4() # session_id - ) - use_ssl = baseurl.startswith("https:") - - on_open_cb = kwargs.get("on_open", None) - on_heartbeat_cb = kwargs.get("on_heartbeat", None) - on_message_cb = kwargs.get("on_message", None) - on_close_cb = kwargs.get("on_close", None) - on_error_cb = kwargs.get("on_error", None) - daemon = kwargs.get("daemon", True) - - def on_message(ws, message): - message_type = message[0] - - if message_type == "h": - # "heartbeat" message - if callable(on_heartbeat_cb): - on_heartbeat_cb(ws) + if message_type == "h": + # "heartbeat" message + if callable(on_heartbeat_cb): + on_heartbeat_cb(ws) + return + elif message_type == "o": + # "open" message + return + elif message_type == "c": + # "close" message return - elif message_type == "o": - # "open" message - return - elif message_type == "c": - # "close" message - return - if not callable(on_message_cb): - return + if not callable(on_message_cb): + return - message_body = message[1:] - if not message_body: - return + message_body = message[1:] + if not message_body: + return - data = json.loads(message_body) + data = json.loads(message_body) - if message_type == "m": - data = [data,] + if message_type == "m": + data = [data,] - for d in data: - for internal_type, internal_message in d.items(): - on_message_cb(ws, internal_type, internal_message) + for d in data: + for internal_type, internal_message in d.items(): + on_message_cb(ws, internal_type, internal_message) - def on_open(ws): - if callable(on_open_cb): - on_open_cb(ws) + def on_open(ws): + if callable(on_open_cb): + on_open_cb(ws) - def on_close(ws): - if callable(on_close_cb): - on_close_cb(ws) + def on_close(ws): + if callable(on_close_cb): + on_close_cb(ws) - def on_error(ws, error): - if callable(on_error_cb): - on_error_cb(ws, error) + def on_error(ws, error): + if callable(on_error_cb): + on_error_cb(ws, error) - socket = SocketClient(url, - use_ssl=use_ssl, - daemon=daemon, - on_open=on_open, - on_message=on_message, - on_close=on_close, - on_error=on_error) - socket.connect() + socket = SocketClient(url, + use_ssl=use_ssl, + daemon=daemon, + on_open=on_open, + on_message=on_message, + on_close=on_close, + on_error=on_error) + socket.connect() - return socket + return socket diff --git a/src/octoprint_setuptools/__init__.py b/src/octoprint_setuptools/__init__.py index 8b0cbe37a..6913bc55c 100644 --- a/src/octoprint_setuptools/__init__.py +++ b/src/octoprint_setuptools/__init__.py @@ -10,6 +10,7 @@ import shutil import glob from setuptools import Command +from distutils.command.clean import clean as _clean def package_data_dirs(source, sub_folders): @@ -50,64 +51,75 @@ def recursively_handle_files(directory, file_matcher, folder_matcher=None, folde return applied_handler -class CleanCommand(Command): - description = "clean build artifacts" - user_options = [] - boolean_options = [] +class CleanCommand(_clean): + user_options = _clean.user_options + [("orig", None, "behave like original clean command"), + ("noeggs", None, "don't clean up eggs"), + ("nopyc", None, "don't clean up pyc files")] + boolean_options = _clean.boolean_options + ["orig", "noeggs", "nopyc"] - build_folder = "build" source_folder = "src" - eggs = [] + eggs =None @classmethod - def for_options(cls, build_folder="build", source_folder="src", eggs=None): + def for_options(cls, source_folder="src", eggs=None): if eggs is None: eggs = [] return type(cls)(cls.__name__, (cls,), dict( - build_folder=build_folder, source_folder=source_folder, eggs=eggs )) def initialize_options(self): - pass + _clean.initialize_options(self) + + self.orig = None + self.noeggs = None + self.nopyc = None def finalize_options(self): - pass + _clean.finalize_options(self) + + if not self.orig: + self.all = True def run(self): - # build folder - if os.path.exists(self.__class__.build_folder): - print("Deleting build directory") - shutil.rmtree(self.__class__.build_folder) + _clean.run(self) + if self.orig: + return # eggs - for egg in self.__class__.eggs: - globbed_eggs = glob.glob(egg) - for globbed_egg in globbed_eggs: - print("Deleting %s directory" % globbed_egg) - shutil.rmtree(globbed_egg) + if not self.noeggs: + for egg in self.eggs: + globbed_eggs = glob.glob(egg) + for globbed_egg in globbed_eggs: + print("deleting '%s' egg" % globbed_egg) + if not self.dry_run: + shutil.rmtree(globbed_egg) # pyc files - def delete_folder_if_empty(path, applied_handler): - if not applied_handler: - return - if len(os.listdir(path)) == 0: - shutil.rmtree(path) - print("Deleted %s since it was empty" % path) + if not self.nopyc: + def delete_folder_if_empty(path, applied_handler): + if not applied_handler: + return + if len(os.listdir(path)) == 0: + if not self.dry_run: + shutil.rmtree(path) + print("removed %s since it was empty" % path[len(self.source_folder):]) - def delete_file(path): - os.remove(path) - print("Deleted %s" % path) + def delete_file(path): + print("removing '%s'" % path[len(self.source_folder):]) + if not self.dry_run: + os.remove(path) - import fnmatch - recursively_handle_files( - os.path.abspath(self.__class__.source_folder), - lambda name: fnmatch.fnmatch(name.lower(), "*.pyc"), - folder_matcher=lambda dir, name, path: name != ".git", - folder_handler=delete_folder_if_empty, - file_handler=delete_file - ) + import fnmatch + print("recursively removing *.pyc from '%s'" % self.source_folder) + recursively_handle_files( + os.path.abspath(self.source_folder), + lambda name: fnmatch.fnmatch(name.lower(), "*.pyc"), + folder_matcher=lambda dir, name, path: name != ".git", + folder_handler=delete_folder_if_empty, + file_handler=delete_file + ) class NewTranslation(Command): @@ -255,6 +267,7 @@ class RefreshTranslation(Command): self.babel_update_messages.input_file = self.__class__.pot_file self.babel_update_messages.output_dir = self.__class__.output_dir self.babel_update_messages.locale = self.locale + self.babel_update_messages.finalize_options() def run(self): self.babel_extract_messages.run() @@ -287,6 +300,7 @@ class CompileTranslation(Command): def finalize_options(self): self.babel_compile_messages.directory = self.__class__.output_dir + self.babel_compile_messages.finalize_options() def run(self): self.babel_compile_messages.run() diff --git a/tests/filemanager/test_filemanager.py b/tests/filemanager/test_filemanager.py index 2c888be86..38186b7eb 100644 --- a/tests/filemanager/test_filemanager.py +++ b/tests/filemanager/test_filemanager.py @@ -157,33 +157,53 @@ class FileManagerTest(unittest.TestCase): def test_add_file(self): wrapper = object() - self.local_storage.add_file.return_value = ("", "test.file") - self.local_storage.path_on_disk.return_value = "prefix/test.file" - self.local_storage.split_path.return_value = ("", "test.file") + self.local_storage.add_file.return_value = ("", "test.gcode") + self.local_storage.path_on_disk.return_value = "prefix/test.gcode" + self.local_storage.split_path.return_value = ("", "test.gcode") test_profile = dict(id="_default", name="My Default Profile") self.printer_profile_manager.get_current_or_default.return_value = test_profile - file_path = self.file_manager.add_file(octoprint.filemanager.FileDestinations.LOCAL, "test.file", wrapper) + file_path = self.file_manager.add_file(octoprint.filemanager.FileDestinations.LOCAL, "test.gcode", wrapper) - self.assertEqual(("", "test.file"), file_path) - self.local_storage.add_file.assert_called_once_with("test.file", wrapper, printer_profile=test_profile, allow_overwrite=False, links=None) - self.fire_event.assert_called_once_with(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables")) + self.assertEqual(("", "test.gcode"), file_path) + self.local_storage.add_file.assert_called_once_with("test.gcode", wrapper, printer_profile=test_profile, allow_overwrite=False, links=None) + + expected_events = [mock.call(octoprint.filemanager.Events.FILE_ADDED, dict(storage=octoprint.filemanager.FileDestinations.LOCAL, + name="test.gcode", + path="test.gcode", + type=["machinecode", "gcode"])), + mock.call(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables"))] + self.fire_event.call_args_list = expected_events def test_remove_file(self): - self.file_manager.remove_file(octoprint.filemanager.FileDestinations.LOCAL, "test.file") + self.local_storage.path_on_disk.return_value = "prefix/test.gcode" + self.local_storage.split_path.return_value = ("", "test.gcode") - self.local_storage.remove_file.assert_called_once_with("test.file") - self.fire_event.assert_called_once_with(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables")) + self.file_manager.remove_file(octoprint.filemanager.FileDestinations.LOCAL, "test.gcode") + + self.local_storage.remove_file.assert_called_once_with("test.gcode") + self.analysis_queue.dequeue.assert_called_once() + expected_events = [mock.call(octoprint.filemanager.Events.FILE_REMOVED, dict(storage=octoprint.filemanager.FileDestinations.LOCAL, + name="test.gcode", + path="test.gcode", + type=["machinecode", "gcode"])), + mock.call(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables"))] + self.fire_event.call_args_list = expected_events def test_add_folder(self): self.local_storage.add_folder.return_value = ("", "test_folder") + self.local_storage.split_path.return_value = ("", "test_folder") folder_path = self.file_manager.add_folder(octoprint.filemanager.FileDestinations.LOCAL, "test_folder") self.assertEqual(("", "test_folder"), folder_path) self.local_storage.add_folder.assert_called_once_with("test_folder", ignore_existing=True) - self.fire_event.assert_called_once_with(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables")) + expected_events = [mock.call(octoprint.filemanager.Events.FOLDER_ADDED, dict(storage=octoprint.filemanager.FileDestinations.LOCAL, + name="test_folder", + path="test_folder")), + mock.call(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables"))] + self.fire_event.call_args_list = expected_events def test_add_folder_not_ignoring_existing(self): self.local_storage.add_folder.side_effect = RuntimeError("already there") @@ -196,14 +216,25 @@ class FileManagerTest(unittest.TestCase): self.local_storage.add_folder.assert_called_once_with("test_folder", ignore_existing=False) def test_remove_folder(self): + self.local_storage.split_path.return_value = ("", "test_folder") + self.file_manager.remove_folder(octoprint.filemanager.FileDestinations.LOCAL, "test_folder") self.local_storage.remove_folder.assert_called_once_with("test_folder", recursive=True) - self.fire_event.assert_called_once_with(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables")) + self.analysis_queue.dequeue_folder.assert_called_once_with(octoprint.filemanager.FileDestinations.LOCAL, "test_folder") + expected_events = [mock.call(octoprint.filemanager.Events.FOLDER_REMOVED, dict(storage=octoprint.filemanager.FileDestinations.LOCAL, + name="test_folder", + path="test_folder")), + mock.call(octoprint.filemanager.Events.UPDATED_FILES, dict(type="printables"))] + self.fire_event.call_args_list = expected_events def test_remove_folder_nonrecursive(self): + self.local_storage.split_path.return_value = ("", "test_folder") + self.file_manager.remove_folder(octoprint.filemanager.FileDestinations.LOCAL, "test_folder", recursive=False) + self.local_storage.remove_folder.assert_called_once_with("test_folder", recursive=False) + self.analysis_queue.dequeue_folder.assert_called_once_with(octoprint.filemanager.FileDestinations.LOCAL, "test_folder") @mock.patch("octoprint.util.atomic_write", create=True) @mock.patch("yaml.safe_dump", create=True) @@ -372,7 +403,7 @@ class FileManagerTest(unittest.TestCase): return "prefix/" + path self.local_storage.path_on_disk.side_effect = path_on_disk - # mock split_path method on local storage + # mock split_path method on local storage - no folder support def split_path(path): return "", path self.local_storage.split_path.side_effect = split_path @@ -380,7 +411,7 @@ class FileManagerTest(unittest.TestCase): # mock add_file method on local storage def add_file(path, file_obj, printer_profile=None, links=None, allow_overwrite=False): file_obj.save("prefix/" + path) - return "", path + return path self.local_storage.add_file.side_effect = add_file # mock slice method on slicing manager @@ -407,7 +438,11 @@ class FileManagerTest(unittest.TestCase): # assert that events where fired expected_events = [mock.call(octoprint.filemanager.Events.SLICING_STARTED, {"stl": "source.file", "gcode": "dest.file", "progressAvailable": False}), - mock.call(octoprint.filemanager.Events.SLICING_DONE, {"stl": "source.file", "gcode": "dest.file", "time": 15.694000005722046})] + mock.call(octoprint.filemanager.Events.SLICING_DONE, {"stl": "source.file", "gcode": "dest.file", "time": 15.694000005722046}), + mock.call(octoprint.filemanager.Events.FILE_ADDED, {"storage": octoprint.filemanager.FileDestinations.LOCAL, + "name": "dest.file", + "path": "dest.file", + "type": None})] self.fire_event.call_args_list = expected_events # assert that model links were added diff --git a/tests/manual_tests/always_update.py b/tests/manual_tests/always_update.py new file mode 100644 index 000000000..582a89e0e --- /dev/null +++ b/tests/manual_tests/always_update.py @@ -0,0 +1,86 @@ +# coding=utf-8 +from __future__ import print_function + +""" +Place in ~/.octoprint/plugins & restart server to test: + + * python_checker and python_updater mechanism + * demotion of pip and python setup.py clean output that + gets written to stderr but isn't as severe as that would + look + +Plugin will always demand to update itself, multiple +consecutive runs are not a problem. +""" + +import time + +NAME = "Always Update" +OLD_VERSION = "1.0.0" +NEW_VERSION = "2.0.0" + + +class Foo(object): + def get_latest(self, target, check, full_data=None): + information = dict(local=dict(name=OLD_VERSION, value=OLD_VERSION), + remote=dict(name=NEW_VERSION, value=NEW_VERSION)) + current = False + return information, current + + def can_perform_update(self, target, check): + return True + + def perform_update(self, target, check, target_version, log_cb=None): + if not callable(log_cb): + import sys + def log_cb(lines, prefix=None, stream=None, strip=True): + if stream == "stdout": + f = sys.stdout + elif stream == "stderr": + f = sys.stderr + else: + f = None + + for line in lines: + print(line, file=f) + + log_cb(["Updating Always Update..."]) + time.sleep(1) + log_cb(["running clean", + "recursively removing *.pyc from 'src'"], + stream="stdout") + log_cb(["'build/lib' does not exist -- can't clean it", + "'build/bdist.win32' does not exist -- can't clean it", + "'build/scripts-2.7' does not exist -- can't clean it"], + stream="stderr") + log_cb(["removing 'Development\OctoPrint\OctoPrint\src\octoprint_setuptools\__init__.pyc'"], + stream="stdout") + time.sleep(1) + log_cb(["This should be red"], + stream="stderr") + log_cb(["You are using pip version 7.1.2, however version 9.0.1 is available.", + "You should consider upgrading via the 'python -m pip install --upgrade pip' command."], + stream="stderr") + time.sleep(3) + log_cb(["Done!"]) + + +def get_update_information(): + foo = Foo() + return dict( + always_update=dict( + displayName=NAME, + displayVersion=OLD_VERSION, + + type="python_checker", + python_checker=foo, + + python_updater=foo + ) + ) + + +__plugin_name__ = NAME +__plugin_hooks__ = { + "octoprint.plugin.softwareupdate.check_config": get_update_information, +} diff --git a/tests/settings/test_settings.py b/tests/settings/test_settings.py index 9455c1799..7ce753cb2 100644 --- a/tests/settings/test_settings.py +++ b/tests/settings/test_settings.py @@ -17,6 +17,7 @@ import tempfile import yaml import hashlib import ddt +import time import octoprint.settings @@ -527,6 +528,9 @@ class TestSettings(unittest.TestCase): # current modification date of config.yaml current_modified = os.stat(config_path).st_mtime + # sleep a bit to make sure we do have a change in the timestamp + time.sleep(1.0) + # set a new value settings.set(["api", "key"], "newkey") @@ -542,6 +546,9 @@ class TestSettings(unittest.TestCase): settings = octoprint.settings.Settings() last_modified = settings.last_modified + # sleep a bit to make sure we do have a change in the timestamp + time.sleep(1.0) + settings.save() self.assertEqual(settings.last_modified, last_modified) diff --git a/tests/timelapse/test_timelapse_renderjob.py b/tests/timelapse/test_timelapse_renderjob.py new file mode 100644 index 000000000..e8663e38a --- /dev/null +++ b/tests/timelapse/test_timelapse_renderjob.py @@ -0,0 +1,66 @@ +# coding=utf-8 +from __future__ import absolute_import + +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import unittest + +from ddt import ddt, data, unpack + +from octoprint.timelapse import TimelapseRenderJob + +@ddt +class TimelapseRenderJobTest(unittest.TestCase): + + @data( + (("/path/to/ffmpeg", 25, "10000k", 1, "/path/to/input/files_%d.jpg", "/path/to/output.mpg"), + dict(), + '/path/to/ffmpeg -framerate 25 -loglevel error -i "/path/to/input/files_%d.jpg" -vcodec mpeg2video -threads 1 -r 25 -y -b 10000k -f vob -vf \'[in] format=yuv420p [out]\' "/path/to/output.mpg"'), + + (("/path/to/ffmpeg", 25, "10000k", 1, "/path/to/input/files_%d.jpg", "/path/to/output.mpg"), + dict(hflip=True), + '/path/to/ffmpeg -framerate 25 -loglevel error -i "/path/to/input/files_%d.jpg" -vcodec mpeg2video -threads 1 -r 25 -y -b 10000k -f vob -vf \'[in] format=yuv420p,hflip [out]\' "/path/to/output.mpg"'), + + (("/path/to/ffmpeg", 25, "20000k", 4, "/path/to/input/files_%d.jpg", "/path/to/output.mpg"), + dict(rotate=True, watermark="/path/to/watermark.png"), + '/path/to/ffmpeg -framerate 25 -loglevel error -i "/path/to/input/files_%d.jpg" -vcodec mpeg2video -threads 4 -r 25 -y -b 20000k -f vob -vf \'[in] format=yuv420p,transpose=2 [postprocessed]; movie=/path/to/watermark.png [wm]; [postprocessed][wm] overlay=10:main_h-overlay_h-10 [out]\' "/path/to/output.mpg"') + ) + @unpack + def test_create_ffmpeg_command_string(self, args, kwargs, expected): + actual = TimelapseRenderJob._create_ffmpeg_command_string(*args, **kwargs) + self.assertEquals(actual, expected) + + @data( + (dict(), + '[in] format=yuv420p [out]'), + + (dict(pixfmt="test"), + '[in] format=test [out]'), + + (dict(hflip=True), + '[in] format=yuv420p,hflip [out]'), + + (dict(vflip=True), + '[in] format=yuv420p,vflip [out]'), + + (dict(rotate=True), + '[in] format=yuv420p,transpose=2 [out]'), + + (dict(vflip=True, rotate=True), + '[in] format=yuv420p,vflip,transpose=2 [out]'), + + (dict(vflip=True, hflip=True, rotate=True), + '[in] format=yuv420p,hflip,vflip,transpose=2 [out]'), + + (dict(watermark="/path/to/watermark.png"), + '[in] format=yuv420p [postprocessed]; movie=/path/to/watermark.png [wm]; [postprocessed][wm] overlay=10:main_h-overlay_h-10 [out]'), + + (dict(hflip=True, watermark="/path/to/watermark.png"), + '[in] format=yuv420p,hflip [postprocessed]; movie=/path/to/watermark.png [wm]; [postprocessed][wm] overlay=10:main_h-overlay_h-10 [out]'), + + ) + @unpack + def test_create_filter_string(self, kwargs, expected): + actual = TimelapseRenderJob._create_filter_string(**kwargs) + self.assertEquals(actual, expected) diff --git a/tests/users/__init__.py b/tests/users/__init__.py index 0bc96e695..5f6f7dae8 100644 --- a/tests/users/__init__.py +++ b/tests/users/__init__.py @@ -2,111 +2,6 @@ """ Unit tests for octoprint.users """ -from __future__ import absolute_import, division, print_function -__author__ = "Gina Häußge " __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License" - -import unittest -import ddt - -import octoprint.users -from octoprint.util import dict_merge - -default_settings = dict(key="value", sub=dict(subkey="subvalue")) - -@ddt.ddt -class UserTestCase(unittest.TestCase): - def setUp(self): - self.user = octoprint.users.User("user", "passwordHash", True, ("user",), apikey="apikey_user", settings=default_settings) - self.admin = octoprint.users.User("admin", "passwordHash", True, ("user","admin"), apikey="apikey_admin", settings=default_settings) - self.inactive = octoprint.users.User("inactive", "passwordHash", False, ("user",), apikey="apikey_inactive", settings=default_settings) - - @ddt.data( - ("user", dict(name="user", - active=True, - admin=False, - user=True, - apikey="apikey_user", - settings=default_settings)), - ("admin", dict(name="admin", - active=True, - admin=True, - user=True, - apikey="apikey_admin", - settings=default_settings)), - ("inactive", dict(name="inactive", - active=False, - admin=False, - user=True, - apikey="apikey_inactive", - settings=default_settings)) - ) - @ddt.unpack - def test_as_dict(self, uservar, expected): - user = getattr(self, uservar) - self.assertDictEqual(expected, user.asDict()) - - @ddt.data( - ("key", "value"), - (["sub", "subkey"], "subvalue"), - ("doesntexist", None) - ) - @ddt.unpack - def test_get_setting(self, key, expected): - value = self.user.get_setting(key) - self.assertEqual(expected, value) - - @ddt.data( - ("otherkey", "othervalue", dict(otherkey="othervalue"), True), - (["sub", "othersubkey"], "othersubvalue", dict(sub=dict(othersubkey="othersubvalue")), True), - ("booleankey", True, dict(booleankey=True), True), - (["newsub", "newsubkey"], "newsubvalue", dict(newsub=dict(newsubkey="newsubvalue")), True), - (["sub", "subkey", "wontwork"], "wontwork", dict(), False) - ) - @ddt.unpack - def test_set_setting_string(self, key, value, update, expected_returnvalue): - returnvalue = self.user.set_setting(key, value) - - expected = dict_merge(default_settings, update) - - self.assertDictEqual(expected, self.user.get_all_settings()) - self.assertEqual(expected_returnvalue, returnvalue) - - def test_check_password(self): - self.assertTrue(self.user.check_password("passwordHash")) - self.assertFalse(self.user.check_password("notThePasswordHash")) - - @ddt.data( - ("user", "User(id=user,name=user,active=True,user=True,admin=False)"), - ("admin", "User(id=admin,name=admin,active=True,user=True,admin=True)"), - ("inactive", "User(id=inactive,name=inactive,active=False,user=True,admin=False)") - ) - @ddt.unpack - def test_repr(self, uservar, output): - self.assertEqual(output, repr(getattr(self, uservar))) - -class SessionUserTestCase(unittest.TestCase): - - def setUp(self): - self.user = octoprint.users.User("username", "passwordHash", True, ("user",), apikey="apikey", settings=dict(key="value")) - - def test_two_sessions(self): - session1 = octoprint.users.SessionUser(self.user) - session2 = octoprint.users.SessionUser(self.user) - - self.assertNotEqual(session1.get_session(), session2.get_session()) - self.assertEqual(session1._user, session2._user) - self.assertEqual(session1._username, session2._username) - - def test_settings_change_propagates(self): - user = octoprint.users.SessionUser(self.user) - self.user.set_setting("otherkey", "othervalue") - - self.assertDictEqual(dict(key="value", otherkey="othervalue"), user.get_all_settings()) - - def test_repr(self): - user = octoprint.users.SessionUser(self.user) - expected = "SessionUser(id=username,name=username,active=True,user=True,admin=False,session={},created={})".format(user._session, user._created) - self.assertEqual(expected, repr(user)) diff --git a/tests/users/test_sessionuser.py b/tests/users/test_sessionuser.py new file mode 100644 index 000000000..1096476e4 --- /dev/null +++ b/tests/users/test_sessionuser.py @@ -0,0 +1,37 @@ +# coding=utf-8 +""" +Unit tests for octoprint.users.SessionUser +""" +from __future__ import absolute_import, division, print_function + +__author__ = "Gina Häußge " +__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' +__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License" + +import unittest + +import octoprint.users + +class SessionUserTestCase(unittest.TestCase): + + def setUp(self): + self.user = octoprint.users.User("username", "passwordHash", True, ("user",), apikey="apikey", settings=dict(key="value")) + + def test_two_sessions(self): + session1 = octoprint.users.SessionUser(self.user) + session2 = octoprint.users.SessionUser(self.user) + + self.assertNotEqual(session1.get_session(), session2.get_session()) + self.assertEqual(session1._user, session2._user) + self.assertEqual(session1._username, session2._username) + + def test_settings_change_propagates(self): + user = octoprint.users.SessionUser(self.user) + self.user.set_setting("otherkey", "othervalue") + + self.assertDictEqual(dict(key="value", otherkey="othervalue"), user.get_all_settings()) + + def test_repr(self): + user = octoprint.users.SessionUser(self.user) + expected = "SessionUser(id=username,name=username,active=True,user=True,admin=False,session={},created={})".format(user._session, user._created) + self.assertEqual(expected, repr(user)) diff --git a/tests/users/test_user.py b/tests/users/test_user.py new file mode 100644 index 000000000..e827d3e89 --- /dev/null +++ b/tests/users/test_user.py @@ -0,0 +1,90 @@ +# coding=utf-8 +""" +Unit tests for octoprint.users.User +""" +from __future__ import absolute_import, division, print_function + +__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 ddt + +import octoprint.users +from octoprint.util import dict_merge + +default_settings = dict(key="value", sub=dict(subkey="subvalue")) + +@ddt.ddt +class UserTestCase(unittest.TestCase): + def setUp(self): + self.user = octoprint.users.User("user", "passwordHash", True, ("user",), apikey="apikey_user", settings=default_settings) + self.admin = octoprint.users.User("admin", "passwordHash", True, ("user","admin"), apikey="apikey_admin", settings=default_settings) + self.inactive = octoprint.users.User("inactive", "passwordHash", False, ("user",), apikey="apikey_inactive", settings=default_settings) + + @ddt.data( + ("user", dict(name="user", + active=True, + admin=False, + user=True, + apikey="apikey_user", + settings=default_settings)), + ("admin", dict(name="admin", + active=True, + admin=True, + user=True, + apikey="apikey_admin", + settings=default_settings)), + ("inactive", dict(name="inactive", + active=False, + admin=False, + user=True, + apikey="apikey_inactive", + settings=default_settings)) + ) + @ddt.unpack + def test_as_dict(self, uservar, expected): + user = getattr(self, uservar) + self.assertDictEqual(expected, user.asDict()) + + @ddt.data( + ("key", "value"), + (["sub", "subkey"], "subvalue"), + ("doesntexist", None) + ) + @ddt.unpack + def test_get_setting(self, key, expected): + value = self.user.get_setting(key) + self.assertEqual(expected, value) + + @ddt.data( + ("otherkey", "othervalue", dict(otherkey="othervalue"), True), + (["sub", "othersubkey"], "othersubvalue", dict(sub=dict(othersubkey="othersubvalue")), True), + ("booleankey", True, dict(booleankey=True), True), + (["newsub", "newsubkey"], "newsubvalue", dict(newsub=dict(newsubkey="newsubvalue")), True), + # ["sub", "subkey"] is already existing and gets overwritten + (["sub", "subkey", "subsubkey"], "42", dict(sub=dict(subkey=dict(subsubkey="42"))), True), + (["sub"], "overwrite", dict(sub="overwrite"), True) + ) + @ddt.unpack + def test_set_setting_string(self, key, value, update, expected_returnvalue): + returnvalue = self.user.set_setting(key, value) + + expected = dict_merge(default_settings, update) + + self.assertDictEqual(expected, self.user.get_all_settings()) + self.assertEqual(expected_returnvalue, returnvalue) + + def test_check_password(self): + self.assertTrue(self.user.check_password("passwordHash")) + self.assertFalse(self.user.check_password("notThePasswordHash")) + + @ddt.data( + ("user", "User(id=user,name=user,active=True,user=True,admin=False)"), + ("admin", "User(id=admin,name=admin,active=True,user=True,admin=True)"), + ("inactive", "User(id=inactive,name=inactive,active=False,user=True,admin=False)") + ) + @ddt.unpack + def test_repr(self, uservar, output): + self.assertEqual(output, repr(getattr(self, uservar))) diff --git a/tests/util/test_comm_helpers.py b/tests/util/test_comm_helpers.py index a8870c288..b3eb49b6e 100644 --- a/tests/util/test_comm_helpers.py +++ b/tests/util/test_comm_helpers.py @@ -237,3 +237,27 @@ class TestCommHelpers(unittest.TestCase): result = canonicalize_temperatures(parsed, current) self.assertDictEqual(expected, result) + @data( + ("KEY1:Value 1 FIRMWARE_NAME:Some Firmware With Spaces KEY2:Value 2", + dict(KEY1="Value 1", KEY2="Value 2", FIRMWARE_NAME="Some Firmware With Spaces")) + ) + @unpack + def test_parse_firmware_line(self, line, expected): + from octoprint.util.comm import parse_firmware_line + result = parse_firmware_line(line) + self.assertDictEqual(expected, result) + + @data( + ("Resend:23", 23), + ("Resend: N23", 23), + ("Resend: N:23", 23), + ("rs 23", 23), + ("rs N23", 23), + ("rs N:23", 23), + ("rs N23 expected checksum 109", 23) # teacup, see #300 + ) + @unpack + def test_parse_resend_line(self, line, expected): + from octoprint.util.comm import parse_resend_line + result = parse_resend_line(line) + self.assertEqual(expected, result) diff --git a/translations/de/LC_MESSAGES/messages.mo b/translations/de/LC_MESSAGES/messages.mo index 59189bd65..89e81a75a 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 997041aeb..a9e98176c 100644 --- a/translations/de/LC_MESSAGES/messages.po +++ b/translations/de/LC_MESSAGES/messages.po @@ -1,23 +1,23 @@ # German translations for OctoPrint. -# Copyright (C) 2016 The OctoPrint Project +# Copyright (C) 2017 The OctoPrint Project # This file is distributed under the same license as the OctoPrint project. -# FIRST AUTHOR , 2016. +# FIRST AUTHOR , 2017. # msgid "" msgstr "" -"Project-Id-Version: OctoPrint\n" +"Project-Id-Version: OctoPrint\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2016-12-02 12:37+0100\n" -"PO-Revision-Date: 2016-12-02 12:38+0100\n" +"POT-Creation-Date: 2017-03-16 11:53+0100\n" +"PO-Revision-Date: 2017-03-10 14:32+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.2.0\n" -"X-Generator: Poedit 1.6.8\n" +"Generated-By: Babel 2.3.4\n" #: src/octoprint/plugins/announcements/__init__.py:88 #: src/octoprint/plugins/announcements/templates/announcements.jinja2:4 @@ -95,12 +95,12 @@ msgstr "Ankündigungen aktualisieren" #: src/octoprint/plugins/corewizard/__init__.py:80 #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:1 -#: src/octoprint/server/views.py:528 +#: src/octoprint/server/views.py:557 msgid "Access Control" msgstr "Zugangsbeschränkung" #: src/octoprint/plugins/corewizard/__init__.py:125 -#: src/octoprint/server/views.py:516 +#: src/octoprint/server/views.py:551 msgid "Webcam & Timelapse" msgstr "Webcam & Zeitraffer" @@ -114,61 +114,90 @@ msgid "Default Printer Profile" msgstr "Default Druckerprofil" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:43 -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:79 msgid "Please set up Access Control" msgstr "Bitte konfiguriere die Zugangsbeschränkung" #: src/octoprint/plugins/corewizard/static/js/corewizard.js:80 -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/templates/corewizard_acl_wizard.jinja2:3 msgid "" "

\n" -" Please read the following, it is very important for your printer's health!\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 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" "

\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" +" 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" +" 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ä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" "

\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" +" 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/templates/dialogs/settings/accesscontrol.jinja2:45 -#: src/octoprint/templates/navbar/login.jinja2:6 #: src/octoprint/templates/navbar/login.jinja2:7 +#: src/octoprint/templates/navbar/login.jinja2:8 msgid "Username" msgstr "Username" #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:3 -#: src/octoprint/templates/navbar/login.jinja2:8 #: src/octoprint/templates/navbar/login.jinja2:9 +#: src/octoprint/templates/navbar/login.jinja2:10 msgid "Password" msgstr "Passwort" @@ -186,22 +215,30 @@ 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" +" 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" "

\n" "

\n" -" Do NOT underestimate the risk of an unsecured access from the internet to your printer!\n" +" Do NOT underestimate the risk of an unsecured access from the" +" internet to your printer!\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" +" 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 @@ -215,16 +252,20 @@ msgstr "Zugangsbeschränkung aktiviert lassen" #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:53 msgid "" "\n" -" Access control is enabled.\n" +" Access control is enabled.\n" " " msgstr "Zugriffsbeschränkung aktiviert." #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:56 msgid "" "\n" -" Access control is disabled.\n" +" Access control is disabled.\n" +" " +msgstr "" +"Zugriffsbeschränkung deaktiviert." " " -msgstr "Zugriffsbeschränkung deaktiviert. " #: src/octoprint/plugins/corewizard/templates/corewizard_printerprofile_wizard.jinja2:1 msgid "Set up your printer profile" @@ -232,9 +273,15 @@ 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." +"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." #: src/octoprint/plugins/corewizard/templates/corewizard_printerprofile_wizard.jinja2:7 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:1 @@ -261,10 +308,14 @@ 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" +" 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" @@ -293,24 +344,46 @@ 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" +" 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:8 @@ -320,28 +393,31 @@ 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" +" 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:176 -#: src/octoprint/static/js/app/viewmodels/settings.js:296 +#: src/octoprint/static/js/app/viewmodels/settings.js:298 msgid "The path doesn't exist" msgstr "Der Pfad existiert nicht" #: src/octoprint/plugins/cura/static/js/cura.js:178 -#: src/octoprint/static/js/app/viewmodels/settings.js:298 +#: src/octoprint/static/js/app/viewmodels/settings.js:300 msgid "The path is not a file" msgstr "Der Pfad ist keine Datei" #: src/octoprint/plugins/cura/static/js/cura.js:180 -#: src/octoprint/static/js/app/viewmodels/settings.js:300 +#: src/octoprint/static/js/app/viewmodels/settings.js:302 msgid "The path is not an executable" msgstr "Der Pfad ist nicht ausführbar" #: src/octoprint/plugins/cura/static/js/cura.js:183 -#: src/octoprint/static/js/app/viewmodels/settings.js:303 +#: src/octoprint/static/js/app/viewmodels/settings.js:305 msgid "The path is valid" msgstr "Der Pfad ist valide" @@ -355,7 +431,8 @@ msgid "" 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" @@ -370,8 +447,14 @@ 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" @@ -380,7 +463,8 @@ 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" +" 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. " @@ -391,21 +475,37 @@ 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" +"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, ausOctoPrint heraus zu slicen, dann solltest Du das jetzt tun. Andernfalls überspringe diesenSchritt einfach." +msgstr "" +"Du hast noch kein Slicingprofile zum Slicen mit CuraEngine importiert. " +"Falls Du vor hast, ausOctoPrint heraus zu slicen, dann solltest Du das " +"jetzt tun. Andernfalls überspringe diesenSchritt 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" +" 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 "" +"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." #: src/octoprint/plugins/cura/templates/snippets/settings/cura/engineLog.jinja2:4 msgid "Log the output of CuraEngine to plugin_cura_engine.log" @@ -458,12 +558,23 @@ 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 especiallymeans 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" +" You can import your existing profile .ini files " +"from Cura 15.04.x or older\n" +" here. Anything but those are not supported. " +"That especiallymeans 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 funktionierenwerden, 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 funktionierenwerden," +" 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 @@ -504,275 +615,351 @@ msgstr "Als Standard festlegen" msgid "Delete Profile" msgstr "Profil entfernen" -#: src/octoprint/plugins/pluginmanager/__init__.py:115 +#: src/octoprint/plugins/pluginmanager/__init__.py:119 msgid "Plugin Manager" msgstr "Pluginmanager" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:241 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:406 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:244 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:409 msgid "Installing plugin..." msgstr "Installiere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:241 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:244 msgid "Installing plugin from uploaded archive..." msgstr "Installiere Plugin von hochgeladenem Archiv..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:256 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:347 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:424 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:465 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:583 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:786 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:816 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:833 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:850 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:259 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:350 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:427 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:468 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:789 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:819 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:836 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:853 msgid "Something went wrong" msgstr "Etwas ist schief gegangen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:257 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:348 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:425 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:466 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:260 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:351 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:428 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:469 msgid "Please consult octoprint.log for details" msgstr "Bitte konsultiere octoprint.log für Details" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:408 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:411 #, 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:410 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:413 #, python-format msgid "Installing plugin from %(url)s..." msgstr "Installiere Plugin von %(url)s..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:413 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:416 msgid "Reinstalling plugin..." msgstr "Reinstalliere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:414 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:417 #, 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:459 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:462 msgid "Uninstalling plugin..." msgstr "Deinstalliere Plugin..." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:459 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:462 #, python-format msgid "Uninstalling plugin \"%(name)s\"" msgstr "Deinstalliere Plugin \"%(name)s\"" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 msgid "Reinstall" msgstr "Reinstallieren" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:172 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:188 msgid "Install" msgstr "Installieren" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 msgid "Incompatible" msgstr "Inkompatibel" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572 msgid "Restart now" msgstr "Jetzt neu starten" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:575 msgid "This will restart your OctoPrint server." msgstr "Das wird deinen OctoPrint Server neu starten." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:577 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:580 msgid "Restart in progress" msgstr "Neustart findet statt" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:578 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:581 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:584 -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:587 +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:602 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605 #: src/octoprint/templates/overlays/reloadui.jinja2:14 msgid "Reload now" msgstr "Jetzt neu laden" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:656 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:659 msgid "Done!" msgstr "Fertig!" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:680 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:683 msgid "Disabled due to active safe mode" msgstr "Deaktiviert wegen aktiviertem Safe Mode" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:682 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:685 msgid "Enable Plugin" msgstr "Plugin enablen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:685 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:688 msgid "Disable Plugin" msgstr "Plugin disablen" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:770 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:773 msgid "Plugin installed" msgstr "Plugin installiert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:771 -msgid "A plugin was installed successfully, however it was impossible to detect which one. Please Restart OctoPrint to make sure everything will be registered properly" -msgstr "Ein Plugin wurde erfolgreich installiert, es war aber unmöglich zu detektieren, welches. Bitte starte OctoPrint neu um sicherzustellen, dass alles ordnungsgemäß registriert wird." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:774 +msgid "" +"A plugin was installed successfully, however it was impossible to detect " +"which one. Please Restart OctoPrint to make sure everything will be " +"registered properly" +msgstr "" +"Ein Plugin wurde erfolgreich installiert, es war aber unmöglich zu " +"detektieren, welches. Bitte starte OctoPrint neu um sicherzustellen, dass" +" alles ordnungsgemäß registriert wird." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:775 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:778 #, python-format msgid "Plugin \"%(name)s\" reinstalled" msgstr "Plugin \"%(name)s\" reinstalliert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:776 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:779 msgid "The plugin was reinstalled successfully" msgstr "Das Plugin wurde erfolgreich reinstalliert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:777 -msgid "The plugin was reinstalled successfully, however a restart of OctoPrint is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neustart von OctoPrint notwendig bevor es genutzt werden kann." - -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:778 -msgid "The plugin was reinstalled successfully, however a reload of the page is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neuladen der Seite notwendig bevor es genutzt werden kann." - #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:780 +msgid "" +"The plugin was reinstalled successfully, however a restart of OctoPrint " +"is needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neustart von " +"OctoPrint notwendig bevor es genutzt werden kann." + +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:781 +msgid "" +"The plugin was reinstalled successfully, however a reload of the page is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neuladen der " +"Seite notwendig bevor es genutzt werden kann." + +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:783 #, python-format msgid "Plugin \"%(name)s\" installed" msgstr "Plugin \"%(name)s\" installiert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:781 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:784 msgid "The plugin was installed successfully" msgstr "Das Plugin wurde erfolgreich installiert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:782 -msgid "The plugin was installed successfully, however a restart of OctoPrint is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neustart von OctoPrint notwendig bevor es genutzt werden kann." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:785 +msgid "" +"The plugin was installed successfully, however a restart of OctoPrint is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neustart von " +"OctoPrint notwendig bevor es genutzt werden kann." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:783 -msgid "The plugin was installed successfully, however a reload of the page is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neuladen der Seite notwendig bevor es genutzt werden kann." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:786 +msgid "" +"The plugin was installed successfully, however a reload of the page is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neuladen der " +"Seite notwendig bevor es genutzt werden kann." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:794 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:797 #, python-format msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s" msgstr "Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:796 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:799 #, python-format msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s" msgstr "Installation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:800 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:803 #, python-format -msgid "Reinstalling the plugin from URL \"%(url)s\" failed, please see the log for details." -msgstr "Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte konsultiere das Log für Details." +msgid "" +"Reinstalling the plugin from URL \"%(url)s\" failed, please see the log " +"for details." +msgstr "" +"Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte " +"konsultiere das Log für Details." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:802 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:805 #, python-format -msgid "Installing the plugin from URL \"%(url)s\" failed, please see the log for details." -msgstr "Installation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte konsultiere das Log für Details" +msgid "" +"Installing the plugin from URL \"%(url)s\" failed, please see the log for" +" details." +msgstr "" +"Installation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte " +"konsultiere das Log für Details" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:811 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814 #, python-format msgid "Plugin \"%(name)s\" uninstalled" msgstr "Plugin \"%(name)s\" deinstalliert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:812 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815 msgid "The plugin was uninstalled successfully" msgstr "Das Plugin wurde erfolgreich deinstalliert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:813 -msgid "The plugin was uninstalled successfully, however a restart of OctoPrint is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neustart von OctoPrint notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:816 +msgid "" +"The plugin was uninstalled successfully, however a restart of OctoPrint " +"is needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neustart " +"von OctoPrint notwendig." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814 -msgid "The plugin was uninstalled successfully, however a reload of the page is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neuladen der Seite notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:817 +msgid "" +"The plugin was uninstalled successfully, however a reload of the page is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neuladen " +"der Seite notwendig." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:818 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:821 #, python-format msgid "Uninstalling the plugin failed: %(reason)s" msgstr "Deinstallation des Plugins fehlgeschlagen: %(reason)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:820 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:823 msgid "Uninstalling the plugin failed, please see the log for details." -msgstr "Deinstallation des Plugins fehlgeschlagen, bitte konsultiere das Log für Details." +msgstr "" +"Deinstallation des Plugins fehlgeschlagen, bitte konsultiere das Log für " +"Details." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:828 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:831 #, python-format msgid "Plugin \"%(name)s\" enabled" msgstr "Plugin \"%(name)s\" aktiviert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:829 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:832 msgid "The plugin was enabled successfully." msgstr "Das Plugin wurde erfolgreich aktiviert." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:830 -msgid "The plugin was enabled successfully, however a restart of OctoPrint is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neustart von OctoPrint notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:833 +msgid "" +"The plugin was enabled successfully, however a restart of OctoPrint is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neustart von " +"OctoPrint notwendig." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:831 -msgid "The plugin was enabled successfully, however a reload of the page is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neuladen der Seite notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:834 +msgid "" +"The plugin was enabled successfully, however a reload of the page is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neuladen der " +"Seite notwendig." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:835 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:852 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:838 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:855 #, python-format msgid "Toggling the plugin failed: %(reason)s" msgstr "Togglen des Plugins fehlgeschalgen: %(reason)s" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:837 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:854 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:840 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:857 msgid "Toggling the plugin failed, please see the log for details." msgstr "Togglen des Plugins fehlgeschlagen, bitte konsultiere das Log für Details." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:845 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:848 #, python-format msgid "Plugin \"%(name)s\" disabled" msgstr "Plugin \"%(name)s\" deaktiviert" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:846 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:849 msgid "The plugin was disabled successfully." msgstr "Das Plugin wurde erfolgreich deaktiviert." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:847 -msgid "The plugin was disabled successfully, however a restart of OctoPrint is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neustart von OctoPrint notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:850 +msgid "" +"The plugin was disabled successfully, however a restart of OctoPrint is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neustart von " +"OctoPrint notwendig." -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:848 -msgid "The plugin was disabled successfully, however a reload of the page is needed for that to take effect." -msgstr "Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neuladen der Seite notwendig." +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:851 +msgid "" +"The plugin was disabled successfully, however a reload of the page is " +"needed for that to take effect." +msgstr "" +"Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neuladen der " +"Seite notwendig." #: 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" +" 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" +" 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" +" 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:28 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:216 @@ -795,7 +982,9 @@ msgstr "Kann nicht aus OctoPrint heraus deinstalliert werden" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:43 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:43 msgid "Pending install" @@ -893,8 +1082,14 @@ msgid "... from an uploaded archive" msgstr "... von einem hochgeladenen Archiv" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:190 -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" +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:194 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:63 @@ -906,27 +1101,42 @@ msgstr "Erweiterte Optionen" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:200 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:220 -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:222 msgid "Plugin repository configuration" msgstr "Pluginrepositorykonfiguration" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:224 -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:225 msgid "Repository URL" msgstr "Repository-URL" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:230 -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:231 msgid "Repository cache TTL" @@ -937,15 +1147,21 @@ msgid "pip configuration" msgstr "pip Konfiguration" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:242 -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:243 msgid "Additional arguments" msgstr "Weitere Argumente" #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:251 -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:258 @@ -953,7 +1169,7 @@ msgstr "--user mit pip install verwenden" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:92 #: src/octoprint/static/js/app/helpers.js:639 #: src/octoprint/templates/dialogs/files.jinja2:18 -#: src/octoprint/templates/dialogs/slicing.jinja2:50 +#: src/octoprint/templates/dialogs/slicing.jinja2:57 #: src/octoprint/templates/sidebar/state.jinja2:25 msgid "Cancel" msgstr "Abbruch" @@ -963,159 +1179,201 @@ msgstr "Abbruch" msgid "Save" msgstr "Speichern" -#: src/octoprint/plugins/softwareupdate/__init__.py:496 +#: src/octoprint/plugins/softwareupdate/__init__.py:533 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:1 msgid "Software Update" msgstr "Software Update" -#: src/octoprint/plugins/softwareupdate/__init__.py:810 -#: src/octoprint/server/views.py:520 -#: src/octoprint/static/js/app/viewmodels/appearance.js:11 +#: src/octoprint/plugins/softwareupdate/__init__.py:869 +#: src/octoprint/server/views.py:555 #: 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/templates/dialogs/about/about.jinja2:1 msgid "OctoPrint" msgstr "OctoPrint" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:216 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:219 msgid "Release" msgstr "Release" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:217 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:220 msgid "Commit" msgstr "Commit" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:256 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:259 #, python-format msgid "%(name)s: %(version)s" msgstr "%(name)s: %(version)s" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:259 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:262 msgid "unknown" msgstr "unbekannt" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:289 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:292 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:297 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:300 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate.jinja2:14 msgid "Release Notes" msgstr "Release Notes" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:303 -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:306 +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:308 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:311 msgid "Update Available" msgstr "Aktualisierung verfügbar" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:319 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:322 msgid "Ignore" msgstr "Ignorieren" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:323 -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:326 +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:327 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:330 msgid "Update now" msgstr "Jetzt aktualisieren" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:344 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:347 msgid "Everything is up-to-date" msgstr "Alles ist auf dem neusten Stand" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:403 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:417 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:558 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:406 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:420 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:561 msgid "Updating..." msgstr "Aktualisiere..." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:404 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:407 msgid "Now updating, please wait." msgstr "Aktualisiere gerade, bitte warten." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:417 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:558 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:420 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:561 msgid "Updating, please wait." msgstr "Aktualisiere gerade, bitte warten." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:422 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:425 msgid "Update not started!" msgstr "Aktualisierung nicht gestartet!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:423 -msgid "The update could not be started. Is it already active? Please consult the log for details." -msgstr "Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? Bitte konsultiere das Log für Details." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:426 +msgid "" +"The update could not be started. Is it already active? Please consult the" +" log for details." +msgstr "" +"Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? " +"Bitte konsultiere das Log für Details." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:439 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:442 msgid "Can't update while printing" msgstr "Aktualisierung nicht möglich während gedruckt wird" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:440 -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:443 +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:561 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:564 #, 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:580 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:583 msgid "Update successful, restarting!" msgstr "Aktualisierung erfolgreich, starte neu!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:581 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:584 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:598 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:647 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:601 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:650 msgid "Restart failed" msgstr "Neustart fehlgeschlagen" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:599 -msgid "The server apparently did not restart by itself, you'll have to do it manually. Please consult the log file on what went wrong." -msgstr "Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das manuell tun müssen. Bitte konsultiere das Logfile." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:602 +msgid "" +"The server apparently did not restart by itself, you'll have to do it " +"manually. Please consult the log file on what went wrong." +msgstr "" +"Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das " +"manuell tun müssen. Bitte konsultiere das Logfile." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:621 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:624 msgid "The update finished successfully, please restart OctoPrint now." -msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte OctoPrint jetzt neu." - -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:623 -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 starte " +"OctoPrint jetzt neu." #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:626 +msgid "The update finished successfully, please reboot the server now." +msgstr "" +"Die Aktualisierung wurde erfolgreich abgeschlossen, bitte reboote den " +"Server jetzt." + +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:629 msgid "Update successful, restart required!" msgstr "Aktualisierung erfolgreich, Neustart notwendig!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:642 -msgid "Restarting OctoPrint failed, please restart it manually. You might also want to consult the log file on what went wrong here." -msgstr "Der Neustart von OctoPrint ist fehlgeschlagen, bitte starte es manuell neu. Du solltest das Logfile konsultieren, um herauszufinden, was hier schief gelaufen ist." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:645 +msgid "" +"Restarting OctoPrint failed, please restart it manually. You might also " +"want to consult the log file on what went wrong here." +msgstr "" +"Der Neustart von OctoPrint ist fehlgeschlagen, bitte starte es manuell " +"neu. Du solltest das Logfile konsultieren, um herauszufinden, was hier " +"schief gelaufen ist." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:644 -msgid "Rebooting the server failed, please reboot it manually. You might also want to consult the log file on what went wrong here." -msgstr "Reboot des Servers fehlgeschlagen, bitte reboote ihn manuell. Du solltest auch das Logfile konsultieren, um herauszufinden, was hier gerade schief gelaufen ist." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:647 +msgid "" +"Rebooting the server failed, please reboot it manually. You might also " +"want to consult the log file on what went wrong here." +msgstr "" +"Reboot des Servers fehlgeschlagen, bitte reboote ihn manuell. Du solltest" +" auch das Logfile konsultieren, um herauszufinden, was hier gerade schief" +" gelaufen ist." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:663 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:666 msgid "Update successful!" msgstr "Aktualisierung erfolgreich!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:664 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:667 msgid "The update finished successfully." msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen." -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:679 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:682 msgid "Update failed!" msgstr "Aktualisierung fehlgeschlagen!" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:680 -msgid "The update did not finish successfully. Please consult the log for details." -msgstr "Die Aktualisierung wurde nicht erfolgreich abgeschlossen. Bitte konsultiere das Log für Details." +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:683 +msgid "" +"The update did not finish successfully. Please consult the log for " +"details." +msgstr "" +"Die Aktualisierung wurde nicht erfolgreich abgeschlossen. Bitte " +"konsultiere das Log für Details." #: src/octoprint/plugins/softwareupdate/templates/softwareupdate.jinja2:4 msgid "Are you sure you want to update now?" @@ -1123,11 +1381,19 @@ msgstr "Bist Du sicher, dass du jetzt aktualisieren willst?" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate.jinja2:8 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/templates/softwareupdate.jinja2:19 -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." +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/templates/softwareupdate.jinja2:22 #: src/octoprint/static/js/app/helpers.js:638 @@ -1142,29 +1408,51 @@ msgstr "Fortfahren" #: 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" +" 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 "" "\n" -" 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.\n" +" 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.\n" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:6 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" +"

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 msgid "Current versions" @@ -1196,7 +1484,9 @@ msgstr "Jetzt nach Aktualisierungen suchen" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:65 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:66 msgid "Force update now (even if no new versions are available)" @@ -1209,18 +1499,27 @@ msgstr "TTL des Versionscaches" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:3 msgid "" "

\n" -" OctoPrint can update itself via git, but it needs to know its checkout folder and the way\n" -" it should track available updates in order to be able to do that. You can configure that here.\n" +" OctoPrint can update itself via git, but it needs to " +"know its checkout folder and the way\n" +" it should track available updates in order to be able to do that. You" +" can configure that here.\n" "

" -msgstr "

OctoPrint kann sich selbst über git aktualisieren, aber dazu muss es sein Checkout-Verzeichnis kennen und wissen, wie es verfügbare Updates tracken soll. Du kannst das hier konfigurieren.

" +msgstr "" +"

OctoPrint kann sich selbst über git aktualisieren, aber " +"dazu muss es sein Checkout-Verzeichnis kennen und wissen, wie es " +"verfügbare Updates tracken soll. Du kannst das hier konfigurieren.

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

\n" -" If you are running a release version of OctoPrint, leave at \"Release\" tracking. If you are running a different\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" @@ -1232,150 +1531,164 @@ msgstr "OctoPrint Release Channel" #: src/octoprint/plugins/softwareupdate/templates/snippets/plugins/softwareupdate/releaseChannel.jinja2:5 #, python-format -msgid "Make sure you have read \"Using Release Channels\" before switching to a release channel other than \"Stable\"" -msgstr "Stelle sicher, dass du \"Using Release Channels\" gelesen hast, bevor du einen anderen Release Channel als \"Stable\" auswählst." +msgid "" +"Make sure you have read \"Using Release Channels\" before " +"switching to a release channel other than \"Stable\"" +msgstr "" +"Stelle sicher, dass du \"Using Release Channels\" 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/server/views.py:426 +#: src/octoprint/server/views.py:465 msgid "Plugins" msgstr "Plugins" -#: src/octoprint/server/views.py:485 +#: src/octoprint/server/views.py:522 msgid "Connection" msgstr "Verbindung" -#: src/octoprint/server/views.py:486 +#: src/octoprint/server/views.py:523 #: src/octoprint/templates/sidebar/state.jinja2:1 msgid "State" msgstr "Status" -#: src/octoprint/server/views.py:487 +#: src/octoprint/server/views.py:524 msgid "Files" msgstr "Dateien" -#: src/octoprint/server/views.py:493 +#: src/octoprint/server/views.py:530 msgid "Temperature" msgstr "Temperatur" -#: src/octoprint/server/views.py:494 +#: src/octoprint/server/views.py:531 msgid "Control" msgstr "Steuerung" -#: src/octoprint/server/views.py:495 -msgid "Terminal" -msgstr "Terminal" - -#: src/octoprint/server/views.py:498 +#: src/octoprint/server/views.py:532 msgid "GCode Viewer" msgstr "GCode Viewer" -#: src/octoprint/server/views.py:500 +#: src/octoprint/server/views.py:533 +msgid "Terminal" +msgstr "Terminal" + +#: src/octoprint/server/views.py:534 #: src/octoprint/templates/sidebar/state.jinja2:4 msgid "Timelapse" msgstr "Zeitraffer" -#: src/octoprint/server/views.py:505 +#: src/octoprint/server/views.py:540 msgid "Printer" msgstr "Drucker" -#: src/octoprint/server/views.py:507 +#: src/octoprint/server/views.py:542 msgid "Serial Connection" msgstr "Serielle Verbindung" -#: src/octoprint/server/views.py:508 +#: src/octoprint/server/views.py:543 #: src/octoprint/templates/dialogs/settings/printerprofiles.jinja2:1 msgid "Printer Profiles" msgstr "Druckerprofile" -#: src/octoprint/server/views.py:509 +#: src/octoprint/server/views.py:544 msgid "Temperatures" msgstr "Temperaturen" -#: src/octoprint/server/views.py:510 +#: src/octoprint/server/views.py:545 msgid "Terminal Filters" msgstr "Terminalfilter" -#: src/octoprint/server/views.py:511 +#: src/octoprint/server/views.py:546 msgid "GCODE Scripts" msgstr "GCODE Scripts" -#: src/octoprint/server/views.py:513 src/octoprint/server/views.py:515 +#: src/octoprint/server/views.py:548 src/octoprint/server/views.py:550 msgid "Features" msgstr "Funktionen" -#: src/octoprint/server/views.py:517 +#: src/octoprint/server/views.py:552 msgid "GCODE Visualizer" msgstr "GCode Viewer" -#: src/octoprint/server/views.py:518 +#: src/octoprint/server/views.py:553 msgid "API" msgstr "API" -#: src/octoprint/server/views.py:522 +#: src/octoprint/server/views.py:558 #: src/octoprint/templates/dialogs/settings/folders.jinja2:2 #: src/octoprint/templates/sidebar/files_header.jinja2:10 msgid "Folders" msgstr "Verzeichnisse" -#: src/octoprint/server/views.py:523 +#: src/octoprint/server/views.py:559 msgid "Appearance" msgstr "Aussehen" -#: src/octoprint/server/views.py:524 +#: src/octoprint/server/views.py:560 #: src/octoprint/templates/dialogs/settings/logs.jinja2:2 msgid "Logs" msgstr "Logs" -#: src/octoprint/server/views.py:525 +#: src/octoprint/server/views.py:561 msgid "Server" msgstr "Server" -#: src/octoprint/server/views.py:534 +#: src/octoprint/server/views.py:567 msgid "Access" msgstr "Zugriff" -#: src/octoprint/server/views.py:535 +#: src/octoprint/server/views.py:568 msgid "Interface" msgstr "Interface" -#: src/octoprint/server/views.py:551 +#: src/octoprint/server/views.py:584 msgid "Start" msgstr "Start" -#: src/octoprint/server/views.py:552 +#: src/octoprint/server/views.py:585 #: src/octoprint/templates/dialogs/wizard.jinja2:57 msgid "Finish" msgstr "Beenden" -#: src/octoprint/server/api/system.py:132 +#: src/octoprint/server/api/system.py:146 #: src/octoprint/templates/snippets/settings/server/serverCommandSystemShutdown.jinja2:2 msgid "Shutdown system" msgstr "System herunterfahren" -#: src/octoprint/server/api/system.py:133 +#: src/octoprint/server/api/system.py:147 msgid "You are about to shutdown the system." msgstr "Du bist dabei, das System herunterzufahren." -#: src/octoprint/server/api/system.py:136 +#: src/octoprint/server/api/system.py:150 msgid "Reboot system" msgstr "System neustarten" -#: src/octoprint/server/api/system.py:137 +#: src/octoprint/server/api/system.py:151 msgid "You are about to reboot the system." msgstr "Du bist dabei, das System neu zu starten." -#: src/octoprint/server/api/system.py:140 +#: src/octoprint/server/api/system.py:154 #: src/octoprint/templates/snippets/settings/server/serverCommandServerRestart.jinja2:2 msgid "Restart OctoPrint" msgstr "OctoPrint neustarten" -#: src/octoprint/server/api/system.py:141 +#: src/octoprint/server/api/system.py:155 msgid "You are about to restart the OctoPrint server." msgstr "Du bist dabei, das System neu zu starten." +#: src/octoprint/server/api/system.py:158 +msgid "Restart OctoPrint in safe mode" +msgstr "OctoPrint im Sicherheitsmodus neustarten" + +#: src/octoprint/server/api/system.py:159 +msgid "You are about to restart the OctoPrint server in safe mode." +msgstr "Du bist dabei, das System im Sicherheitsmodus neu zu starten." + #: src/octoprint/static/js/app/dataupdater.js:79 #: src/octoprint/static/js/app/dataupdater.js:98 #: src/octoprint/static/js/app/helpers.js:566 @@ -1384,24 +1697,43 @@ msgid "Server is offline" msgstr "Der Server ist offline" #: src/octoprint/static/js/app/dataupdater.js:80 -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:99 -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:127 msgid "Safe mode is active" msgstr "Sicherheitsmodus ist aktiv" #: src/octoprint/static/js/app/dataupdater.js:128 -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:170 -#: src/octoprint/static/js/app/viewmodels/files.js:848 -#: src/octoprint/static/js/app/viewmodels/files.js:855 +#: src/octoprint/static/js/app/viewmodels/files.js:846 +#: src/octoprint/static/js/app/viewmodels/files.js:853 #, python-format msgid "Slicing ... (%(percentage)d%%)" msgstr "Slice ... (%(percentage)d%%)" @@ -1413,13 +1745,22 @@ msgstr "Unbehandelter Kommunikationsfehler" #: src/octoprint/static/js/app/dataupdater.js:195 #, python-format -msgid "There was an unhandled error while talking to the printer. Due to that the ongoing print job was cancelled. Error: %(firmwareError)s" -msgstr "Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. Daher wurder der laufende Druckauftrag abgebrochen. Fehler: %(firmwareError)s" +msgid "" +"There was an unhandled error while talking to the printer. Due to that " +"the ongoing print job was cancelled. Error: %(firmwareError)s" +msgstr "" +"Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. " +"Daher wurder der laufende Druckauftrag abgebrochen. Fehler: " +"%(firmwareError)s" #: src/octoprint/static/js/app/dataupdater.js:203 #, python-format -msgid "The was an unhandled error while talking to the printer. Due to that OctoPrint disconnected. Error: %(error)s" -msgstr "Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. Daher hat OctoPrint die Verbindung getrennt. Fehler: %(error)s" +msgid "" +"The was an unhandled error while talking to the printer. Due to that " +"OctoPrint disconnected. Error: %(error)s" +msgstr "" +"Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. " +"Daher hat OctoPrint die Verbindung getrennt. Fehler: %(error)s" #: src/octoprint/static/js/app/helpers.js:372 #, python-format @@ -1567,15 +1908,15 @@ msgid "Disconnect" msgstr "Trennen" #: src/octoprint/static/js/app/viewmodels/control.js:62 -#: src/octoprint/static/js/app/viewmodels/files.js:589 -#: src/octoprint/static/js/app/viewmodels/gcode.js:482 -#: src/octoprint/static/js/app/viewmodels/printerstate.js:231 -#: src/octoprint/static/js/app/viewmodels/temperature.js:62 +#: src/octoprint/static/js/app/viewmodels/files.js:586 +#: src/octoprint/static/js/app/viewmodels/gcode.js:489 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:232 +#: src/octoprint/static/js/app/viewmodels/temperature.js:63 msgid "Tool" msgstr "Werkzeug" #: src/octoprint/static/js/app/viewmodels/control.js:68 -#: src/octoprint/static/js/app/viewmodels/temperature.js:73 +#: src/octoprint/static/js/app/viewmodels/temperature.js:74 msgid "Hotend" msgstr "Hotend" @@ -1591,110 +1932,133 @@ msgstr "Dein verfügbarer freier Plattenplatz wird langsam knapp." msgid "Your current disk usage." msgstr "Dein aktuell verfügbarer freier Plattenplatz." -#: src/octoprint/static/js/app/viewmodels/files.js:390 +#: src/octoprint/static/js/app/viewmodels/files.js:387 #, python-format -msgid "You are about to delete the folder \"%(folder)s\" which still contains files and/or sub folders." -msgstr "Du bist dabei, 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 dabei, das Verzeichnis \"%(folder)s\" zu löschen, das noch " +"Dateien und/oder Unterverzeichnisse enthält." -#: src/octoprint/static/js/app/viewmodels/files.js:578 -#: src/octoprint/static/js/app/viewmodels/gcode.js:441 +#: src/octoprint/static/js/app/viewmodels/files.js:575 +#: src/octoprint/static/js/app/viewmodels/gcode.js:448 msgid "Model size" msgstr "Modelgröße" -#: src/octoprint/static/js/app/viewmodels/files.js:584 -#: src/octoprint/static/js/app/viewmodels/files.js:589 -#: src/octoprint/static/js/app/viewmodels/gcode.js:479 -#: src/octoprint/static/js/app/viewmodels/gcode.js:482 +#: src/octoprint/static/js/app/viewmodels/files.js:581 +#: src/octoprint/static/js/app/viewmodels/files.js:586 +#: src/octoprint/static/js/app/viewmodels/gcode.js:486 +#: src/octoprint/static/js/app/viewmodels/gcode.js:489 msgid "Filament" msgstr "Filament" -#: src/octoprint/static/js/app/viewmodels/files.js:593 -#: src/octoprint/static/js/app/viewmodels/gcode.js:486 +#: src/octoprint/static/js/app/viewmodels/files.js:590 +#: src/octoprint/static/js/app/viewmodels/gcode.js:493 msgid "Estimated print time" msgstr "Geschätzte Dauer" -#: src/octoprint/static/js/app/viewmodels/files.js:596 +#: src/octoprint/static/js/app/viewmodels/files.js:593 msgid "Last printed" msgstr "Zuletzt gedruckt" -#: src/octoprint/static/js/app/viewmodels/files.js:598 +#: src/octoprint/static/js/app/viewmodels/files.js:595 msgid "Last print time" msgstr "Letzte Dauer" -#: src/octoprint/static/js/app/viewmodels/files.js:658 +#: src/octoprint/static/js/app/viewmodels/files.js:655 #, 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:668 +#: src/octoprint/static/js/app/viewmodels/files.js:665 msgid "Object exceeds print volume in width.
" msgstr "Objekt überschreitet Druckvolumen in der Breite.
" -#: src/octoprint/static/js/app/viewmodels/files.js:671 +#: src/octoprint/static/js/app/viewmodels/files.js:668 msgid "Object exceeds print volume in depth.
" msgstr "Objekt überschreitet Druckvolumen in der Tiefe.
" -#: src/octoprint/static/js/app/viewmodels/files.js:674 +#: src/octoprint/static/js/app/viewmodels/files.js:671 msgid "Object exceeds print volume in height.
" msgstr "Objekt überschreitet Druckvolumen in der Höhe.
" -#: src/octoprint/static/js/app/viewmodels/files.js:680 -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:677 +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:682 -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:679 +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:689 +#: src/octoprint/static/js/app/viewmodels/files.js:686 msgid "Object doesn't fit print volume" msgstr "Objekt passt nicht in Druckvolumen" -#: src/octoprint/static/js/app/viewmodels/files.js:850 +#: src/octoprint/static/js/app/viewmodels/files.js:848 msgid "Slicing ..." msgstr "Slice ..." -#: src/octoprint/static/js/app/viewmodels/files.js:876 +#: src/octoprint/static/js/app/viewmodels/files.js:874 msgid "Slicing done" msgstr "Slicing abgeschlossen" -#: src/octoprint/static/js/app/viewmodels/files.js:877 +#: src/octoprint/static/js/app/viewmodels/files.js:875 #, python-format msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds" msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden" -#: src/octoprint/static/js/app/viewmodels/files.js:892 +#: src/octoprint/static/js/app/viewmodels/files.js:890 #, python-format msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s" msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s" -#: src/octoprint/static/js/app/viewmodels/files.js:893 +#: src/octoprint/static/js/app/viewmodels/files.js:891 msgid "Slicing failed" msgstr "Slicing fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/files.js:910 +#: src/octoprint/static/js/app/viewmodels/files.js:908 msgid "Streaming ..." msgstr "Streaming ..." -#: src/octoprint/static/js/app/viewmodels/files.js:922 +#: src/octoprint/static/js/app/viewmodels/files.js:920 msgid "Streaming done" msgstr "Streaming abgeschlossen" -#: src/octoprint/static/js/app/viewmodels/files.js:923 +#: src/octoprint/static/js/app/viewmodels/files.js:921 #, python-format msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds" msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden" -#: src/octoprint/static/js/app/viewmodels/files.js:1019 +#: src/octoprint/static/js/app/viewmodels/files.js:1017 #, 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:1040 +#: src/octoprint/static/js/app/viewmodels/files.js:1038 msgid "Saving ..." msgstr "Speichere ..." -#: src/octoprint/static/js/app/viewmodels/files.js:1040 +#: src/octoprint/static/js/app/viewmodels/files.js:1038 msgid "Uploading ..." msgstr "Uploade ..." @@ -1710,240 +2074,276 @@ msgstr "Analysiere..." msgid "Analyzed" msgstr "Analysiert" -#: src/octoprint/static/js/app/viewmodels/gcode.js:442 +#: src/octoprint/static/js/app/viewmodels/gcode.js:449 msgid "Estimated total print time" msgstr "Geschätzte Gesamtdauer" -#: src/octoprint/static/js/app/viewmodels/gcode.js:443 +#: src/octoprint/static/js/app/viewmodels/gcode.js:450 msgid "Estimated layer height" msgstr "Geschätzte Schichthöhe" -#: src/octoprint/static/js/app/viewmodels/gcode.js:443 +#: src/octoprint/static/js/app/viewmodels/gcode.js:450 #: src/octoprint/templates/tabs/timelapse.jinja2:47 msgid "mm" msgstr "mm" -#: src/octoprint/static/js/app/viewmodels/gcode.js:444 +#: src/octoprint/static/js/app/viewmodels/gcode.js:451 msgid "Layer count" msgstr "Schichtanzahl" -#: src/octoprint/static/js/app/viewmodels/gcode.js:444 +#: src/octoprint/static/js/app/viewmodels/gcode.js:451 msgid "printed" msgstr "gedruckt" -#: src/octoprint/static/js/app/viewmodels/gcode.js:444 +#: src/octoprint/static/js/app/viewmodels/gcode.js:451 msgid "visited" msgstr "besucht" -#: src/octoprint/static/js/app/viewmodels/gcode.js:474 +#: src/octoprint/static/js/app/viewmodels/gcode.js:481 msgid "Layer number" msgstr "Schichtnummer" -#: src/octoprint/static/js/app/viewmodels/gcode.js:475 +#: src/octoprint/static/js/app/viewmodels/gcode.js:482 msgid "Layer height" msgstr "Schichthöhe" -#: src/octoprint/static/js/app/viewmodels/gcode.js:476 +#: src/octoprint/static/js/app/viewmodels/gcode.js:483 msgid "GCODE commands" msgstr "GCODE Befehle" #: src/octoprint/static/js/app/viewmodels/loginstate.js:26 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:34 #: src/octoprint/templates/navbar/login.jinja2:2 -#: src/octoprint/templates/navbar/login.jinja2:13 +#: src/octoprint/templates/navbar/login.jinja2:14 msgid "Login" msgstr "Login" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:73 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:32 +#, python-format +msgid "Logged in as %(name)s" +msgstr "Eingeloggt als %(name)s" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:87 msgid "Login successful" msgstr "Login erfolgreich" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:73 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:87 #, 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:81 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:99 msgid "Login failed" msgstr "Login fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:81 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:99 msgid "User unknown or wrong password" msgstr "Nutzer unbekannt oder falsches Passwort" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:88 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:106 msgid "Logout successful" msgstr "Logout erfolgreich" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:88 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:106 msgid "You are now logged out" msgstr "Du bist jetzt ausgeloggt" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:136 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:138 msgid "Identifier must be set" msgstr "Identifier muss gesetzt sein" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:138 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:140 msgid "Invalid characters, only a-z, A-Z, 0-9, -, ., _, ( and ) are allowed" msgstr "Invalide Zeichen, es sind nur a-z, A-Z, 0-9, -, ., _, ( und ) erlaubt" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:140 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:142 msgid "A profile with such an identifier already exists" msgstr "Es gibt bereits ein Profil mit diesem Identifier" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:153 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:155 #: src/octoprint/static/js/app/viewmodels/settings.js:58 #: src/octoprint/static/js/app/viewmodels/settings.js:88 msgid "default" msgstr "Standard" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:154 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:156 #: src/octoprint/static/js/app/viewmodels/settings.js:59 #: src/octoprint/static/js/app/viewmodels/settings.js:72 msgid "red" msgstr "Rot" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:155 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:157 #: src/octoprint/static/js/app/viewmodels/settings.js:60 #: src/octoprint/static/js/app/viewmodels/settings.js:74 msgid "orange" msgstr "Orange" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:156 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:158 #: src/octoprint/static/js/app/viewmodels/settings.js:61 #: src/octoprint/static/js/app/viewmodels/settings.js:76 msgid "yellow" msgstr "Gelb" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:157 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:159 #: src/octoprint/static/js/app/viewmodels/settings.js:62 #: src/octoprint/static/js/app/viewmodels/settings.js:78 msgid "green" msgstr "Grün" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:158 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:160 #: src/octoprint/static/js/app/viewmodels/settings.js:63 #: src/octoprint/static/js/app/viewmodels/settings.js:80 msgid "blue" msgstr "Blau" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:159 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:161 #: src/octoprint/static/js/app/viewmodels/settings.js:65 #: src/octoprint/static/js/app/viewmodels/settings.js:84 msgid "black" msgstr "Schwarz" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:166 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:168 msgid "Lower Left" msgstr "Unten links" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:167 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:169 msgid "Center" msgstr "Mittelpunkt" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:482 -msgid "There was unexpected error while saving the printer profile, please consult the logs." +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:486 +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:483 -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:498 -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:520 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:487 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:502 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:524 msgid "Saving failed" msgstr "Speichern fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:497 -msgid "There was unexpected error while removing the printer profile, please consult the logs." +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:501 +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:519 -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:523 +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:535 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:539 msgid "Add Printer Profile" msgstr "Druckerprofil hinzufügen" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:535 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:539 #, python-format msgid "Edit Printer Profile \"%(name)s\"" msgstr "Druckerprofile \"%(name)s\" bearbeiten" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:46 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:47 msgid "Restarts the print job from the beginning" msgstr "Started den Druckjob von vorne" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:47 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:48 msgid "Starts the print job" msgstr "Startet den Druckjob" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:48 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:49 msgid "Resumes the print job" msgstr "Setzt den Druckjob fort" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:49 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:50 msgid "Pauses the print job" msgstr "Pausiert den Druckjob" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:82 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:83 msgid "Still stabilizing..." msgstr "Noch zu ungenau..." -#: src/octoprint/static/js/app/viewmodels/printerstate.js:92 -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:93 +msgid "" +"Based on a linear approximation (very low accuracy, especially at the " +"beginning of the print)" +msgstr "" +"Basiert auf einer linearen Approximation (sehr geringe Genauigkeit, " +"insbesondere zu Beginn eines Drucks)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:95 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:96 msgid "Based on the estimate from analysis of file (medium accuracy)" msgstr "Basiert auf der Schätzung der Analyse der Datei (mittlere Genauigkeit)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:98 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:99 msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)" -msgstr "Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung (mittlere Genauigkeit)" +msgstr "" +"Basiert auf einem Mix der Schätzung aus der Analyse und der Berechnung " +"(mittlere Genauigkeit)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:101 -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:102 +msgid "" +"Based on the average total of past prints of this model with the same " +"printer profile (usually good accuracy)" +msgstr "" +"Basiert auf der durchschnittlichen Dauer vergangener Druckjobs dieses " +"Modells mit dem selben Druckerprofil (normalerweise gute Genauigkeit)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:104 -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:105 +msgid "" +"Based on a mix of average total from past prints and calculation (usually" +" good accuracy)" +msgstr "" +"Basiert auf einem Mix der durschnittlichen Dauer vergangener Druckjobs " +"und der Berechnung (normalerweise gute Genauigkeit)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:107 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:108 msgid "Based on the calculated estimate (best accuracy)" msgstr "Basiert auf der berechneten Schätzung (beste Genauigkeit)" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:145 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:146 msgid "Continue" msgstr "Fortsetzen" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:147 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:148 #: src/octoprint/templates/sidebar/state.jinja2:24 msgid "Pause" msgstr "Pause" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:158 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:159 #: src/octoprint/templates/tabs/timelapse.jinja2:11 msgid "On Z Change" msgstr "Bei Ebenenwechsel" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:160 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:161 #: src/octoprint/templates/tabs/timelapse.jinja2:10 msgid "Timed" msgstr "Nach Zeit" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:160 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:161 #: src/octoprint/templates/tabs/timelapse.jinja2:25 #: src/octoprint/templates/tabs/timelapse.jinja2:39 msgid "sec" msgstr "Sek" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:268 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:269 msgid "This will restart the print job from the beginning." msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen." -#: src/octoprint/static/js/app/viewmodels/printerstate.js:292 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:296 msgid "This will cancel your print." msgstr "Das wird deinen Druck abbrechen." +#: src/octoprint/static/js/app/viewmodels/printerstate.js:297 +msgid "No" +msgstr "Nein" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:298 +msgid "Yes" +msgstr "Ja" + #: src/octoprint/static/js/app/viewmodels/settings.js:64 #: src/octoprint/static/js/app/viewmodels/settings.js:82 msgid "violet" @@ -1958,47 +2358,61 @@ msgstr "weiß" msgid "Autodetect from browser" msgstr "Automatisch vom Browser erkennen" -#: src/octoprint/static/js/app/viewmodels/settings.js:230 +#: src/octoprint/static/js/app/viewmodels/settings.js:232 msgid "If you see your webcam stream below, the entered stream URL is ok." msgstr "Falls du unten den Webcamstream sehen kannst, ist die Stream-URL ok." -#: src/octoprint/static/js/app/viewmodels/settings.js:236 +#: src/octoprint/static/js/app/viewmodels/settings.js:238 msgid "Stream test" msgstr "Stream Test" -#: src/octoprint/static/js/app/viewmodels/settings.js:249 +#: src/octoprint/static/js/app/viewmodels/settings.js:251 msgid "Could not retrieve snapshot URL, please double check the URL" msgstr "Konnte die Snapshot-URL nicht abgreifen, bitte prüfen" -#: src/octoprint/static/js/app/viewmodels/settings.js:250 +#: src/octoprint/static/js/app/viewmodels/settings.js:252 msgid "Snapshot test failed" msgstr "Snapshot Test fehlgeschlagen" -#: src/octoprint/static/js/app/viewmodels/settings.js:272 -msgid "If you see your webcam snapshot picture below, the entered snapshot URL is ok." +#: src/octoprint/static/js/app/viewmodels/settings.js:274 +msgid "" +"If you see your webcam snapshot picture below, the entered snapshot URL " +"is ok." msgstr "Falls du unten dein Snapshotbild sehen kannst, ist die Snapshot-URL ok." -#: src/octoprint/static/js/app/viewmodels/settings.js:274 +#: src/octoprint/static/js/app/viewmodels/settings.js:276 msgid "Snapshot test" msgstr "Snapshot Test" -#: src/octoprint/static/js/app/viewmodels/slicing.js:107 +#: src/octoprint/static/js/app/viewmodels/slicing.js:123 msgid "Do nothing" msgstr "Nichts machen" -#: src/octoprint/static/js/app/viewmodels/slicing.js:108 +#: src/octoprint/static/js/app/viewmodels/slicing.js:124 msgid "Select for printing" msgstr "Zum Drucken auswählen" -#: src/octoprint/static/js/app/viewmodels/slicing.js:109 +#: src/octoprint/static/js/app/viewmodels/slicing.js:125 msgid "Start printing" msgstr "Drucken" -#: src/octoprint/static/js/app/viewmodels/slicing.js:128 +#: src/octoprint/static/js/app/viewmodels/slicing.js:144 #, python-format msgid "Slicing %(filename)s" msgstr "Slice %(filename)s" +#: src/octoprint/static/js/app/viewmodels/slicing.js:181 +msgid "Cannot slice on the same device while printing" +msgstr "Kann nicht auf dem selben Server slicen, während gedruckt wird" + +#: src/octoprint/static/js/app/viewmodels/slicing.js:183 +msgid "Cannot slice, not all parameters specified" +msgstr "Kann nicht slicen, nicht alle Parameter spezifiziert" + +#: src/octoprint/static/js/app/viewmodels/slicing.js:186 +msgid "Start the slicing process" +msgstr "Starte the Slicingvorgang" + #: src/octoprint/static/js/app/viewmodels/system.js:50 #, python-format msgid "The command \"%(command)s\" executed successfully" @@ -2014,37 +2428,43 @@ msgid "Error" msgstr "Fehler" #: src/octoprint/static/js/app/viewmodels/temperature.js:23 -#: src/octoprint/static/js/app/viewmodels/temperature.js:80 +#: src/octoprint/static/js/app/viewmodels/temperature.js:81 #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:16 msgid "Bed" msgstr "Bett" -#: src/octoprint/static/js/app/viewmodels/temperature.js:123 +#: src/octoprint/static/js/app/viewmodels/temperature.js:124 msgid "just now" msgstr "gerade eben" -#: src/octoprint/static/js/app/viewmodels/temperature.js:125 +#: src/octoprint/static/js/app/viewmodels/temperature.js:126 msgid "min" msgstr "Min" -#: src/octoprint/static/js/app/viewmodels/temperature.js:292 +#: src/octoprint/static/js/app/viewmodels/temperature.js:293 #: src/octoprint/templates/tabs/temperature.jinja2:11 msgid "Actual" msgstr "Ist" -#: src/octoprint/static/js/app/viewmodels/temperature.js:297 +#: src/octoprint/static/js/app/viewmodels/temperature.js:298 #: src/octoprint/templates/tabs/temperature.jinja2:12 msgid "Target" msgstr "Soll" #: src/octoprint/static/js/app/viewmodels/terminal.js:101 #, 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:103 #, 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:107 @@ -2072,8 +2492,12 @@ msgstr "%(minutes)d Min" #: src/octoprint/static/js/app/viewmodels/timelapse.js:274 #, 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:276 #, python-format @@ -2082,12 +2506,20 @@ msgstr "%(seconds)d Sek" #: src/octoprint/static/js/app/viewmodels/timelapse.js:277 #, 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:307 -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:310 msgid "Could not capture snapshots" @@ -2099,8 +2531,13 @@ msgstr "Zeitrafferaufnahme wird gerendert" #: src/octoprint/static/js/app/viewmodels/timelapse.js:320 #, 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:329 msgid "Cannot render timelapse" @@ -2108,8 +2545,12 @@ msgstr "Kann Zeitrafferaufnahme nicht rendern" #: src/octoprint/static/js/app/viewmodels/timelapse.js:330 #, 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:332 #: src/octoprint/static/js/app/viewmodels/timelapse.js:336 @@ -2118,13 +2559,21 @@ msgstr "Rendern von Zeitrafferaufnahme fehlgeschlagen" #: src/octoprint/static/js/app/viewmodels/timelapse.js:333 #, 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:337 #, 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:350 msgid "Timelapse ready" @@ -2164,12 +2613,23 @@ 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" @@ -2180,32 +2640,42 @@ msgid "Select a slicer..." msgstr "Slicer wählen..." #: src/octoprint/templates/dialogs/slicing.jinja2:20 +msgid "Runs locally" +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" + +#: src/octoprint/templates/dialogs/slicing.jinja2:27 msgid "Slicing Profile" msgstr "Slicingprofil" -#: src/octoprint/templates/dialogs/slicing.jinja2:22 +#: src/octoprint/templates/dialogs/slicing.jinja2:29 msgid "Select a slicing profile..." msgstr "Wähle ein Slicingprofile..." -#: src/octoprint/templates/dialogs/slicing.jinja2:26 +#: src/octoprint/templates/dialogs/slicing.jinja2:33 #: src/octoprint/templates/sidebar/connection.jinja2:5 msgid "Printer Profile" msgstr "Druckerprofil" -#: src/octoprint/templates/dialogs/slicing.jinja2:28 +#: src/octoprint/templates/dialogs/slicing.jinja2:35 msgid "Select a printer profile..." msgstr "Wähle ein Druckerprofil..." -#: src/octoprint/templates/dialogs/slicing.jinja2:32 +#: src/octoprint/templates/dialogs/slicing.jinja2:39 msgid "Output Filename" msgstr "Ausgabedateiname" -#: src/octoprint/templates/dialogs/slicing.jinja2:41 +#: src/octoprint/templates/dialogs/slicing.jinja2:48 msgid "After slicing..." msgstr "Nach dem Slicing..." -#: src/octoprint/templates/dialogs/slicing.jinja2:51 -#: src/octoprint/templates/sidebar/files.jinja2:32 +#: src/octoprint/templates/dialogs/slicing.jinja2:58 +#: src/octoprint/templates/sidebar/files.jinja2:35 msgid "Slice" msgstr "Slicen" @@ -2216,7 +2686,8 @@ msgstr "Setup Wizard" #: src/octoprint/templates/dialogs/wizard.jinja2:41 msgid "" "\n" -" Mandatory Step! You need to fill this out now.\n" +" Mandatory " +"Step! You need to fill this out now.\n" " " msgstr "Obligatorischer Schritt! Du musst das jetzt ausfüllen." @@ -2229,8 +2700,12 @@ 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" @@ -2325,8 +2800,12 @@ 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" @@ -2334,10 +2813,11 @@ 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 -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2:23 msgid "Color" msgstr "Farbe" @@ -2362,11 +2842,17 @@ 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." +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 -msgid "Show temperatures in Fahrenheit as well as Celcius" +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 @@ -2395,18 +2881,28 @@ msgstr "Zusätzliche Sprachepakete hochladen" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:95 #: src/octoprint/templates/overlays/dragndrop.jinja2:10 -#: src/octoprint/templates/sidebar/files.jinja2:57 -#: src/octoprint/templates/sidebar/files.jinja2:68 +#: src/octoprint/templates/sidebar/files.jinja2:60 +#: src/octoprint/templates/sidebar/files.jinja2:71 msgid "Upload" msgstr "Upload" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:97 -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" +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:100 -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." +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" @@ -2414,82 +2910,109 @@ 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" msgstr "Beta" #: src/octoprint/templates/dialogs/settings/features.jinja2:19 +msgid "Confirm before cancelling a print" +msgstr "Vor Abbruch eines Druckjobs bestätigen" + +#: src/octoprint/templates/dialogs/settings/features.jinja2:26 msgid "Enable SD support" msgstr "SD-Unterstützung aktivieren" -#: src/octoprint/templates/dialogs/settings/features.jinja2:26 +#: src/octoprint/templates/dialogs/settings/features.jinja2:33 msgid "Enable Keyboard Control" msgstr "Tastatursteuerung aktivieren" -#: src/octoprint/templates/dialogs/settings/features.jinja2:33 +#: src/octoprint/templates/dialogs/settings/features.jinja2:40 msgid "Wait for start on connect" msgstr "Bei der Verbindung auf start warten" -#: src/octoprint/templates/dialogs/settings/features.jinja2:41 +#: src/octoprint/templates/dialogs/settings/features.jinja2:47 msgid "Enable automatic firmware detection" msgstr "Automatische Firmwareerkennung einschalten" -#: src/octoprint/templates/dialogs/settings/features.jinja2:42 +#: src/octoprint/templates/dialogs/settings/features.jinja2:48 msgid "" "\n" -" If enabled, OctoPrint will try to figure out your printer's firmware automatically and adjust a couple of communication parameters based on that.\n" -" 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" +" If enabled, OctoPrint will try to figure out your " +"printer's firmware automatically and adjust a couple of 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 Konfigurationeingeblendet." +msgstr "" +"Falls diese Option eingeschaltet ist, versucht OctoPrint die Firmware des" +" Druckers automatisch zu erkennen und darauf basierend diverse " +"Kommunikationsparameter zu konfigurieren.Falls das für dich nicht korrekt" +" funktioniert oder du mehr Kontrolle haben möchtest, schalte diese Option" +" aus und die entsprechenden Parameter werden zur manuellen " +"Konfigurationeingeblendet." -#: src/octoprint/templates/dialogs/settings/features.jinja2:53 +#: src/octoprint/templates/dialogs/settings/features.jinja2:59 msgid "Select SD files by relative path" msgstr "SD Dateien per relativem Pfad addressieren" -#: src/octoprint/templates/dialogs/settings/features.jinja2:53 +#: src/octoprint/templates/dialogs/settings/features.jinja2:59 msgid "RepRap Firmware" msgstr "RepRap Firmware" -#: src/octoprint/templates/dialogs/settings/features.jinja2:60 +#: src/octoprint/templates/dialogs/settings/features.jinja2:66 msgid "Always assume SD card is present" msgstr "Immer davon ausgehen, dass eine SD-Karte vorhanden ist" -#: src/octoprint/templates/dialogs/settings/features.jinja2:60 -#: src/octoprint/templates/dialogs/settings/features.jinja2:67 -#: src/octoprint/templates/dialogs/settings/features.jinja2:74 -#: src/octoprint/templates/dialogs/settings/features.jinja2:81 -#: src/octoprint/templates/dialogs/settings/features.jinja2:92 +#: src/octoprint/templates/dialogs/settings/features.jinja2:66 +#: src/octoprint/templates/dialogs/settings/features.jinja2:73 +#: src/octoprint/templates/dialogs/settings/features.jinja2:80 +#: src/octoprint/templates/dialogs/settings/features.jinja2:87 +#: src/octoprint/templates/dialogs/settings/features.jinja2:94 +#: src/octoprint/templates/dialogs/settings/features.jinja2:105 msgid "Repetier" msgstr "Repetier" -#: src/octoprint/templates/dialogs/settings/features.jinja2:67 +#: src/octoprint/templates/dialogs/settings/features.jinja2:73 msgid "Ignore consecutive resend requests for the same line" msgstr "Aufeinanderfolgende Resend Requests für die selbe Zeilennummer ignorieren" -#: src/octoprint/templates/dialogs/settings/features.jinja2:74 +#: src/octoprint/templates/dialogs/settings/features.jinja2:80 #, python-format -msgid "Support 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/features.jinja2:81 +#: src/octoprint/templates/dialogs/settings/features.jinja2:87 msgid "Disable detection of external heatups" msgstr "Detektierung externer Aufheizvorgänge deaktivieren" -#: src/octoprint/templates/dialogs/settings/features.jinja2:86 +#: src/octoprint/templates/dialogs/settings/features.jinja2:94 +msgid "Actively pause communication during G4 dwell command" +msgstr "" +"Pausiere Kommunikation mit dem Drucker aktiv während eines " +"G4 dwell Befehls." + +#: src/octoprint/templates/dialogs/settings/features.jinja2:99 msgid "Send a checksum with the command" msgstr "Eine Prüfsumme mit dem Befehl senden" -#: src/octoprint/templates/dialogs/settings/features.jinja2:89 +#: src/octoprint/templates/dialogs/settings/features.jinja2:102 msgid "When printing" msgstr "Beim Drucken" -#: src/octoprint/templates/dialogs/settings/features.jinja2:92 +#: src/octoprint/templates/dialogs/settings/features.jinja2:105 msgid "Always" msgstr "Immer" -#: src/octoprint/templates/dialogs/settings/features.jinja2:95 +#: src/octoprint/templates/dialogs/settings/features.jinja2:108 msgid "Never" msgstr "Nie" @@ -2514,16 +3037,25 @@ msgid "Watched Folder" msgstr "Beobachtetes Verzeichnis" #: src/octoprint/templates/dialogs/settings/folders.jinja2:37 -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:42 msgid "Disk space thresholds" msgstr "Plattenplatzschwellwerte" #: src/octoprint/templates/dialogs/settings/folders.jinja2:44 -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:47 #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:77 @@ -2539,8 +3071,14 @@ msgstr "Kritisch" #: src/octoprint/templates/dialogs/settings/folders.jinja2:59 #: 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" @@ -2571,8 +3109,12 @@ msgid "Before connection to printer is closed" msgstr "Bevor die Verbindung zum Drucker geschlossen wird" #: src/octoprint/templates/dialogs/settings/gcodescripts.jinja2:43 -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" @@ -2580,7 +3122,9 @@ 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" @@ -2600,9 +3144,9 @@ msgstr "Änderungsdatum" #: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:13 -#: src/octoprint/templates/sidebar/files.jinja2:14 -#: src/octoprint/templates/sidebar/files.jinja2:28 -#: src/octoprint/templates/sidebar/files.jinja2:38 +#: src/octoprint/templates/sidebar/files.jinja2:17 +#: src/octoprint/templates/sidebar/files.jinja2:31 +#: src/octoprint/templates/sidebar/files.jinja2:41 #: src/octoprint/templates/tabs/timelapse.jinja2:66 #: src/octoprint/templates/tabs/timelapse.jinja2:72 #: src/octoprint/templates/tabs/timelapse.jinja2:104 @@ -2618,8 +3162,13 @@ msgid "Add Profile..." msgstr "Profil hinzufügen..." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:2 -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:3 #: src/octoprint/templates/sidebar/connection.jinja2:1 @@ -2627,8 +3176,12 @@ msgid "Serial Port" msgstr "Serialport" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:8 -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:9 #: src/octoprint/templates/sidebar/connection.jinja2:3 @@ -2636,8 +3189,12 @@ msgid "Baudrate" msgstr "Baudrate" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:14 -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:17 msgid "Auto-connect to printer on server start" @@ -2645,7 +3202,9 @@ msgstr "Automatisch bei Serverstart verbinden" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:21 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:22 msgid "Temperature interval" @@ -2660,32 +3219,53 @@ msgid "When a target temperature is set" msgstr "Wenn eine Zieltemperatur eingestellt ist" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:38 -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:39 msgid "SD status interval" msgstr "SD-Status-Intervall" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:47 -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. This is also the interval in which the temperature will be polled from the printer while not printing." -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. Das ist ebenfalls das Intervall in welchem die Temperaturdaten vom Drucker abgerufen werden wenn gerade kein Druckjob läuft." +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:48 msgid "Communication timeout" msgstr "Kommunikationstimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:56 -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:57 msgid "Connection timeout" msgstr "Verbindungstimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:65 -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:66 msgid "Autodetection timeout" @@ -2693,7 +3273,9 @@ msgstr "Autodetectiontimeout" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:77 msgid "Log communication to serial.log (might negatively impact performance)" -msgstr "Logge die Kommunikation in das serial.log (kann die Performance negativ beeinflussen)" +msgstr "" +"Logge die Kommunikation in das serial.log (kann die Performance negativ " +"beeinflussen)" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:82 msgid "Additional serial ports" @@ -2701,60 +3283,107 @@ msgstr "Zusätzliche serielle Ports" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:85 #, 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:89 msgid "Additional baud rates" msgstr "Weitere Baudraten" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:92 -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:98 -msgid "Not only cancel ongoing prints but also disconnect on unhandled errors from the firmware." -msgstr "Bei unbehalten Firmwarefehlern nicht nur den Druckauftrag abbrechen, sondern auch die Verbindung zum Drucker trennen." +msgid "" +"Not only cancel ongoing prints but also disconnect on unhandled errors " +"from the firmware." +msgstr "" +"Bei unbehandelten Firmwarefehlern nicht nur den Druckauftrag abbrechen, " +"sondern auch die Verbindung zum Drucker trennen." #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:105 -msgid "Ignore any unhandled errors from the firmware. Only use this if your firmware sends stuff prefixed with \"Error\" that is not an actual error. Might mask printer issues, be careful!" -msgstr "Alle unbehalten Firmwarefehler ignorieren. Nur nutzen wenn Deine Firmware Dinge mit \"Error\" sendet die nicht wirklich Fehler sind. Könnte Druckerprobleme maskieren, vorsicht!" +msgid "" +"Ignore any unhandled errors from the firmware. Only use this if your " +"firmware sends stuff prefixed with \"Error\" that is not an actual error." +" Might mask printer issues, be careful!" +msgstr "" +"Alle unbehandelten Firmwarefehler ignorieren. Nur nutzen wenn Deine " +"Firmware Dinge mit \"Error\" sendet die nicht wirklich Fehler sind. " +"Könnte Druckerprobleme maskieren, vorsicht!" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:113 msgid "Command to send to the firmware on first handshake attempt." -msgstr "Kommando, das als erster Handshakeversuch an die Firmware gesendet werden soll" +msgstr "" +"Kommando, das als erster Handshakeversuch an die Firmware gesendet werden" +" soll" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:114 msgid "\"Hello\" command" msgstr "\"Hallo\"-Befehl" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:117 -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." +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:120 -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." +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:121 msgid "Long running commands" msgstr "Lang laufende Befehle" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:124 -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." +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:127 -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." +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:128 msgid "Commands that always require a checksum" msgstr "Befehle, die immer eine Prüfsumme benötigen" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:131 -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." +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:136 msgid "Generate additional ok for M29" @@ -2762,33 +3391,55 @@ msgstr "Zusätzliches ok für M29 generieren" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:136 msgid "Most Marlin < v1.1.0" -msgstr "Viele Marlin < v1.1.0" +msgstr "Die meisten Varianten von Marlin < v1.1.0" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:141 -msgid "Simulate an additional `ok` for resend requests" -msgstr "Zusätzliches `ok` für Resendrequests simulieren" +msgid "Simulate an additional ok for resend requests" +msgstr "Zusätzliches ok für Resendrequests simulieren" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:144 -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:145 msgid "Max. consecutive timeouts while idle" msgstr "Max. aufeinanderfolgende Timeouts wenn idle" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:150 -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:148 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:155 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:162 +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:151 +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:152 msgid "Max. consecutive timeouts while printing" msgstr "Max. aufeinanderfolgende Timeouts beim Drucken" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:156 -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:158 +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:157 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:159 msgid "Max. consecutive timeouts during long running commands" msgstr "Max. aufeinanderfolgende Timeouts während lang laufender Befehle" @@ -2821,16 +3472,24 @@ 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/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!" @@ -2841,15 +3500,25 @@ msgid "" "\n" " Your OctoPrint installation is now all set up and ready to go. Happy\n" " printing!\n" -msgstr "Deine OctoPrint Installation ist jetzt eingerichtet und es kann losgehen. Happy printing!" +msgstr "" +"Deine OctoPrint Installation ist jetzt eingerichtet und es kann losgehen." +" Happy printing!" #: src/octoprint/templates/dialogs/wizard/firstrun_end.jinja2:8 #, python-format msgid "" "\n" -" If you enjoy OctoPrint, please consider supporting its ongoing\n" -" development, which is fully funded by users like you! You can also find this link in the \"About\" dialog. Thank you!\n" -msgstr "Falls Dir OctoPrint gefällt, bitte denke darüber nach, seine fortlaufende Entwicklung zu unterstützen, welche vollständig durch User wie Dich finanziert wird! Du kannst diesen Link auch im \"Über\" Dialog finden. Vielen Dank!" +" If you enjoy OctoPrint, please consider supporting its ongoing\n" +" development, which is fully funded by users like you! You can " +"also find this link in the \"About\" dialog. Thank you!" +"\n" +msgstr "" +"Falls Dir OctoPrint gefällt, bitte denke darüber nach, seine fortlaufende Entwicklung zu " +"unterstützen, welche vollständig durch User wie Dich finanziert wird!" +" Du kannst diesen Link auch im \"Über\" Dialog finden. Vielen " +"Dank!" #: src/octoprint/templates/dialogs/wizard/firstrun_start.jinja2:1 msgid "Hello!" @@ -2858,28 +3527,33 @@ msgstr "Hallo!" #: src/octoprint/templates/dialogs/wizard/firstrun_start.jinja2:3 msgid "" "\n" -" Thank you for installing OctoPrint! This wizard will lead you through the\n" -" final steps to get your OctoPrint instance all setup and ready to go. We'll\n" +" Thank you for installing OctoPrint! This wizard will lead you through" +" the\n" +" final steps to get your OctoPrint instance all setup and ready to go." +" We'll\n" " get you printing in no time!\n" -msgstr "Danke, dass du OctoPrint installiert hast! Dieser Wizard wird dich nun durch die letzten Schritte begleiten, um deine OctoPrint Instanz fertig einzurichten." +msgstr "" +"Danke, dass du OctoPrint installiert hast! Dieser Wizard wird dich nun " +"durch die letzten Schritte begleiten, um deine OctoPrint Instanz fertig " +"einzurichten." -#: src/octoprint/templates/navbar/login.jinja2:11 +#: src/octoprint/templates/navbar/login.jinja2:12 msgid "Remember me" msgstr "Login merken" -#: src/octoprint/templates/navbar/login.jinja2:16 +#: src/octoprint/templates/navbar/login.jinja2:18 msgid "User Settings" msgstr "Nutzereinstellungen" -#: src/octoprint/templates/navbar/login.jinja2:17 +#: src/octoprint/templates/navbar/login.jinja2:19 msgid "Logout" msgstr "Logout" -#: src/octoprint/templates/navbar/settings.jinja2:2 +#: src/octoprint/templates/navbar/settings.jinja2:1 msgid "Settings" msgstr "Einstellungen" -#: src/octoprint/templates/navbar/systemmenu.jinja2:2 +#: src/octoprint/templates/navbar/systemmenu.jinja2:1 msgid "System" msgstr "System" @@ -2888,7 +3562,7 @@ msgid "Upload locally" msgstr "Upload (lokal)" #: src/octoprint/templates/overlays/dragndrop.jinja2:7 -#: src/octoprint/templates/sidebar/files.jinja2:62 +#: src/octoprint/templates/sidebar/files.jinja2:65 msgid "Upload to SD" msgstr "Upload (SD)" @@ -2907,12 +3581,18 @@ 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" +" 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" @@ -2922,51 +3602,55 @@ msgstr "Verbindungseinstellungen speichern" msgid "Auto-connect on server startup" msgstr "Automatisch bei Serverstart verbinden" -#: src/octoprint/templates/sidebar/files.jinja2:5 +#: src/octoprint/templates/sidebar/files.jinja2:6 msgid "Back" msgstr "Zurück" -#: src/octoprint/templates/sidebar/files.jinja2:13 -#: src/octoprint/templates/sidebar/files.jinja2:27 +#: src/octoprint/templates/sidebar/files.jinja2:7 +msgid "Currently in" +msgstr "Aktuell in" + +#: src/octoprint/templates/sidebar/files.jinja2:16 +#: src/octoprint/templates/sidebar/files.jinja2:30 msgid "Uploaded" msgstr "Hochgeladen" -#: src/octoprint/templates/sidebar/files.jinja2:17 +#: src/octoprint/templates/sidebar/files.jinja2:20 msgid "Additional data" msgstr "Weitere Daten" -#: src/octoprint/templates/sidebar/files.jinja2:18 -#: src/octoprint/templates/sidebar/files.jinja2:30 +#: src/octoprint/templates/sidebar/files.jinja2:21 +#: src/octoprint/templates/sidebar/files.jinja2:33 msgid "Download" msgstr "Download" -#: src/octoprint/templates/sidebar/files.jinja2:19 -#: src/octoprint/templates/sidebar/files.jinja2:31 -#: src/octoprint/templates/sidebar/files.jinja2:40 +#: src/octoprint/templates/sidebar/files.jinja2:22 +#: src/octoprint/templates/sidebar/files.jinja2:34 +#: src/octoprint/templates/sidebar/files.jinja2:43 msgid "Remove" msgstr "Entfernen" -#: src/octoprint/templates/sidebar/files.jinja2:20 +#: src/octoprint/templates/sidebar/files.jinja2:23 msgid "Load" msgstr "Laden" -#: src/octoprint/templates/sidebar/files.jinja2:21 +#: src/octoprint/templates/sidebar/files.jinja2:24 msgid "Load and Print" msgstr "Laden und Drucken" -#: src/octoprint/templates/sidebar/files.jinja2:45 +#: src/octoprint/templates/sidebar/files.jinja2:48 msgid "Free" msgstr "Frei" -#: src/octoprint/templates/sidebar/files.jinja2:45 +#: src/octoprint/templates/sidebar/files.jinja2:48 msgid "Total" msgstr "Gesamt" -#: src/octoprint/templates/sidebar/files.jinja2:50 +#: src/octoprint/templates/sidebar/files.jinja2:53 msgid "Create folder..." msgstr "Neues Verzeichnis..." -#: src/octoprint/templates/sidebar/files.jinja2:80 +#: src/octoprint/templates/sidebar/files.jinja2:83 msgid "Hint: You can also drag and drop files on this page to upload them." msgstr "Hinweis: Du kannst auch Dateien auf diese Seite ziehen um sie hochzuladen." @@ -3060,7 +3744,9 @@ msgstr "Zeitraffer rendern" #: src/octoprint/templates/sidebar/state.jinja2:8 msgid "Estimated total print time base on statical analysis 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:8 msgid "Approx. Total Print Time" @@ -3075,8 +3761,12 @@ msgid "Print Time" msgstr "Dauer" #: src/octoprint/templates/sidebar/state.jinja2:11 -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:11 msgid "Print Time Left" @@ -3107,8 +3797,12 @@ 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" @@ -3133,8 +3827,13 @@ 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ädtst." +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ädtst." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorBuildvolume.jinja2:3 msgid "Form Factor" @@ -3179,10 +3878,15 @@ 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" +" 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" @@ -3201,8 +3905,15 @@ 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ädtst!" +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ädtst!" #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:4 msgid "Nozzle Diameter" @@ -3212,18 +3923,43 @@ msgstr "Düsendurchmesser" msgid "Number of Extruders" msgstr "Anzahl Extruder" -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:21 -msgid "Please specify the nozzle offsets of the extruders relative to the first nozzle T0." -msgstr "Bitte spezifiziere die Düsenoffsets der Extruder relativ zur ersten Düse T0." +#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:20 +msgid "Shared nozzle" +msgstr "Geteilte Düse" -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:27 +#: 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)" + +#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:30 +msgid "" +"Please specify the nozzle offsets of the extruders relative to the first " +"nozzle T0." +msgstr "" +"Bitte spezifiziere die Düsenoffsets der Extruder relativ zur ersten Düse " +"T0." + +#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:36 #: src/octoprint/templates/tabs/temperature.jinja2:13 msgid "Offset" msgstr "Offset" -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:45 -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ädtst." +#: 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ädtst." #: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2:6 msgid "Name must be set" @@ -3300,7 +4036,9 @@ msgstr "Webcam um 90° gegen den Uhrzeigersinn rotieren" #: 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" @@ -3312,15 +4050,21 @@ msgstr "Voll definierte URL, muss von OctoPrints Server erreichbar sein" #: 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:7 msgid "Keyboard controls active" @@ -3359,7 +4103,9 @@ msgid "Stepsize" msgstr "Schrittgröße" #: src/octoprint/templates/tabs/control.jinja2:23 -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:69 @@ -3449,27 +4195,40 @@ msgstr "Neu laden" #: src/octoprint/templates/tabs/gcodeviewer.jinja2:76 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" +" 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" +" 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:87 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" +" 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" @@ -3477,9 +4236,13 @@ msgid "" "

" 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. might be too large for rendering and cause your browser to become unresponsive or crash.\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" @@ -3514,8 +4277,12 @@ msgid "Select all" msgstr "Alles auswählen" #: src/octoprint/templates/tabs/terminal.jinja2:6 -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:20 msgid "Send" @@ -3523,15 +4290,30 @@ msgstr "Senden" #: src/octoprint/templates/tabs/terminal.jinja2:22 msgid "Hint: Use the arrow up/down keys to recall commands sent previously" -msgstr "Hinweis: Nutze die Pfeil hoch/runter Tasten um vorher versandte Befehle wieder aufzurufen " +msgstr "" +"Hinweis: Nutze die Pfeil hoch/runter Tasten um vorher versandte Befehle " +"wieder aufzurufen " #: src/octoprint/templates/tabs/terminal.jinja2:30 msgid "Fake Acknowledgement" msgstr "Bestätigung faken" #: src/octoprint/templates/tabs/terminal.jinja2:31 -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 occurences 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 dass 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 occurences 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 dass du daher versuchen solltest, zu beseitigen!" #: src/octoprint/templates/tabs/terminal.jinja2:34 msgid "Force fancy functionality" @@ -3542,12 +4324,24 @@ msgid "Force terminal output during printing" msgstr "Terminalausgabe beim Druck erzwingen" #: src/octoprint/templates/tabs/terminal.jinja2:36 -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:5 msgid "Timelapse Configuration" @@ -3558,16 +4352,25 @@ msgid "Timelapse Mode" msgstr "Zeitraffermodus" #: src/octoprint/templates/tabs/timelapse.jinja2:13 -msgid "Do not use with spiralized (\"Joris\") vases or similar continuous Z models." -msgstr "Nicht mit spiralisierten Vasen (\"Joris\") oder ähnlichen Modellen mit ständigen Z-Achsen-Änderungen verwenden." +msgid "" +"Do not use with spiralized (\"Joris\") vases or similar continuous Z " +"models." +msgstr "" +"Nicht mit spiralisierten Vasen (\"Joris\") oder ähnlichen Modellen mit " +"ständigen Z-Achsen-Änderungen verwenden." #: src/octoprint/templates/tabs/timelapse.jinja2:14 msgid "Note" msgstr "Bemerkung" #: src/octoprint/templates/tabs/timelapse.jinja2:14 -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:16 msgid "Timelapse frame rate (in frames per second)" @@ -3586,8 +4389,13 @@ msgid "Capture post roll images" msgstr "Bilder für Zeitraffernachlauf aufzeichnen" #: src/octoprint/templates/tabs/timelapse.jinja2:30 -msgid "If this is unchecked, OctoPrint will simply repeat the last frame for the post roll instead of continuing to capture new frames." -msgstr "Wenn diese Option nicht angehakt ist wird OctoPrint einfach den letzten Frame der regulären Aufnahme für den Nachlauf verwenden, anstatt neue Frames aufzuzeichnen." +msgid "" +"If this is unchecked, OctoPrint will simply repeat the last frame for the" +" post roll instead of continuing to capture new frames." +msgstr "" +"Wenn diese Option nicht angehakt ist wird OctoPrint einfach den letzten " +"Frame der regulären Aufnahme für den Nachlauf verwenden, anstatt neue " +"Frames aufzuzeichnen." #: src/octoprint/templates/tabs/timelapse.jinja2:36 msgid "Interval" @@ -3598,8 +4406,16 @@ msgid "Retraction Z-Hop (in mm)" msgstr "Retraction Z-Hop (in mm)" #: src/octoprint/templates/tabs/timelapse.jinja2:49 -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:54 msgid "Save as default" @@ -3656,6 +4472,14 @@ msgstr "Zeitrafferaufnahme rendern" #~ msgid "" #~ msgstr "" +#~ "Falls dir OctoPrint gefällt, bitte ziehe" +#~ " es in Betracht seine fortlaufende Entwicklung zu" +#~ " unterstützen. Diese Entwicklung wird " +#~ "vollständig durch User wie Dich " +#~ "finanziert! Du kannst diesen Link auch" +#~ " im \"Über\" Dialog finden. " +#~ "Danke!" #~ msgid "Bundled" #~ msgstr "Gebundled" @@ -3696,8 +4520,3 @@ msgstr "Zeitrafferaufnahme rendern" #~ msgid "Reboot" #~ msgstr "Neustart" -#~ msgid "" -#~ "\n" -#~ " If you enjoy OctoPrint, please consider supporting its ongoing\n" -#~ " development. It's fully funded by users like you! You can also find this link in the \"About\" dialog. Thank you!\n" -#~ msgstr "Falls dir OctoPrint gefällt, bitte ziehe es in Betracht seine fortlaufende Entwicklung zu unterstützen. Diese Entwicklung wird vollständig durch User wie Dich finanziert! Du kannst diesen Link auch im \"Über\" Dialog finden. Danke!" diff --git a/translations/messages.pot b/translations/messages.pot index 8f461007b..c1a06f0fa 100644 --- a/translations/messages.pot +++ b/translations/messages.pot @@ -1,21 +1,21 @@ # Translations template for OctoPrint. -# Copyright (C) 2016 The OctoPrint Project +# Copyright (C) 2017 The OctoPrint Project # This file is distributed under the same license as the OctoPrint project. -# FIRST AUTHOR , 2016. +# FIRST AUTHOR , 2017. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: OctoPrint 1.3.0.dev1608+gefb2f99.dirty\n" +"Project-Id-Version: OctoPrint 1.3.2rc1.post1.dev0+g8f3602d\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n" -"POT-Creation-Date: 2016-12-02 12:37+0100\n" +"POT-Creation-Date: 2017-03-16 11:53+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.2.0\n" +"Generated-By: Babel 2.3.4\n" #: src/octoprint/plugins/announcements/__init__.py:88 #: src/octoprint/plugins/announcements/templates/announcements.jinja2:4 @@ -93,12 +93,12 @@ msgstr "" #: src/octoprint/plugins/corewizard/__init__.py:80 #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:1 -#: src/octoprint/server/views.py:528 +#: src/octoprint/server/views.py:557 msgid "Access Control" msgstr "" #: src/octoprint/plugins/corewizard/__init__.py:125 -#: src/octoprint/server/views.py:516 +#: src/octoprint/server/views.py:551 msgid "Webcam & Timelapse" msgstr "" @@ -156,16 +156,16 @@ msgstr "" #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:19 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:45 -#: src/octoprint/templates/navbar/login.jinja2:6 #: src/octoprint/templates/navbar/login.jinja2:7 +#: src/octoprint/templates/navbar/login.jinja2:8 msgid "Username" msgstr "" #: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:25 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:51 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:3 -#: src/octoprint/templates/navbar/login.jinja2:8 #: src/octoprint/templates/navbar/login.jinja2:9 +#: src/octoprint/templates/navbar/login.jinja2:10 msgid "Password" msgstr "" @@ -332,22 +332,22 @@ msgid "" msgstr "" #: src/octoprint/plugins/cura/static/js/cura.js:176 -#: src/octoprint/static/js/app/viewmodels/settings.js:296 +#: src/octoprint/static/js/app/viewmodels/settings.js:298 msgid "The path doesn't exist" msgstr "" #: src/octoprint/plugins/cura/static/js/cura.js:178 -#: src/octoprint/static/js/app/viewmodels/settings.js:298 +#: src/octoprint/static/js/app/viewmodels/settings.js:300 msgid "The path is not a file" msgstr "" #: src/octoprint/plugins/cura/static/js/cura.js:180 -#: src/octoprint/static/js/app/viewmodels/settings.js:300 +#: src/octoprint/static/js/app/viewmodels/settings.js:302 msgid "The path is not an executable" msgstr "" #: src/octoprint/plugins/cura/static/js/cura.js:183 -#: src/octoprint/static/js/app/viewmodels/settings.js:303 +#: src/octoprint/static/js/app/viewmodels/settings.js:305 msgid "The path is valid" msgstr "" @@ -519,278 +519,278 @@ msgstr "" msgid "Delete Profile" msgstr "" -#: src/octoprint/plugins/pluginmanager/__init__.py:115 +#: src/octoprint/plugins/pluginmanager/__init__.py:119 msgid "Plugin Manager" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:241 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:406 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:244 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:409 msgid "Installing plugin..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:241 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:244 msgid "Installing plugin from uploaded archive..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:256 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:347 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:424 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:465 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:583 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:786 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:816 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:833 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:850 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:259 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:350 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:427 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:468 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:789 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:819 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:836 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:853 msgid "Something went wrong" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:257 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:348 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:425 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:466 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:260 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:351 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:428 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:469 msgid "Please consult octoprint.log for details" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:408 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:411 #, python-format msgid "Installing plugin \"%(name)s\" from %(url)s..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:410 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:413 #, python-format msgid "Installing plugin from %(url)s..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:413 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:416 msgid "Reinstalling plugin..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:414 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:417 #, python-format msgid "Reinstalling plugin \"%(name)s\" from %(url)s..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:459 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:462 msgid "Uninstalling plugin..." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:459 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:462 #, python-format msgid "Uninstalling plugin \"%(name)s\"" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 msgid "Reinstall" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:172 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:188 msgid "Install" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:543 msgid "Incompatible" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572 msgid "Restart now" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:575 msgid "This will restart your OctoPrint server." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:577 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:580 msgid "Restart in progress" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:578 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:581 msgid "The server is now being restarted in the background" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:584 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:587 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:602 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605 #: src/octoprint/templates/overlays/reloadui.jinja2:14 msgid "Reload now" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:656 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:659 msgid "Done!" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:680 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:683 msgid "Disabled due to active safe mode" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:682 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:685 msgid "Enable Plugin" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:685 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:688 msgid "Disable Plugin" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:770 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:773 msgid "Plugin installed" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:771 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:774 msgid "" "A plugin was installed successfully, however it was impossible to detect " "which one. Please Restart OctoPrint to make sure everything will be " "registered properly" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:775 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:778 #, python-format msgid "Plugin \"%(name)s\" reinstalled" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:776 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:779 msgid "The plugin was reinstalled successfully" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:777 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:780 msgid "" "The plugin was reinstalled successfully, however a restart of OctoPrint " "is needed for that to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:778 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:781 msgid "" "The plugin was reinstalled successfully, however a reload of the page is " "needed for that to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:780 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:783 #, python-format msgid "Plugin \"%(name)s\" installed" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:781 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:784 msgid "The plugin was installed successfully" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:782 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:785 msgid "" "The plugin was installed successfully, however a restart of OctoPrint is " "needed for that to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:783 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:786 msgid "" "The plugin was installed successfully, however a reload of the page is " "needed for that to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:794 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:797 #, python-format msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:796 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:799 #, python-format msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:800 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:803 #, python-format msgid "" "Reinstalling the plugin from URL \"%(url)s\" failed, please see the log " "for details." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:802 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:805 #, python-format msgid "" "Installing the plugin from URL \"%(url)s\" failed, please see the log for" " details." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:811 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814 #, python-format msgid "Plugin \"%(name)s\" uninstalled" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:812 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815 msgid "The plugin was uninstalled successfully" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:813 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:816 msgid "" "The plugin was uninstalled successfully, however a restart of OctoPrint " "is needed for that to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:817 msgid "" "The plugin was uninstalled successfully, however a reload of the page is " "needed for that to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:818 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:821 #, python-format msgid "Uninstalling the plugin failed: %(reason)s" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:820 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:823 msgid "Uninstalling the plugin failed, please see the log for details." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:828 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:831 #, python-format msgid "Plugin \"%(name)s\" enabled" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:829 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:832 msgid "The plugin was enabled successfully." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:830 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:833 msgid "" "The plugin was enabled successfully, however a restart of OctoPrint is " "needed for that to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:831 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:834 msgid "" "The plugin was enabled successfully, however a reload of the page is " "needed for that to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:835 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:852 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:838 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:855 #, python-format msgid "Toggling the plugin failed: %(reason)s" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:837 -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:854 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:840 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:857 msgid "Toggling the plugin failed, please see the log for details." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:845 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:848 #, python-format msgid "Plugin \"%(name)s\" disabled" msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:846 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:849 msgid "The plugin was disabled successfully." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:847 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:850 msgid "" "The plugin was disabled successfully, however a restart of OctoPrint is " "needed for that to take effect." msgstr "" -#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:848 +#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:851 msgid "" "The plugin was disabled successfully, however a reload of the page is " "needed for that to take effect." @@ -1015,7 +1015,7 @@ msgstr "" #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:92 #: src/octoprint/static/js/app/helpers.js:639 #: src/octoprint/templates/dialogs/files.jinja2:18 -#: src/octoprint/templates/dialogs/slicing.jinja2:50 +#: src/octoprint/templates/dialogs/slicing.jinja2:57 #: src/octoprint/templates/sidebar/state.jinja2:25 msgid "Cancel" msgstr "" @@ -1025,171 +1025,172 @@ msgstr "" msgid "Save" msgstr "" -#: src/octoprint/plugins/softwareupdate/__init__.py:496 +#: src/octoprint/plugins/softwareupdate/__init__.py:533 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:1 msgid "Software Update" msgstr "" -#: src/octoprint/plugins/softwareupdate/__init__.py:810 -#: src/octoprint/server/views.py:520 -#: src/octoprint/static/js/app/viewmodels/appearance.js:11 +#: src/octoprint/plugins/softwareupdate/__init__.py:869 +#: src/octoprint/server/views.py:555 #: 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/templates/dialogs/about/about.jinja2:1 msgid "OctoPrint" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:216 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:219 msgid "Release" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:217 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:220 msgid "Commit" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:256 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:259 #, python-format msgid "%(name)s: %(version)s" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:259 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:262 msgid "unknown" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:289 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:292 msgid "There are updates available for the following components:" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:297 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:300 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate.jinja2:14 msgid "Release Notes" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:303 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:306 msgid "" "Those components marked with can be updated " "directly." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:308 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:311 msgid "Update Available" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:319 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:322 msgid "Ignore" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:323 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:326 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:327 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:330 msgid "Update now" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:344 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:347 msgid "Everything is up-to-date" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:403 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:417 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:558 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:406 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:420 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:561 msgid "Updating..." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:404 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:407 msgid "Now updating, please wait." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:417 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:558 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:420 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:561 msgid "Updating, please wait." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:422 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:425 msgid "Update not started!" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:423 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:426 msgid "" "The update could not be started. Is it already active? Please consult the" " log for details." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:439 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:442 msgid "Can't update while printing" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:440 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:443 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:561 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:564 #, python-format msgid "Now updating %(name)s to %(version)s" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:580 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:583 msgid "Update successful, restarting!" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:581 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:584 msgid "The update finished successfully and the server will now be restarted." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:598 -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:647 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:601 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:650 msgid "Restart failed" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:599 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:602 msgid "" "The server apparently did not restart by itself, you'll have to do it " "manually. Please consult the log file on what went wrong." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:621 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:624 msgid "The update finished successfully, please restart OctoPrint now." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:623 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:626 msgid "The update finished successfully, please reboot the server now." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:626 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:629 msgid "Update successful, restart required!" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:642 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:645 msgid "" "Restarting OctoPrint failed, please restart it manually. You might also " "want to consult the log file on what went wrong here." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:644 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:647 msgid "" "Rebooting the server failed, please reboot it manually. You might also " "want to consult the log file on what went wrong here." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:663 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:666 msgid "Update successful!" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:664 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:667 msgid "The update finished successfully." msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:679 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:682 msgid "Update failed!" msgstr "" -#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:680 +#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:683 msgid "" "The update did not finish successfully. Please consult the log for " "details." @@ -1331,143 +1332,151 @@ msgstr "" msgid "OctoPrint version tracking" msgstr "" -#: src/octoprint/server/views.py:426 +#: src/octoprint/server/views.py:465 msgid "Plugins" msgstr "" -#: src/octoprint/server/views.py:485 +#: src/octoprint/server/views.py:522 msgid "Connection" msgstr "" -#: src/octoprint/server/views.py:486 +#: src/octoprint/server/views.py:523 #: src/octoprint/templates/sidebar/state.jinja2:1 msgid "State" msgstr "" -#: src/octoprint/server/views.py:487 +#: src/octoprint/server/views.py:524 msgid "Files" msgstr "" -#: src/octoprint/server/views.py:493 +#: src/octoprint/server/views.py:530 msgid "Temperature" msgstr "" -#: src/octoprint/server/views.py:494 +#: src/octoprint/server/views.py:531 msgid "Control" msgstr "" -#: src/octoprint/server/views.py:495 -msgid "Terminal" -msgstr "" - -#: src/octoprint/server/views.py:498 +#: src/octoprint/server/views.py:532 msgid "GCode Viewer" msgstr "" -#: src/octoprint/server/views.py:500 +#: src/octoprint/server/views.py:533 +msgid "Terminal" +msgstr "" + +#: src/octoprint/server/views.py:534 #: src/octoprint/templates/sidebar/state.jinja2:4 msgid "Timelapse" msgstr "" -#: src/octoprint/server/views.py:505 +#: src/octoprint/server/views.py:540 msgid "Printer" msgstr "" -#: src/octoprint/server/views.py:507 +#: src/octoprint/server/views.py:542 msgid "Serial Connection" msgstr "" -#: src/octoprint/server/views.py:508 +#: src/octoprint/server/views.py:543 #: src/octoprint/templates/dialogs/settings/printerprofiles.jinja2:1 msgid "Printer Profiles" msgstr "" -#: src/octoprint/server/views.py:509 +#: src/octoprint/server/views.py:544 msgid "Temperatures" msgstr "" -#: src/octoprint/server/views.py:510 +#: src/octoprint/server/views.py:545 msgid "Terminal Filters" msgstr "" -#: src/octoprint/server/views.py:511 +#: src/octoprint/server/views.py:546 msgid "GCODE Scripts" msgstr "" -#: src/octoprint/server/views.py:513 src/octoprint/server/views.py:515 +#: src/octoprint/server/views.py:548 src/octoprint/server/views.py:550 msgid "Features" msgstr "" -#: src/octoprint/server/views.py:517 +#: src/octoprint/server/views.py:552 msgid "GCODE Visualizer" msgstr "" -#: src/octoprint/server/views.py:518 +#: src/octoprint/server/views.py:553 msgid "API" msgstr "" -#: src/octoprint/server/views.py:522 +#: src/octoprint/server/views.py:558 #: src/octoprint/templates/dialogs/settings/folders.jinja2:2 #: src/octoprint/templates/sidebar/files_header.jinja2:10 msgid "Folders" msgstr "" -#: src/octoprint/server/views.py:523 +#: src/octoprint/server/views.py:559 msgid "Appearance" msgstr "" -#: src/octoprint/server/views.py:524 +#: src/octoprint/server/views.py:560 #: src/octoprint/templates/dialogs/settings/logs.jinja2:2 msgid "Logs" msgstr "" -#: src/octoprint/server/views.py:525 +#: src/octoprint/server/views.py:561 msgid "Server" msgstr "" -#: src/octoprint/server/views.py:534 +#: src/octoprint/server/views.py:567 msgid "Access" msgstr "" -#: src/octoprint/server/views.py:535 +#: src/octoprint/server/views.py:568 msgid "Interface" msgstr "" -#: src/octoprint/server/views.py:551 +#: src/octoprint/server/views.py:584 msgid "Start" msgstr "" -#: src/octoprint/server/views.py:552 +#: src/octoprint/server/views.py:585 #: src/octoprint/templates/dialogs/wizard.jinja2:57 msgid "Finish" msgstr "" -#: src/octoprint/server/api/system.py:132 +#: src/octoprint/server/api/system.py:146 #: src/octoprint/templates/snippets/settings/server/serverCommandSystemShutdown.jinja2:2 msgid "Shutdown system" msgstr "" -#: src/octoprint/server/api/system.py:133 +#: src/octoprint/server/api/system.py:147 msgid "You are about to shutdown the system." msgstr "" -#: src/octoprint/server/api/system.py:136 +#: src/octoprint/server/api/system.py:150 msgid "Reboot system" msgstr "" -#: src/octoprint/server/api/system.py:137 +#: src/octoprint/server/api/system.py:151 msgid "You are about to reboot the system." msgstr "" -#: src/octoprint/server/api/system.py:140 +#: src/octoprint/server/api/system.py:154 #: src/octoprint/templates/snippets/settings/server/serverCommandServerRestart.jinja2:2 msgid "Restart OctoPrint" msgstr "" -#: src/octoprint/server/api/system.py:141 +#: src/octoprint/server/api/system.py:155 msgid "You are about to restart the OctoPrint server." msgstr "" +#: src/octoprint/server/api/system.py:158 +msgid "Restart OctoPrint in safe mode" +msgstr "" + +#: src/octoprint/server/api/system.py:159 +msgid "You are about to restart the OctoPrint server in safe mode." +msgstr "" + #: src/octoprint/static/js/app/dataupdater.js:79 #: src/octoprint/static/js/app/dataupdater.js:98 #: src/octoprint/static/js/app/helpers.js:566 @@ -1501,8 +1510,8 @@ msgid "" msgstr "" #: src/octoprint/static/js/app/dataupdater.js:170 -#: src/octoprint/static/js/app/viewmodels/files.js:848 -#: src/octoprint/static/js/app/viewmodels/files.js:855 +#: src/octoprint/static/js/app/viewmodels/files.js:846 +#: src/octoprint/static/js/app/viewmodels/files.js:853 #, python-format msgid "Slicing ... (%(percentage)d%%)" msgstr "" @@ -1672,15 +1681,15 @@ msgid "Disconnect" msgstr "" #: src/octoprint/static/js/app/viewmodels/control.js:62 -#: src/octoprint/static/js/app/viewmodels/files.js:589 -#: src/octoprint/static/js/app/viewmodels/gcode.js:482 -#: src/octoprint/static/js/app/viewmodels/printerstate.js:231 -#: src/octoprint/static/js/app/viewmodels/temperature.js:62 +#: src/octoprint/static/js/app/viewmodels/files.js:586 +#: src/octoprint/static/js/app/viewmodels/gcode.js:489 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:232 +#: src/octoprint/static/js/app/viewmodels/temperature.js:63 msgid "Tool" msgstr "" #: src/octoprint/static/js/app/viewmodels/control.js:68 -#: src/octoprint/static/js/app/viewmodels/temperature.js:73 +#: src/octoprint/static/js/app/viewmodels/temperature.js:74 msgid "Hotend" msgstr "" @@ -1696,122 +1705,122 @@ msgstr "" msgid "Your current disk usage." msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:390 +#: src/octoprint/static/js/app/viewmodels/files.js:387 #, python-format msgid "" "You are about to delete the folder \"%(folder)s\" which still contains " "files and/or sub folders." msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:578 -#: src/octoprint/static/js/app/viewmodels/gcode.js:441 +#: src/octoprint/static/js/app/viewmodels/files.js:575 +#: src/octoprint/static/js/app/viewmodels/gcode.js:448 msgid "Model size" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:584 -#: src/octoprint/static/js/app/viewmodels/files.js:589 -#: src/octoprint/static/js/app/viewmodels/gcode.js:479 -#: src/octoprint/static/js/app/viewmodels/gcode.js:482 +#: src/octoprint/static/js/app/viewmodels/files.js:581 +#: src/octoprint/static/js/app/viewmodels/files.js:586 +#: src/octoprint/static/js/app/viewmodels/gcode.js:486 +#: src/octoprint/static/js/app/viewmodels/gcode.js:489 msgid "Filament" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:593 -#: src/octoprint/static/js/app/viewmodels/gcode.js:486 +#: src/octoprint/static/js/app/viewmodels/files.js:590 +#: src/octoprint/static/js/app/viewmodels/gcode.js:493 msgid "Estimated print time" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:596 +#: src/octoprint/static/js/app/viewmodels/files.js:593 msgid "Last printed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:598 +#: src/octoprint/static/js/app/viewmodels/files.js:595 msgid "Last print time" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:658 +#: src/octoprint/static/js/app/viewmodels/files.js:655 #, python-format msgid "" "Object in %(name)s exceeds the print volume of the currently selected " "printer profile, be careful when printing this." msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:668 +#: src/octoprint/static/js/app/viewmodels/files.js:665 msgid "Object exceeds print volume in width.
" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:671 +#: src/octoprint/static/js/app/viewmodels/files.js:668 msgid "Object exceeds print volume in depth.
" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:674 +#: src/octoprint/static/js/app/viewmodels/files.js:671 msgid "Object exceeds print volume in height.
" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:680 +#: src/octoprint/static/js/app/viewmodels/files.js:677 msgid "" "Object's bounding box: (%(object.minX).2f, %(object.minY).2f, " "%(object.minZ).2f) × (%(object.maxX).2f, %(object.maxY).2f, " "%(object.maxZ).2f)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:682 +#: src/octoprint/static/js/app/viewmodels/files.js:679 msgid "" "Print volume: (%(profile.minX).2f, %(profile.minY).2f, " "%(profile.minZ).2f) × (%(profile.maxX).2f, %(profile.maxY).2f, " "%(profile.maxZ).2f)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:689 +#: src/octoprint/static/js/app/viewmodels/files.js:686 msgid "Object doesn't fit print volume" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:850 +#: src/octoprint/static/js/app/viewmodels/files.js:848 msgid "Slicing ..." msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:876 +#: src/octoprint/static/js/app/viewmodels/files.js:874 msgid "Slicing done" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:877 +#: src/octoprint/static/js/app/viewmodels/files.js:875 #, python-format msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:892 +#: src/octoprint/static/js/app/viewmodels/files.js:890 #, python-format msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:893 +#: src/octoprint/static/js/app/viewmodels/files.js:891 msgid "Slicing failed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:910 +#: src/octoprint/static/js/app/viewmodels/files.js:908 msgid "Streaming ..." msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:922 +#: src/octoprint/static/js/app/viewmodels/files.js:920 msgid "Streaming done" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:923 +#: src/octoprint/static/js/app/viewmodels/files.js:921 #, python-format msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:1019 +#: src/octoprint/static/js/app/viewmodels/files.js:1017 #, python-format msgid "" "Could not upload the file. Make sure that it is a valid file with one of " "these extensions: %(extensions)s" msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:1040 +#: src/octoprint/static/js/app/viewmodels/files.js:1038 msgid "Saving ..." msgstr "" -#: src/octoprint/static/js/app/viewmodels/files.js:1040 +#: src/octoprint/static/js/app/viewmodels/files.js:1038 msgid "Uploading ..." msgstr "" @@ -1827,252 +1836,266 @@ msgstr "" msgid "Analyzed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:442 +#: src/octoprint/static/js/app/viewmodels/gcode.js:449 msgid "Estimated total print time" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:443 +#: src/octoprint/static/js/app/viewmodels/gcode.js:450 msgid "Estimated layer height" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:443 +#: src/octoprint/static/js/app/viewmodels/gcode.js:450 #: src/octoprint/templates/tabs/timelapse.jinja2:47 msgid "mm" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:444 +#: src/octoprint/static/js/app/viewmodels/gcode.js:451 msgid "Layer count" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:444 +#: src/octoprint/static/js/app/viewmodels/gcode.js:451 msgid "printed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:444 +#: src/octoprint/static/js/app/viewmodels/gcode.js:451 msgid "visited" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:474 +#: src/octoprint/static/js/app/viewmodels/gcode.js:481 msgid "Layer number" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:475 +#: src/octoprint/static/js/app/viewmodels/gcode.js:482 msgid "Layer height" msgstr "" -#: src/octoprint/static/js/app/viewmodels/gcode.js:476 +#: src/octoprint/static/js/app/viewmodels/gcode.js:483 msgid "GCODE commands" msgstr "" #: src/octoprint/static/js/app/viewmodels/loginstate.js:26 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:34 #: src/octoprint/templates/navbar/login.jinja2:2 -#: src/octoprint/templates/navbar/login.jinja2:13 +#: src/octoprint/templates/navbar/login.jinja2:14 msgid "Login" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:73 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:32 +#, python-format +msgid "Logged in as %(name)s" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/loginstate.js:87 msgid "Login successful" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:73 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:87 #, python-format msgid "You are now logged in as \"%(username)s\"" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:81 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:99 msgid "Login failed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:81 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:99 msgid "User unknown or wrong password" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:88 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:106 msgid "Logout successful" msgstr "" -#: src/octoprint/static/js/app/viewmodels/loginstate.js:88 +#: src/octoprint/static/js/app/viewmodels/loginstate.js:106 msgid "You are now logged out" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:136 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:138 msgid "Identifier must be set" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:138 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:140 msgid "Invalid characters, only a-z, A-Z, 0-9, -, ., _, ( and ) are allowed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:140 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:142 msgid "A profile with such an identifier already exists" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:153 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:155 #: src/octoprint/static/js/app/viewmodels/settings.js:58 #: src/octoprint/static/js/app/viewmodels/settings.js:88 msgid "default" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:154 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:156 #: src/octoprint/static/js/app/viewmodels/settings.js:59 #: src/octoprint/static/js/app/viewmodels/settings.js:72 msgid "red" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:155 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:157 #: src/octoprint/static/js/app/viewmodels/settings.js:60 #: src/octoprint/static/js/app/viewmodels/settings.js:74 msgid "orange" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:156 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:158 #: src/octoprint/static/js/app/viewmodels/settings.js:61 #: src/octoprint/static/js/app/viewmodels/settings.js:76 msgid "yellow" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:157 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:159 #: src/octoprint/static/js/app/viewmodels/settings.js:62 #: src/octoprint/static/js/app/viewmodels/settings.js:78 msgid "green" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:158 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:160 #: src/octoprint/static/js/app/viewmodels/settings.js:63 #: src/octoprint/static/js/app/viewmodels/settings.js:80 msgid "blue" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:159 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:161 #: src/octoprint/static/js/app/viewmodels/settings.js:65 #: src/octoprint/static/js/app/viewmodels/settings.js:84 msgid "black" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:166 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:168 msgid "Lower Left" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:167 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:169 msgid "Center" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:482 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:486 msgid "" "There was unexpected error while saving the printer profile, please " "consult the logs." msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:483 -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:498 -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:520 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:487 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:502 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:524 msgid "Saving failed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:497 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:501 msgid "" "There was unexpected error while removing the printer profile, please " "consult the logs." msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:519 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:523 msgid "" "There was unexpected error while updating the printer profile, please " "consult the logs." msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:535 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:539 msgid "Add Printer Profile" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:535 +#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:539 #, python-format msgid "Edit Printer Profile \"%(name)s\"" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:46 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:47 msgid "Restarts the print job from the beginning" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:47 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:48 msgid "Starts the print job" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:48 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:49 msgid "Resumes the print job" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:49 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:50 msgid "Pauses the print job" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:82 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:83 msgid "Still stabilizing..." msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:92 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:93 msgid "" "Based on a linear approximation (very low accuracy, especially at the " "beginning of the print)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:95 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:96 msgid "Based on the estimate from analysis of file (medium accuracy)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:98 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:99 msgid "Based on a mix of estimate from analysis and calculation (medium accuracy)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:101 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:102 msgid "" "Based on the average total of past prints of this model with the same " "printer profile (usually good accuracy)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:104 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:105 msgid "" "Based on a mix of average total from past prints and calculation (usually" " good accuracy)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:107 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:108 msgid "Based on the calculated estimate (best accuracy)" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:145 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:146 msgid "Continue" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:147 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:148 #: src/octoprint/templates/sidebar/state.jinja2:24 msgid "Pause" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:158 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:159 #: src/octoprint/templates/tabs/timelapse.jinja2:11 msgid "On Z Change" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:160 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:161 #: src/octoprint/templates/tabs/timelapse.jinja2:10 msgid "Timed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:160 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:161 #: src/octoprint/templates/tabs/timelapse.jinja2:25 #: src/octoprint/templates/tabs/timelapse.jinja2:39 msgid "sec" msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:268 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:269 msgid "This will restart the print job from the beginning." msgstr "" -#: src/octoprint/static/js/app/viewmodels/printerstate.js:292 +#: src/octoprint/static/js/app/viewmodels/printerstate.js:296 msgid "This will cancel your print." msgstr "" +#: src/octoprint/static/js/app/viewmodels/printerstate.js:297 +msgid "No" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/printerstate.js:298 +msgid "Yes" +msgstr "" + #: src/octoprint/static/js/app/viewmodels/settings.js:64 #: src/octoprint/static/js/app/viewmodels/settings.js:82 msgid "violet" @@ -2087,49 +2110,61 @@ msgstr "" msgid "Autodetect from browser" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:230 +#: src/octoprint/static/js/app/viewmodels/settings.js:232 msgid "If you see your webcam stream below, the entered stream URL is ok." msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:236 +#: src/octoprint/static/js/app/viewmodels/settings.js:238 msgid "Stream test" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:249 +#: src/octoprint/static/js/app/viewmodels/settings.js:251 msgid "Could not retrieve snapshot URL, please double check the URL" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:250 +#: src/octoprint/static/js/app/viewmodels/settings.js:252 msgid "Snapshot test failed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:272 +#: src/octoprint/static/js/app/viewmodels/settings.js:274 msgid "" "If you see your webcam snapshot picture below, the entered snapshot URL " "is ok." msgstr "" -#: src/octoprint/static/js/app/viewmodels/settings.js:274 +#: src/octoprint/static/js/app/viewmodels/settings.js:276 msgid "Snapshot test" msgstr "" -#: src/octoprint/static/js/app/viewmodels/slicing.js:107 +#: src/octoprint/static/js/app/viewmodels/slicing.js:123 msgid "Do nothing" msgstr "" -#: src/octoprint/static/js/app/viewmodels/slicing.js:108 +#: src/octoprint/static/js/app/viewmodels/slicing.js:124 msgid "Select for printing" msgstr "" -#: src/octoprint/static/js/app/viewmodels/slicing.js:109 +#: src/octoprint/static/js/app/viewmodels/slicing.js:125 msgid "Start printing" msgstr "" -#: src/octoprint/static/js/app/viewmodels/slicing.js:128 +#: src/octoprint/static/js/app/viewmodels/slicing.js:144 #, python-format msgid "Slicing %(filename)s" msgstr "" +#: src/octoprint/static/js/app/viewmodels/slicing.js:181 +msgid "Cannot slice on the same device while printing" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/slicing.js:183 +msgid "Cannot slice, not all parameters specified" +msgstr "" + +#: src/octoprint/static/js/app/viewmodels/slicing.js:186 +msgid "Start the slicing process" +msgstr "" + #: src/octoprint/static/js/app/viewmodels/system.js:50 #, python-format msgid "The command \"%(command)s\" executed successfully" @@ -2145,25 +2180,25 @@ msgid "Error" msgstr "" #: src/octoprint/static/js/app/viewmodels/temperature.js:23 -#: src/octoprint/static/js/app/viewmodels/temperature.js:80 +#: src/octoprint/static/js/app/viewmodels/temperature.js:81 #: src/octoprint/templates/dialogs/settings/temperatures.jinja2:16 msgid "Bed" msgstr "" -#: src/octoprint/static/js/app/viewmodels/temperature.js:123 +#: src/octoprint/static/js/app/viewmodels/temperature.js:124 msgid "just now" msgstr "" -#: src/octoprint/static/js/app/viewmodels/temperature.js:125 +#: src/octoprint/static/js/app/viewmodels/temperature.js:126 msgid "min" msgstr "" -#: src/octoprint/static/js/app/viewmodels/temperature.js:292 +#: src/octoprint/static/js/app/viewmodels/temperature.js:293 #: src/octoprint/templates/tabs/temperature.jinja2:11 msgid "Actual" msgstr "" -#: src/octoprint/static/js/app/viewmodels/temperature.js:297 +#: src/octoprint/static/js/app/viewmodels/temperature.js:298 #: src/octoprint/templates/tabs/temperature.jinja2:12 msgid "Target" msgstr "" @@ -2334,32 +2369,40 @@ msgid "Select a slicer..." msgstr "" #: src/octoprint/templates/dialogs/slicing.jinja2:20 +msgid "Runs locally" +msgstr "" + +#: src/octoprint/templates/dialogs/slicing.jinja2:23 +msgid "For performance reasons locally run slicers are disabled while printing" +msgstr "" + +#: src/octoprint/templates/dialogs/slicing.jinja2:27 msgid "Slicing Profile" msgstr "" -#: src/octoprint/templates/dialogs/slicing.jinja2:22 +#: src/octoprint/templates/dialogs/slicing.jinja2:29 msgid "Select a slicing profile..." msgstr "" -#: src/octoprint/templates/dialogs/slicing.jinja2:26 +#: src/octoprint/templates/dialogs/slicing.jinja2:33 #: src/octoprint/templates/sidebar/connection.jinja2:5 msgid "Printer Profile" msgstr "" -#: src/octoprint/templates/dialogs/slicing.jinja2:28 +#: src/octoprint/templates/dialogs/slicing.jinja2:35 msgid "Select a printer profile..." msgstr "" -#: src/octoprint/templates/dialogs/slicing.jinja2:32 +#: src/octoprint/templates/dialogs/slicing.jinja2:39 msgid "Output Filename" msgstr "" -#: src/octoprint/templates/dialogs/slicing.jinja2:41 +#: src/octoprint/templates/dialogs/slicing.jinja2:48 msgid "After slicing..." msgstr "" -#: src/octoprint/templates/dialogs/slicing.jinja2:51 -#: src/octoprint/templates/sidebar/files.jinja2:32 +#: src/octoprint/templates/dialogs/slicing.jinja2:58 +#: src/octoprint/templates/sidebar/files.jinja2:35 msgid "Slice" msgstr "" @@ -2496,7 +2539,6 @@ msgid "Personalize the color of the navigation bar - maybe to match your printer msgstr "" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:9 -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorGeneral.jinja2:23 msgid "Color" msgstr "" @@ -2528,7 +2570,7 @@ msgid "" msgstr "" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:42 -msgid "Show temperatures in Fahrenheit as well as Celcius" +msgid "Show temperatures in Fahrenheit as well as Celsius" msgstr "" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:51 @@ -2557,8 +2599,8 @@ msgstr "" #: src/octoprint/templates/dialogs/settings/appearance.jinja2:95 #: src/octoprint/templates/overlays/dragndrop.jinja2:10 -#: src/octoprint/templates/sidebar/files.jinja2:57 -#: src/octoprint/templates/sidebar/files.jinja2:68 +#: src/octoprint/templates/sidebar/files.jinja2:60 +#: src/octoprint/templates/sidebar/files.jinja2:71 msgid "Upload" msgstr "" @@ -2588,22 +2630,26 @@ msgid "Beta" msgstr "" #: src/octoprint/templates/dialogs/settings/features.jinja2:19 -msgid "Enable SD support" +msgid "Confirm before cancelling a print" msgstr "" #: src/octoprint/templates/dialogs/settings/features.jinja2:26 -msgid "Enable Keyboard Control" +msgid "Enable SD support" msgstr "" #: src/octoprint/templates/dialogs/settings/features.jinja2:33 +msgid "Enable Keyboard Control" +msgstr "" + +#: src/octoprint/templates/dialogs/settings/features.jinja2:40 msgid "Wait for start on connect" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:41 +#: src/octoprint/templates/dialogs/settings/features.jinja2:47 msgid "Enable automatic firmware detection" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:42 +#: src/octoprint/templates/dialogs/settings/features.jinja2:48 msgid "" "\n" " If enabled, OctoPrint will try to figure out your " @@ -2615,54 +2661,59 @@ msgid "" " " msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:53 +#: src/octoprint/templates/dialogs/settings/features.jinja2:59 msgid "Select SD files by relative path" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:53 +#: src/octoprint/templates/dialogs/settings/features.jinja2:59 msgid "RepRap Firmware" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:60 +#: src/octoprint/templates/dialogs/settings/features.jinja2:66 msgid "Always assume SD card is present" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:60 -#: src/octoprint/templates/dialogs/settings/features.jinja2:67 -#: src/octoprint/templates/dialogs/settings/features.jinja2:74 -#: src/octoprint/templates/dialogs/settings/features.jinja2:81 -#: src/octoprint/templates/dialogs/settings/features.jinja2:92 +#: src/octoprint/templates/dialogs/settings/features.jinja2:66 +#: src/octoprint/templates/dialogs/settings/features.jinja2:73 +#: src/octoprint/templates/dialogs/settings/features.jinja2:80 +#: src/octoprint/templates/dialogs/settings/features.jinja2:87 +#: src/octoprint/templates/dialogs/settings/features.jinja2:94 +#: src/octoprint/templates/dialogs/settings/features.jinja2:105 msgid "Repetier" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:67 +#: src/octoprint/templates/dialogs/settings/features.jinja2:73 msgid "Ignore consecutive resend requests for the same line" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:74 +#: src/octoprint/templates/dialogs/settings/features.jinja2:80 #, python-format msgid "" "Support TargetExtr%%n/TargetBed target " "temperature format" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:81 +#: src/octoprint/templates/dialogs/settings/features.jinja2:87 msgid "Disable detection of external heatups" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:86 +#: src/octoprint/templates/dialogs/settings/features.jinja2:94 +msgid "Actively pause communication during G4 dwell command" +msgstr "" + +#: src/octoprint/templates/dialogs/settings/features.jinja2:99 msgid "Send a checksum with the command" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:89 +#: src/octoprint/templates/dialogs/settings/features.jinja2:102 msgid "When printing" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:92 +#: src/octoprint/templates/dialogs/settings/features.jinja2:105 msgid "Always" msgstr "" -#: src/octoprint/templates/dialogs/settings/features.jinja2:95 +#: src/octoprint/templates/dialogs/settings/features.jinja2:108 msgid "Never" msgstr "" @@ -2782,9 +2833,9 @@ msgstr "" #: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:13 -#: src/octoprint/templates/sidebar/files.jinja2:14 -#: src/octoprint/templates/sidebar/files.jinja2:28 -#: src/octoprint/templates/sidebar/files.jinja2:38 +#: src/octoprint/templates/sidebar/files.jinja2:17 +#: src/octoprint/templates/sidebar/files.jinja2:31 +#: src/octoprint/templates/sidebar/files.jinja2:41 #: src/octoprint/templates/tabs/timelapse.jinja2:66 #: src/octoprint/templates/tabs/timelapse.jinja2:72 #: src/octoprint/templates/tabs/timelapse.jinja2:104 @@ -2862,8 +2913,7 @@ 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. This is also the interval in which the " -"temperature will be polled from the printer while not printing." +"than this for some moves." msgstr "" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:48 @@ -2986,7 +3036,7 @@ msgid "Most Marlin < v1.1.0" msgstr "" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:141 -msgid "Simulate an additional `ok` for resend requests" +msgid "Simulate an additional ok for resend requests" msgstr "" #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:144 @@ -2999,24 +3049,30 @@ msgstr "" msgid "Max. consecutive timeouts while idle" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:150 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:148 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:155 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:162 +msgid "Set to 0 to disable consecutive timeout detection and handling." +msgstr "" + +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:151 msgid "" "Maximum consecutive communication timeouts while printing. More than this" " and the printer will be considered to be gone. Set to 0 to disable." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:151 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:152 msgid "Max. consecutive timeouts while printing" msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:156 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:158 msgid "" "Maximum consecutive communication timeouts while a long running command " "is active. More than this and the printer will be considered to be gone. " "Set to 0 to disable." msgstr "" -#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:157 +#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:159 msgid "Max. consecutive timeouts during long running commands" msgstr "" @@ -3100,23 +3156,23 @@ msgid "" " get you printing in no time!\n" msgstr "" -#: src/octoprint/templates/navbar/login.jinja2:11 +#: src/octoprint/templates/navbar/login.jinja2:12 msgid "Remember me" msgstr "" -#: src/octoprint/templates/navbar/login.jinja2:16 +#: src/octoprint/templates/navbar/login.jinja2:18 msgid "User Settings" msgstr "" -#: src/octoprint/templates/navbar/login.jinja2:17 +#: src/octoprint/templates/navbar/login.jinja2:19 msgid "Logout" msgstr "" -#: src/octoprint/templates/navbar/settings.jinja2:2 +#: src/octoprint/templates/navbar/settings.jinja2:1 msgid "Settings" msgstr "" -#: src/octoprint/templates/navbar/systemmenu.jinja2:2 +#: src/octoprint/templates/navbar/systemmenu.jinja2:1 msgid "System" msgstr "" @@ -3125,7 +3181,7 @@ msgid "Upload locally" msgstr "" #: src/octoprint/templates/overlays/dragndrop.jinja2:7 -#: src/octoprint/templates/sidebar/files.jinja2:62 +#: src/octoprint/templates/sidebar/files.jinja2:65 msgid "Upload to SD" msgstr "" @@ -3162,51 +3218,55 @@ msgstr "" msgid "Auto-connect on server startup" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:5 +#: src/octoprint/templates/sidebar/files.jinja2:6 msgid "Back" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:13 -#: src/octoprint/templates/sidebar/files.jinja2:27 +#: src/octoprint/templates/sidebar/files.jinja2:7 +msgid "Currently in" +msgstr "" + +#: src/octoprint/templates/sidebar/files.jinja2:16 +#: src/octoprint/templates/sidebar/files.jinja2:30 msgid "Uploaded" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:17 +#: src/octoprint/templates/sidebar/files.jinja2:20 msgid "Additional data" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:18 -#: src/octoprint/templates/sidebar/files.jinja2:30 +#: src/octoprint/templates/sidebar/files.jinja2:21 +#: src/octoprint/templates/sidebar/files.jinja2:33 msgid "Download" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:19 -#: src/octoprint/templates/sidebar/files.jinja2:31 -#: src/octoprint/templates/sidebar/files.jinja2:40 +#: src/octoprint/templates/sidebar/files.jinja2:22 +#: src/octoprint/templates/sidebar/files.jinja2:34 +#: src/octoprint/templates/sidebar/files.jinja2:43 msgid "Remove" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:20 +#: src/octoprint/templates/sidebar/files.jinja2:23 msgid "Load" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:21 +#: src/octoprint/templates/sidebar/files.jinja2:24 msgid "Load and Print" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:45 +#: src/octoprint/templates/sidebar/files.jinja2:48 msgid "Free" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:45 +#: src/octoprint/templates/sidebar/files.jinja2:48 msgid "Total" msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:50 +#: src/octoprint/templates/sidebar/files.jinja2:53 msgid "Create folder..." msgstr "" -#: src/octoprint/templates/sidebar/files.jinja2:80 +#: src/octoprint/templates/sidebar/files.jinja2:83 msgid "Hint: You can also drag and drop files on this page to upload them." msgstr "" @@ -3463,18 +3523,28 @@ msgstr "" msgid "Number of Extruders" msgstr "" -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:21 +#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:20 +msgid "Shared nozzle" +msgstr "" + +#: 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 "" + +#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:30 msgid "" "Please specify the nozzle offsets of the extruders relative to the first " "nozzle T0." msgstr "" -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:27 +#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:36 #: src/octoprint/templates/tabs/temperature.jinja2:13 msgid "Offset" msgstr "" -#: src/octoprint/templates/snippets/settings/printerprofiles/profileEditorExtruder.jinja2:45 +#: 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 "

{{ _('Name') }} {{ _('Frames') }} {{ _('Size') }}