Compare commits

...
71 Commits
Author SHA1 Message Date
Gina Häußge 1c6b0554c7 Preparing release of 1.2.2 2015-06-30 21:19:50 +02:00
Gina Häußge 537c205757 Use lowercase when matching extensions
(cherry picked from commit 29cee16)
2015-06-30 19:12:58 +02:00
Gina Häußge f07b2477f5 Fixed some comments that were outdated
(cherry picked from commit 18816b6)
2015-06-30 19:12:52 +02:00
Gina Häußge 5e5531f6d8 Verify extension of uploaded language packs & plugins
Should be valid zip archives/tarballs. Also use only the extension
of an uploaded plugin archive as suffix for the temporary file that's
used for installing it.
(cherry picked from commit a1ff698)
2015-06-30 19:12:45 +02:00
Gina Häußge eadc9ee795 Fix: We don't need the shell for pip
(cherry picked from commit 2db3228)
2015-06-30 19:12:37 +02:00
Gina Häußge 0b3f94b6bd maintenance branch is now 1.2.2-dev 2015-06-30 10:12:14 +02:00
Gina Häußge 9f8d30a66c Preparing release of 1.2.1 2015-06-30 08:42:16 +02:00
Gina Häußge 2a8eea086c Only print command of event handler to log when debug flag is present
(cherry picked from commit 49d28c5)
2015-06-30 08:28:16 +02:00
Gina Häußge bb0bfaee56 Fix: Increase max body size for plugin archives
Closes #957
(cherry picked from commit af89097)
2015-06-29 21:01:21 +02:00
Gina Häußge b8209e8e09 Switch to pkg_resources for compatibility check
Plugin Manager now internally uses pkg_resources.parse_version and
pkg_resources.parse_requirements to check for version compatibility
with plugins from the repository. That will allow to directly use
the OctoPrint version string once it's PEP440 compatible.
(cherry picked from commit 8eb61a9)
2015-06-29 18:24:23 +02:00
Gina Häußge a5b87a9067 Updated changelog 2015-06-29 17:49:19 +02:00
Gina Häußge b3e547c60f Fix: Don't reload page on search form submits
Both file search and plugin repository search reloaded the page when
hitting enter in the search field. This fixes that.
(cherry picked from commit 60043cc)
2015-06-29 17:40:15 +02:00
Gina Häußge 1ead6e2d20 Fix: Ensure correct "upload date" for all added files
Local file storage implementation will now "touch" added files to set
modification date to current date, ensuring that files that are just
moved through a custom implementation of file object (e.g. through the
watched folder mechanism) will show with "now" as the upload date.
(cherry picked from commit 5f0c89c)
2015-06-29 10:35:33 +02:00
Gina Häußge 016bdd542a Fix: More flexibility when parsing plugin compatibility
If compatibility information is provided only as a version number it's
prefixed with >= for the check (so stating a compatibility of only
1.2.0 will now make the plugin compatible to all versions that follow
too).

Alternatively the compatibility information may now contain stuff like
">=1.2,<1.3" in which case the plugin will only be shown as compatible
to OctoPrint versions 1.2 and up but not 1.3 or anything above that.
(cherry picked from commit d5692d7)
2015-06-29 10:22:10 +02:00
Gina Häußge 4dc9d0a536 Fix: SD card errors shouldn't not cause disconnect
If the SD card fails to initialize with a volume.init failure, that's
not a reason to break off all diplomatic relations with the printer.
(cherry picked from commit 9caf13d)
2015-06-29 10:19:50 +02:00
Gina Häußge 4b11032567 Fix: Slicing profiles now can always be set as default
Previously depended on the slicer being already configured, which is not
really necessary.

Closes #956
(cherry picked from commit 13ac06c)
2015-06-28 02:24:57 +02:00
Gina Häußge 0c54eaf176 Fix: Use Exception, not BaseException
Custom exception should be derived from Exception, not BaseException.

Not only is this specified in the python documentation, but also
tornado will be able to handle Exceptions in requests perfectly fine
and return an HTTP 500 for them, but crash hard (as in, server shut
down follows) for BaseExceptions.
(cherry picked from commit 29b047b)
2015-06-28 02:24:47 +02:00
Gina Häußge 401ebcf685 Fix: Cleanly exit on SIGTERM 2015-06-25 15:18:33 +02:00
Gina Häußge 69e5f137a6 Devel is now 1.3
(cherry picked from commit dd5bf2e)
2015-06-25 11:03:56 +02:00
Gina Häußge a0f2079fb5 maintenance branch is 1.2.1-dev for now
This branch is for preparing the next patch-releases of the current
stable release on the master branch.
2015-06-25 11:02:33 +02:00
Gina Häußge cfa4cb2a7c Preparing 1.2.0 release (forgot another changelog update) 2015-06-25 10:18:00 +02:00
Gina Häußge 12a1bebe7e Preparing 1.2.0 release 2015-06-25 10:13:17 +02:00
Gina Häußge d461acffc7 Big update of changelog
Resorted some things and added stuff from the various RC release notes.
2015-06-24 15:18:02 +02:00
Gina Häußge e60cdc9d0f Adjusted bundled plugins to new data folder method 2015-06-24 14:33:33 +02:00
Gina Häußge 67a0fd11dd PluginSettings.get_plugin_data_folder moved to OctoPrintPlugin.get_plugin_data_folder
That way plugins don't need to implement the SettingsPlugin mixin in order to access their data folder, which is now an injected property in OctoPrintPlugin. Plugin authors should still always use the getter since that will also make sure the folder actually does exist (lazy creation).

PluginSettings.get_plugin_data_folder has been marked as deprecated.
2015-06-24 13:59:45 +02:00
Gina Häußge fca8becb20 More informative errors when serial connection fails 2015-06-24 08:55:27 +02:00
Gina Häußge be423e49fd Remove dependency_links support again
Doesn't work reliably across pip versions, and adding a special rule for each and every version also isn't fun. Plugin authors will need to use a different approach for pulling in dependencies that are not on pypi during install, e.g. extra install urls or something like that. For now, I give up here ;)
2015-06-23 16:22:45 +02:00
Gina Häußge 5decb23f23 Plugin Manager: color coding call/stdout/stderr in install/uninstall logs 2015-06-23 11:37:07 +02:00
Gina Häußge ac151d9019 Software Update: Use new PipCaller class and only provide dependency-links parameter if supported by pip version 2015-06-23 11:36:41 +02:00
Gina Häußge 71ccc47717 Plugin Manager: Use new PipCaller class and only provide dependency-links parameter if supported by pip version 2015-06-23 11:36:27 +02:00
Gina Häußge b32f9bddd2 New util class for performing pip calls
Will lookup the correct pip command to use if not provided as constructor parameter and determine the version. Implements __lt__, __le__, __gt__ and __ge__ for "less/greater than" checks against the pip version, for dynamicalle changing call parameters provided to the execute method based on availability.

 Will allow adjusting software update and plugin manager plugins to only use --process-dependency-links for pip versions >= 1.5
2015-06-23 11:35:23 +02:00
Gina Häußge 1a7193e113 System commands with ignore set to true also ignore http errors 2015-06-22 16:55:32 +02:00
Gina Häußge a580482c29 Allow asynchronous system commands & commands w/ ignored result
That should get rid of error messages for things like shutdown commands.
2015-06-22 14:28:05 +02:00
Gina Häußge e230cfb3f3 Software Update fix: Use pip command line instead of module 2015-06-22 13:07:22 +02:00
Gina Häußge 030b6b4478 Software Update: version cache will be written to disk
Reduces number of requests done against (rate limited) github API, especially after consecutive server restarts. Forcing the update check still will query the API.
2015-06-22 13:05:03 +02:00
Gina Häußge 0f818a313d Software Update: Default to pkg_resources for version comparison
That's also able to cope with 0.3a and similar "non-semantic" version schemes. Semantic version comparison can still be forced by setting the compare_type in the check to "semantic". Strict equality check can be set similarly by using the value "unequal".
2015-06-22 13:03:23 +02:00
Gina Häußge 326fc943b7 Plugin Manager: Cache repository list locally
Reduces requests against github upon server restarts.
2015-06-22 13:00:29 +02:00
Gina Häußge 7e6ddaf0d6 Plugins can now have a folder for plugin related data
Path can be queried from settings.
2015-06-22 12:59:39 +02:00
Gina Häußge 22710ccfb3 Show overlay when a new server version is detected
That's more user friendly than just blindly reloading the page. Also include installed Template- and AssetPlugins in the check whether there's a new version or not.
2015-06-21 18:02:16 +02:00
Gina Häußge 33ea9c3459 Fix: Software Update config could contain circular reference
Caused by a wrong variable usage. Fixed the usage and added a migration
step that fixes the circular reference if it exists. Bumping configuration
version to 2.

Fixes #946
2015-06-21 12:27:33 +02:00
Gina Häußge e722c2f8ad Sanity check: verify that plugin settings data jsonifies without error
More resilience which apparently is necessary as witnessed in #946
2015-06-21 00:32:59 +02:00
Gina Häußge 1c99bccef9 Updated german translation 2015-06-20 01:05:18 +02:00
Gina Häußge 61bd803942 Fix: Properly report if a plugin simply could not be found after installation
Also more resilience towards odd version numbers that get mangled by python's package management (1.2.3a0 => 1.2.3a)
2015-06-20 00:56:26 +02:00
Gina Häußge 2f5c3570dd More verbose logging for analyzer 2015-06-20 00:01:59 +02:00
Gina Häußge 9e12a8353b Small update for API docs, more necessary 2015-06-19 23:46:17 +02:00
Gina Häußge c6cb430594 Throttle gcode analysis a bit for low prio entries
Give the Pi's CPU a bit air to breathe...
2015-06-19 22:33:26 +02:00
Gina Häußge 0e60b26048 Config migration must happen after all plugin implementations are initialized
Introduced new callback for settings plugin to hook into the point after the settings have been migrated since the initialize method is not suitable for that as it might be called before other plugin implementations reachable through hooks are initialized.
2015-06-19 22:31:05 +02:00
Gina Häußge 269f18a22f Software Update Fix: Only migrate config settings that are actually in the config 2015-06-19 22:26:22 +02:00
Gina Häußge 7c74aa4c4d Allow ignoring of settings defaults when retrieving values 2015-06-19 22:25:42 +02:00
Gina Häußge a6c1084b14 Fix: Only try to delete a key in the settings that's actually there 2015-06-19 21:52:03 +02:00
Gina Häußge 4abd97df09 File manager will now migrate analysis result from old metadata
That should make the initial startup after switching to 1.2.0 way faster.
2015-06-19 19:19:02 +02:00
Gina Häußge 904a3cdaff super(...).method(...) => BaseClass.method(self, ...) 2015-06-19 15:25:37 +02:00
Gina Häußge f58d63bb49 pluginmanager: Reset flag for repository_available when refreshing it 2015-06-19 15:20:25 +02:00
Gina Häußge dedf3f234f super(...).on_settings_save(data) => octoprint.plugin.SettingsPlugin.on_settings_save(self, data) 2015-06-19 13:19:54 +02:00
Gina Häußge 633d1ae594 Fix: capture TypeError caused by dynamic reloading on settings save and load
Usage of super(MyClass, self) is henceforth discouraged due to dynamic reloading within OctoPrint's plugin subsystem. Refer to https://thingspython.wordpress.com/2010/09/27/another-super-wrinkle-raising-typeerror/ for details on this problem.

Action by plugin authors is needed to remove the super(...) call and substitute it with octoprint.plugin.SettingsPlugin.on_settings_save(self, data) and octoprint.plugin.SettingsPlugin.on_settings_load(self). Without these modifications, calls to plugin methods utilizing super(...) will fail after a call to the plugin managers reload_plugins method.

Closes #942
2015-06-19 13:18:21 +02:00
Gina Häußge 0846a0fed0 Fix: Wrong parameter order 2015-06-19 11:24:37 +02:00
Gina Häußge f1be116190 SoftwareUpdate: Don't persist more check data than necessary in config
The SoftwareUpdate Plugin had a bug that caused way too much check data to be stored in the configuration, leading to plugins potentially being stuck in an "update available" loop although the update had already been applied. Now only the current version of github_commit update types is persisted, not the full check configuration.

Also introduced a configuration version and made the migration function migrate old configs to remove anything that was same as the default supplied for the "octoprint" and all plugin hook checks. That should clean things up in existing installations.
2015-06-19 11:12:24 +02:00
Gina Häußge d5af7b9b48 SettingsPlugins may now track configuration versions
OctoPrint will take care of calling a migration function on the plugin if the plugin demands a newer configuration version than currently stored in config.yaml.
2015-06-19 11:10:07 +02:00
Gina Häußge e55677da22 Plugin system now support pre/post implementation init methods 2015-06-19 11:09:08 +02:00
Gina Häußge 9f4a74cca0 Fix: setting defaults supplied to set/get from plugins are no longer overwritten 2015-06-19 11:08:11 +02:00
Gina Häußge b40cba659a Fix: defaults are now correctly applied when setting config for plugins 2015-06-19 11:06:51 +02:00
Gina Häußge a26b203205 Enforce update of updateable software after plugin changes
When any plugins are enabled/disabled, the client now gets a trigger to fetch a fresh list of update information from the server. This should take care of any old popups still hinting at now uninstalled plugins.
2015-06-18 17:08:56 +02:00
Gina Häußge 6e90c9d730 Reintroduced minification
Still opt-in though.
2015-06-18 13:49:40 +02:00
Gina Häußge 31d7eaad90 Add ";" delimiters between bundled JS files
This is to make sure that they all end on a ; and hence stuff doesn't break if a file included directly after starts with a (...) construct. Of course it would be better if all bundled files are valid in that matter, however since we can't enforce that, we'll add this slight overhead to reduce the risk of stuff breaking.

See for example: http://stackoverflow.com/questions/20307462/js-cant-combine-lib-files
2015-06-18 13:00:18 +02:00
Gina Häußge 0d886ab6f1 Revert cbd3b1424b
That was a bit too early and an accident caused by a too fast "OK" in IntelliJ (as quite visible from the completely unrelated commit message)
2015-06-18 12:11:54 +02:00
Gina Häußge cbd3b1424b Default to full platform compatibility 2015-06-18 12:05:11 +02:00
Gina Häußge 0ce1575e12 Don't allow plugin management while the printer is printing 2015-06-18 11:37:08 +02:00
Gina Häußge 268886576f More resilience against wonky plugin compatibility data
(cherry picked from commit 5ed37e0)
2015-06-18 09:31:11 +02:00
Gina Häußge cbc6f20fa6 Split assets up a bit to allow better debugging of issues with webassets 2015-06-17 18:43:38 +02:00
Gina Häußge 608be52b9a softwareupdate: plugins may now specify that they have dependency links
Update plugin will then also process those during pip install. Was missing previously and caused Pushbullet Plugin to not properly update.
2015-06-13 19:36:28 +02:00
Gina Häußge 4badf72e18 New section "Note for Upgraders" & corrected a typo 2015-06-12 20:15:22 +02:00
50 changed files with 2078 additions and 1033 deletions

No files matched your search

+7 -6
View File
@@ -7,12 +7,13 @@
# The file is processed from top to bottom, the first matching line wins. If <tag> or <reference commit> are left out, # The file is processed from top to bottom, the first matching line wins. If <tag> or <reference commit> are left out,
# the lookup table does not apply to the matched branches # the lookup table does not apply to the matched branches
# master and staging shall not use the lookup table # master shall not use the lookup table, only tags
master master
staging
# fix/ branches are fixes for master, so we don't handle those either # maintenance is currently the branch for preparation of maintenance release 1.2.2
fix/.* # so are any fix/... branches
maintenance 1.2.2-dev 9f8d30a66c2fcc5cd0e8984c72dc36f7e84fde10
fix/.* 1.2.2-dev 9f8d30a66c2fcc5cd0e8984c72dc36f7e84fde10
# every other branch is a development branch and thus gets resolved to 1.2.0-dev for now # every other branch is a development branch and thus gets resolved to 1.3.0-dev for now
.* 1.2.0-dev 50cf776e70b9 .* 1.3.0-dev 198d3450d94be1a2
+114 -40
View File
@@ -1,35 +1,93 @@
# OctoPrint Changelog # OctoPrint Changelog
## 1.2.0 (Unreleased) ## 1.2.2 (2015-06-30)
### Bug Fixes
* Fixed an admin-only security issue introduced in 1.2.0, updating is strongly advised.
([Commits](https://github.com/foosel/OctoPrint/compare/1.2.1...1.2.2))
## 1.2.1 (2015-06-30)
### Improvements
* More flexibility when interpreting compatibility data from plugin repository. If compatibility information is provided
only as a version number it's prefixed with `>=` for the check (so stating a compatibility of only
`1.2.0` will now make the plugin compatible to OctoPrint 1.2.0+, not only 1.2.0). Alternatively the compatibility
information may now contain stuff like `>=1.2,<1.3` in which case the plugin will only be shown as compatible
to OctoPrint versions 1.2.0 and up but not 1.3.0 or anything above that. See also
[the requirement specification format of the `pkg_resources` package](https://pythonhosted.org/setuptools/pkg_resources.html#requirements-parsing).
* Only print the commands of configured event handlers to the log when a new `debug` flag is present in the config
(see [the docs](http://docs.octoprint.org/en/master/configuration/config_yaml.html#events)). Reduces risk of disclosing sensitive data when sharing log files.
### Bug Fixes
* [#956](https://github.com/foosel/OctoPrint/issues/956) - Fixed server crash when trying to configure a default
slicing profile for a still unconfigured slicer.
* [#957](https://github.com/foosel/OctoPrint/issues/957) - Increased maximum allowed body size for plugin archive uploads.
* Bugs without tickets:
* Clean exit on `SIGTERM`, calling the shutdown functions provided by plugins.
* Don't disconnect on `volume.init` errors from the firmware.
* `touch` uploaded files on local file storage to ensure proper "uploaded date" even for files that are just moved
from other locations of the file system (e.g. when being added from the `watched` folder).
([Commits](https://github.com/foosel/OctoPrint/compare/1.2.0...1.2.1))
## 1.2.0 (2015-06-25)
### Note for Upgraders
* The [Cura integration](https://github.com/daid/Cura) has changed in such a way that OctoPrint now calls the
[CuraEngine](https://github.com/Ultimaker/CuraEngine) directly instead of depending on the full Cura installation. See
[the wiki](https://github.com/foosel/OctoPrint/wiki/Plugin:-Cura) for instructions on how to change your setup to
accommodate the new integration.
### New Features ### New Features
* OctoPrint now has a [plugin system](http://docs.octoprint.org/en/master/plugins/index.html) which allows extending its
core functionality.
* Plugins may be installed through the new and bundled [Plugin Manager Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Plugin-Manager)
available in OctoPrint's settings. This Plugin Manager also allows browsing and easy installation of plugins
registered on the official [OctoPrint Plugin Repository](http://plugins.octoprint.org).
* For interested developers there is a [tutorial available in the documentation](http://docs.octoprint.org/en/master/plugins/gettingstarted.html)
and also a [cookiecutter template](https://github.com/OctoPrint/cookiecutter-octoprint-plugin) to quickly bootstrap
new plugins.
* Added internationalization of UI. Translations of OctoPrint are being crowd sourced via [Transifex](https://www.transifex.com/projects/p/octoprint/). * Added internationalization of UI. Translations of OctoPrint are being crowd sourced via [Transifex](https://www.transifex.com/projects/p/octoprint/).
Language Packs for both the core application as well as installed plugins can be uploaded through a new management Language Packs for both the core application as well as installed plugins can be uploaded through a new management
dialog in Settings > Appearance > Language Packs. dialog in Settings > Appearance > Language Packs. A translation into German is included, further language packs
will soon be made available.
* Printer Profiles: Printer properties like print volume, extruder offsets etc are now managed via Printer Profiles. A
connection to a printer will always have a printer profile associated.
* File management now supports STL files as first class citizens (including UI adjustments to allow management of
uploaded STL files including removal and reslicing) and also allows folders (not yet supported by UI). STL files
can be downloaded like GCODE files.
* Slicing has been greatly improved:
* It now allows for a definition of slicing profiles to use for slicing plus overrides which can be defined per slicing
job (defining overrides is not yet part of the UI but it's on the roadmap).
* A new slicing dialog has been added which allows (re-)slicing uploaded STL files (which are now displayed in the file list
as well). The slicing profile and printer profile to use can be specified here as well as the file name to which to
slice to and the action to take after slicing has been completed (none, selecting the sliced GCODE for printing or
starting to print it directly)
* The slicing API allows positioning the model to slice on the print bed (Note: this is not yet available in the UI).
* Slicers themselves are integrated into the system via ``SlicingPlugins``.
* Bundled [Cura Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Cura) allows slicing through CuraEngine up
to and including 15.04. Existing Cura slicing profiles can be imported through the web interface.
* New file list: Pagination is gone, no more (mobile incompatible) pop overs, instead scrollable and with instant * New file list: Pagination is gone, no more (mobile incompatible) pop overs, instead scrollable and with instant
search search
* You can now define a folder (default: `~/.octoprint/watched`) to be watched for newly added GCODE (or -- if slicing * You can now define a folder (default: `~/.octoprint/watched`) to be watched for newly added GCODE (or -- if slicing
support is enabled -- STL) files to automatically add. support is enabled -- STL) files to automatically add.
* OctoPrint now has a [plugin system](http://docs.octoprint.org/en/devel/plugins/index.html) which allows extending its * New type of API key: [App Session Keys](http://docs.octoprint.org/en/master/api/apps.html) for trusted applications
core functionality. Plugins may be installed through the new Plugin Manager available in OctoPrint's settings. This
Plugin Manager also allows browsing and easy installation of plugins registered on the official
[OctoPrint Plugin Repository](http://plugins.octoprint.org). For interested developers there is a
[tutorial available in the documentation](http://docs.octoprint.org/en/master/plugins/gettingstarted.html) and also a
[cookiecutter template](https://github.com/OctoPrint/cookiecutter-octoprint-plugin) to quickly bootstrap new plugins.
* New type of API key: [App Session Keys](http://docs.octoprint.org/en/devel/api/apps.html) for trusted applications
* Printer Profiles: Printer properties like print volume, extruder offsets etc are now managed via Printer Profiles. A
connection to a printer will always have a printer profile associated.
* OctoPrint now supports `action:...` commands received via debug messages (`// action:...`) from the printer. Currently supported are * OctoPrint now supports `action:...` commands received via debug messages (`// action:...`) from the printer. Currently supported are
- `action:pause`: Pauses the current job in OctoPrint - `action:pause`: Pauses the current job in OctoPrint
- `action:resume`: Resumes the current job in OctoPrint - `action:resume`: Resumes the current job in OctoPrint
- `action:disconnect`: Disconnects OctoPrint from the printer - `action:disconnect`: Disconnects OctoPrint from the printer
Plugins can add supported commands by [hooking](http://docs.octoprint.org/en/devel/plugins/hooks.html) into the Plugins can add supported commands by [hooking](http://docs.octoprint.org/en/master/plugins/hooks.html) into the
``octoprint.comm.protocol.action`` hook ``octoprint.comm.protocol.action`` hook
* Mousing over the webcam image in the control tab enables key control mode, allowing you to quickly move the axis of your * Mousing over the webcam image in the control tab enables key control mode, allowing you to quickly move the axis of your
printer with your computer's keyboard ([#610](https://github.com/foosel/OctoPrint/pull/610)): printer with your computer's keyboard ([#610](https://github.com/foosel/OctoPrint/pull/610)):
- arrow keys: X and Y axes - arrow keys: X and Y axes
- W, S / PageUp, PageDown: Y axes - W, S / PageUp, PageDown: Z axes
- Home: Home X and Y axes - Home: Home X and Y axes
- End: Home Z axes - End: Home Z axes
- 1, 2, 3, 4: change step size used (0.1, 1, 10, 100mm) - 1, 2, 3, 4: change step size used (0.1, 1, 10, 100mm)
@@ -38,9 +96,11 @@
* Custom controls now support a row layout * Custom controls now support a row layout
* Users can now define custom GCODE scripts to run upon starting/pausing/resuming/success/failure of a print or for * Users can now define custom GCODE scripts to run upon starting/pausing/resuming/success/failure of a print or for
custom controls ([#457](https://github.com/foosel/OctoPrint/issues/457), [#347](https://github.com/foosel/OctoPrint/issues/347)) custom controls ([#457](https://github.com/foosel/OctoPrint/issues/457), [#347](https://github.com/foosel/OctoPrint/issues/347))
* Bundled [Software Update Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Software-Update) takes care of notifying about new OctoPrint releases and also allows * Bundled [Discovery Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Discovery) allows discovery of OctoPrint
updating if configured as such. Plugins may register themselves with the update notification and application process instances via SSDP/UPNP and optionally also via ZeroConf/Bonjour/Avahi.
through a new hook ["octoprint.plugin.softwareupdate.check_config"](). * Bundled [Software Update Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Software-Update) takes care of notifying
about new OctoPrint releases and also allows updating if configured as such. Plugins may register themselves with the
update notification and application process through a new hook ["octoprint.plugin.softwareupdate.check_config"](https://github.com/foosel/OctoPrint/wiki/Plugin:-Software-Update#octoprintpluginsoftwareupdatecheck_config).
### Improvements ### Improvements
@@ -53,23 +113,7 @@
* Better error reporting for timelapse rendering and system commands * Better error reporting for timelapse rendering and system commands
* Custom control can now be defined so that they show a Confirm dialog with configurable text before executing * Custom control can now be defined so that they show a Confirm dialog with configurable text before executing
([#532](https://github.com/foosel/OctoPrint/issues/532) and [#590](https://github.com/foosel/OctoPrint/pull/590)) ([#532](https://github.com/foosel/OctoPrint/issues/532) and [#590](https://github.com/foosel/OctoPrint/pull/590))
* Slicing has been greatly improved: * Serial communication: Also interpret lines starting with "!!" as errors
* It now allows for a definition of slicing profiles to use for slicing plus overrides which can be defined per slicing
job (defining overrides is not yet part of the UI but it's on the roadmap).
* A new slicing dialog has been added which allows (re-)slicing uploaded STL files (which are now displayed in the file list
as well). This dialog also allows specifying which action to take after slicing has been completed (none, selecting the
sliced GCODE for printing or starting to print it directly)
* Slicers themselves are integrated into the system via ``SlicingPlugins``.
* The [Cura integration](https://github.com/daid/Cura) has changed in such a way that OctoPrint now calls the
[CuraEngine](https://github.com/Ultimaker/CuraEngine) directly instead of depending on the full Cura installation. See
[the wiki](https://github.com/foosel/OctoPrint/wiki/Plugin:-Cura) for instructions on how to change your setup to
accommodate the new integration.
* The "Slicing done" notification is now colored green ([#558](https://github.com/foosel/OctoPrint/issues/558)).
* The slicing API allows positioning the model to slice on the print bed (Note: this is not yet available in the UI).
* File management now supports STL files as first class citizens (including UI adjustments to allow management of
uploaded STL files including removal and reslicing) and also allows folders (not yet supported by UI). STL files
can be downloaded like GCODE files.
* Also interpret lines starting with "!!" as errors
* Added deletion of pyc files to the `python setup.py clean` command * Added deletion of pyc files to the `python setup.py clean` command
* Settings now show a QRCode for the API Key ([#637](https://github.com/foosel/OctoPrint/pull/637)) * Settings now show a QRCode for the API Key ([#637](https://github.com/foosel/OctoPrint/pull/637))
* Username in UI is no longer enclosed in scare quotes ([#595](https://github.com/foosel/OctoPrint/pull/595)) * Username in UI is no longer enclosed in scare quotes ([#595](https://github.com/foosel/OctoPrint/pull/595))
@@ -87,13 +131,14 @@
* The server now tracks the modification date of the configuration file and reloads it prior to saving the config if * The server now tracks the modification date of the configuration file and reloads it prior to saving the config if
it has been changed during runtime by external editing, hence no config settings added manually while the server it has been changed during runtime by external editing, hence no config settings added manually while the server
was running should be overwritten anymore. was running should be overwritten anymore.
* Automatically hard-reload the UI if upon reconnecting to the server a new version is detected. * Display a "Please Reload" overlay when a new server version or a change in installed plugins is detected after a
reconnect to the server.
* Better handling of errors on the websocket - no more logging of the full stack trace to the log, only a warning * Better handling of errors on the websocket - no more logging of the full stack trace to the log, only a warning
message for now. message for now.
* Daemonized OctoPrint now cleans up its pidfile when receiving a TERM signal ([#711](https://github.com/foosel/OctoPrint/issues/711)) * Daemonized OctoPrint now cleans up its pidfile when receiving a TERM signal ([#711](https://github.com/foosel/OctoPrint/issues/711))
* Added serial types for OpenBSD ([#551](https://github.com/foosel/OctoPrint/pull/551)) * Added serial types for OpenBSD ([#551](https://github.com/foosel/OctoPrint/pull/551))
* Improved behaviour of terminal: * Improved behaviour of terminal:
* Disabling autoscrolling now also stops cutting of the log while it's enabled, effectively preventing log lines from * Disabling autoscrolling now also stops cutting off the log while it's enabled, effectively preventing log lines from
being modified at all ([#735](https://github.com/foosel/OctoPrint/issues/735)) being modified at all ([#735](https://github.com/foosel/OctoPrint/issues/735))
* Applying filters displays ``[...]`` where lines where removed and doesn't cause scrolling on filtered lines * Applying filters displays ``[...]`` where lines where removed and doesn't cause scrolling on filtered lines
anymore ([#286](https://github.com/foosel/OctoPrint/issues/286)) anymore ([#286](https://github.com/foosel/OctoPrint/issues/286))
@@ -120,7 +165,6 @@
from each other (see also [#823](https://github.com/foosel/OctoPrint/pull/823)) from each other (see also [#823](https://github.com/foosel/OctoPrint/pull/823))
* Renamed "Temperature Timeout" and "SD Status Timeout" in Settings to "Temperature Interval" and "SD Status Interval" * Renamed "Temperature Timeout" and "SD Status Timeout" in Settings to "Temperature Interval" and "SD Status Interval"
to better reflect what those values are actually used for. to better reflect what those values are actually used for.
* Better behaviour of the settings dialog on mobile devices.
* Added support for rectangular printer beds with the origin in the center ([#682](https://github.com/foosel/OctoPrint/issues/682) * Added support for rectangular printer beds with the origin in the center ([#682](https://github.com/foosel/OctoPrint/issues/682)
and [#852](https://github.com/foosel/OctoPrint/pull/852)). Printer profiles now contain a new settings ``volume.origin`` and [#852](https://github.com/foosel/OctoPrint/pull/852)). Printer profiles now contain a new settings ``volume.origin``
which can either be ``lowerleft`` or ``center``. For circular beds only ``center`` is supported. which can either be ``lowerleft`` or ``center``. For circular beds only ``center`` is supported.
@@ -132,8 +176,26 @@
changed under "Temperatures" in the Settings ([#343](https://github.com/foosel/OctoPrint/issues/343)). changed under "Temperatures" in the Settings ([#343](https://github.com/foosel/OctoPrint/issues/343)).
* High-DPI support for the GCode viewer ([#837](https://github.com/foosel/OctoPrint/issues/837)). * High-DPI support for the GCode viewer ([#837](https://github.com/foosel/OctoPrint/issues/837)).
* Stop websocket connections from multiplying ([#888](https://github.com/foosel/OctoPrint/pull/888)). * Stop websocket connections from multiplying ([#888](https://github.com/foosel/OctoPrint/pull/888)).
* New setting to rotate webcam by 90° counter clockwise ([#895](https://github.com/foosel/OctoPrint/issues/895) and * New setting to rotate webcam by 90° counter clockwise ([#895](https://github.com/foosel/OctoPrint/issues/895) and
[#906](https://github.com/foosel/OctoPrint/pull/906)) [#906](https://github.com/foosel/OctoPrint/pull/906))
* System commands now be set to a) run asynchronized by setting their `async` property to `true` and b) to ignore their
result by setting their `ignore` property to `true`.
* Various improvements of newly introduced features over the course of development:
* File management: The new implementation will migrate metadata from the old one upon first startup after upgrade from
version 1.1.x to 1.2.x. That should speed up initial startup.
* File management: GCODE Analysis backlog processing has been throttled to not take up too many resources on system
startup. Freshly uploaded files should still be analyzed at full speed.
* Plugins: SettingsPlugins may track versions of configuration format stored in `config.yaml`, including a custom
migration method getting called when a mismatch between the currently stored configuration format version and the one
reported by the plugin as current is detected.
* Plugins: Plugins may now have a folder for plugin related data whose path can be retrieved from the plugin itself
via its new method [`get_plugin_data_folder`](http://docs.octoprint.org/en/master/modules/plugin.html#octoprint.plugin.types.OctoPrintPlugin.get_plugin_data_folder).
* Plugin Manager: Don't allow plugin management actions (like installing/uninstalling or enabling/disabling) while the
printer is printing (see also unreproduced issue [#936](https://github.com/foosel/OctoPrint/issues/936)).
* Plugin Manager: More options to try to match up installed plugin packages with discovered plugins.
* Plugin Manager: Display a more friendly message if after the installation of a plugin it could not be correctly
identifier.
* Software Update: Enforce refreshing of available updates after any changes in enabled plugins.
### Bug Fixes ### Bug Fixes
@@ -198,8 +260,14 @@
downloaded from Github. downloaded from Github.
* [#931](https://github.com/foosel/OctoPrint/issues/931) - Adjusted `octoprint_setuptools` to be compatible to older * [#931](https://github.com/foosel/OctoPrint/issues/931) - Adjusted `octoprint_setuptools` to be compatible to older
versions of setuptools potentially site-wide installed on hosts. versions of setuptools potentially site-wide installed on hosts.
* Plugin Manager supports installing plugins that need `--process-dependency-links` as `pip` argument. This might be * [#942](https://github.com/foosel/OctoPrint/issues/942) - Settings can now be saved again after installing a new
necessary when plugins depend on (patched) library versions that are not yet released on PyPI plugin. Plugins must not use `super` anymore to call parent implementation of `SettingsPlugin.on_settings_save` but
should instead switch to `SettingsPlugin.on_settings_save(self, ...)`. Settings API will capture related
`TypeErrors` and log a big warning to the log file indicating which plugin caused the problem and needs to be
updated. Also updated all bundled plugins accordingly.
* Software Update: Don't persist more check data than necessary in the configuration. Solves an issue where persisted
information overrode updated check configuration reported by plugins, leading to a "an update is available" loop.
An auto-migration function was added that should remove the redundant data.
* Various fixes without tickets: * Various fixes without tickets:
* GCODE viewer now doesn't stumble over completely extrusionless GCODE files * GCODE viewer now doesn't stumble over completely extrusionless GCODE files
* Do not deliver the API key on settings API unless user has admin rights * Do not deliver the API key on settings API unless user has admin rights
@@ -217,7 +285,13 @@
"Operational" state. "Operational" state.
* Log cancelled prints only once (thanks to @imrahil for the headsup) * Log cancelled prints only once (thanks to @imrahil for the headsup)
([Commits](https://github.com/foosel/OctoPrint/compare/1.1.2...master)) ### More information
* [Commits](https://github.com/foosel/OctoPrint/compare/1.1.2...1.2.0)
* Release Candidates:
* [RC1](https://github.com/foosel/OctoPrint/releases/tag/1.2.0-rc1)
* [RC2](https://github.com/foosel/OctoPrint/releases/tag/1.2.0-rc2)
* [RC3](https://github.com/foosel/OctoPrint/releases/tag/1.2.0-rc3)
## 1.1.2 (2015-03-23) ## 1.1.2 (2015-03-23)
+46 -39
View File
@@ -216,6 +216,10 @@ Progress information
File related File related
============ ============
.. todo::
Update to reflect enhanced data now available.
.. _sec-api-datamodel-files-file: .. _sec-api-datamodel-files-file:
File information File information
@@ -233,10 +237,51 @@ File information
- 1 - 1
- String - String
- The name of the file - The name of the file
* - ``type``
- 1
- String
- Type of file. ``model`` or ``machinecode``. Or ``folder`` if it's a folder, in which case the ``children``
node will be populated
Additional properties depend on ``type``. For a ``type`` value of ``folder``, see "Folders". For any other value
see "Files".
Folders
'''''''
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``children``
- 0..*
- Array of :ref:`File information items <sec-api-datamodel-files-file>`
- Contained children for entries of type ``folder``
Files
'''''
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``hash``
- 1
- String
- MD5 hash of the file
* - ``size`` * - ``size``
- 0..1 - 0..1
- Number - Number
- The size of the file in bytes. Only available for ``local`` files. - The size of the file in bytes. Only available for ``local`` files or ``sdcard`` files if the printer
supports file sizes for sd card files.
* - ``date`` * - ``date``
- 0..1 - 0..1
- Unix timestamp - Unix timestamp
@@ -254,10 +299,6 @@ File information
- 0..1 - 0..1
- :ref:`GCODE analysis information <sec-api-datamodel-files-gcodeanalysis>` - :ref:`GCODE analysis information <sec-api-datamodel-files-gcodeanalysis>`
- Information from the analysis of the GCODE file, if available. Left out in abridged version. - Information from the analysis of the GCODE file, if available. Left out in abridged version.
* - ``prints``
- 0..1
- :ref:`Print history <sec-api-datamodel-files-prints>`
- Information regarding prints of this file, if available. Left out in abridged version.
.. _sec-api-datamodel-files-gcodeanalysis: .. _sec-api-datamodel-files-gcodeanalysis:
@@ -290,40 +331,6 @@ GCODE analysis information
- The volume of filament used, in cm³ - The volume of filament used, in cm³
.. _sec-api-datamodel-files-prints:
Print history
-------------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``failure``
- 1
- Number
- The number of failed prints on record for the file
* - ``success``
- 1
- Number
- The number of successful prints on record for the file
* - ``last``
- 0..1
- Object
- Information regarding the last print on record for the file
* - ``last.date``
- 1
- Unix timestamp
- Timestamp when this file was printed last
* - ``last.success``
- 1
- Boolean
- Whether the last print on record was a success (``true``) or not (``false``)
.. _sec-api-datamodel-files-ref: .. _sec-api-datamodel-files-ref:
References References
+21
View File
@@ -366,6 +366,27 @@ Use the following settings to add shell/gcode commands to be executed on certain
type: gcode type: gcode
enabled: False enabled: False
.. note::
For debugging purposes, you can also add an additional property ``debug`` to your event subscription definitions
that if set to true will make the event handler print a log line with your subscription's command after performing
all placeholder replacements. Example:
.. code-block:: yaml
events:
subscriptions:
- event: Startup
command: "logger 'OctoPrint started up'"
type: system
debug: true
This will be logged in OctoPrint's logfile as
.. code-block:: none
Executing System Command: logger 'OctoPrint started up'
.. _sec-configuration-config_yaml-feature: .. _sec-configuration-config_yaml-feature:
Feature Feature
+7 -3
View File
@@ -257,7 +257,7 @@ them as (hopefully) documented.
:emphasize-lines: 6-8,20 :emphasize-lines: 6-8,20
:caption: Excerpt from the Growl Plugin showing utilization of the helpers published by the Discovery Plugin. :caption: Excerpt from the Growl Plugin showing utilization of the helpers published by the Discovery Plugin.
:name: sec-plugin-concepts-helpers-example-usage :name: sec-plugin-concepts-helpers-example-usage
def on_after_startup(self): def on_after_startup(self):
host = self._settings.get(["hostname"]) host = self._settings.get(["hostname"])
port = self._settings.getInt(["port"]) port = self._settings.getInt(["port"])
@@ -270,7 +270,7 @@ them as (hopefully) documented.
self.growl, _ = self._register_growl(host, port, password=password) self.growl, _ = self._register_growl(host, port, password=password)
# ... # ...
def on_api_get(self, request): def on_api_get(self, request):
if not self.zeroconf_browse: if not self.zeroconf_browse:
return flask.jsonify(dict( return flask.jsonify(dict(
@@ -302,6 +302,10 @@ An overview of these properties follows.
``self._basefolder`` ``self._basefolder``
The plugin's base folder where it's installed. Can be used to refer to files relative to the plugin's installation The plugin's base folder where it's installed. Can be used to refer to files relative to the plugin's installation
location, e.g. included scripts, templates or assets. location, e.g. included scripts, templates or assets.
``self._datafolder``
The plugin's additional data folder path. Can be used to store additional files needed for the plugin's operation (cache,
data files etc). Plugins should not access this property directly but instead utilize :func:`~octoprint.plugin.types.OctoPrintPlugin.get_plugin_data_folder`
which will make sure the path actually does exist and if not create it before returning it.
``self._logger`` ``self._logger``
A `python logger instance <https://docs.python.org/2/library/logging.html>`_ logging to the log target A `python logger instance <https://docs.python.org/2/library/logging.html>`_ logging to the log target
``octoprint.plugin.<plugin identifier>``. ``octoprint.plugin.<plugin identifier>``.
@@ -340,4 +344,4 @@ Lifecycle
.. image:: ../images/plugins_lifecycle.png .. image:: ../images/plugins_lifecycle.png
:align: center :align: center
:alt: The lifecycle of OctoPrint plugins. :alt: The lifecycle of OctoPrint plugins.
+17 -13
View File
@@ -254,10 +254,11 @@ class CommandTrigger(GenericEventListener):
event = subscription["event"] event = subscription["event"]
command = subscription["command"] command = subscription["command"]
commandType = subscription["type"] commandType = subscription["type"]
debug = subscription["debug"] if "debug" in subscription else False
if not event in self._subscriptions.keys(): if not event in self._subscriptions.keys():
self._subscriptions[event] = [] self._subscriptions[event] = []
self._subscriptions[event].append((command, commandType)) self._subscriptions[event].append((command, commandType, debug))
if not event in eventsToSubscribe: if not event in eventsToSubscribe:
eventsToSubscribe.append(event) eventsToSubscribe.append(event)
@@ -275,7 +276,7 @@ class CommandTrigger(GenericEventListener):
if not event in self._subscriptions: if not event in self._subscriptions:
return return
for command, commandType in self._subscriptions[event]: for command, commandType, debug in self._subscriptions[event]:
try: try:
if isinstance(command, (tuple, list, set)): if isinstance(command, (tuple, list, set)):
processedCommand = [] processedCommand = []
@@ -283,19 +284,23 @@ class CommandTrigger(GenericEventListener):
processedCommand.append(self._processCommand(c, payload)) processedCommand.append(self._processCommand(c, payload))
else: else:
processedCommand = self._processCommand(command, payload) processedCommand = self._processCommand(command, payload)
self.executeCommand(processedCommand, commandType) self.executeCommand(processedCommand, commandType, debug=debug)
except KeyError, e: except KeyError, e:
self._logger.warn("There was an error processing one or more placeholders in the following command: %s" % command) self._logger.warn("There was an error processing one or more placeholders in the following command: %s" % command)
def executeCommand(self, command, commandType): def executeCommand(self, command, commandType, debug=False):
if commandType == "system": if commandType == "system":
self._executeSystemCommand(command) self._executeSystemCommand(command, debug=debug)
elif commandType == "gcode": elif commandType == "gcode":
self._executeGcodeCommand(command) self._executeGcodeCommand(command, debug=debug)
def _executeSystemCommand(self, command): def _executeSystemCommand(self, command, debug=False):
def commandExecutioner(command): def commandExecutioner(command):
self._logger.info("Executing system command: %s" % command) if debug:
self._logger.info("Executing system command: %s" % 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.Popen(command, shell=True)
try: try:
@@ -306,16 +311,15 @@ class CommandTrigger(GenericEventListener):
commandExecutioner(command) commandExecutioner(command)
except subprocess.CalledProcessError, e: except subprocess.CalledProcessError, e:
self._logger.warn("Command failed with return code %i: %s" % (e.returncode, str(e))) self._logger.warn("Command failed with return code %i: %s" % (e.returncode, str(e)))
except Exception, ex: except:
self._logger.exception("Command failed") self._logger.exception("Command failed")
def _executeGcodeCommand(self, command): def _executeGcodeCommand(self, command, debug=False):
commands = [command] commands = [command]
if isinstance(command, (list, tuple, set)): if isinstance(command, (list, tuple, set)):
self._logger.debug("Executing GCode commands: %r" % command)
commands = list(command) commands = list(command)
else: if debug:
self._logger.debug("Executing GCode command: %s" % command) self._logger.info("Executing GCode commands: %r" % command)
self._printer.commands(commands) self._printer.commands(commands)
def _processCommand(self, command, payload): def _processCommand(self, command, payload):
+13 -3
View File
@@ -136,8 +136,16 @@ class FileManager(object):
def initialize(self): def initialize(self):
self.reload_plugins() self.reload_plugins()
for storage_type, storage_manager in self._storage_managers.items():
self._determine_analysis_backlog(storage_type, storage_manager) def worker():
self._logger.info("Adding backlog items from all storage types to analysis queue...".format(**locals()))
for storage_type, storage_manager in self._storage_managers.items():
self._determine_analysis_backlog(storage_type, storage_manager)
import threading
thread = threading.Thread(target=worker)
thread.daemon = True
thread.start()
def reload_plugins(self): def reload_plugins(self):
self._progress_plugins = octoprint.plugin.plugin_manager().get_implementations(octoprint.plugin.ProgressPlugin) self._progress_plugins = octoprint.plugin.plugin_manager().get_implementations(octoprint.plugin.ProgressPlugin)
@@ -150,13 +158,15 @@ class FileManager(object):
self._slicing_progress_callbacks.remove(callback) self._slicing_progress_callbacks.remove(callback)
def _determine_analysis_backlog(self, storage_type, storage_manager): def _determine_analysis_backlog(self, storage_type, storage_manager):
self._logger.info("Adding backlog items from {storage_type} to analysis queue".format(**locals())) counter = 0
for entry, path, printer_profile in storage_manager.analysis_backlog: for entry, path, printer_profile in storage_manager.analysis_backlog:
file_type = get_file_type(path)[-1] file_type = get_file_type(path)[-1]
# we'll use the default printer profile for the backlog since we don't know better # we'll use the default printer profile for the backlog since we don't know better
queue_entry = QueueEntry(entry, file_type, storage_type, path, self._printer_profile_manager.get_default()) queue_entry = QueueEntry(entry, file_type, storage_type, path, self._printer_profile_manager.get_default())
self._analysis_queue.enqueue(queue_entry, high_priority=False) self._analysis_queue.enqueue(queue_entry, high_priority=False)
counter += 1
self._logger.info("Added {counter} items from storage type \"{storage_type}\" to analysis queue".format(**locals()))
def add_storage(self, storage_type, storage_manager): def add_storage(self, storage_type, storage_manager):
self._storage_managers[storage_type] = storage_manager self._storage_managers[storage_type] = storage_manager
+29 -10
View File
@@ -11,6 +11,7 @@ import Queue as queue
import os import os
import threading import threading
import collections import collections
import time
from octoprint.events import Events, eventManager from octoprint.events import Events, eventManager
@@ -100,6 +101,9 @@ class AbstractAnalysisQueue(object):
.. automethod:: _do_abort .. automethod:: _do_abort
""" """
LOW_PRIO = 0
HIGH_PRIO = 100
def __init__(self, finished_callback): def __init__(self, finished_callback):
self._logger = logging.getLogger(__name__) self._logger = logging.getLogger(__name__)
@@ -133,10 +137,10 @@ class AbstractAnalysisQueue(object):
if high_priority: if high_priority:
self._logger.debug("Adding entry {entry} to analysis queue with high priority".format(entry=entry)) self._logger.debug("Adding entry {entry} to analysis queue with high priority".format(entry=entry))
prio = 0 prio = self.__class__.HIGH_PRIO
else: else:
self._logger.debug("Adding entry {entry} to analysis queue with low priority".format(entry=entry)) self._logger.debug("Adding entry {entry} to analysis queue with low priority".format(entry=entry))
prio = 100 prio = self.__class__.LOW_PRIO
self._queue.put((prio, entry)) self._queue.put((prio, entry))
@@ -173,13 +177,15 @@ class AbstractAnalysisQueue(object):
self._active.wait() self._active.wait()
try: try:
self._analyze(entry) self._analyze(entry, high_priority=(priority == self.__class__.HIGH_PRIO))
self._queue.task_done() self._queue.task_done()
except gcodeInterpreter.AnalysisAborted: except gcodeInterpreter.AnalysisAborted:
aborted = entry aborted = entry
self._logger.debug("Running analysis of entry {entry} aborted".format(**locals())) self._logger.debug("Running analysis of entry {entry} aborted".format(**locals()))
else:
time.sleep(1.0)
def _analyze(self, entry): def _analyze(self, entry, high_priority=False):
path = entry.absolute_path path = entry.absolute_path
if path is None or not os.path.exists(path): if path is None or not os.path.exists(path):
return return
@@ -188,20 +194,26 @@ class AbstractAnalysisQueue(object):
self._current_progress = 0 self._current_progress = 0
try: try:
self._logger.debug("Starting analysis of {entry}".format(**locals())) self._logger.info("Starting analysis of {entry}".format(**locals()))
eventManager().fire(Events.METADATA_ANALYSIS_STARTED, {"file": entry.path, "type": entry.type}) eventManager().fire(Events.METADATA_ANALYSIS_STARTED, {"file": entry.path, "type": entry.type})
result = self._do_analysis() try:
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.debug("Analysis of entry {entry} finished, notifying callback".format(**locals()))
self._finished_callback(self._current, result) self._finished_callback(self._current, result)
finally: finally:
self._current = None self._current = None
self._current_progress = None self._current_progress = None
def _do_analysis(self): def _do_analysis(self, high_priority=False):
""" """
Performs the actual analysis of the current entry which can be accessed via ``self._current``. Needs to be Performs the actual analysis of the current entry which can be accessed via ``self._current``. Needs to be
overridden by sub classes. overridden by sub classes.
Arguments:
high_priority (bool): Whether the current entry has high priority or not.
Returns: Returns:
object: The result of the analysis which will be forwarded to the ``finished_callback`` provided during object: The result of the analysis which will be forwarded to the ``finished_callback`` provided during
construction. construction.
@@ -235,10 +247,17 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue):
* The extruded volume in cm³ * The extruded volume in cm³
""" """
def _do_analysis(self): def _do_analysis(self, high_priority=False):
try: try:
def throttle():
time.sleep(0.01)
throttle_callback = throttle
if high_priority:
throttle_callback = None
self._gcode = gcodeInterpreter.gcode() self._gcode = gcodeInterpreter.gcode()
self._gcode.load(self._current.absolute_path, self._current.printer_profile) self._gcode.load(self._current.absolute_path, self._current.printer_profile, throttle=throttle_callback)
result = dict() result = dict()
if self._gcode.totalMoveTimeMinute: if self._gcode.totalMoveTimeMinute:
@@ -256,4 +275,4 @@ class GcodeAnalysisQueue(AbstractAnalysisQueue):
def _do_abort(self): def _do_abort(self):
if self._gcode: if self._gcode:
self._gcode.abort() self._gcode.abort()
+77 -13
View File
@@ -309,6 +309,41 @@ class LocalFileStorage(StorageInterface):
self._metadata_cache = pylru.lrucache(10) self._metadata_cache = pylru.lrucache(10)
self._old_metadata = None
self._initialize_metadata()
def _initialize_metadata(self):
self._logger.info("Initializing the file metadata for {}...".format(self.basefolder))
old_metadata_path = os.path.join(self.basefolder, "metadata.yaml")
backup_path = os.path.join(self.basefolder, "metadata.yaml.backup")
if os.path.exists(old_metadata_path):
# load the old metadata file
try:
with open(old_metadata_path) as f:
import yaml
self._old_metadata = yaml.safe_load(f)
except:
self._logger.exception("Error while loading old metadata file")
# make sure the metadata is initialized as far as possible
self._list_folder(self.basefolder)
# rename the old metadata file
self._old_metadata = None
try:
import shutil
shutil.move(old_metadata_path, backup_path)
except:
self._logger.exception("Could not rename old metadata.yaml file")
else:
# make sure the metadata is initialized as far as possible
self._list_folder(self.basefolder)
self._logger.info("... file metadata for {} initialized successfully.".format(self.basefolder))
@property @property
def analysis_backlog(self): def analysis_backlog(self):
for entry in self._analysis_backlog_generator(): for entry in self._analysis_backlog_generator():
@@ -420,6 +455,9 @@ class LocalFileStorage(StorageInterface):
self._add_links(name, path, links) self._add_links(name, path, links)
# touch the file to set last access and modification time to now
os.utime(file_path, None)
return self.path_in_storage((path, name)) return self.path_in_storage((path, name))
def remove_file(self, path): def remove_file(self, path):
@@ -919,12 +957,7 @@ class LocalFileStorage(StorageInterface):
if entry in metadata and isinstance(metadata[entry], dict): if entry in metadata and isinstance(metadata[entry], dict):
entry_data = metadata[entry] entry_data = metadata[entry]
else: else:
entry_data = dict( entry_data = self._add_basic_metadata(path, entry, save=False, metadata=metadata)
hash=self._create_hash(entry_path),
links=[],
notes=[]
)
metadata[entry] = entry_data
metadata_dirty = True metadata_dirty = True
# TODO extract model hash from source if possible to recreate link # TODO extract model hash from source if possible to recreate link
@@ -959,6 +992,31 @@ class LocalFileStorage(StorageInterface):
return result return result
def _add_basic_metadata(self, path, entry, additional_metadata=None, save=True, metadata=None):
if additional_metadata is None:
additional_metadata = dict()
if metadata is None:
metadata = self._get_metadata(path)
entry_data = dict(
hash=self._create_hash(os.path.join(path, entry)),
links=[],
notes=[]
)
if path == self.basefolder and self._old_metadata is not None and entry in self._old_metadata and "gcodeAnalysis" in self._old_metadata[entry]:
# if there is still old metadata available and that contains an analysis for this file, use it!
entry_data["analysis"] = self._old_metadata[entry]["gcodeAnalysis"]
entry_data.update(additional_metadata)
metadata[entry] = entry_data
if save:
self._save_metadata(path, metadata)
return entry_data
def _create_hash(self, path): def _create_hash(self, path):
import hashlib import hashlib
@@ -993,16 +1051,22 @@ class LocalFileStorage(StorageInterface):
def _save_metadata(self, path, metadata): def _save_metadata(self, path, metadata):
metadata_path = os.path.join(path, ".metadata.yaml") metadata_path = os.path.join(path, ".metadata.yaml")
fh, metadata_temporary_path = tempfile.mkstemp()
os.close(fh)
with self._metadata_lock: with self._metadata_lock:
try: try:
with open(metadata_temporary_path, "w") as f: import yaml
import yaml
yaml.safe_dump(metadata, stream=f, default_flow_style=False, indent=" ", allow_unicode=True)
import shutil import shutil
shutil.move(metadata_temporary_path, metadata_path)
file_obj = tempfile.NamedTemporaryFile(delete=False)
try:
yaml.safe_dump(metadata, stream=file_obj, default_flow_style=False, indent=" ", allow_unicode=True)
file_obj.close()
shutil.move(file_obj.name, metadata_path)
finally:
try:
if os.path.exists(file_obj.name):
os.remove(file_obj.name)
except Exception as e:
self._logger.warn("Could not delete file {}: {}".format(file_obj.name, str(e)))
except: except:
self._logger.exception("Error while writing .metadata.yaml to {path}".format(**locals())) self._logger.exception("Error while writing .metadata.yaml to {path}".format(**locals()))
else: else:
+18 -2
View File
@@ -281,6 +281,7 @@ class PluginSettings(object):
defaults = dict() defaults = dict()
self.defaults = dict(plugins=dict()) self.defaults = dict(plugins=dict())
self.defaults["plugins"][plugin_key] = defaults self.defaults["plugins"][plugin_key] = defaults
self.defaults["plugins"][plugin_key]["_config_version"] = None
if get_preprocessors is None: if get_preprocessors is None:
get_preprocessors = dict() get_preprocessors = dict()
@@ -309,11 +310,17 @@ class PluginSettings(object):
return result return result
def add_getter_kwargs(kwargs): def add_getter_kwargs(kwargs):
kwargs.update(defaults=self.defaults, preprocessors=self.get_preprocessors) if not "defaults" in kwargs:
kwargs.update(defaults=self.defaults)
if not "preprocessors" in kwargs:
kwargs.update(preprocessors=self.get_preprocessors)
return kwargs return kwargs
def add_setter_kwargs(kwargs): def add_setter_kwargs(kwargs):
kwargs.update(defaults=self.defaults, preprocessors=self.set_preprocessors) if not "defaults" in kwargs:
kwargs.update(defaults=self.defaults)
if not "preprocessors" in kwargs:
kwargs.update(preprocessors=self.set_preprocessors)
return kwargs return kwargs
self.access_methods = dict( self.access_methods = dict(
@@ -419,6 +426,15 @@ class PluginSettings(object):
filename += ".log" filename += ".log"
return os.path.join(self.settings.getBaseFolder("logs"), filename) return os.path.join(self.settings.getBaseFolder("logs"), filename)
@deprecated("PluginSettings.get_plugin_data_folder has been replaced by OctoPrintPlugin.get_plugin_data_folder",
includedoc="Replaced by :func:`~octoprint.plugin.types.OctoPrintPlugin.get_plugin_data_folder`",
since="1.2.0")
def get_plugin_data_folder(self):
path = os.path.join(self.settings.getBaseFolder("data"), self.plugin_key)
if not os.path.isdir(path):
os.makedirs(path)
return path
def __getattr__(self, item): def __getattr__(self, item):
all_access_methods = self.access_methods.keys() + self.deprecated_access_methods.keys() all_access_methods = self.access_methods.keys() + self.deprecated_access_methods.keys()
if item in all_access_methods: if item in all_access_methods:
+38 -12
View File
@@ -428,7 +428,9 @@ class PluginManager(object):
It is able to discover plugins both through possible file system locations as well as customizable entry points. It is able to discover plugins both through possible file system locations as well as customizable entry points.
""" """
def __init__(self, plugin_folders, plugin_types, plugin_entry_points, logging_prefix=None, plugin_disabled_list=None, plugin_restart_needing_hooks=None, plugin_obsolete_hooks=None, plugin_validators=None): def __init__(self, plugin_folders, plugin_types, plugin_entry_points, logging_prefix=None,
plugin_disabled_list=None, plugin_restart_needing_hooks=None, plugin_obsolete_hooks=None,
plugin_validators=None):
self.logger = logging.getLogger(__name__) self.logger = logging.getLogger(__name__)
if logging_prefix is None: if logging_prefix is None:
@@ -453,6 +455,8 @@ class PluginManager(object):
self.implementation_injects = dict() self.implementation_injects = dict()
self.implementation_inject_factories = [] self.implementation_inject_factories = []
self.implementation_pre_inits = []
self.implementation_post_inits = []
self.on_plugin_loaded = lambda *args, **kwargs: None self.on_plugin_loaded = lambda *args, **kwargs: None
self.on_plugin_unloaded = lambda *args, **kwargs: None self.on_plugin_unloaded = lambda *args, **kwargs: None
@@ -849,27 +853,35 @@ class PluginManager(object):
return False return False
return hook in self.plugin_obsolete_hooks return hook in self.plugin_obsolete_hooks
def initialize_implementations(self, additional_injects=None, additional_inject_factories=None): def initialize_implementations(self, additional_injects=None, additional_inject_factories=None, additional_pre_inits=None, additional_post_inits=None):
for name, plugin in self.enabled_plugins.items(): for name, plugin in self.enabled_plugins.items():
self.initialize_implementation_of_plugin(name, plugin, self.initialize_implementation_of_plugin(name, plugin,
additional_injects=additional_injects, additional_injects=additional_injects,
additional_inject_factories=additional_inject_factories) additional_inject_factories=additional_inject_factories,
additional_pre_inits=additional_pre_inits,
additional_post_inits=additional_post_inits)
self.logger.info("Initialized {count} plugin(s)".format(count=len(self.plugin_implementations))) self.logger.info("Initialized {count} plugin(s)".format(count=len(self.plugin_implementations)))
def initialize_implementation_of_plugin(self, name, plugin, additional_injects=None, additional_inject_factories=None): def initialize_implementation_of_plugin(self, name, plugin, additional_injects=None, additional_inject_factories=None, additional_pre_inits=None, additional_post_inits=None):
if plugin.implementation is None: if plugin.implementation is None:
return return
return self.initialize_implementation(name, plugin, plugin.implementation, return self.initialize_implementation(name, plugin, plugin.implementation,
additional_injects=additional_injects, additional_injects=additional_injects,
additional_inject_factories=additional_inject_factories) additional_inject_factories=additional_inject_factories,
additional_pre_inits=additional_pre_inits,
additional_post_inits=additional_post_inits)
def initialize_implementation(self, name, plugin, implementation, additional_injects=None, additional_inject_factories=None): def initialize_implementation(self, name, plugin, implementation, additional_injects=None, additional_inject_factories=None, additional_pre_inits=None, additional_post_inits=None):
if additional_injects is None: if additional_injects is None:
additional_injects = dict() additional_injects = dict()
if additional_inject_factories is None: if additional_inject_factories is None:
additional_inject_factories = [] additional_inject_factories = []
if additional_pre_inits is None:
additional_pre_inits = []
if additional_post_inits is None:
additional_post_inits = []
injects = self.implementation_injects injects = self.implementation_injects
injects.update(additional_injects) injects.update(additional_injects)
@@ -877,6 +889,12 @@ class PluginManager(object):
inject_factories = self.implementation_inject_factories inject_factories = self.implementation_inject_factories
inject_factories += additional_inject_factories inject_factories += additional_inject_factories
pre_inits = self.implementation_pre_inits
pre_inits += additional_pre_inits
post_inits = self.implementation_post_inits
post_inits += additional_post_inits
try: try:
kwargs = dict(injects) kwargs = dict(injects)
@@ -904,8 +922,16 @@ class PluginManager(object):
for arg, value in return_value.items(): for arg, value in return_value.items():
setattr(implementation, "_" + arg, value) setattr(implementation, "_" + arg, value)
# execute any additional pre init methods
for pre_init in pre_inits:
pre_init(name, implementation)
implementation.initialize() implementation.initialize()
# execute any additional post init methods
for post_init in post_inits:
post_init(name, implementation)
except Exception as e: except Exception as e:
self._deactivate_plugin(name, plugin) self._deactivate_plugin(name, plugin)
plugin.enabled = False plugin.enabled = False
@@ -1187,15 +1213,15 @@ class Plugin(object):
class RestartNeedingPlugin(Plugin): class RestartNeedingPlugin(Plugin):
pass pass
class PluginNeedsRestart(BaseException): class PluginNeedsRestart(Exception):
def __init__(self, name): def __init__(self, name):
super(BaseException, self).__init__() Exception.__init__(self)
self.name = name self.name = name
self.message = "Plugin {name} cannot be enabled or disabled after system startup".format(**locals()) self.message = "Plugin {name} cannot be enabled or disabled after system startup".format(**locals())
class PluginLifecycleException(BaseException): class PluginLifecycleException(Exception):
def __init__(self, name, reason, message): def __init__(self, name, reason, message):
super(BaseException, self).__init__() Exception.__init__(self)
self.name = name self.name = name
self.reason = reason self.reason = reason
@@ -1206,7 +1232,7 @@ class PluginLifecycleException(BaseException):
class PluginCantInitialize(PluginLifecycleException): class PluginCantInitialize(PluginLifecycleException):
def __init__(self, name, reason): def __init__(self, name, reason):
super(PluginLifecycleException, self).__init__(name, reason, "Plugin {name} cannot be initialized: {reason}") PluginLifecycleException.__init__(self, name, reason, "Plugin {name} cannot be initialized: {reason}")
class PluginCantEnable(PluginLifecycleException): class PluginCantEnable(PluginLifecycleException):
def __init__(self, name, reason): def __init__(self, name, reason):
@@ -1214,4 +1240,4 @@ class PluginCantEnable(PluginLifecycleException):
class PluginCantDisable(PluginLifecycleException): class PluginCantDisable(PluginLifecycleException):
def __init__(self, name, reason): def __init__(self, name, reason):
super(PluginLifecycleException, self).__init__(name, reason, "Plugin {name} cannot be disabled: {reason}") PluginLifecycleException.__init__(self, name, reason, "Plugin {name} cannot be disabled: {reason}")
+69 -2
View File
@@ -69,9 +69,32 @@ class OctoPrintPlugin(Plugin):
The :class:`~octoprint.server.LifecycleManager` instance. Injected by the plugin core system upon initialization The :class:`~octoprint.server.LifecycleManager` instance. Injected by the plugin core system upon initialization
of the implementation. of the implementation.
.. attribute:: _data_folder
Path to the data folder for the plugin to use for any data it might have to persist. Should always be accessed
through :meth:`get_plugin_data_folder` since that function will also ensure that the data folder actually exists
and if not creating it before returning it. Injected by the plugin core system upon initialization of the
implementation.
.. automethod:: get_plugin_data_folder
""" """
pass def get_plugin_data_folder(self):
"""
Retrieves the path to a data folder specifically for the plugin, ensuring it exists and if not creating it
before returning it.
Plugins may use this folder for storing additional data they need for their operation.
"""
if self._data_folder is None:
raise RuntimeError("self._plugin_data_folder is None, has the plugin been initialized yet?")
import os
if not os.path.isdir(self._data_folder):
os.makedirs(self._data_folder)
return self._data_folder
class ReloadNeedingPlugin(Plugin): class ReloadNeedingPlugin(Plugin):
pass pass
@@ -718,7 +741,7 @@ class SettingsPlugin(OctoPrintPlugin):
def on_settings_save(self, data): def on_settings_save(self, data):
old_flag = self._settings.get_boolean(["sub", "some_flag"]) old_flag = self._settings.get_boolean(["sub", "some_flag"])
super(MySettingsPlugin, self).on_settings_save(data) octoprint.plugin.SettingsPlugin.on_settings_save(self, data)
new_flag = self._settings.get_boolean(["sub", "some_flag"]) new_flag = self._settings.get_boolean(["sub", "some_flag"])
if old_flag != new_flag: if old_flag != new_flag:
@@ -830,6 +853,50 @@ class SettingsPlugin(OctoPrintPlugin):
""" """
return dict(), dict() return dict(), dict()
def get_settings_version(self):
"""
Retrieves the settings format version of the plugin.
Use this to have OctoPrint trigger your migration function if it detects an outdated settings version in
config.yaml.
Returns:
int or None: an int signifying the current settings format, should be incremented by plugins whenever there
are backwards incompatible changes. Returning None here disables the version tracking for the
plugin's configuration.
"""
return None
def on_settings_migrate(self, target, current):
"""
Called by OctoPrint if it detects that the installed version of the plugin necessitates a higher settings version
than the one currently stored in _config.yaml. Will also be called if the settings data stored in config.yaml
doesn't have version information, in which case the ``current`` parameter will be None.
Your plugin's implementation should take care of migrating any data by utilizing self._settings. OctoPrint
will take care of saving any changes to disk by calling `self._settings.save()` after returning from this method.
This method will be called before your plugin's :func:`on_settings_initialized` method, with all injections already
having taken place. You can therefore depend on the configuration having been migrated by the time
:func:`on_settings_initialized` is called.
Arguments:
target (int): The settings format version the plugin requires, this should always be the same value as
returned by :func:`get_settings_version`.
current (int or None): The settings format version as currently stored in config.yaml. May be None if
no version information can be found.
"""
pass
def on_settings_initialized(self):
"""
Called after the settings have been initialized and - if necessary - also been migrated through a call to
func:`on_settings_migrate`.
This method will always be called after the `initialize` method.
"""
pass
class EventHandlerPlugin(OctoPrintPlugin): class EventHandlerPlugin(OctoPrintPlugin):
""" """
+2 -2
View File
@@ -129,7 +129,7 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
def on_settings_save(self, data): def on_settings_save(self, data):
old_debug_logging = self._settings.get_boolean(["debug_logging"]) old_debug_logging = self._settings.get_boolean(["debug_logging"])
super(CuraPlugin, self).on_settings_save(data) octoprint.plugin.SettingsPlugin.on_settings_save(self, data)
new_debug_logging = self._settings.get_boolean(["debug_logging"]) new_debug_logging = self._settings.get_boolean(["debug_logging"])
if old_debug_logging != new_debug_logging: if old_debug_logging != new_debug_logging:
@@ -410,4 +410,4 @@ __plugin_author__ = "Gina Häußge"
__plugin_url__ = "https://github.com/foosel/OctoPrint/wiki/Plugin:-Cura" __plugin_url__ = "https://github.com/foosel/OctoPrint/wiki/Plugin:-Cura"
__plugin_description__ = "Adds support for slicing via CuraEngine from within OctoPrint" __plugin_description__ = "Adds support for slicing via CuraEngine from within OctoPrint"
__plugin_license__ = "AGPLv3" __plugin_license__ = "AGPLv3"
__plugin_implementation__ = CuraPlugin() __plugin_implementation__ = CuraPlugin()
+142 -101
View File
@@ -12,6 +12,7 @@ import octoprint.plugin.core
from octoprint.settings import valid_boolean_trues from octoprint.settings import valid_boolean_trues
from octoprint.server.util.flask import restricted_access from octoprint.server.util.flask import restricted_access
from octoprint.server import admin_permission from octoprint.server import admin_permission
from octoprint.util.pip import PipCaller, UnknownPip
from flask import jsonify, make_response from flask import jsonify, make_response
from flask.ext.babel import gettext from flask.ext.babel import gettext
@@ -21,6 +22,8 @@ import sarge
import sys import sys
import requests import requests
import re import re
import os
import pkg_resources
class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin, class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
octoprint.plugin.TemplatePlugin, octoprint.plugin.TemplatePlugin,
@@ -35,11 +38,28 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
self._pending_install = set() self._pending_install = set()
self._pending_uninstall = set() self._pending_uninstall = set()
self._pip_caller = None
self._repository_available = False self._repository_available = False
self._repository_plugins = [] self._repository_plugins = []
self._repository_cache_path = None
self._repository_cache_ttl = 0
def initialize(self): def initialize(self):
self._console_logger = logging.getLogger("octoprint.plugins.pluginmanager.console") 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._pip_caller = PipCaller(configured=self._settings.get(["pip"]))
self._pip_caller.on_log_call = self._log_call
self._pip_caller.on_log_stdout = self._log_stdout
self._pip_caller.on_log_stderr = self._log_stderr
##~~ Body size hook
def increase_upload_bodysize(self, current_max_body_sizes, *args, **kwargs):
# set a maximum body size of 50 MB for plugin archive uploads
return [("POST", r"/upload_archive", 50 * 1024 * 1024)]
##~~ StartupPlugin ##~~ StartupPlugin
@@ -52,17 +72,22 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
self._console_logger.setLevel(logging.DEBUG) self._console_logger.setLevel(logging.DEBUG)
self._console_logger.propagate = False self._console_logger.propagate = False
self._repository_available = self._refresh_repository() self._repository_available = self._fetch_repository_from_disk()
##~~ SettingsPlugin ##~~ SettingsPlugin
def get_settings_defaults(self): def get_settings_defaults(self):
return dict( return dict(
repository="http://plugins.octoprint.org/plugins.json", repository="http://plugins.octoprint.org/plugins.json",
pip=None, repository_ttl=24*60,
dependency_links=False pip=None
) )
def on_settings_save(self, data):
octoprint.plugin.SettingsPlugin.on_settings_save(self, data)
self._repository_cache_ttl = self._settings.get_int(["repository_ttl"]) * 60
self._pip_caller.refresh = True
##~~ AssetPlugin ##~~ AssetPlugin
def get_assets(self): def get_assets(self):
@@ -96,11 +121,17 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
upload_path = flask.request.values[input_upload_path] upload_path = flask.request.values[input_upload_path]
upload_name = flask.request.values[input_upload_name] upload_name = flask.request.values[input_upload_name]
exts = filter(lambda x: upload_name.lower().endswith(x), (".zip", ".tar.gz", ".tgz", ".tar"))
if not len(exts):
return flask.make_response("File doesn't have a valid extension for a plugin archive", 400)
ext = exts[0]
import tempfile import tempfile
import shutil import shutil
import os import os
archive = tempfile.NamedTemporaryFile(delete=False, suffix="-{upload_name}".format(**locals())) archive = tempfile.NamedTemporaryFile(delete=False, suffix="{ext}".format(**locals()))
try: try:
archive.close() archive.close()
shutil.copy(upload_path, archive.name) shutil.copy(upload_path, archive.name)
@@ -133,7 +164,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
result.append(self._to_external_representation(plugin)) result.append(self._to_external_representation(plugin))
if "refresh_repository" in request.values and request.values["refresh_repository"] in valid_boolean_trues: if "refresh_repository" in request.values and request.values["refresh_repository"] in valid_boolean_trues:
self._refresh_repository() self._repository_available = self._refresh_repository()
return jsonify(plugins=result, repository=dict(available=self._repository_available, plugins=self._repository_plugins), os=self._get_os(), octoprint=self._get_octoprint_version()) return jsonify(plugins=result, repository=dict(available=self._repository_available, plugins=self._repository_plugins), os=self._get_os(), octoprint=self._get_octoprint_version())
@@ -141,12 +172,15 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
if not admin_permission.can(): if not admin_permission.can():
return make_response("Insufficient rights", 403) return make_response("Insufficient rights", 403)
if self._printer.is_printing() or self._printer.is_paused():
# do not update while a print job is running
return make_response("Printer is currently printing or paused", 409)
if command == "install": if command == "install":
url = data["url"] url = data["url"]
plugin_name = data["plugin"] if "plugin" in data else None plugin_name = data["plugin"] if "plugin" in data else None
return self.command_install(url=url, return self.command_install(url=url,
force="force" in data and data["force"] in valid_boolean_trues, 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,
reinstall=plugin_name) reinstall=plugin_name)
elif command == "uninstall": elif command == "uninstall":
@@ -165,21 +199,14 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
plugin = self._plugin_manager.plugins[plugin_name] plugin = self._plugin_manager.plugins[plugin_name]
return self.command_toggle(plugin, command) return self.command_toggle(plugin, command)
elif command == "refresh_repository": def command_install(self, url=None, path=None, force=False, reinstall=None):
self._repository_available = self._refresh_repository()
return jsonify(repository=dict(available=self._repository_available, plugins=self._repository_plugins))
def command_install(self, url=None, path=None, force=False, reinstall=None, dependency_links=False):
if url is not None: if url is not None:
pip_args = ["install", sarge.shell_quote(url)] pip_args = ["install", sarge.shell_quote(url)]
elif path is not None: elif path is not None:
pip_args = ["install", path] pip_args = ["install", sarge.shell_quote(path)]
else: else:
raise ValueError("Either url or path must be provided") raise ValueError("Either url or path must be provided")
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()
success_string = "Successfully installed" success_string = "Successfully installed"
@@ -241,12 +268,31 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
package_name = plugin.origin.package_name package_name = plugin.origin.package_name
package_version = plugin.origin.package_version package_version = plugin.origin.package_version
versioned_package = "{package_name}-{package_version}".format(**locals()) versioned_package = "{package_name}-{package_version}".format(**locals())
if package_name in installed or versioned_package in installed: if package_name in installed or versioned_package in installed:
# exact match, we are done here
new_plugin_key = key new_plugin_key = key
new_plugin = plugin new_plugin = plugin
break 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: else:
return make_response("Could not find plugin that was installed", 500) 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")
self._send_result_notification("install", result)
return jsonify(result)
self._plugin_manager.mark_plugin(new_plugin_key, uninstalled=False) self._plugin_manager.mark_plugin(new_plugin_key, uninstalled=False)
self._plugin_manager.reload_plugins() self._plugin_manager.reload_plugins()
@@ -367,74 +413,12 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
self._plugin_manager.send_plugin_message(self._identifier, notification) self._plugin_manager.send_plugin_message(self._identifier, notification)
def _call_pip(self, args): def _call_pip(self, args):
pip_command = self._settings.get(["pip"]) if self._pip_caller is None or not self._pip_caller.available:
if pip_command is None: raise RuntimeError(u"No pip available, can't operate".format(**locals()))
import os return self._pip_caller.execute(*args)
python_command = sys.executable
binary_dir = os.path.dirname(python_command)
pip_command = os.path.join(binary_dir, "pip") def _log_call(self, *lines):
if sys.platform == "win32": self._log(lines, prefix=" ", stream="call")
# Windows is a bit special... first of all the file will be called pip.exe, not just pip, and secondly
# for a non-virtualenv install (e.g. global install) the pip binary will not be located in the
# same folder as python.exe, but in a subfolder Scripts, e.g.
#
# C:\Python2.7\
# |- python.exe
# `- Scripts
# `- pip.exe
# virtual env?
pip_command = os.path.join(binary_dir, "pip.exe")
if not os.path.isfile(pip_command):
# nope, let's try the Scripts folder then
scripts_dir = os.path.join(binary_dir, "Scripts")
if os.path.isdir(scripts_dir):
pip_command = os.path.join(scripts_dir, "pip.exe")
if not os.path.isfile(pip_command) or not os.access(pip_command, os.X_OK):
raise RuntimeError(u"No pip path configured and {pip_command} does not exist or is not executable, can't install".format(**locals()))
command = [pip_command] + args
self._logger.debug(u"Calling: {}".format(" ".join(command)))
p = sarge.run(" ".join(command), shell=True, async=True, stdout=sarge.Capture(), stderr=sarge.Capture())
p.wait_events()
all_stdout = []
all_stderr = []
try:
while p.returncode is None:
line = p.stderr.readline(timeout=0.5)
if line:
self._log_stderr(line)
all_stderr.append(line)
line = p.stdout.readline(timeout=0.5)
if line:
self._log_stdout(line)
all_stdout.append(line)
p.commands[0].poll()
finally:
p.close()
stderr = p.stderr.text
if stderr:
split_lines = stderr.split("\n")
self._log_stderr(*split_lines)
all_stderr += split_lines
stdout = p.stdout.text
if stdout:
split_lines = stdout.split("\n")
self._log_stdout(*split_lines)
all_stdout += split_lines
return p.returncode, all_stdout, all_stderr
def _log_stdout(self, *lines): def _log_stdout(self, *lines):
self._log(lines, prefix=">", stream="stdout") self._log(lines, prefix=">", stream="stdout")
@@ -480,14 +464,48 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
elif plugin.enabled and plugin.key not in self._pending_disable: elif plugin.enabled and plugin.key not in self._pending_disable:
self._pending_disable.add(plugin.key) self._pending_disable.add(plugin.key)
def _refresh_repository(self): def _fetch_repository_from_disk(self):
repo_data = None
if os.path.isfile(self._repository_cache_path):
import time
mtime = os.path.getmtime(self._repository_cache_path)
if mtime + self._repository_cache_ttl >= time.time() > mtime:
try:
import json
with open(self._repository_cache_path) as f:
repo_data = json.load(f)
self._logger.info("Loaded plugin repository data from disk, was still valid")
except:
self._logger.exception("Error while loading repository data from {}".format(self._repository_cache_path))
return self._refresh_repository(repo_data=repo_data)
def _fetch_repository_from_url(self):
import requests import requests
repository_url = self._settings.get(["repository"]) repository_url = self._settings.get(["repository"])
try: try:
r = requests.get(repository_url) r = requests.get(repository_url)
self._logger.info("Loaded plugin repository data from {}".format(repository_url))
except Exception as e: except Exception as e:
self._logger.warn("Could not fetch plugins from repository at {repository_url}: {message}".format(repository_url=repository_url, message=str(e))) self._logger.exception("Could not fetch plugins from repository at {repository_url}: {message}".format(repository_url=repository_url, message=str(e)))
return False return None
repo_data = r.json()
try:
import json
with open(self._repository_cache_path, "w+b") as f:
json.dump(repo_data, f)
except Exception as e:
self._logger.exception("Error while saving repository data to {}: {}".format(self._repository_cache_path, str(e)))
return repo_data
def _refresh_repository(self, repo_data=None):
if repo_data is None:
repo_data = self._fetch_repository_from_url()
if repo_data is None:
return False
current_os = self._get_os() current_os = self._get_os()
octoprint_version = self._get_octoprint_version() octoprint_version = self._get_octoprint_version()
@@ -497,32 +515,47 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
def map_repository_entry(entry): def map_repository_entry(entry):
result = dict(entry) result = dict(entry)
if not "follow_dependency_links" in result:
result["follow_dependency_links"] = False
result["is_compatible"] = dict( result["is_compatible"] = dict(
octoprint=True, octoprint=True,
os=True os=True
) )
if "compatibility" in entry: if "compatibility" in entry:
if "octoprint" in entry["compatibility"]: if "octoprint" in entry["compatibility"] and entry["compatibility"]["octoprint"] is not None and len(entry["compatibility"]["octoprint"]):
import semantic_version result["is_compatible"]["octoprint"] = self._is_octoprint_compatible(octoprint_version, entry["compatibility"]["octoprint"])
for octo_compat in entry["compatibility"]["octoprint"]:
s = semantic_version.Spec("=={}".format(octo_compat))
if semantic_version.Version(octoprint_version) in s:
break
else:
result["is_compatible"]["octoprint"] = False
if "os" in entry["compatibility"]: if "os" in entry["compatibility"] and entry["compatibility"]["os"] is not None and len(entry["compatibility"]["os"]):
result["is_compatible"]["os"] = current_os in entry["compatibility"]["os"] result["is_compatible"]["os"] = self._is_os_compatible(current_os, entry["compatibility"]["os"])
return result return result
self._repository_plugins = map(map_repository_entry, r.json()) self._repository_plugins = map(map_repository_entry, repo_data)
return True return True
def _is_octoprint_compatible(self, octoprint_version_string, compatibility_entries):
"""
Tests if the current ``octoprint_version`` is compatible to any of the provided ``compatibility_entries``.
"""
octoprint_version = pkg_resources.parse_version(octoprint_version_string)
for octo_compat in compatibility_entries:
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
else:
return False
return True
def _is_os_compatible(self, current_os, compatibility_entries):
"""
Tests if the ``current_os`` matches any of the provided ``compatibility_entries``.
"""
return current_os in compatibility_entries
def _get_os(self): def _get_os(self):
if sys.platform == "win32": if sys.platform == "win32":
return "windows" return "windows"
@@ -559,4 +592,12 @@ __plugin_author__ = "Gina Häußge"
__plugin_url__ = "https://github.com/foosel/OctoPrint/wiki/Plugin:-Plugin-Manager" __plugin_url__ = "https://github.com/foosel/OctoPrint/wiki/Plugin:-Plugin-Manager"
__plugin_description__ = "Allows installing and managing OctoPrint plugins" __plugin_description__ = "Allows installing and managing OctoPrint plugins"
__plugin_license__ = "AGPLv3" __plugin_license__ = "AGPLv3"
__plugin_implementation__ = PluginManagerPlugin()
def __plugin_load__():
global __plugin_implementation__
__plugin_implementation__ = PluginManagerPlugin()
global __plugin_hooks__
__plugin_hooks__ = {
"octoprint.server.http.bodysize": __plugin_implementation__.increase_upload_bodysize
}
@@ -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} 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}
@@ -4,6 +4,7 @@ $(function() {
self.loginState = parameters[0]; self.loginState = parameters[0];
self.settingsViewModel = parameters[1]; self.settingsViewModel = parameters[1];
self.printerState = parameters[2];
self.plugins = new ItemListHelper( self.plugins = new ItemListHelper(
"plugin.pluginmanager.installedplugins", "plugin.pluginmanager.installedplugins",
@@ -69,13 +70,27 @@ $(function() {
self.loglines = ko.observableArray([]); self.loglines = ko.observableArray([]);
self.installedPlugins = ko.observableArray([]); self.installedPlugins = ko.observableArray([]);
self.followDependencyLinks = ko.observable(false);
self.working = ko.observable(false); self.working = ko.observable(false);
self.workingTitle = ko.observable(); self.workingTitle = ko.observable();
self.workingDialog = undefined; self.workingDialog = undefined;
self.workingOutput = undefined; self.workingOutput = undefined;
self.enableManagement = ko.computed(function() {
return !self.printerState.isPrinting();
});
self.enableToggle = function(data) {
return self.enableManagement() && data.key != 'pluginmanager';
};
self.enableUninstall = function(data) {
return self.enableManagement() && !data.bundled && data.key != 'pluginmanager' && !data.pending_uninstall;
};
self.enableRepoInstall = function(data) {
return self.enableManagement() && self.isCompatible(data);
};
self.invalidUrl = ko.computed(function() { self.invalidUrl = ko.computed(function() {
var url = self.installUrl(); var url = self.installUrl();
return url !== undefined && url.trim() != "" && !(_.startsWith(url.toLocaleLowerCase(), "http://") || _.startsWith(url.toLocaleLowerCase(), "https://")); return url !== undefined && url.trim() != "" && !(_.startsWith(url.toLocaleLowerCase(), "http://") || _.startsWith(url.toLocaleLowerCase(), "https://"));
@@ -83,7 +98,7 @@ $(function() {
self.enableUrlInstall = ko.computed(function() { self.enableUrlInstall = ko.computed(function() {
var url = self.installUrl(); var url = self.installUrl();
return url !== undefined && url.trim() != "" && !self.invalidUrl(); return self.enableManagement() && url !== undefined && url.trim() != "" && !self.invalidUrl();
}); });
self.invalidArchive = ko.computed(function() { self.invalidArchive = ko.computed(function() {
@@ -93,7 +108,7 @@ $(function() {
self.enableArchiveInstall = ko.computed(function() { self.enableArchiveInstall = ko.computed(function() {
var name = self.uploadFilename(); var name = self.uploadFilename();
return name !== undefined && name.trim() != "" && !self.invalidArchive(); return self.enableManagement() && name !== undefined && name.trim() != "" && !self.invalidArchive();
}); });
self.uploadElement.fileupload({ self.uploadElement.fileupload({
@@ -110,9 +125,6 @@ $(function() {
self.uploadButton.unbind("click"); self.uploadButton.unbind("click");
self.uploadButton.bind("click", function() { self.uploadButton.bind("click", function() {
self._markWorking(gettext("Installing plugin..."), gettext("Installing plugin from uploaded archive...")); self._markWorking(gettext("Installing plugin..."), gettext("Installing plugin from uploaded archive..."));
data.formData = {
dependency_links: self.followDependencyLinks()
};
data.submit(); data.submit();
return false; return false;
}); });
@@ -135,7 +147,11 @@ $(function() {
} }
}); });
self.performRepositorySearch = function() { self.performRepositorySearch = function(e) {
if (e !== undefined) {
e.preventDefault();
}
var query = self.repositorySearchQuery(); var query = self.repositorySearchQuery();
if (query !== undefined && query.trim() != "") { if (query !== undefined && query.trim() != "") {
self.repositoryplugins.changeSearchFunction(function(entry) { self.repositoryplugins.changeSearchFunction(function(entry) {
@@ -187,6 +203,10 @@ $(function() {
return; return;
} }
if (!self.enableManagement()) {
return;
}
if (data.key == "pluginmanager") return; if (data.key == "pluginmanager") return;
var command = self._getToggleCommand(data); var command = self._getToggleCommand(data);
@@ -217,27 +237,31 @@ $(function() {
return; return;
} }
if (!self.enableManagement()) {
return;
}
if (self.installed(data)) { if (self.installed(data)) {
self.installPlugin(data.archive, data.title, data.id, data.follow_dependency_links || self.followDependencyLinks()); self.installPlugin(data.archive, data.title, data.id);
} else { } else {
self.installPlugin(data.archive, data.title, undefined, data.follow_dependency_links || self.followDependencyLinks()); self.installPlugin(data.archive, data.title, undefined);
} }
}; };
self.installPlugin = function(url, name, reinstall, followDependencyLinks) { self.installPlugin = function(url, name, reinstall) {
if (!self.loginState.isAdmin()) { if (!self.loginState.isAdmin()) {
return; return;
} }
if (!self.enableManagement()) {
return;
}
if (url === undefined) { if (url === undefined) {
url = self.installUrl(); url = self.installUrl();
} }
if (!url) return; if (!url) return;
if (followDependencyLinks === undefined) {
followDependencyLinks = self.followDependencyLinks();
}
var workTitle, workText; var workTitle, workText;
if (!reinstall) { if (!reinstall) {
workTitle = gettext("Installing plugin..."); workTitle = gettext("Installing plugin...");
@@ -253,7 +277,7 @@ $(function() {
self._markWorking(workTitle, workText); self._markWorking(workTitle, workText);
var command = "install"; var command = "install";
var payload = {url: url, dependency_links: followDependencyLinks}; var payload = {url: url};
if (reinstall) { if (reinstall) {
payload["plugin"] = reinstall; payload["plugin"] = reinstall;
payload["force"] = true; payload["force"] = true;
@@ -279,6 +303,10 @@ $(function() {
return; return;
} }
if (!self.enableManagement()) {
return;
}
if (data.bundled) return; if (data.bundled) return;
if (data.key == "pluginmanager") return; if (data.key == "pluginmanager") return;
@@ -305,9 +333,7 @@ $(function() {
return; return;
} }
self._postCommand("refresh_repository", {}, function(data) { self.requestData(true);
self._fromRepositoryResponse(data.repository);
})
}; };
self.installed = function(data) { self.installed = function(data) {
@@ -420,7 +446,7 @@ $(function() {
self.toggleButtonCss = function(data) { self.toggleButtonCss = function(data) {
var icon = self._getToggleCommand(data) == "enable" ? "icon-circle-blank" : "icon-circle"; var icon = self._getToggleCommand(data) == "enable" ? "icon-circle-blank" : "icon-circle";
var disabled = (data.key == "pluginmanager") ? " disabled" : ""; var disabled = (self.enableToggle(data)) ? "" : " disabled";
return icon + disabled; return icon + disabled;
}; };
@@ -480,11 +506,22 @@ $(function() {
var name = "Unknown"; var name = "Unknown";
if (action == "install") { if (action == "install") {
var unknown = false;
if (data.hasOwnProperty("plugin")) { if (data.hasOwnProperty("plugin")) {
name = data.plugin.name; if (data.plugin == "unknown") {
unknown = true;
} else {
name = data.plugin.name;
}
} }
if (data.was_reinstalled) { if (unknown) {
titleSuccess = _.sprintf(gettext("Plugin installed"));
textSuccess = gettext("A plugin was installed successfully, however it was impossible to detect which one. Please Restart OctoPrint to make sure everything will be registered properly");
textRestart = textSuccess;
textReload = textSuccess;
} else if (data.was_reinstalled) {
titleSuccess = _.sprintf(gettext("Plugin \"%(name)s\" reinstalled"), {name: name}); titleSuccess = _.sprintf(gettext("Plugin \"%(name)s\" reinstalled"), {name: name});
textSuccess = gettext("The plugin was reinstalled successfully"); textSuccess = gettext("The plugin was reinstalled successfully");
textRestart = gettext("The plugin was reinstalled successfully, however a restart of OctoPrint is needed for that to take effect."); textRestart = gettext("The plugin was reinstalled successfully, however a restart of OctoPrint is needed for that to take effect.");
@@ -578,5 +615,5 @@ $(function() {
} }
// view model class, parameters for constructor, container to bind to // view model class, parameters for constructor, container to bind to
ADDITIONAL_VIEWMODELS.push([PluginManagerViewModel, ["loginStateViewModel", "settingsViewModel"], "#settings_plugin_pluginmanager"]); ADDITIONAL_VIEWMODELS.push([PluginManagerViewModel, ["loginStateViewModel", "settingsViewModel", "printerStateViewModel"], "#settings_plugin_pluginmanager"]);
}); });
@@ -84,3 +84,20 @@ table {
} }
} }
#settings_plugin_pluginmanager_workingdialog_output {
.message {
font-weight: bold;
}
.stdout {
color: #333333;
}
.stderr {
color: #990000;
}
.call {
color: #000099;
}
}
@@ -1,3 +1,11 @@
{% macro pluginmanager_printing() %}
<div class="alert" data-bind="visible: !enableManagement()">
{{ _('Take note that all plugin management functionality is disabled while your printer is printing.') }}
</div>
{% endmacro %}
{{ pluginmanager_printing() }}
<h3>{{ _('Installed Plugins') }}</h3> <h3>{{ _('Installed Plugins') }}</h3>
<table class="table table-striped table-hover table-condensed table-hover"> <table class="table table-striped table-hover table-condensed table-hover">
@@ -20,7 +28,7 @@
</div> </div>
</td> </td>
<td class="settings_plugin_plugin_manager_plugins_actions"> <td class="settings_plugin_plugin_manager_plugins_actions">
<a href="#" data-bind="css: $root.toggleButtonCss($data), attr: {title: $root.toggleButtonTitle($data)}, enable: key != 'pluginmanager', click: function() { $root.togglePlugin($data) }"></a>&nbsp;|&nbsp;<a href="#" class="icon-trash" title="{{ _('Uninstall Plugin') }}" data-bind="css: {disabled: bundled || key == 'pluginmanager' || pending_uninstall}, enable: !bundled && key != 'pluginmanager' && !pending_uninstall, click: function() { $root.uninstallPlugin($data) }"></a> <a href="#" data-bind="css: $root.toggleButtonCss($data), attr: {title: $root.toggleButtonTitle($data)}, enable: $root.enableToggle($data), click: function() { $root.togglePlugin($data) }"></a>&nbsp;|&nbsp;<a href="#" class="icon-trash" title="{{ _('Uninstall Plugin') }}" data-bind="css: {disabled: !$root.enableUninstall($data)}, enable: $root.enableUninstall($data), click: function() { $root.uninstallPlugin($data) }"></a>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@@ -45,7 +53,7 @@
<h3 data-bind="text: workingTitle"></h3> <h3 data-bind="text: workingTitle"></h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<pre id="settings_plugin_pluginmanager_workingdialog_output" class="terminal pre-scrollable" style="height: 170px" data-bind="foreach: loglines"><span data-bind="text: line, css: {stdout: stream == 'stdout', stderr: stream == 'stderr'}"></span><br></pre> <pre id="settings_plugin_pluginmanager_workingdialog_output" class="terminal pre-scrollable" style="height: 170px" data-bind="foreach: loglines"><span data-bind="text: line, css: {stdout: stream == 'stdout', stderr: stream == 'stderr', call: stream == 'call', message: stream == 'message'}"></span><br></pre>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn" data-dismiss="modal" data-bind="enable: !$root.working()" aria-hidden="true">{{ _('Close') }}</button> <button class="btn" data-dismiss="modal" data-bind="enable: !$root.working()" aria-hidden="true">{{ _('Close') }}</button>
@@ -58,6 +66,7 @@
<h3>{{ _('Install new Plugins...') }}</h3> <h3>{{ _('Install new Plugins...') }}</h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
{{ pluginmanager_printing() }}
<h4 style="position: relative"> <h4 style="position: relative">
{{ _('... from the <a href="%(url)s" target="_blank">Plugin Repository</a>', url='http://plugins.octoprint.org') }} {{ _('... from the <a href="%(url)s" target="_blank">Plugin Repository</a>', url='http://plugins.octoprint.org') }}
<a class="dropdown-toggle pull-right" data-toggle="dropdown" href="#"> <a class="dropdown-toggle pull-right" data-toggle="dropdown" href="#">
@@ -74,7 +83,7 @@
</a> </a>
</h4> </h4>
<form class="form-search"> <form class="form-search" data-bind="submit: performRepositorySearch">
<input type="text" class="input-block search-query" data-bind="value: repositorySearchQuery, valueUpdate: 'input'" placeholder="{{ _('Search...') }}"> <input type="text" class="input-block search-query" data-bind="value: repositorySearchQuery, valueUpdate: 'input'" placeholder="{{ _('Search...') }}">
</form> </form>
@@ -94,7 +103,7 @@
</div> </div>
</div> </div>
<div class="span3"> <div class="span3">
<button class="btn btn-primary btn-block" data-bind="enable: $root.isCompatible($data), css: {disabled: !$root.isCompatible($data)}, click: function() { if ($root.isCompatible($data)) { $root.installFromRepository($data); } else { return false; } }"><i class="icon-add"></i> <span data-bind="text: $root.installButtonText($data)"></span></button> <button class="btn btn-primary btn-block" data-bind="enable: $root.enableRepoInstall($data), css: {disabled: !$root.enableRepoInstall($data)}, click: function() { if ($root.enableRepoInstall($data)) { $root.installFromRepository($data); } else { return false; } }"><i class="icon-add"></i> <span data-bind="text: $root.installButtonText($data)"></span></button>
</div> </div>
</div> </div>
</div> </div>
@@ -138,21 +147,6 @@
</div> </div>
<span class="help-block" data-bind="visible: invalidArchive">{{ _('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"') }}</span> <span class="help-block" data-bind="visible: invalidArchive">{{ _('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"') }}</span>
</form> </form>
<div>
<div><small><a href="#" class="muted" onclick="$(this).children().toggleClass('icon-caret-right icon-caret-down').parent().parent().parent().next().slideToggle('fast')"><i class="icon-caret-right"></i> {{ _('Advanced options') }}</a></small></div>
<div class="hide">
<form class="form-horizontal">
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: followDependencyLinks"> {{ _('Use <code>--process-dependency-links</code> with <code>pip install</code>') }}
</label>
</div>
</div>
</form>
</div>
</div>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">{{ _('Close') }}</button> <button class="btn" data-dismiss="modal" aria-hidden="true">{{ _('Close') }}</button>
+148 -17
View File
@@ -37,12 +37,18 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
self._version_cache = dict() self._version_cache = dict()
self._version_cache_ttl = 0 self._version_cache_ttl = 0
self._version_cache_path = None
self._version_cache_dirty = False
def initialize(self): def initialize(self):
self._version_cache_ttl = self._settings.get_int(["cache_ttl"]) * 60 self._version_cache_ttl = self._settings.get_int(["cache_ttl"]) * 60
self._version_cache_path = os.path.join(self.get_plugin_data_folder(), "versioncache.yaml")
self._load_version_cache()
def refresh_checks(name, plugin): def refresh_checks(name, plugin):
self._refresh_configured_checks = True self._refresh_configured_checks = True
self._send_client_message("update_versions")
self._plugin_lifecycle_manager.add_callback("enabled", refresh_checks) self._plugin_lifecycle_manager.add_callback("enabled", refresh_checks)
self._plugin_lifecycle_manager.add_callback("disabled", refresh_checks) self._plugin_lifecycle_manager.add_callback("disabled", refresh_checks)
@@ -65,6 +71,41 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
return self._configured_checks return self._configured_checks
def _load_version_cache(self):
if not os.path.isfile(self._version_cache_path):
return
import yaml
try:
with open(self._version_cache_path) as f:
data = yaml.safe_load(f)
except:
self._logger.exception("Error while loading version cache from disk")
else:
self._version_cache = data
self._version_cache_dirty = False
self._logger.info("Loaded version cache from disk")
def _save_version_cache(self):
import tempfile
import yaml
import shutil
file_obj = tempfile.NamedTemporaryFile(delete=False)
try:
yaml.safe_dump(self._version_cache, stream=file_obj, default_flow_style=False, indent=" ", allow_unicode=True)
file_obj.close()
shutil.move(file_obj.name, self._version_cache_path)
self._version_cache_dirty = False
self._logger.info("Saved version cache to disk")
finally:
try:
if os.path.exists(file_obj.name):
os.remove(file_obj.name)
except Exception as e:
self._logger.warn("Could not delete file {}: {}".format(file_obj.name, str(e)))
#~~ SettingsPlugin API #~~ SettingsPlugin API
def get_settings_defaults(self): def get_settings_defaults(self):
@@ -81,17 +122,98 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
"octoprint_restart_command": None, "octoprint_restart_command": None,
"environment_restart_command": None, "environment_restart_command": None,
"pip_command": None,
"cache_ttl": 60, "cache_ttl": 24 * 60,
} }
def on_settings_save(self, data): def on_settings_save(self, data):
super(SoftwareUpdatePlugin, self).on_settings_save(data) octoprint.plugin.SettingsPlugin.on_settings_save(self, data)
self._version_cache_ttl = self._settings.get_int(["cache_ttl"]) * 60 self._version_cache_ttl = self._settings.get_int(["cache_ttl"]) * 60
def get_settings_version(self):
return 2
def on_settings_migrate(self, target, current=None):
if current is None:
# there might be some left over data from the time we still persisted everything to settings,
# even the stuff that shouldn't be persisted but always provided by the hook - let's
# clean up
configured_checks = self._settings.get(["checks"], incl_defaults=False)
if configured_checks is None:
configured_checks = dict()
# take care of the octoprint entry
if "octoprint" in configured_checks:
octoprint_check = dict(configured_checks["octoprint"])
if "type" in octoprint_check and not octoprint_check["type"] == "github_commit":
deletables=["current"]
else:
deletables=[]
octoprint_check = self._clean_settings_check("octoprint", octoprint_check, self.get_settings_defaults()["checks"]["octoprint"], delete=deletables, save=False)
# 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" in merged and not merged["type"] == "github_commit":
deletables = ["current", "displayVersion"]
else:
deletables = []
self._clean_settings_check(key, settings_check, data, delete=deletables, save=False)
elif current == 1:
configured_checks = self._settings.get(["checks"], incl_defaults=False)
if configured_checks is None:
return
if "octoprint" in configured_checks and "octoprint" in configured_checks["octoprint"]:
# that's a circular reference, back to defaults
dummy_defaults = dict(plugins=dict())
dummy_defaults["plugins"][self._identifier] = dict(checks=dict())
dummy_defaults["plugins"][self._identifier]["checks"]["octoprint"] = None
self._settings.set(["checks", "octoprint"], None, defaults=dummy_defaults)
self._settings.save()
def _clean_settings_check(self, key, data, defaults, delete=None, save=True):
if delete is None:
delete = []
for k, v in data.items():
if k in defaults and defaults[k] == data[k]:
del data[k]
for k in delete:
if k in data:
del data[k]
dummy_defaults = dict(plugins=dict())
dummy_defaults["plugins"][self._identifier] = dict(checks=dict())
dummy_defaults["plugins"][self._identifier]["checks"][key] = defaults
if len(data):
self._settings.set(["checks", key], data, defaults=dummy_defaults)
else:
self._settings.set(["checks", key], None, defaults=dummy_defaults)
if save:
self._settings.save()
return data
#~~ BluePrint API #~~ BluePrint API
@octoprint.plugin.BlueprintPlugin.route("/check", methods=["GET"]) @octoprint.plugin.BlueprintPlugin.route("/check", methods=["GET"])
@restricted_access
def check_for_update(self): def check_for_update(self):
if "check" in flask.request.values: if "check" in flask.request.values:
check_targets = map(str.strip, flask.request.values["check"].split(",")) check_targets = map(str.strip, flask.request.values["check"].split(","))
@@ -101,7 +223,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
if "force" in flask.request.values and flask.request.values["force"] in octoprint.settings.valid_boolean_trues: if "force" in flask.request.values and flask.request.values["force"] in octoprint.settings.valid_boolean_trues:
force = True force = True
else: else:
force=False force = False
try: try:
information, update_available, update_possible = self.get_current_versions(check_targets=check_targets, force=force) information, update_available, update_possible = self.get_current_versions(check_targets=check_targets, force=force)
@@ -116,10 +238,10 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
def perform_update(self): def perform_update(self):
if self._printer.is_printing() or self._printer.is_paused(): if self._printer.is_printing() or self._printer.is_paused():
# do not update while a print job is running # do not update while a print job is running
flask.make_response("Printer is currently printing or paused", 409) return flask.make_response("Printer is currently printing or paused", 409)
if not "application/json" in flask.request.headers["Content-Type"]: if not "application/json" in flask.request.headers["Content-Type"]:
flask.make_response("Expected content-type JSON", 400) return flask.make_response("Expected content-type JSON", 400)
json_data = flask.request.json json_data = flask.request.json
@@ -128,9 +250,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
else: else:
check_targets = None check_targets = None
if "force" in json_data: if "force" in json_data and json_data["force"] in octoprint.settings.valid_boolean_trues:
from octoprint.settings import valid_boolean_trues force = True
force = (json_data["force"] in valid_boolean_trues)
else: else:
force = False force = False
@@ -199,6 +320,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
local_value = target_information["local"]["value"] local_value = target_information["local"]["value"]
information[target]["displayVersion"] = check["displayVersion"].format(octoprint_version=octoprint_version, local_name=local_name, local_value=local_value) information[target]["displayVersion"] = check["displayVersion"].format(octoprint_version=octoprint_version, local_name=local_name, local_value=local_value)
if self._version_cache_dirty:
self._save_version_cache()
return information, update_available, update_possible return information, update_available, update_possible
def _get_current_version(self, target, check, force=False): def _get_current_version(self, target, check, force=False):
@@ -208,7 +331,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
if target in self._version_cache and not force: if target in self._version_cache and not force:
timestamp, information, update_available, update_possible = self._version_cache[target] timestamp, information, update_available, update_possible = self._version_cache[target]
if timestamp + self._version_cache_ttl >= time.time(): if timestamp + self._version_cache_ttl >= time.time() > timestamp:
# we also check that timestamp < now to not get confused too much by clock changes
return information, update_available, update_possible return information, update_available, update_possible
information = dict() information = dict()
@@ -233,6 +357,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
update_possible = False update_possible = False
self._version_cache[target] = (time.time(), information, update_available, update_possible) self._version_cache[target] = (time.time(), information, update_available, update_possible)
self._version_cache_dirty = True
return information, update_available, update_possible return information, update_available, update_possible
def _send_client_message(self, message_type, data=None): def _send_client_message(self, message_type, data=None):
@@ -309,6 +434,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
self._send_client_message("error", dict(results=target_results)) self._send_client_message("error", dict(results=target_results))
else: else:
self._save_version_cache()
# otherwise the update process was a success, but we might still have to restart # otherwise the update process was a success, but we might still have to restart
if restart_type is not None and restart_type in ("octoprint", "environment"): if restart_type is not None and restart_type in ("octoprint", "environment"):
# one of our updates requires a restart of either type "octoprint" or "environment". Let's see if # one of our updates requires a restart of either type "octoprint" or "environment". Let's see if
@@ -378,15 +505,17 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
# persist the new version if necessary for check type # persist the new version if necessary for check type
if check["type"] == "github_commit": if check["type"] == "github_commit":
checks = self._settings.get(["checks"], merged=True) dummy_default = dict(plugins=dict())
if target in checks: dummy_default["plugins"][self._identifier] = dict(checks=dict())
# TODO make this cleaner, right now it saves too much to disk dummy_default["plugins"][self._identifier]["checks"][target] = dict(current=None)
checks[target]["current"] = target_version self._settings.set(["checks", target, "current"], target_version, defaults=dummy_default)
self._settings.set(["checks"], checks)
# we have to save here (even though that makes us save quite often) since otherwise the next # we have to save here (even though that makes us save quite often) since otherwise the next
# load will overwrite our changes we just made # load will overwrite our changes we just made
self._settings.save() self._settings.save()
del self._version_cache[target]
self._version_cache_dirty = True
return target_error, target_result return target_error, target_result
@@ -443,6 +572,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
if "update_script" in check: if "update_script" in check:
return updaters.update_script return updaters.update_script
elif "pip" in check: elif "pip" in check:
if not "pip_command" in check and self._settings.get(["pip_command"]) is not None:
check["pip_command"] = self._settings.get(["pip_command"])
return updaters.pip return updaters.pip
elif "python_updater" in check: elif "python_updater" in check:
return updaters.python_updater return updaters.python_updater
@@ -44,9 +44,7 @@ $(function() {
}; };
self._showPopup = function(options, eventListeners) { self._showPopup = function(options, eventListeners) {
if (self.popup !== undefined) { self._closePopup();
self.popup.remove();
}
self.popup = new PNotify(options); self.popup = new PNotify(options);
if (eventListeners) { if (eventListeners) {
@@ -65,6 +63,12 @@ $(function() {
} }
}; };
self._closePopup = function() {
if (self.popup !== undefined) {
self.popup.remove();
}
};
self.showPluginSettings = function() { self.showPluginSettings = function() {
self._copyConfig(); self._copyConfig();
self.configurationDialog.modal(); self.configurationDialog.modal();
@@ -89,6 +93,86 @@ $(function() {
self.config_cacheTtl(self.settings.settings.plugins.softwareupdate.cache_ttl()); self.config_cacheTtl(self.settings.settings.plugins.softwareupdate.cache_ttl());
}; };
self.fromCheckResponse = function(data, ignoreSeen, showIfNothingNew) {
var versions = [];
_.each(data.information, function(value, key) {
value["key"] = key;
if (!value.hasOwnProperty("displayName") || value.displayName == "") {
value.displayName = value.key;
}
if (!value.hasOwnProperty("displayVersion") || value.displayVersion == "") {
value.displayVersion = value.information.local.name;
}
versions.push(value);
});
self.versions.updateItems(versions);
if (data.status == "updateAvailable" || data.status == "updatePossible") {
var text = gettext("There are updates available for the following components:");
text += "<ul>";
_.each(self.versions.items(), function(update_info) {
if (update_info.updateAvailable) {
var displayName = update_info.key;
if (update_info.hasOwnProperty("displayName")) {
displayName = update_info.displayName;
}
text += "<li>" + displayName + (update_info.updatePossible ? " <i class=\"icon-ok\"></i>" : "") + "</li>";
}
});
text += "</ul>";
text += "<small>" + gettext("Those components marked with <i class=\"icon-ok\"></i> can be updated directly.") + "</small>";
var options = {
title: gettext("Update Available"),
text: text,
hide: false
};
var eventListeners = {};
if (data.status == "updatePossible" && self.loginState.isAdmin()) {
// if user is admin, add action buttons
options["confirm"] = {
confirm: true,
buttons: [{
text: gettext("Ignore"),
click: function() {
self._markNotificationAsSeen(data.information);
self._showPopup({
text: gettext("You can make this message display again via \"Settings\" > \"SoftwareUpdate\" > \"Check for update now\"")
});
}
}, {
text: gettext("Update now"),
addClass: "btn-primary",
click: self.update
}]
};
options["buttons"] = {
closer: false,
sticker: false
};
}
if (ignoreSeen || !self._hasNotificationBeenSeen(data.information)) {
self._showPopup(options, eventListeners);
}
} else if (data.status == "current") {
if (showIfNothingNew) {
self._showPopup({
title: gettext("Everything is up-to-date"),
hide: false,
type: "success"
});
} else {
self._closePopup();
}
}
};
self.performCheck = function(showIfNothingNew, force, ignoreSeen) { self.performCheck = function(showIfNothingNew, force, ignoreSeen) {
if (!self.loginState.isUser()) return; if (!self.loginState.isUser()) return;
@@ -102,79 +186,7 @@ $(function() {
type: "GET", type: "GET",
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
var versions = []; self.fromCheckResponse(data, ignoreSeen, showIfNothingNew);
_.each(data.information, function(value, key) {
value["key"] = key;
if (!value.hasOwnProperty("displayName") || value.displayName == "") {
value.displayName = value.key;
}
if (!value.hasOwnProperty("displayVersion") || value.displayVersion == "") {
value.displayVersion = value.information.local.name;
}
versions.push(value);
});
self.versions.updateItems(versions);
if (data.status == "updateAvailable" || data.status == "updatePossible") {
var text = gettext("There are updates available for the following components:");
text += "<ul>";
_.each(self.versions.items(), function(update_info) {
if (update_info.updateAvailable) {
var displayName = update_info.key;
if (update_info.hasOwnProperty("displayName")) {
displayName = update_info.displayName;
}
text += "<li>" + displayName + (update_info.updatePossible ? " <i class=\"icon-ok\"></i>" : "") + "</li>";
}
});
text += "</ul>";
text += "<small>" + gettext("Those components marked with <i class=\"icon-ok\"></i> can be updated directly.") + "</small>";
var options = {
title: gettext("Update Available"),
text: text,
hide: false
};
var eventListeners = {};
if (data.status == "updatePossible" && self.loginState.isAdmin()) {
// if user is admin, add action buttons
options["confirm"] = {
confirm: true,
buttons: [{
text: gettext("Ignore"),
click: function() {
self._markNotificationAsSeen(data.information);
self._showPopup({
text: gettext("You can make this message display again via \"Settings\" > \"SoftwareUpdate\" > \"Check for update now\"")
});
}
}, {
text: gettext("Update now"),
addClass: "btn-primary",
click: self.update
}]
};
options["buttons"] = {
closer: false,
sticker: false
};
}
if (ignoreSeen || !self._hasNotificationBeenSeen(data.information)) {
self._showPopup(options, eventListeners);
}
} else if (data.status == "current" && showIfNothingNew) {
self._showPopup({
title: gettext("Everything is up-to-date"),
hide: false,
type: "success"
});
}
} }
}); });
}; };
@@ -421,6 +433,10 @@ $(function() {
self.updateInProgress = false; self.updateInProgress = false;
break; break;
} }
case "update_versions": {
self.performCheck();
break;
}
} }
if (options != undefined) { if (options != undefined) {
@@ -432,4 +448,4 @@ $(function() {
// view model class, parameters for constructor, container to bind to // view model class, parameters for constructor, container to bind to
ADDITIONAL_VIEWMODELS.push([SoftwareUpdateViewModel, ["loginStateViewModel", "printerStateViewModel", "settingsViewModel"], document.getElementById("settings_plugin_softwareupdate")]); ADDITIONAL_VIEWMODELS.push([SoftwareUpdateViewModel, ["loginStateViewModel", "printerStateViewModel", "settingsViewModel"], document.getElementById("settings_plugin_softwareupdate")]);
}); });
@@ -8,30 +8,67 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms
import logging import logging
try: from octoprint.util.pip import PipCaller, UnknownPip
import pip as _pip
except:
_pip = None
logger = logging.getLogger("octoprint.plugins.softwareupdate.updaters.pip")
console_logger = logging.getLogger("octoprint.plugins.softwareupdate.updaters.pip.console")
_pip_callers = dict()
def can_perform_update(target, check): def can_perform_update(target, check):
return "pip" in check and _pip is not None pip_caller = _get_pip_caller(command=check["pip_command"] if "pip_command" in check else None)
return "pip" in check and pip_caller is not None and pip_caller.available
def _get_pip_caller(command=None):
key = command
if command is None:
key = "__default"
if not key in _pip_callers:
try:
_pip_callers[key] = PipCaller(configured=command)
_pip_callers[key].on_log_call = _log_call
_pip_callers[key].on_log_stdout = _log_stdout
_pip_callers[key].on_log_stderr = _log_stderr
except UnknownPip:
_pip_callers[key] = None
return _pip_callers[key]
def perform_update(target, check, target_version): def perform_update(target, check, target_version):
logger = logging.getLogger("octoprint.plugins.softwareupdate.updaters.pip") pip_command = None
if "pip_command" in check:
pip_command = check["pip_command"]
pip_caller = _get_pip_caller(command=pip_command)
if pip_caller is None:
raise RuntimeError("Can't run pip")
install_arg = check["pip"].format(target_version=target_version) install_arg = check["pip"].format(target_version=target_version)
logger.debug("Target: %s, executing pip install %s" % (target, install_arg)) logger.debug("Target: %s, executing pip install %s" % (target, install_arg))
pip_args = ["install", check["pip"].format(target_version=target_version, target=target_version)] pip_args = ["install", check["pip"].format(target_version=target_version, target=target_version)]
_pip.main(pip_args)
if "force_reinstall" in check and check["force_reinstall"]: pip_caller.execute(*pip_args)
# if force_reinstall is true, we need to install the package a second time, this time forcing its reinstall
# without forcing its dependencies too logger.debug("Target: %s, executing pip install %s --ignore-reinstalled --force-reinstall --no-deps" % (target, install_arg))
logger.debug("Target. %s, executing pip install %s --ignore-reinstalled --force-reinstall --no-deps" % (target, install_arg)) pip_args += ["--ignore-installed", "--force-reinstall", "--no-deps"]
pip_args += ["--ignore-installed", "--force-reinstall", "--no-deps"]
_pip.main(pip_args) pip_caller.execute(*pip_args)
return "ok" return "ok"
def _log_call(*lines):
_log(lines, prefix=" ")
def _log_stdout(*lines):
_log(lines, prefix=">")
def _log_stderr(*lines):
_log(lines, prefix="!")
def _log(lines, prefix=None):
lines = map(lambda x: x.strip(), lines)
for line in lines:
console_logger.debug(u"{prefix} {line}".format(**locals()))
@@ -48,11 +48,19 @@ def _is_current(release_information, compare_type, custom=None):
if release_information["remote"]["value"] is None: if release_information["remote"]["value"] is None:
return True return True
if not compare_type in ("semantic", "unequal", "custom") or compare_type == "custom" and custom is None: if not compare_type in ("python", "semantic", "unequal", "custom") or compare_type == "custom" and custom is None:
compare_type = "semantic" compare_type = "python"
try: try:
if compare_type == "semantic": if compare_type == "python":
import pkg_resources
local_version = pkg_resources.parse_version(release_information["local"]["value"])
remote_version = pkg_resources.parse_version(release_information["remote"]["value"])
return local_version >= remote_version
elif compare_type == "semantic":
import semantic_version import semantic_version
local_version = semantic_version.Version(release_information["local"]["value"]) local_version = semantic_version.Version(release_information["local"]["value"])
@@ -79,7 +87,7 @@ def get_latest(target, check, custom_compare=None):
current = check["current"] current = check["current"]
remote_name, remote_tag = _get_latest_release(check["user"], check["repo"], include_prerelease=check["prerelease"] == True if "prerelease" in check else False) remote_name, remote_tag = _get_latest_release(check["user"], check["repo"], include_prerelease=check["prerelease"] == True if "prerelease" in check else False)
compare_type = check["release_compare"] if "release_compare" in check else "semantic" compare_type = check["release_compare"] if "release_compare" in check else "python"
information =dict( information =dict(
local=dict(name=current, value=current), local=dict(name=current, value=current),
+1 -1
View File
@@ -467,6 +467,6 @@ class PrinterCallback(object):
""" """
pass pass
class UnknownScript(BaseException): class UnknownScript(Exception):
def __init__(self, name, *args, **kwargs): def __init__(self, name, *args, **kwargs):
self.name = name self.name = name
+75 -18
View File
@@ -20,6 +20,7 @@ import os
import logging import logging
import logging.config import logging.config
import atexit import atexit
import signal
SUCCESS = {} SUCCESS = {}
NO_CONTENT = ("", 204) NO_CONTENT = ("", 204)
@@ -196,7 +197,8 @@ class Server():
file_manager=fileManager, file_manager=fileManager,
printer=printer, printer=printer,
app_session_manager=appSessionManager, app_session_manager=appSessionManager,
plugin_lifecycle_manager=pluginLifecycleManager plugin_lifecycle_manager=pluginLifecycleManager,
data_folder=os.path.join(settings().getBaseFolder("data"), name)
) )
def settings_plugin_inject_factory(name, implementation): def settings_plugin_inject_factory(name, implementation):
@@ -210,9 +212,31 @@ class Server():
set_preprocessors=set_preprocessors) set_preprocessors=set_preprocessors)
return dict(settings=plugin_settings) return dict(settings=plugin_settings)
def settings_plugin_config_migration(name, implementation):
if not isinstance(implementation, octoprint.plugin.SettingsPlugin):
return
settings_version = implementation.get_settings_version()
settings_migrator = implementation.on_settings_migrate
if settings_version is not None and settings_migrator is not None:
stored_version = implementation._settings.get_int(["_config_version"])
if stored_version is None or stored_version < settings_version:
settings_migrator(settings_version, stored_version)
implementation._settings.set_int(["_config_version"], settings_version)
implementation._settings.save()
implementation.on_settings_initialized()
pluginManager.implementation_inject_factories=[octoprint_plugin_inject_factory, settings_plugin_inject_factory] pluginManager.implementation_inject_factories=[octoprint_plugin_inject_factory, settings_plugin_inject_factory]
pluginManager.initialize_implementations() pluginManager.initialize_implementations()
settingsPlugins = pluginManager.get_implementations(octoprint.plugin.SettingsPlugin)
for implementation in settingsPlugins:
settings_plugin_config_migration(implementation._identifier, implementation)
pluginManager.implementation_post_inits=[settings_plugin_config_migration]
pluginManager.log_all_plugins() pluginManager.log_all_plugins()
# initialize file manager and register it for changes in the registered plugins # initialize file manager and register it for changes in the registered plugins
@@ -417,16 +441,27 @@ class Server():
# prepare our shutdown function # prepare our shutdown function
def on_shutdown(): def on_shutdown():
self._logger.info("Goodbye!") # will be called on clean system exit and shutdown the watchdog observer and call the on_shutdown methods
# on all registered ShutdownPlugins
self._logger.info("Shutting down...")
observer.stop() observer.stop()
observer.join() observer.join()
octoprint.plugin.call_plugin(octoprint.plugin.ShutdownPlugin, octoprint.plugin.call_plugin(octoprint.plugin.ShutdownPlugin,
"on_shutdown") "on_shutdown")
self._logger.info("Goodbye!")
atexit.register(on_shutdown) atexit.register(on_shutdown)
def sigterm_handler(*args, **kwargs):
# will stop tornado on SIGTERM, making the program exit cleanly
def shutdown_tornado():
ioloop.stop()
ioloop.add_callback_from_signal(shutdown_tornado)
signal.signal(signal.SIGTERM, sigterm_handler)
try: try:
# this is the main loop - as long as tornado is running, OctoPrint is running
ioloop.start() ioloop.start()
except KeyboardInterrupt: except (KeyboardInterrupt, SystemExit):
pass pass
except: except:
self._logger.fatal("Now that is embarrassing... Something really really went wrong here. Please report this including the stacktrace below in OctoPrint's bugtracker. Thanks!") self._logger.fatal("Now that is embarrassing... Something really really went wrong here. Please report this including the stacktrace below in OctoPrint's bugtracker. Thanks!")
@@ -674,6 +709,20 @@ class Server():
base_folder = settings().getBaseFolder("generated") base_folder = settings().getBaseFolder("generated")
# clean the folder
if settings().getBoolean(["devel", "webassets", "clean_on_startup"]):
import shutil
for entry in ("webassets", ".webassets-cache"):
path = os.path.join(base_folder, entry)
self._logger.debug("Deleting {path}...".format(**locals()))
if os.path.isdir(path):
shutil.rmtree(path, ignore_errors=True)
elif os.path.isfile(path):
try:
os.remove(path)
except:
self._logger.exception("Exception while trying to delete {entry} from {base_folder}".format(**locals()))
AdjustedEnvironment = type(Environment)(Environment.__name__, (Environment,), dict( AdjustedEnvironment = type(Environment)(Environment.__name__, (Environment,), dict(
resolver_class=util.flask.PluginAssetResolver resolver_class=util.flask.PluginAssetResolver
)) ))
@@ -754,17 +803,7 @@ class Server():
if len(less_app) == 0: if len(less_app) == 0:
less_app = ["empty"] less_app = ["empty"]
js_libs_bundle = Bundle(*js_libs, output="webassets/packed_libs.js") from webassets.filter import register_filter, Filter
if settings().getBoolean(["devel", "webassets", "minify"]):
js_app_bundle = Bundle(*js_app, output="webassets/package_app.js", filters="rjsmin")
else:
js_app_bundle = Bundle(*js_app, output="webassets/package_app.js")
all_js_bundle = Bundle(js_libs_bundle, js_app_bundle, output="webassets/packed.js")
css_libs_bundle = Bundle(*css_libs, output="webassets/packed_libs.css")
css_app_bundle = Bundle(*css_app, output="webassets/packed_app.css")
from webassets.filter import register_filter
from webassets.filter.cssrewrite.base import PatternRewriter from webassets.filter.cssrewrite.base import PatternRewriter
import re import re
class LessImportRewrite(PatternRewriter): class LessImportRewrite(PatternRewriter):
@@ -783,13 +822,31 @@ class Server():
return "{import_with_options}\"{import_url}\";".format(**locals()) return "{import_with_options}\"{import_url}\";".format(**locals())
class JsDelimiterBundle(Filter):
name = "js_delimiter_bundler"
options = {}
def input(self, _in, out, **kwargs):
out.write(_in.read())
out.write("\n;\n")
register_filter(LessImportRewrite) register_filter(LessImportRewrite)
register_filter(JsDelimiterBundle)
all_css_bundle = Bundle(css_libs_bundle, css_app_bundle, output="webassets/packed.css") js_libs_bundle = Bundle(*js_libs, output="webassets/packed_libs.js", filters="js_delimiter_bundler")
all_less_bundle = Bundle(*less_app, output="webassets/packed.less", filters="less_importrewrite") if settings().getBoolean(["devel", "webassets", "minify"]):
js_app_bundle = Bundle(*js_app, output="webassets/packed_app.js", filters="rjsmin, js_delimiter_bundler")
else:
js_app_bundle = Bundle(*js_app, output="webassets/packed_app.js", filters="js_delimiter_bundler")
assets.register("all_js", all_js_bundle) css_libs_bundle = Bundle(*css_libs, output="webassets/packed_libs.css")
assets.register("all_css", all_css_bundle) css_app_bundle = Bundle(*css_app, output="webassets/packed_app.css")
all_less_bundle = Bundle(*less_app, output="webassets/packed_app.less", filters="less_importrewrite")
assets.register("js_libs", js_libs_bundle)
assets.register("js_app", js_app_bundle)
assets.register("css_libs", css_libs_bundle)
assets.register("css_app", css_app_bundle)
assets.register("less_app", all_less_bundle) assets.register("less_app", all_less_bundle)
+16 -13
View File
@@ -152,22 +152,25 @@ def performSystemAction():
available_actions = s().get(["system", "actions"]) available_actions = s().get(["system", "actions"])
for availableAction in available_actions: for availableAction in available_actions:
if availableAction["action"] == action: if availableAction["action"] == action:
async = availableAction["async"] if "async" in availableAction else False
ignore = availableAction["ignore"] if "ignore" in availableAction else False
logger.info("Performing command: %s" % availableAction["command"]) logger.info("Performing command: %s" % availableAction["command"])
try: try:
# Note: we put the command in brackets since sarge (up to the most recently released version) has # we run this with shell=True since we have to trust whatever
# a bug concerning shell=True commands. Once sarge 0.1.4 we can upgrade to that and remove this # our admin configured as command and since we want to allow
# workaround again # shell-alike handling here...
# p = sarge.run(availableAction["command"], stderr=sarge.Capture(), shell=True, async=async)
# See https://bitbucket.org/vinay.sajip/sarge/issue/21/behavior-is-not-like-popen-using-shell if not async:
p = sarge.run([availableAction["command"]], stderr=sarge.Capture(), shell=True) if not ignore and p.returncode != 0:
if p.returncode != 0: returncode = p.returncode
returncode = p.returncode stderr_text = p.stderr.text
stderr_text = p.stderr.text logger.warn("Command failed with return code %i: %s" % (returncode, stderr_text))
logger.warn("Command failed with return code %i: %s" % (returncode, stderr_text)) return make_response(("Command failed with return code %i: %s" % (returncode, stderr_text), 500, []))
return make_response(("Command failed with return code %i: %s" % (returncode, stderr_text), 500, []))
except Exception, e: except Exception, e:
logger.warn("Command failed: %s" % e) if not ignore:
return make_response(("Command failed: %s" % e, 500, [])) logger.warn("Command failed: %s" % e)
return make_response(("Command failed: %s" % e, 500, []))
break
return NO_CONTENT return NO_CONTENT
+8 -2
View File
@@ -90,11 +90,17 @@ def getInstalledLanguagePacks():
def uploadLanguagePack(): def uploadLanguagePack():
input_name = "file" input_name = "file"
input_upload_path = input_name + "." + settings().get(["server", "uploads", "pathSuffix"]) input_upload_path = input_name + "." + settings().get(["server", "uploads", "pathSuffix"])
if not input_upload_path in request.values: input_upload_name = input_name + "." + settings().get(["server", "uploads", "nameSuffix"])
if not input_upload_path in request.values or not input_upload_name in request.values:
return make_response("No file included", 400) return make_response("No file included", 400)
upload_name = request.values[input_upload_name]
upload_path = request.values[input_upload_path] upload_path = request.values[input_upload_path]
exts = filter(lambda x: upload_name.lower().endswith(x), (".zip", ".tar.gz", ".tgz", ".tar"))
if not len(exts):
return make_response("File doesn't have a valid extension for a plugin archive", 400)
target_path = settings().getBaseFolder("translations") target_path = settings().getBaseFolder("translations")
if tarfile.is_tarfile(upload_path): if tarfile.is_tarfile(upload_path):
@@ -143,5 +149,5 @@ def _validate_archive_name(name):
raise InvalidLanguagePack("Provided language pack contains invalid name {name}".format(**locals())) raise InvalidLanguagePack("Provided language pack contains invalid name {name}".format(**locals()))
class InvalidLanguagePack(BaseException): class InvalidLanguagePack(Exception):
pass pass
+30 -6
View File
@@ -26,6 +26,8 @@ import octoprint.util
@api.route("/settings", methods=["GET"]) @api.route("/settings", methods=["GET"])
def getSettings(): def getSettings():
logger = logging.getLogger(__name__)
s = settings() s = settings()
connectionOptions = get_connection_options() connectionOptions = get_connection_options()
@@ -118,17 +120,30 @@ def getSettings():
for name in gcode_scripts: for name in gcode_scripts:
data["scripts"]["gcode"][name] = s.loadScript("gcode", name, source=True) data["scripts"]["gcode"][name] = s.loadScript("gcode", name, source=True)
def process_plugin_result(name, plugin, result): def process_plugin_result(name, result):
if result: if result:
try:
jsonify(test=result)
except:
logger.exception("Error while jsonifying settings from plugin {}, please contact the plugin author about this".format(name))
if not "plugins" in data: if not "plugins" in data:
data["plugins"] = dict() data["plugins"] = dict()
if "__enabled" in result: if "__enabled" in result:
del result["__enabled"] del result["__enabled"]
data["plugins"][name] = result data["plugins"][name] = result
octoprint.plugin.call_plugin(octoprint.plugin.SettingsPlugin, for plugin in octoprint.plugin.plugin_manager().get_implementations(octoprint.plugin.SettingsPlugin):
"on_settings_load", try:
callback=process_plugin_result) result = plugin.on_settings_load()
process_plugin_result(plugin._identifier, result)
except TypeError:
logger.warn("Could not load settings for plugin {name} ({version}) since it called super(...)".format(name=plugin._plugin_name, version=plugin._plugin_version))
logger.warn("in a way which has issues due to OctoPrint's dynamic reloading after plugin operations.")
logger.warn("Please contact the plugin's author and ask to update the plugin to use a direct call like")
logger.warn("octoprint.plugin.SettingsPlugin.on_settings_load(self) instead.")
except:
logger.exception("Could not load settings for plugin {name} ({version})".format(version=plugin._plugin_version, name=plugin._plugin_name))
return jsonify(data) return jsonify(data)
@@ -137,6 +152,8 @@ def getSettings():
@restricted_access @restricted_access
@admin_permission.require(403) @admin_permission.require(403)
def setSettings(): def setSettings():
logger = logging.getLogger(__name__)
if not "application/json" in request.headers["Content-Type"]: if not "application/json" in request.headers["Content-Type"]:
return make_response("Expected content-type JSON", 400) return make_response("Expected content-type JSON", 400)
@@ -235,8 +252,15 @@ def setSettings():
for plugin in octoprint.plugin.plugin_manager().get_implementations(octoprint.plugin.SettingsPlugin): for plugin in octoprint.plugin.plugin_manager().get_implementations(octoprint.plugin.SettingsPlugin):
plugin_id = plugin._identifier plugin_id = plugin._identifier
if plugin_id in data["plugins"]: if plugin_id in data["plugins"]:
plugin.on_settings_save(data["plugins"][plugin_id]) try:
plugin.on_settings_save(data["plugins"][plugin_id])
except TypeError:
logger.warn("Could not save settings for plugin {name} ({version}) since it called super(...)".format(name=plugin._plugin_name, version=plugin._plugin_version))
logger.warn("in a way which has issues due to OctoPrint's dynamic reloading after plugin operations.")
logger.warn("Please contact the plugin's author and ask to update the plugin to use a direct call like")
logger.warn("octoprint.plugin.SettingsPlugin.on_settings_save(self, data) instead.")
except:
logger.exception("Could not save settings for plugin {name} ({version})".format(version=plugin._plugin_version, name=plugin._plugin_name))
if s.save(): if s.save():
eventManager().fire(Events.SETTINGS_UPDATED) eventManager().fire(Events.SETTINGS_UPDATED)
+2 -2
View File
@@ -57,7 +57,7 @@ def slicingListSlicerProfiles(slicer):
@api.route("/slicing/<string:slicer>/profiles/<string:name>", methods=["GET"]) @api.route("/slicing/<string:slicer>/profiles/<string:name>", methods=["GET"])
def slicingGetSlicerProfile(slicer, name): def slicingGetSlicerProfile(slicer, name):
try: try:
profile = slicingManager.load_profile(slicer, name) profile = slicingManager.load_profile(slicer, name, require_configured=False)
except UnknownSlicer: except UnknownSlicer:
return make_response("Unknown slicer {slicer}".format(**locals()), 404) return make_response("Unknown slicer {slicer}".format(**locals()), 404)
except UnknownProfile: except UnknownProfile:
@@ -106,7 +106,7 @@ def slicingPatchSlicerProfile(slicer, name):
return make_response("Expected content-type JSON", 400) return make_response("Expected content-type JSON", 400)
try: try:
profile = slicingManager.load_profile(slicer, name) profile = slicingManager.load_profile(slicer, name, require_configured=False)
except UnknownSlicer: except UnknownSlicer:
return make_response("Unknown slicer {slicer}".format(**locals()), 404) return make_response("Unknown slicer {slicer}".format(**locals()), 404)
except UnknownProfile: except UnknownProfile:
+10 -1
View File
@@ -49,8 +49,17 @@ class PrinterStateConnection(sockjs.tornado.SockJSConnection, octoprint.printer.
self._remoteAddress = self._getRemoteAddress(info) self._remoteAddress = self._getRemoteAddress(info)
self._logger.info("New connection from client: %s" % self._remoteAddress) self._logger.info("New connection from client: %s" % self._remoteAddress)
plugin_signature = lambda impl: "{}:{}".format(impl._identifier, impl._plugin_version)
template_plugins = map(plugin_signature, self._pluginManager.get_implementations(octoprint.plugin.TemplatePlugin))
asset_plugins = map(plugin_signature, self._pluginManager.get_implementations(octoprint.plugin.AssetPlugin))
ui_plugins = sorted(set(template_plugins + asset_plugins))
import hashlib
plugin_hash = hashlib.md5()
plugin_hash.update(",".join(ui_plugins))
# connected => update the API key, might be necessary if the client was left open while the server restarted # connected => update the API key, might be necessary if the client was left open while the server restarted
self._emit("connected", {"apikey": octoprint.server.UI_API_KEY, "version": octoprint.server.VERSION, "display_version": octoprint.server.DISPLAY_VERSION}) self._emit("connected", {"apikey": octoprint.server.UI_API_KEY, "version": octoprint.server.VERSION, "display_version": octoprint.server.DISPLAY_VERSION, "plugin_hash": plugin_hash.hexdigest()})
self._printer.register_callback(self) self._printer.register_callback(self)
self._fileManager.register_slicingprogress_callback(self) self._fileManager.register_slicingprogress_callback(self)
+27 -24
View File
@@ -156,7 +156,8 @@ default_settings = {
"printerProfiles": None, "printerProfiles": None,
"scripts": None, "scripts": None,
"translations": None, "translations": None,
"generated": None "generated": None,
"data": None
}, },
"temperature": { "temperature": {
"profiles": [ "profiles": [
@@ -251,7 +252,8 @@ default_settings = {
}, },
"webassets": { "webassets": {
"minify": False, "minify": False,
"bundle": True "bundle": True,
"clean_on_startup": True
}, },
"virtualPrinter": { "virtualPrinter": {
"enabled": False, "enabled": False,
@@ -788,7 +790,7 @@ class Settings(object):
#~~ getter #~~ getter
def get(self, path, asdict=False, config=None, defaults=None, preprocessors=None, merged=False): def get(self, path, asdict=False, config=None, defaults=None, preprocessors=None, merged=False, incl_defaults=True):
import octoprint.util as util import octoprint.util as util
if len(path) == 0: if len(path) == 0:
@@ -806,7 +808,7 @@ class Settings(object):
if key in config and key in defaults: if key in config and key in defaults:
config = config[key] config = config[key]
defaults = defaults[key] defaults = defaults[key]
elif key in defaults: elif incl_defaults and key in defaults:
config = {} config = {}
defaults = defaults[key] defaults = defaults[key]
else: else:
@@ -831,7 +833,7 @@ class Settings(object):
value = config[key] value = config[key]
if merged and key in defaults: if merged and key in defaults:
value = util.dict_merge(defaults[key], value) value = util.dict_merge(defaults[key], value)
elif key in defaults: elif incl_defaults and key in defaults:
value = defaults[key] value = defaults[key]
else: else:
value = None value = None
@@ -852,8 +854,8 @@ class Settings(object):
else: else:
return results return results
def getInt(self, path, config=None, defaults=None, preprocessors=None): def getInt(self, path, config=None, defaults=None, preprocessors=None, incl_defaults=True):
value = self.get(path, defaults=defaults, preprocessors=preprocessors) value = self.get(path, config=config, defaults=defaults, preprocessors=preprocessors, incl_defaults=incl_defaults)
if value is None: if value is None:
return None return None
@@ -863,8 +865,8 @@ class Settings(object):
self._logger.warn("Could not convert %r to a valid integer when getting option %r" % (value, path)) self._logger.warn("Could not convert %r to a valid integer when getting option %r" % (value, path))
return None return None
def getFloat(self, path, config=None, defaults=None, preprocessors=None): def getFloat(self, path, config=None, defaults=None, preprocessors=None, incl_defaults=True):
value = self.get(path, config=config, defaults=defaults, preprocessors=preprocessors) value = self.get(path, config=config, defaults=defaults, preprocessors=preprocessors, incl_defaults=incl_defaults)
if value is None: if value is None:
return None return None
@@ -874,8 +876,8 @@ class Settings(object):
self._logger.warn("Could not convert %r to a valid integer when getting option %r" % (value, path)) self._logger.warn("Could not convert %r to a valid integer when getting option %r" % (value, path))
return None return None
def getBoolean(self, path, config=None, defaults=None, preprocessors=None): def getBoolean(self, path, config=None, defaults=None, preprocessors=None, incl_defaults=True):
value = self.get(path, config=config, defaults=defaults, preprocessors=preprocessors) value = self.get(path, config=config, defaults=defaults, preprocessors=preprocessors, incl_defaults=incl_defaults)
if value is None: if value is None:
return None return None
if isinstance(value, bool): if isinstance(value, bool):
@@ -930,14 +932,15 @@ class Settings(object):
#~~ setter #~~ setter
def set(self, path, value, force=False, defaults=None, preprocessors=None): def set(self, path, value, force=False, defaults=None, config=None, preprocessors=None):
if len(path) == 0: if len(path) == 0:
return return
if self._mtime is not None and self.last_modified != self._mtime: if self._mtime is not None and self.last_modified != self._mtime:
self.load() self.load()
config = self._config if config is None:
config = self._config
if defaults is None: if defaults is None:
defaults = default_settings defaults = default_settings
if preprocessors is None: if preprocessors is None:
@@ -967,15 +970,15 @@ class Settings(object):
del config[key] del config[key]
self._dirty = True self._dirty = True
elif force or (not key in config and defaults[key] != value) or (key in config and config[key] != value): elif force or (not key in config and defaults[key] != value) or (key in config and config[key] != value):
if value is None: if value is None and key in config:
del config[key] del config[key]
else: else:
config[key] = value config[key] = value
self._dirty = True self._dirty = True
def setInt(self, path, value, force=False, defaults=None, preprocessors=None): def setInt(self, path, value, force=False, defaults=None, config=None, preprocessors=None):
if value is None: if value is None:
self.set(path, None, force=force, defaults=defaults, preprocessors=preprocessors) self.set(path, None, config=config, force=force, defaults=defaults, preprocessors=preprocessors)
return return
try: try:
@@ -984,11 +987,11 @@ class Settings(object):
self._logger.warn("Could not convert %r to a valid integer when setting option %r" % (value, path)) self._logger.warn("Could not convert %r to a valid integer when setting option %r" % (value, path))
return return
self.set(path, intValue, force) self.set(path, intValue, config=config, force=force, defaults=defaults, preprocessors=preprocessors)
def setFloat(self, path, value, force=False, defaults=None, preprocessors=None): def setFloat(self, path, value, force=False, defaults=None, config=None, preprocessors=None):
if value is None: if value is None:
self.set(path, None, force=force, defaults=defaults, preprocessors=preprocessors) self.set(path, None, config=config, force=force, defaults=defaults, preprocessors=preprocessors)
return return
try: try:
@@ -997,15 +1000,15 @@ class Settings(object):
self._logger.warn("Could not convert %r to a valid integer when setting option %r" % (value, path)) self._logger.warn("Could not convert %r to a valid integer when setting option %r" % (value, path))
return return
self.set(path, floatValue, force) self.set(path, floatValue, config=config, force=force, defaults=defaults, preprocessors=preprocessors)
def setBoolean(self, path, value, force=False, defaults=None, preprocessors=None): def setBoolean(self, path, value, force=False, defaults=None, config=None, preprocessors=None):
if value is None or isinstance(value, bool): if value is None or isinstance(value, bool):
self.set(path, value, force=force, defaults=defaults, preprocessors=preprocessors) self.set(path, value, config=config, force=force, defaults=defaults, preprocessors=preprocessors)
elif value.lower() in valid_boolean_trues: elif value.lower() in valid_boolean_trues:
self.set(path, True, force=force, defaults=defaults, preprocessors=preprocessors) self.set(path, True, config=config, force=force, defaults=defaults, preprocessors=preprocessors)
else: else:
self.set(path, False, force=force, defaults=defaults, preprocessors=preprocessors) self.set(path, False, config=config, force=force, defaults=defaults, preprocessors=preprocessors)
def setBaseFolder(self, type, path, force=False): def setBaseFolder(self, type, path, force=False):
if type not in default_settings["folder"].keys(): if type not in default_settings["folder"].keys():
+9 -9
View File
@@ -33,7 +33,7 @@ __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agp
__copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License" __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License"
class SlicingException(BaseException): class SlicingException(Exception):
""" """
Base exception of all slicing related exceptions. Base exception of all slicing related exceptions.
""" """
@@ -54,7 +54,7 @@ class SlicerException(SlicingException):
Identifier of the slicer for which the exception was raised. Identifier of the slicer for which the exception was raised.
""" """
def __init__(self, slicer, *args, **kwargs): def __init__(self, slicer, *args, **kwargs):
super(SlicingException, self).__init__(*args, **kwargs) SlicingException.__init__(self, *args, **kwargs)
self.slicer = slicer self.slicer = slicer
class SlicerNotConfigured(SlicerException): class SlicerNotConfigured(SlicerException):
@@ -62,7 +62,7 @@ class SlicerNotConfigured(SlicerException):
Raised if a slicer is not yet configured but must be configured to proceed. Raised if a slicer is not yet configured but must be configured to proceed.
""" """
def __init__(self, slicer, *args, **kwargs): def __init__(self, slicer, *args, **kwargs):
super(SlicerException, self).__init__(slicer, *args, **kwargs) SlicerException.__init__(self, slicer, *args, **kwargs)
self.message = "Slicer not configured: {slicer}".format(slicer=slicer) self.message = "Slicer not configured: {slicer}".format(slicer=slicer)
class UnknownSlicer(SlicerException): class UnknownSlicer(SlicerException):
@@ -70,10 +70,10 @@ class UnknownSlicer(SlicerException):
Raised if a slicer is unknown. Raised if a slicer is unknown.
""" """
def __init__(self, slicer, *args, **kwargs): def __init__(self, slicer, *args, **kwargs):
super(SlicerException, self).__init__(slicer, *args, **kwargs) SlicerException.__init__(self, slicer, *args, **kwargs)
self.message = "No such slicer: {slicer}".format(slicer=slicer) self.message = "No such slicer: {slicer}".format(slicer=slicer)
class ProfileException(BaseException): class ProfileException(Exception):
""" """
Base exception of all slicing profile related exceptions. Base exception of all slicing profile related exceptions.
@@ -86,7 +86,7 @@ class ProfileException(BaseException):
Identifier of the profile for which the exception was raised. Identifier of the profile for which the exception was raised.
""" """
def __init__(self, slicer, profile, *args, **kwargs): def __init__(self, slicer, profile, *args, **kwargs):
super(BaseException, self).__init__(*args, **kwargs) Exception.__init__(self, *args, **kwargs)
self.slicer = slicer self.slicer = slicer
self.profile = profile self.profile = profile
@@ -95,7 +95,7 @@ class UnknownProfile(ProfileException):
Raised if a slicing profile does not exist but must exist to proceed. Raised if a slicing profile does not exist but must exist to proceed.
""" """
def __init__(self, slicer, profile, *args, **kwargs): def __init__(self, slicer, profile, *args, **kwargs):
super(ProfileException, self).__init__(slicer, profile, *args, **kwargs) ProfileException.__init__(self, slicer, profile, *args, **kwargs)
self.message = "Profile {profile} for slicer {slicer} does not exist".format(profile=profile, slicer=slicer) self.message = "Profile {profile} for slicer {slicer} does not exist".format(profile=profile, slicer=slicer)
class ProfileAlreadyExists(ProfileException): class ProfileAlreadyExists(ProfileException):
@@ -103,5 +103,5 @@ class ProfileAlreadyExists(ProfileException):
Raised if a slicing profile already exists and must not be overwritten. Raised if a slicing profile already exists and must not be overwritten.
""" """
def __init__(self, slicer, profile, *args, **kwargs): def __init__(self, slicer, profile, *args, **kwargs):
super(ProfileException, self).__init__(slicer, profile, *args, **kwargs) ProfileException.__init__(self, slicer, profile, *args, **kwargs)
self.message = "Profile {profile} for slicer {slicer} already exists".format(profile=profile, slicer=slicer) self.message = "Profile {profile} for slicer {slicer} already exists".format(profile=profile, slicer=slicer)
+1 -1
View File
@@ -1 +1 @@
.btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,0.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn:hover,.btn:focus,.btn:active,.btn.active,.btn.disabled,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn:active,.btn.active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:hover,.btn:focus{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class^="icon-"],.btn-large [class*=" icon-"]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class^="icon-"],.btn-small [class*=" icon-"]{margin-top:0}.btn-mini [class^="icon-"],.btn-mini [class*=" icon-"]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255,255,255,0.75)}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary:active,.btn-primary.active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0);border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-warning:hover,.btn-warning:focus,.btn-warning:aLine truncated .btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,0.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn:hover,.btn:focus,.btn:active,.btn.active,.btn.disabled,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn:active,.btn.active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:hover,.btn:focus{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class^="icon-"],.btn-large [class*=" icon-"]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class^="icon-"],.btn-small [class*=" icon-"]{margin-top:0}.btn-mini [class^="icon-"],.btn-mini [class*=" icon-"]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.btn-primary.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255,255,255,0.75)}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary:active,.btn-primary.active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0);border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-warning:hover,.btn-warning:focus,.btn-warning:aLine truncated
+10 -7
View File
@@ -9,6 +9,11 @@ function DataUpdater(allViewModels) {
self._autoReconnectTimeouts = [0, 1, 1, 2, 3, 5, 8, 13, 20, 40, 100]; self._autoReconnectTimeouts = [0, 1, 1, 2, 3, 5, 8, 13, 20, 40, 100];
self._autoReconnectDialogIndex = 1; self._autoReconnectDialogIndex = 1;
self._pluginHash = undefined;
self.reloadOverlay = $("#reloadui_overlay");
$("#reloadui_overlay_reload").click(function() { location.reload(true); });
self.connect = function() { self.connect = function() {
var options = {}; var options = {};
if (SOCKJS_DEBUG) { if (SOCKJS_DEBUG) {
@@ -119,6 +124,9 @@ function DataUpdater(allViewModels) {
DISPLAY_VERSION = data["display_version"]; DISPLAY_VERSION = data["display_version"];
$("span.version").text(DISPLAY_VERSION); $("span.version").text(DISPLAY_VERSION);
var oldPluginHash = self._pluginHash;
self._pluginHash = data["plugin_hash"];
if ($("#offline_overlay").is(":visible")) { if ($("#offline_overlay").is(":visible")) {
hideOfflineOverlay(); hideOfflineOverlay();
_.each(self.allViewModels, function(viewModel) { _.each(self.allViewModels, function(viewModel) {
@@ -132,13 +140,8 @@ function DataUpdater(allViewModels) {
} }
} }
if (oldVersion != VERSION) { if (oldVersion != VERSION || (oldPluginHash != undefined && oldPluginHash != self._pluginHash)) {
// version change detected, force reloading UI - use randomized delay to reduce server load in self.reloadOverlay.show();
// the case of multiple clients
var delay = 5 + Math.floor(Math.random() * 5) + 1;
setTimeout(function() {location.reload(true);}, delay * 1000);
// TODO notify about that, or show confirmation
} }
break; break;
@@ -308,7 +308,11 @@ $(function() {
return output; return output;
}; };
self.performSearch = function() { self.performSearch = function(e) {
if (e !== undefined) {
e.preventDefault();
}
var query = self.searchQuery(); var query = self.searchQuery();
if (query !== undefined && query.trim() != "") { if (query !== undefined && query.trim() != "") {
self.listHelper.changeSearchFunction(function(entry) { self.listHelper.changeSearchFunction(function(entry) {
@@ -28,15 +28,17 @@ $(function() {
new PNotify({title: "Success", text: _.sprintf(gettext("The command \"%(command)s\" executed successfully"), {command: action.name}), type: "success"}); new PNotify({title: "Success", text: _.sprintf(gettext("The command \"%(command)s\" executed successfully"), {command: action.name}), type: "success"});
}, },
error: function(jqXHR, textStatus, errorThrown) { error: function(jqXHR, textStatus, errorThrown) {
var error = "<p>" + _.sprintf(gettext("The command \"%(command)s\" could not be executed."), {command: action.name}) + "</p>"; if (!action.hasOwnProperty("ignore") || !action.ignore) {
error += pnotifyAdditionalInfo("<pre>" + jqXHR.responseText + "</pre>"); var error = "<p>" + _.sprintf(gettext("The command \"%(command)s\" could not be executed."), {command: action.name}) + "</p>";
new PNotify({title: gettext("Error"), text: error, type: "error", hide: false}); error += pnotifyAdditionalInfo("<pre>" + jqXHR.responseText + "</pre>");
new PNotify({title: gettext("Error"), text: error, type: "error", hide: false});
}
} }
}) })
}; };
if (action.confirm) { if (action.confirm) {
showConfirmationDialog(action.confirm, function (e) { showConfirmationDialog(action.confirm, function (e) {
callback(); callback();
}); });
} else { } else {
callback(); callback();
@@ -49,4 +51,4 @@ $(function() {
["loginStateViewModel", "appearanceViewModel", "settingsViewModel", "userSettingsViewModel"], ["loginStateViewModel", "appearanceViewModel", "settingsViewModel", "userSettingsViewModel"],
"#navbar" "#navbar"
]); ]);
}); });
+8 -5
View File
@@ -387,19 +387,21 @@ ul.dropdown-menu li a {
width: 100%; width: 100%;
} }
/** Offline overlay */ /** Offline & Reload overlay */
#offline_overlay { #offline_overlay,
#reloadui_overlay {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 10000; z-index: 10001;
display: none; display: none;
} }
#offline_overlay_background { #offline_overlay_background,
#reloadui_overlay_background {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
@@ -412,7 +414,8 @@ ul.dropdown-menu li a {
opacity: 0.5; opacity: 0.5;
} }
#offline_overlay_wrapper { #offline_overlay_wrapper,
#reloadui_overlay_wrapper {
position: absolute; position: absolute;
top: 0; top: 0;
bottom: 0; bottom: 0;
+1
View File
@@ -134,6 +134,7 @@
<!-- Overlays --> <!-- Overlays -->
{% include 'overlays/dragndrop.jinja2' %} {% include 'overlays/dragndrop.jinja2' %}
{% include 'overlays/offline.jinja2' %} {% include 'overlays/offline.jinja2' %}
{% include 'overlays/reloadui.jinja2' %}
<!-- End of overlays --> <!-- End of overlays -->
<!-- Generic plugin template files --> <!-- Generic plugin template files -->
+5 -1
View File
@@ -1,4 +1,8 @@
{% assets "all_js" %} {% assets "js_libs" %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
{% assets "js_app" %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script> <script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %} {% endassets %}
@@ -0,0 +1,14 @@
<div id="reloadui_overlay" xmlns="http://www.w3.org/1999/html">
<div id="reloadui_overlay_background"></div>
<div id="reloadui_overlay_wrapper">
<div class="container">
<div class="hero-unit">
<h1>{{ _('Please reload') }}</h1>
<p>{{ _('There is a new version of the server active now, a reload of the user interface is needed. This will not interrupt any print jobs you might have ongoing. Please reload the web interface now by clicking the button below.') }}</p>
<p>
<a class="btn btn-primary btn-large" id="reloadui_overlay_reload">{{ _('Reload now') }}</a>
</p>
</div>
</div>
</div>
</div>
+1 -1
View File
@@ -1,4 +1,4 @@
<form class="form-search"> <form class="form-search" data-bind="submit: performSearch">
<input type="text" class="input-block search-query" data-bind="value: searchQuery, valueUpdate: 'input'" placeholder="{{ _('Search...') }}"> <input type="text" class="input-block search-query" data-bind="value: searchQuery, valueUpdate: 'input'" placeholder="{{ _('Search...') }}">
</form> </form>
<div class="gcode_files" data-bind="slimScrolledForeach: listHelper.paginatedItems"> <div class="gcode_files" data-bind="slimScrolledForeach: listHelper.paginatedItems">
+5 -1
View File
@@ -1,4 +1,8 @@
{% assets "all_css" %} {% assets "css_libs" %}
<link href="{{ ASSET_URL }}" rel="stylesheet" media="screen">
{% endassets %}
{% assets "css_app" %}
<link href="{{ ASSET_URL }}" rel="stylesheet" media="screen"> <link href="{{ ASSET_URL }}" rel="stylesheet" media="screen">
{% endassets %} {% endassets %}
@@ -11,8 +11,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: OctoPrint\n" "Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2015-06-09 14:48+0200\n" "POT-Creation-Date: 2015-06-21 17:58+0200\n"
"PO-Revision-Date: 2015-06-09 14:48+0100\n" "PO-Revision-Date: 2015-06-21 18:00+0100\n"
"Last-Translator: Gina Häußge <osd@foosel.net>\n" "Last-Translator: Gina Häußge <osd@foosel.net>\n"
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/" "Language-Team: German (http://www.transifex.com/projects/p/octoprint/"
"language/de/)\n" "language/de/)\n"
@@ -55,7 +55,7 @@ msgid "Identifier"
msgstr "ID" msgstr "ID"
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:66 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:75
#: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:6
#: src/octoprint/templates/sidebar/files_header.jinja2:6 #: src/octoprint/templates/sidebar/files_header.jinja2:6
#: src/octoprint/templates/tabs/timelapse.jinja2:45 #: src/octoprint/templates/tabs/timelapse.jinja2:45
@@ -65,7 +65,7 @@ msgstr "aufsteigend"
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:28 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:28
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:82 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:82
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:6 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:14
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:4 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:4
#: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:6
#: src/octoprint/templates/dialogs/settings/logs.jinja2:12 #: src/octoprint/templates/dialogs/settings/logs.jinja2:12
@@ -78,7 +78,7 @@ msgid "Name"
msgstr "Name" msgstr "Name"
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:29 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:29
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:7 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:15
msgid "Actions" msgid "Actions"
msgstr "Aktionen" msgstr "Aktionen"
@@ -104,7 +104,7 @@ msgid "Profile ini file"
msgstr "Profil-INI-Datei" msgstr "Profil-INI-Datei"
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:68 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:68
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:132 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:141
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:83 #: src/octoprint/templates/dialogs/settings/appearance.jinja2:83
msgid "Browse..." msgid "Browse..."
msgstr "Durchsuchen..." msgstr "Durchsuchen..."
@@ -135,105 +135,120 @@ msgstr "Abbrechen"
msgid "Confirm" msgid "Confirm"
msgstr "Bestätigen" msgstr "Bestätigen"
#: src/octoprint/plugins/pluginmanager/__init__.py:78 #: src/octoprint/plugins/pluginmanager/__init__.py:79
msgid "Plugin Manager" msgid "Plugin Manager"
msgstr "Pluginmanager" msgstr "Pluginmanager"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:110 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:234 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:275
msgid "Installing plugin..." msgid "Installing plugin..."
msgstr "Installiere Plugin..." msgstr "Installiere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:110 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
msgid "Installing plugin from uploaded archive..." msgid "Installing plugin from uploaded archive..."
msgstr "Installiere Plugin von hochgeladenem Archiv..." msgstr "Installiere Plugin von hochgeladenem Archiv..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:122 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:147
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:194 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:223
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:259 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:300
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:285 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:330
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:490 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:544
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:520 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:574
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:537 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:591
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
msgid "Something went wrong" msgid "Something went wrong"
msgstr "Etwas ist schief gegangen" msgstr "Etwas ist schief gegangen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:123 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:148
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:195 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:224
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:260 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:301
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:286 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:331
msgid "Please consult octoprint.log for details" msgid "Please consult octoprint.log for details"
msgstr "Bitte konsultiere octoprint.log für Details" msgstr "Bitte konsultiere octoprint.log für Details"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:236 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:277
#, python-format #, python-format
msgid "Installing plugin \"%(name)s\" from %(url)s..." msgid "Installing plugin \"%(name)s\" from %(url)s..."
msgstr "Installiere Plugin \"%(name)s\" von %(url)s..." msgstr "Installiere Plugin \"%(name)s\" von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:238 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:279
#, python-format #, python-format
msgid "Installing plugin from %(url)s..." msgid "Installing plugin from %(url)s..."
msgstr "Installiere Plugin von %(url)s..." msgstr "Installiere Plugin von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:241 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:282
msgid "Reinstalling plugin..." msgid "Reinstalling plugin..."
msgstr "Reinstalliere Plugin..." msgstr "Reinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:242 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:283
#, python-format #, python-format
msgid "Reinstalling plugin \"%(name)s\" from %(url)s..." msgid "Reinstalling plugin \"%(name)s\" from %(url)s..."
msgstr "Reinstalliere Plugin \"%(name)s\" von %(url)s..." msgstr "Reinstalliere Plugin \"%(name)s\" von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:276 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
msgid "Uninstalling plugin..." msgid "Uninstalling plugin..."
msgstr "Deinstalliere Plugin..." msgstr "Deinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:276 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
#, python-format #, python-format
msgid "Uninstalling plugin \"%(name)s\"" msgid "Uninstalling plugin \"%(name)s\""
msgstr "Deinstalliere Plugin \"%(name)s\"" msgstr "Deinstalliere Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:313 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Reinstall" msgid "Reinstall"
msgstr "Reinstallieren" msgstr "Reinstallieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:313 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:121 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:130
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:137 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:146
msgid "Install" msgid "Install"
msgstr "Installieren" msgstr "Installieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:313 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Incompatible" msgid "Incompatible"
msgstr "Inkompatibel" msgstr "Inkompatibel"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:331 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:374
#: src/octoprint/templates/overlays/reloadui.jinja2:9
msgid "Reload now" msgid "Reload now"
msgstr "Jetzt neu laden" msgstr "Jetzt neu laden"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:400 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:443
msgid "Done!" msgid "Done!"
msgstr "Fertig!" msgstr "Fertig!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:420 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Enable Plugin" msgid "Enable Plugin"
msgstr "Plugin enablen" msgstr "Plugin enablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:420 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Disable Plugin" msgid "Disable Plugin"
msgstr "Plugin disablen" msgstr "Plugin disablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:479 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:528
msgid "Plugin installed"
msgstr "Plugin installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:529
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:533
#, python-format #, python-format
msgid "Plugin \"%(name)s\" reinstalled" msgid "Plugin \"%(name)s\" reinstalled"
msgstr "Plugin \"%(name)s\" reinstalliert" msgstr "Plugin \"%(name)s\" reinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:480 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:534
msgid "The plugin was reinstalled successfully" msgid "The plugin was reinstalled successfully"
msgstr "Das Plugin wurde erfolgreich reinstalliert" msgstr "Das Plugin wurde erfolgreich reinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:481 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535
msgid "" msgid ""
"The plugin was reinstalled successfully, however a restart of OctoPrint is " "The plugin was reinstalled successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
@@ -241,7 +256,7 @@ msgstr ""
"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neustart von " "Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neustart von "
"OctoPrint notwendig bevor es genutzt werden kann." "OctoPrint notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:482 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:536
msgid "" msgid ""
"The plugin was reinstalled successfully, however a reload of the page is " "The plugin was reinstalled successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
@@ -249,16 +264,16 @@ msgstr ""
"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neuladen der " "Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neuladen der "
"Seite notwendig bevor es genutzt werden kann." "Seite notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:484 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:538
#, python-format #, python-format
msgid "Plugin \"%(name)s\" installed" msgid "Plugin \"%(name)s\" installed"
msgstr "Plugin \"%(name)s\" installiert" msgstr "Plugin \"%(name)s\" installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:539
msgid "The plugin was installed successfully" msgid "The plugin was installed successfully"
msgstr "Das Plugin wurde erfolgreich installiert" msgstr "Das Plugin wurde erfolgreich installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:486 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540
msgid "" msgid ""
"The plugin was installed successfully, however a restart of OctoPrint is " "The plugin was installed successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
@@ -266,7 +281,7 @@ msgstr ""
"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neustart von " "Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neustart von "
"OctoPrint notwendig bevor es genutzt werden kann." "OctoPrint notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:487 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541
msgid "" msgid ""
"The plugin was installed successfully, however a reload of the page is " "The plugin was installed successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
@@ -274,19 +289,19 @@ msgstr ""
"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neuladen der " "Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neuladen der "
"Seite notwendig bevor es genutzt werden kann." "Seite notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:498 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552
#, python-format #, python-format
msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s" msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr "" msgstr ""
"Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s" "Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:500 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554
#, python-format #, python-format
msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s" msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr "" msgstr ""
"Installation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s" "Installation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:504 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
#, python-format #, python-format
msgid "" msgid ""
"Reinstalling the plugin from URL \"%(url)s\" failed, please see the log for " "Reinstalling the plugin from URL \"%(url)s\" failed, please see the log for "
@@ -295,7 +310,7 @@ msgstr ""
"Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte " "Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte "
"konsultiere das Log für Details." "konsultiere das Log für Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:506 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:560
#, python-format #, python-format
msgid "" msgid ""
"Installing the plugin from URL \"%(url)s\" failed, please see the log for " "Installing the plugin from URL \"%(url)s\" failed, please see the log for "
@@ -304,16 +319,16 @@ msgstr ""
"Installation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte " "Installation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte "
"konsultiere das Log für Details" "konsultiere das Log für Details"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:515 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569
#, python-format #, python-format
msgid "Plugin \"%(name)s\" uninstalled" msgid "Plugin \"%(name)s\" uninstalled"
msgstr "Plugin \"%(name)s\" deinstalliert" msgstr "Plugin \"%(name)s\" deinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:516 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:570
msgid "The plugin was uninstalled successfully" msgid "The plugin was uninstalled successfully"
msgstr "Das Plugin wurde erfolgreich deinstalliert" msgstr "Das Plugin wurde erfolgreich deinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:517 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:571
msgid "" msgid ""
"The plugin was uninstalled successfully, however a restart of OctoPrint is " "The plugin was uninstalled successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
@@ -321,7 +336,7 @@ msgstr ""
"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neustart von " "Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neustart von "
"OctoPrint notwendig." "OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:518 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572
msgid "" msgid ""
"The plugin was uninstalled successfully, however a reload of the page is " "The plugin was uninstalled successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
@@ -329,27 +344,27 @@ msgstr ""
"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neuladen der " "Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neuladen der "
"Seite notwendig." "Seite notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:522 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:576
#, python-format #, python-format
msgid "Uninstalling the plugin failed: %(reason)s" msgid "Uninstalling the plugin failed: %(reason)s"
msgstr "Deinstallation des Plugins fehlgeschlagen: %(reason)s" msgstr "Deinstallation des Plugins fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:524 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:578
msgid "Uninstalling the plugin failed, please see the log for details." msgid "Uninstalling the plugin failed, please see the log for details."
msgstr "" msgstr ""
"Deinstallation des Plugins fehlgeschlagen, bitte konsultiere das Log für " "Deinstallation des Plugins fehlgeschlagen, bitte konsultiere das Log für "
"Details." "Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:532 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586
#, python-format #, python-format
msgid "Plugin \"%(name)s\" enabled" msgid "Plugin \"%(name)s\" enabled"
msgstr "Plugin \"%(name)s\" aktiviert" msgstr "Plugin \"%(name)s\" aktiviert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:533 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:587
msgid "The plugin was enabled successfully." msgid "The plugin was enabled successfully."
msgstr "Das Plugin wurde erfolgreich aktiviert." msgstr "Das Plugin wurde erfolgreich aktiviert."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:534 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:588
msgid "" msgid ""
"The plugin was enabled successfully, however a restart of OctoPrint is " "The plugin was enabled successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
@@ -357,7 +372,7 @@ msgstr ""
"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neustart von " "Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neustart von "
"OctoPrint notwendig." "OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:589
msgid "" msgid ""
"The plugin was enabled successfully, however a reload of the page is needed " "The plugin was enabled successfully, however a reload of the page is needed "
"for that to take effect." "for that to take effect."
@@ -365,28 +380,28 @@ msgstr ""
"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neuladen der Seite " "Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neuladen der Seite "
"notwendig." "notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:539 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:593
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:556 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:610
#, python-format #, python-format
msgid "Toggling the plugin failed: %(reason)s" msgid "Toggling the plugin failed: %(reason)s"
msgstr "Togglen des Plugins fehlgeschalgen: %(reason)s" msgstr "Togglen des Plugins fehlgeschalgen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:595
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:612
msgid "Toggling the plugin failed, please see the log for details." msgid "Toggling the plugin failed, please see the log for details."
msgstr "" msgstr ""
"Togglen des Plugins fehlgeschlagen, bitte konsultiere das Log für Details." "Togglen des Plugins fehlgeschlagen, bitte konsultiere das Log für Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:549 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:603
#, python-format #, python-format
msgid "Plugin \"%(name)s\" disabled" msgid "Plugin \"%(name)s\" disabled"
msgstr "Plugin \"%(name)s\" deaktiviert" msgstr "Plugin \"%(name)s\" deaktiviert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:550 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:604
msgid "The plugin was disabled successfully." msgid "The plugin was disabled successfully."
msgstr "Das Plugin wurde erfolgreich deaktiviert." msgstr "Das Plugin wurde erfolgreich deaktiviert."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605
msgid "" msgid ""
"The plugin was disabled successfully, however a restart of OctoPrint is " "The plugin was disabled successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
@@ -394,7 +409,7 @@ msgstr ""
"Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neustart von " "Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neustart von "
"OctoPrint notwendig." "OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:606
msgid "" msgid ""
"The plugin was disabled successfully, however a reload of the page is needed " "The plugin was disabled successfully, however a reload of the page is needed "
"for that to take effect." "for that to take effect."
@@ -402,53 +417,61 @@ msgstr ""
"Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neuladen der " "Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neuladen der "
"Seite notwendig." "Seite notwendig."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:1 #: 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 das jegliche Pluginmanagementfunktionen während des Druckens "
"deaktiviert sind."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:9
msgid "Installed Plugins" msgid "Installed Plugins"
msgstr "Installierte Plugins" msgstr "Installierte Plugins"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:13 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:21
msgid "Bundled" msgid "Bundled"
msgstr "Gebundled" msgstr "Gebundled"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:16 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:24
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:90 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:99
#: src/octoprint/templates/index.jinja2:118 #: src/octoprint/templates/index.jinja2:118
msgid "Homepage" msgid "Homepage"
msgstr "Homepage" msgstr "Homepage"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:23 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:31
msgid "Uninstall Plugin" msgid "Uninstall Plugin"
msgstr "Plugin deinstallieren" msgstr "Plugin deinstallieren"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:40 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:48
msgid "Get More..." msgid "Get More..."
msgstr "Mehr..." msgstr "Mehr..."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:51 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:59
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:143 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:167
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:96 #: src/octoprint/templates/dialogs/settings/appearance.jinja2:96
msgid "Close" msgid "Close"
msgstr "Schließen" msgstr "Schließen"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:58 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:66
msgid "Install new Plugins..." msgid "Install new Plugins..."
msgstr "Installation neuer Plugins..." msgstr "Installation neuer Plugins..."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:62 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:71
#, python-format #, python-format
msgid "" msgid ""
"... from the <a href=\"%(url)s\" target=\"_blank\">Plugin Repository</a>" "... from the <a href=\"%(url)s\" target=\"_blank\">Plugin Repository</a>"
msgstr "... vom <a href=\"%(url)s\" target=\"_blank\">Plugin Repository</a>" msgstr "... vom <a href=\"%(url)s\" target=\"_blank\">Plugin Repository</a>"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:66 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:75
msgid "Sort by title" msgid "Sort by title"
msgstr "Nach Titel sortieren" msgstr "Nach Titel sortieren"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:67 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:76
msgid "Sort by publication date" msgid "Sort by publication date"
msgstr "Nach Veröffentlichungsdatum sortieren" msgstr "Nach Veröffentlichungsdatum sortieren"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:67 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:76
#: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:6
#: src/octoprint/templates/sidebar/files_header.jinja2:7 #: src/octoprint/templates/sidebar/files_header.jinja2:7
#: src/octoprint/templates/sidebar/files_header.jinja2:8 #: src/octoprint/templates/sidebar/files_header.jinja2:8
@@ -456,52 +479,52 @@ msgstr "Nach Veröffentlichungsdatum sortieren"
msgid "descending" msgid "descending"
msgstr "absteigend" msgstr "absteigend"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:69 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:78
msgid "Only show uninstalled plugins" msgid "Only show uninstalled plugins"
msgstr "Nur uninstallierte Plugins anzeigen" msgstr "Nur uninstallierte Plugins anzeigen"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:70 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:79
msgid "Only show compatible plugins" msgid "Only show compatible plugins"
msgstr "Nur kompatible Plugins anzeigen" msgstr "Nur kompatible Plugins anzeigen"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:72 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:81
msgid "Refresh list from repository" msgid "Refresh list from repository"
msgstr "Liste vom Repository neu laden" msgstr "Liste vom Repository neu laden"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:78 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:87
#: src/octoprint/templates/sidebar/files.jinja2:2 #: src/octoprint/templates/sidebar/files.jinja2:2
msgid "Search..." msgid "Search..."
msgstr "Suchen..." msgstr "Suchen..."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:89 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:98
msgid "Details" msgid "Details"
msgstr "Details" msgstr "Details"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:106 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:115
msgid "Sadly the repository is currently not available" msgid "Sadly the repository is currently not available"
msgstr "Das Repository ist leider zur Zeit nicht verfügbar" msgstr "Das Repository ist leider zur Zeit nicht verfügbar"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:109 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:118
msgid "Is your OctoPrint installation connected to the internet?" msgid "Is your OctoPrint installation connected to the internet?"
msgstr "Ist Deine OctoPrint Installation mit dem Internet verbunden?" msgstr "Ist Deine OctoPrint Installation mit dem Internet verbunden?"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:114 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:123
msgid "... from URL" msgid "... from URL"
msgstr "... von URL" msgstr "... von URL"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:119 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:128
msgid "Enter URL..." msgid "Enter URL..."
msgstr "URL eingeben..." msgstr "URL eingeben..."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:123 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:132
msgid "This does not look like a valid \"http://\" or \"https://\" URL." msgid "This does not look like a valid \"http://\" or \"https://\" URL."
msgstr "Das sieht nicht wie eine valide \"http://\" oder \"https://\" URL aus." msgstr "Das sieht nicht wie eine valide \"http://\" oder \"https://\" URL aus."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:126 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:135
msgid "... from an uploaded archive" msgid "... from an uploaded archive"
msgstr "... von einem hochgeladenen Archiv" msgstr "... von einem hochgeladenen Archiv"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:139 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:148
msgid "" msgid ""
"This does not look like a valid plugin archive. Valid plugin archives should " "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" "be either zip files or tarballs and have the extension \".zip\", \".tar.gz"
@@ -511,7 +534,19 @@ msgstr ""
"sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension \".zip" "sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension \".zip"
"\", \".tar.gz\", \".tgz\" oder \".tar\" haben" "\", \".tar.gz\", \".tgz\" oder \".tar\" haben"
#: src/octoprint/plugins/softwareupdate/__init__.py:412 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:152
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:44
#: src/octoprint/templates/tabs/terminal.jinja2:25
msgid "Advanced options"
msgstr "Erweiterte Optionen"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:158
msgid ""
"Use <code>--process-dependency-links</code> with <code>pip install</code>"
msgstr ""
"Übergebe <code>--process-dependency-links</code> an <code>pip install</code>"
#: src/octoprint/plugins/softwareupdate/__init__.py:499
#: src/octoprint/server/views.py:146 #: src/octoprint/server/views.py:146
#: src/octoprint/static/js/app/viewmodels/appearance.js:11 #: src/octoprint/static/js/app/viewmodels/appearance.js:11
#: src/octoprint/static/js/app/viewmodels/appearance.js:13 #: src/octoprint/static/js/app/viewmodels/appearance.js:13
@@ -520,11 +555,11 @@ msgstr ""
msgid "OctoPrint" msgid "OctoPrint"
msgstr "OctoPrint" msgstr "OctoPrint"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:122 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:114
msgid "There are updates available for the following components:" msgid "There are updates available for the following components:"
msgstr "Es gibt Aktualisierungen für die folgenden Komponenten:" msgstr "Es gibt Aktualisierungen für die folgenden Komponenten:"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:136 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:128
msgid "" msgid ""
"Those components marked with <i class=\"icon-ok\"></i> can be updated " "Those components marked with <i class=\"icon-ok\"></i> can be updated "
"directly." "directly."
@@ -532,15 +567,15 @@ msgstr ""
"Die mit <i class=\"icon-ok\"></i> markierten Komponenten können direkt " "Die mit <i class=\"icon-ok\"></i> markierten Komponenten können direkt "
"aktualisiert werden." "aktualisiert werden."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:139 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:131
msgid "Update Available" msgid "Update Available"
msgstr "Aktualisierung verfügbar" msgstr "Aktualisierung verfügbar"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:151 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:143
msgid "Ignore" msgid "Ignore"
msgstr "Ignorieren" msgstr "Ignorieren"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:155 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:147
msgid "" msgid ""
"You can make this message display again via \"Settings\" > \"SoftwareUpdate" "You can make this message display again via \"Settings\" > \"SoftwareUpdate"
"\" > \"Check for update now\"" "\" > \"Check for update now\""
@@ -548,27 +583,27 @@ msgstr ""
"Du kannst diese Nachricht erneut anzeigen lassen mittels \"Einstellungen\" > " "Du kannst diese Nachricht erneut anzeigen lassen mittels \"Einstellungen\" > "
"\"Software Update\" > \"Jetzt nach Aktualisierungen suchen\"" "\"Software Update\" > \"Jetzt nach Aktualisierungen suchen\""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:159 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:151
msgid "Update now" msgid "Update now"
msgstr "Jetzt aktualisieren" msgstr "Jetzt aktualisieren"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:175 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:168
msgid "Everything is up-to-date" msgid "Everything is up-to-date"
msgstr "Alles ist auf dem neusten Stand" msgstr "Alles ist auf dem neusten Stand"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:221 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:233
msgid "Updating..." msgid "Updating..."
msgstr "Aktualisiere..." msgstr "Aktualisiere..."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:222 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:234
msgid "Now updating, please wait." msgid "Now updating, please wait."
msgstr "Aktualisiere gerade, bitte warten." msgstr "Aktualisiere gerade, bitte warten."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:241 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:253
msgid "Update not started!" msgid "Update not started!"
msgstr "Aktualisierung nicht gestartet!" msgstr "Aktualisierung nicht gestartet!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:242 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:254
msgid "" msgid ""
"The update could not be started. Is it already active? Please consult the " "The update could not be started. Is it already active? Please consult the "
"log for details." "log for details."
@@ -576,11 +611,11 @@ msgstr ""
"Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? Bitte " "Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? Bitte "
"konsultiere das Log für Details." "konsultiere das Log für Details."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:264 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:276
msgid "Can't update while printing" msgid "Can't update while printing"
msgstr "Aktualisierung nicht möglich während gedruckt wird" msgstr "Aktualisierung nicht möglich während gedruckt wird"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:265 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:277
msgid "" msgid ""
"A print job is currently in progress. Updating will be prevented until it is " "A print job is currently in progress. Updating will be prevented until it is "
"done." "done."
@@ -588,17 +623,17 @@ msgstr ""
"Ein Druckjob ist zur Zeit aktiv. Aktualisierungen werden unterbunden bis er " "Ein Druckjob ist zur Zeit aktiv. Aktualisierungen werden unterbunden bis er "
"fertig ist." "fertig ist."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:269 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:281
msgid "This will update your OctoPrint installation and restart the server." msgid "This will update your OctoPrint installation and restart the server."
msgstr "" msgstr ""
"Das wird Deine OctoPrint Installation aktualisieren und den Server neu " "Das wird Deine OctoPrint Installation aktualisieren und den Server neu "
"starten." "starten."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:293 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:305
msgid "Restart successful!" msgid "Restart successful!"
msgstr "Neustart erfolgreich!" msgstr "Neustart erfolgreich!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:294 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:306
msgid "" msgid ""
"The server was restarted successfully. The page will now reload " "The server was restarted successfully. The page will now reload "
"automatically." "automatically."
@@ -606,28 +641,28 @@ msgstr ""
"Der Server wurde erfolgreich neu gestartet. Die Seite wird nun automatisch " "Der Server wurde erfolgreich neu gestartet. Die Seite wird nun automatisch "
"neu geladen." "neu geladen."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:326 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:338
#, python-format #, python-format
msgid "Now updating %(name)s to %(version)s" msgid "Now updating %(name)s to %(version)s"
msgstr "Aktualisiere %(name)s auf %(version)s" msgstr "Aktualisiere %(name)s auf %(version)s"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:334 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:346
msgid "Update successful, restarting!" msgid "Update successful, restarting!"
msgstr "Aktualisierung erfolgreich, starte neu!" msgstr "Aktualisierung erfolgreich, starte neu!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:335 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:347
msgid "The update finished successfully and the server will now be restarted." msgid "The update finished successfully and the server will now be restarted."
msgstr "" msgstr ""
"Die Aktualisierung wurde erfolgreich durchgeführt und der Server wird jetzt " "Die Aktualisierung wurde erfolgreich durchgeführt und der Server wird jetzt "
"neu gestartet." "neu gestartet."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:346 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:358
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:388 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:400
msgid "Restart failed" msgid "Restart failed"
msgstr "Neustart fehlgeschlagen" msgstr "Neustart fehlgeschlagen"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:347 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:359
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:389 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:401
msgid "" msgid ""
"The server apparently did not restart by itself, you'll have to do it " "The server apparently did not restart by itself, you'll have to do it "
"manually. Please consult the log file on what went wrong." "manually. Please consult the log file on what went wrong."
@@ -635,23 +670,23 @@ msgstr ""
"Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das " "Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das "
"manuell tun müssen. Bitte konsultiere das Logfile." "manuell tun müssen. Bitte konsultiere das Logfile."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:363 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:375
msgid "The update finished successfully, please restart OctoPrint now." msgid "The update finished successfully, please restart OctoPrint now."
msgstr "" msgstr ""
"Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte OctoPrint " "Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte OctoPrint "
"jetzt neu." "jetzt neu."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:365 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:377
msgid "The update finished successfully, please reboot the server now." msgid "The update finished successfully, please reboot the server now."
msgstr "" msgstr ""
"Die Aktualisierung wurde erfolgreich abgeschlossen, bitte reboote den Server " "Die Aktualisierung wurde erfolgreich abgeschlossen, bitte reboote den Server "
"jetzt." "jetzt."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:369 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:381
msgid "Update successful, restart required!" msgid "Update successful, restart required!"
msgstr "Aktualisierung erfolgreich, Neustart notwendig!" msgstr "Aktualisierung erfolgreich, Neustart notwendig!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:382 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:394
msgid "" msgid ""
"Restarting OctoPrint failed, please restart it manually. You might also want " "Restarting OctoPrint failed, please restart it manually. You might also want "
"to consult the log file on what went wrong here." "to consult the log file on what went wrong here."
@@ -660,7 +695,7 @@ msgstr ""
"Du solltest das Logfile konsultieren, um herauszufinden, was hier schief " "Du solltest das Logfile konsultieren, um herauszufinden, was hier schief "
"gelaufen ist." "gelaufen ist."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:384 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:396
msgid "" msgid ""
"Rebooting the server failed, please reboot it manually. You might also want " "Rebooting the server failed, please reboot it manually. You might also want "
"to consult the log file on what went wrong here." "to consult the log file on what went wrong here."
@@ -669,19 +704,19 @@ msgstr ""
"auch das Logfile konsultieren, um herauszufinden, was hier gerade schief " "auch das Logfile konsultieren, um herauszufinden, was hier gerade schief "
"gelaufen ist." "gelaufen ist."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:402 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:414
msgid "Update successful!" msgid "Update successful!"
msgstr "Aktualisierung erfolgreich!" msgstr "Aktualisierung erfolgreich!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:403 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:415
msgid "The update finished successfully." msgid "The update finished successfully."
msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen." msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:415 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:427
msgid "Update failed!" msgid "Update failed!"
msgstr "Aktualisierung fehlgeschlagen!" msgstr "Aktualisierung fehlgeschlagen!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:416 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:428
msgid "" msgid ""
"The update did not finish successfully. Please consult the log for details." "The update did not finish successfully. Please consult the log for details."
msgstr "" msgstr ""
@@ -713,11 +748,6 @@ msgstr "Verfügbar:"
msgid "Check for update now" msgid "Check for update now"
msgstr "Jetzt nach Aktualisierungen suchen" msgstr "Jetzt nach Aktualisierungen suchen"
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:44
#: src/octoprint/templates/tabs/terminal.jinja2:25
msgid "Advanced options"
msgstr "Erweiterte Optionen"
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:46 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:46
msgid "Force check for update (overrides cache used for update checks)" msgid "Force check for update (overrides cache used for update checks)"
msgstr "" msgstr ""
@@ -853,14 +883,14 @@ msgstr "Zugriff"
msgid "Interface" msgid "Interface"
msgstr "Interface" msgstr "Interface"
#: src/octoprint/static/js/app/dataupdater.js:61 #: src/octoprint/static/js/app/dataupdater.js:65
#: src/octoprint/static/js/app/dataupdater.js:95 #: src/octoprint/static/js/app/dataupdater.js:99
#: src/octoprint/static/js/app/helpers.js:423 #: src/octoprint/static/js/app/helpers.js:436
#: src/octoprint/templates/overlays/offline.jinja2:6 #: src/octoprint/templates/overlays/offline.jinja2:6
msgid "Server is offline" msgid "Server is offline"
msgstr "Der Server ist offline" msgstr "Der Server ist offline"
#: src/octoprint/static/js/app/dataupdater.js:62 #: src/octoprint/static/js/app/dataupdater.js:66
msgid "" msgid ""
"The server appears to be offline, at least I'm not getting any response from " "The server appears to be offline, at least I'm not getting any response from "
"it. I'll try to reconnect automatically <strong>over the next couple of " "it. I'll try to reconnect automatically <strong>over the next couple of "
@@ -872,7 +902,7 @@ msgstr ""
"erneut zu verbinden, aber Du kannst mittels des folgenden Buttons auch " "erneut zu verbinden, aber Du kannst mittels des folgenden Buttons auch "
"jederzeit einen manuellen Verbindungsversuch anstoßen." "jederzeit einen manuellen Verbindungsversuch anstoßen."
#: src/octoprint/static/js/app/dataupdater.js:96 #: src/octoprint/static/js/app/dataupdater.js:100
msgid "" msgid ""
"The server appears to be offline, at least I'm not getting any response from " "The server appears to be offline, at least I'm not getting any response from "
"it. I <strong>could not reconnect automatically</strong>, but you may try a " "it. I <strong>could not reconnect automatically</strong>, but you may try a "
@@ -883,31 +913,31 @@ msgstr ""
"aber Du kannst mittels des folgenden Buttons einen manuellen " "aber Du kannst mittels des folgenden Buttons einen manuellen "
"Verbindungsversuch anstoßen." "Verbindungsversuch anstoßen."
#: src/octoprint/static/js/app/dataupdater.js:168 #: src/octoprint/static/js/app/dataupdater.js:166
#: src/octoprint/static/js/app/dataupdater.js:196 #: src/octoprint/static/js/app/dataupdater.js:194
#, python-format #, python-format
msgid "Slicing ... (%(percentage)d%%)" msgid "Slicing ... (%(percentage)d%%)"
msgstr "Slice ... (%(percentage)d%%)" msgstr "Slice ... (%(percentage)d%%)"
#: src/octoprint/static/js/app/dataupdater.js:185 #: src/octoprint/static/js/app/dataupdater.js:183
msgid "Rendering timelapse" msgid "Rendering timelapse"
msgstr "Zeitrafferaufnahme wird gerendert" msgstr "Zeitrafferaufnahme wird gerendert"
#: src/octoprint/static/js/app/dataupdater.js:185 #: src/octoprint/static/js/app/dataupdater.js:183
#, python-format #, python-format
msgid "Now rendering timelapse %(movie_basename)s" msgid "Now rendering timelapse %(movie_basename)s"
msgstr "Rendere Zeitrafferaufnahme %(movie_basename)s" msgstr "Rendere Zeitrafferaufnahme %(movie_basename)s"
#: src/octoprint/static/js/app/dataupdater.js:187 #: src/octoprint/static/js/app/dataupdater.js:185
msgid "Timelapse ready" msgid "Timelapse ready"
msgstr "Zeitrafferaufnahme fertig" msgstr "Zeitrafferaufnahme fertig"
#: src/octoprint/static/js/app/dataupdater.js:187 #: src/octoprint/static/js/app/dataupdater.js:185
#, python-format #, python-format
msgid "New timelapse %(movie_basename)s is done rendering." msgid "New timelapse %(movie_basename)s is done rendering."
msgstr "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert" msgstr "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert"
#: src/octoprint/static/js/app/dataupdater.js:189 #: src/octoprint/static/js/app/dataupdater.js:187
#, python-format #, python-format
msgid "" msgid ""
"Rendering of timelapse %(movie_basename)s failed with return code " "Rendering of timelapse %(movie_basename)s failed with return code "
@@ -916,56 +946,56 @@ msgstr ""
"Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit " "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit "
"Returncode %(returncode)s" "Returncode %(returncode)s"
#: src/octoprint/static/js/app/dataupdater.js:191 #: src/octoprint/static/js/app/dataupdater.js:189
msgid "Rendering failed" msgid "Rendering failed"
msgstr "Rendering fehlgeschlagen" msgstr "Rendering fehlgeschlagen"
#: src/octoprint/static/js/app/dataupdater.js:198 #: src/octoprint/static/js/app/dataupdater.js:196
msgid "Slicing ..." msgid "Slicing ..."
msgstr "Slice ..." msgstr "Slice ..."
#: src/octoprint/static/js/app/dataupdater.js:204 #: src/octoprint/static/js/app/dataupdater.js:202
msgid "Slicing done" msgid "Slicing done"
msgstr "Slicing abgeschlossen" msgstr "Slicing abgeschlossen"
#: src/octoprint/static/js/app/dataupdater.js:204 #: src/octoprint/static/js/app/dataupdater.js:202
#, python-format #, python-format
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds" msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden" msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden"
#: src/octoprint/static/js/app/dataupdater.js:214 #: src/octoprint/static/js/app/dataupdater.js:212
#, python-format #, python-format
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s" msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s" msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s"
#: src/octoprint/static/js/app/dataupdater.js:215 #: src/octoprint/static/js/app/dataupdater.js:213
msgid "Slicing failed" msgid "Slicing failed"
msgstr "Slicing fehlgeschlagen" msgstr "Slicing fehlgeschlagen"
#: src/octoprint/static/js/app/dataupdater.js:219 #: src/octoprint/static/js/app/dataupdater.js:217
msgid "Streaming ..." msgid "Streaming ..."
msgstr "Streaming ..." msgstr "Streaming ..."
#: src/octoprint/static/js/app/dataupdater.js:225 #: src/octoprint/static/js/app/dataupdater.js:223
msgid "Streaming done" msgid "Streaming done"
msgstr "Streaming abgeschlossen" msgstr "Streaming abgeschlossen"
#: src/octoprint/static/js/app/dataupdater.js:226 #: src/octoprint/static/js/app/dataupdater.js:224
#, python-format #, python-format
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds" msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden" msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden"
#: src/octoprint/static/js/app/helpers.js:344 #: src/octoprint/static/js/app/helpers.js:357
#, python-format #, python-format
msgid "%(hour)02d:%(minute)02d:%(second)02d" msgid "%(hour)02d:%(minute)02d:%(second)02d"
msgstr "%(hour)02d:%(minute)02d:%(second)02d" msgstr "%(hour)02d:%(minute)02d:%(second)02d"
#: src/octoprint/static/js/app/helpers.js:364 #: src/octoprint/static/js/app/helpers.js:377
msgid "YYYY-MM-DD HH:mm" msgid "YYYY-MM-DD HH:mm"
msgstr "DD.MM.YYYY HH:mm" msgstr "DD.MM.YYYY HH:mm"
#: src/octoprint/static/js/app/helpers.js:382 #: src/octoprint/static/js/app/helpers.js:395
#: src/octoprint/static/js/app/helpers.js:387 #: src/octoprint/static/js/app/helpers.js:400
msgid "off" msgid "off"
msgstr "Aus" msgstr "Aus"
@@ -1187,44 +1217,44 @@ msgid "Error"
msgstr "Fehler" msgstr "Fehler"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:96 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:96
#: src/octoprint/static/js/app/viewmodels/settings.js:52 #: src/octoprint/static/js/app/viewmodels/settings.js:53
#: src/octoprint/static/js/app/viewmodels/settings.js:82 #: src/octoprint/static/js/app/viewmodels/settings.js:83
msgid "default" msgid "default"
msgstr "Standard" msgstr "Standard"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:97 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:97
#: src/octoprint/static/js/app/viewmodels/settings.js:53 #: src/octoprint/static/js/app/viewmodels/settings.js:54
#: src/octoprint/static/js/app/viewmodels/settings.js:66 #: src/octoprint/static/js/app/viewmodels/settings.js:67
msgid "red" msgid "red"
msgstr "Rot" msgstr "Rot"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:98 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:98
#: src/octoprint/static/js/app/viewmodels/settings.js:54 #: src/octoprint/static/js/app/viewmodels/settings.js:55
#: src/octoprint/static/js/app/viewmodels/settings.js:68 #: src/octoprint/static/js/app/viewmodels/settings.js:69
msgid "orange" msgid "orange"
msgstr "Orange" msgstr "Orange"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:99 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:99
#: src/octoprint/static/js/app/viewmodels/settings.js:55 #: src/octoprint/static/js/app/viewmodels/settings.js:56
#: src/octoprint/static/js/app/viewmodels/settings.js:70 #: src/octoprint/static/js/app/viewmodels/settings.js:71
msgid "yellow" msgid "yellow"
msgstr "Gelb" msgstr "Gelb"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:100 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:100
#: src/octoprint/static/js/app/viewmodels/settings.js:56 #: src/octoprint/static/js/app/viewmodels/settings.js:57
#: src/octoprint/static/js/app/viewmodels/settings.js:72 #: src/octoprint/static/js/app/viewmodels/settings.js:73
msgid "green" msgid "green"
msgstr "Grün" msgstr "Grün"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:101 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:101
#: src/octoprint/static/js/app/viewmodels/settings.js:57 #: src/octoprint/static/js/app/viewmodels/settings.js:58
#: src/octoprint/static/js/app/viewmodels/settings.js:74 #: src/octoprint/static/js/app/viewmodels/settings.js:75
msgid "blue" msgid "blue"
msgstr "Blau" msgstr "Blau"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:102 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:102
#: src/octoprint/static/js/app/viewmodels/settings.js:59 #: src/octoprint/static/js/app/viewmodels/settings.js:60
#: src/octoprint/static/js/app/viewmodels/settings.js:78 #: src/octoprint/static/js/app/viewmodels/settings.js:79
msgid "black" msgid "black"
msgstr "Schwarz" msgstr "Schwarz"
@@ -1333,17 +1363,17 @@ msgstr "Sek"
msgid "This will restart the print job from the beginning." msgid "This will restart the print job from the beginning."
msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen." msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen."
#: src/octoprint/static/js/app/viewmodels/settings.js:58 #: src/octoprint/static/js/app/viewmodels/settings.js:59
#: src/octoprint/static/js/app/viewmodels/settings.js:76 #: src/octoprint/static/js/app/viewmodels/settings.js:77
msgid "violet" msgid "violet"
msgstr "Violett" msgstr "Violett"
#: src/octoprint/static/js/app/viewmodels/settings.js:60 #: src/octoprint/static/js/app/viewmodels/settings.js:61
#: src/octoprint/static/js/app/viewmodels/settings.js:80 #: src/octoprint/static/js/app/viewmodels/settings.js:81
msgid "white" msgid "white"
msgstr "weiß" msgstr "weiß"
#: src/octoprint/static/js/app/viewmodels/settings.js:88 #: src/octoprint/static/js/app/viewmodels/settings.js:89
msgid "Autodetect from browser" msgid "Autodetect from browser"
msgstr "Automatisch vom Browser erkennen" msgstr "Automatisch vom Browser erkennen"
@@ -2281,6 +2311,20 @@ msgstr "SD-Karte ist nicht initialisiert"
msgid "Attempt to reconnect" msgid "Attempt to reconnect"
msgstr "Erneut verbinden" msgstr "Erneut verbinden"
#: src/octoprint/templates/overlays/reloadui.jinja2:6
msgid "Please reload"
msgstr "Bitte die Seite neu laden"
#: src/octoprint/templates/overlays/reloadui.jinja2:7
msgid ""
"There is a new version of the server active now, a reload of the user "
"interface is needed. This will not interrupt any print jobs you might have "
"ongoing. Please reload the web interface now by clicking the button below."
msgstr ""
"Die Serverversion hat sich geändert, ein Neuladen des Webinterfaces ist "
"notwendig. Das hat keinen Einfluss auf deine evtl. laufenden Printjobs. "
"Bitte lade das Webinterface jetzt neu, indem du auf den Button unten klickst."
#: src/octoprint/templates/sidebar/connection.jinja2:8 #: src/octoprint/templates/sidebar/connection.jinja2:8
msgid "Save connection settings" msgid "Save connection settings"
msgstr "Verbindungseinstellungen speichern" msgstr "Verbindungseinstellungen speichern"
+1 -1
View File
@@ -681,4 +681,4 @@ class InvariantContainer(object):
return len(self._data) return len(self._data)
def __iter__(self): def __iter__(self):
return self._data.__iter__() return self._data.__iter__()
+18 -8
View File
@@ -1241,10 +1241,10 @@ class MachineCom(object):
self._changeState(self.STATE_DETECT_SERIAL) self._changeState(self.STATE_DETECT_SERIAL)
serial_obj = self._detectPort(True) serial_obj = self._detectPort(True)
if serial_obj is None: if serial_obj is None:
self._log("Failed to autodetect serial port") self._errorValue = 'Failed to autodetect serial port, please set it manually.'
self._errorValue = 'Failed to autodetect serial port.'
self._changeState(self.STATE_ERROR) self._changeState(self.STATE_ERROR)
eventManager().fire(Events.ERROR, {"error": self.getErrorString()}) eventManager().fire(Events.ERROR, {"error": self.getErrorString()})
self._log("Failed to autodetect serial port, please set it manually.")
return None return None
port = serial_obj.port port = serial_obj.port
@@ -1266,11 +1266,17 @@ class MachineCom(object):
for name, factory in serial_factories: for name, factory in serial_factories:
try: try:
serial_obj = factory(self, self._port, self._baudrate, settings().getFloat(["serial", "timeout", "connection"])) serial_obj = factory(self, self._port, self._baudrate, settings().getFloat(["serial", "timeout", "connection"]))
except Exception: except:
self._log("Unexpected error while connecting to serial port: %s %s (hook %s)" % (self._port, get_exception_string(), name)) exception_string = get_exception_string()
self._errorValue = "Failed to open serial port, permissions correct?" self._errorValue = "Connection error, see Terminal tab"
self._changeState(self.STATE_ERROR) self._changeState(self.STATE_ERROR)
eventManager().fire(Events.ERROR, {"error": self.getErrorString()}) eventManager().fire(Events.ERROR, {"error": self.getErrorString()})
self._log("Unexpected error while connecting to serial port: %s %s (hook %s)" % (self._port, exception_string, name))
if "failed to set custom baud rate" in exception_string.lower():
self._log("Your installation does not support custom baudrates (e.g. 250000) for connecting to your printer. This is a problem of the pyserial library that OctoPrint depends on. Please update to a pyserial version that supports your baudrate or switch your printer's firmware to a standard baudrate (e.g. 115200). See https://github.com/foosel/OctoPrint/wiki/OctoPrint-support-for-250000-baud-rate-on-Raspbian")
return False return False
if serial_obj is not None: if serial_obj is not None:
@@ -1292,10 +1298,14 @@ class MachineCom(object):
if self._regex_minMaxError.match(line): if self._regex_minMaxError.match(line):
line = line.rstrip() + self._readline() line = line.rstrip() + self._readline()
#Skip the communication errors, as those get corrected.
if 'line number' in line.lower() or 'checksum' in line.lower() or 'expected line' in line.lower(): if 'line number' in line.lower() or 'checksum' in line.lower() or 'expected line' in line.lower():
#Skip the communication errors, as those get corrected.
self._lastCommError = line[6:] if line.startswith("Error:") else line[2:] self._lastCommError = line[6:] if line.startswith("Error:") else line[2:]
pass pass
elif 'volume.init' in line.lower() or "openroot" in line.lower() or 'workdir' in line.lower()\
or "error writing to file" in line.lower():
#Also skip errors with the SD card
pass
elif not self.isError(): elif not self.isError():
self._errorValue = line[6:] if line.startswith("Error:") else line[2:] self._errorValue = line[6:] if line.startswith("Error:") else line[2:]
self._changeState(self.STATE_ERROR) self._changeState(self.STATE_ERROR)
@@ -1976,9 +1986,9 @@ class TypedQueue(queue.Queue):
return item return item
class TypeAlreadyInQueue(BaseException): class TypeAlreadyInQueue(Exception):
def __init__(self, t, *args, **kwargs): def __init__(self, t, *args, **kwargs):
BaseException.__init__(self, *args, **kwargs) Exception.__init__(self, *args, **kwargs)
self.type = t self.type = t
+7 -4
View File
@@ -30,18 +30,18 @@ class gcode(object):
self.progressCallback = None self.progressCallback = None
self._abort = False self._abort = False
self._filamentDiameter = 0 self._filamentDiameter = 0
def load(self, filename, printer_profile): def load(self, filename, printer_profile, throttle=None):
if os.path.isfile(filename): if os.path.isfile(filename):
self.filename = filename self.filename = filename
self._fileSize = os.stat(filename).st_size self._fileSize = os.stat(filename).st_size
with open(filename, "r") as f: with open(filename, "r") as f:
self._load(f, printer_profile) self._load(f, printer_profile, throttle=throttle)
def abort(self): def abort(self):
self._abort = True self._abort = True
def _load(self, gcodeFile, printer_profile): def _load(self, gcodeFile, printer_profile, throttle=None):
filePos = 0 filePos = 0
readBytes = 0 readBytes = 0
pos = [0.0, 0.0, 0.0] pos = [0.0, 0.0, 0.0]
@@ -237,6 +237,9 @@ class gcode(object):
for i in range(len(totalExtrusion), currentExtruder + 1): for i in range(len(totalExtrusion), currentExtruder + 1):
totalExtrusion.append(0.0) totalExtrusion.append(0.0)
if throttle is not None:
throttle()
if self.progressCallback is not None: if self.progressCallback is not None:
self.progressCallback(100.0) self.progressCallback(100.0)
+178
View File
@@ -0,0 +1,178 @@
# coding=utf-8
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__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"
import sarge
import sys
import logging
class UnknownPip(Exception):
pass
class PipCaller(object):
def __init__(self, configured=None):
self._logger = logging.getLogger(__name__)
self._configured = configured
self._command = None
self._version = None
self._command, self._version = self._find_pip()
self.refresh = False
self.on_log_call = lambda *args, **kwargs: None
self.on_log_stdout = lambda *args, **kwargs: None
self.on_log_stderr = lambda *args, **kwargs: None
def __le__(self, other):
return self.version is not None and self.version <= other
def __lt__(self, other):
return self.version is not None and self.version < other
def __ge__(self, other):
return self.version is not None and self.version >= other
def __gt__(self, other):
return self.version is not None and self.version > other
@property
def command(self):
return self._command
@property
def version(self):
return self._version
@property
def available(self):
return self._command is not None
def execute(self, *args):
if self.refresh:
self._command, self._version = self._find_pip()
self.refresh = False
if self._command is None:
raise UnknownPip()
command = [self._command] + list(args)
joined_command = " ".join(command)
self._logger.debug(u"Calling: {}".format(joined_command))
self.on_log_call(joined_command)
p = sarge.run(command, async=True, stdout=sarge.Capture(), stderr=sarge.Capture())
p.wait_events()
all_stdout = []
all_stderr = []
try:
while p.returncode is None:
line = p.stderr.readline(timeout=0.5)
if line:
self._log_stderr(line)
all_stderr.append(line)
line = p.stdout.readline(timeout=0.5)
if line:
self._log_stdout(line)
all_stdout.append(line)
p.commands[0].poll()
finally:
p.close()
stderr = p.stderr.text
if stderr:
split_lines = stderr.split("\n")
self._log_stderr(*split_lines)
all_stderr += split_lines
stdout = p.stdout.text
if stdout:
split_lines = stdout.split("\n")
self._log_stdout(*split_lines)
all_stdout += split_lines
return p.returncode, all_stdout, all_stderr
def _find_pip(self):
pip_command = self._configured
pip_version = None
if pip_command is None:
import os
python_command = sys.executable
binary_dir = os.path.dirname(python_command)
pip_command = os.path.join(binary_dir, "pip")
if sys.platform == "win32":
# Windows is a bit special... first of all the file will be called pip.exe, not just pip, and secondly
# for a non-virtualenv install (e.g. global install) the pip binary will not be located in the
# same folder as python.exe, but in a subfolder Scripts, e.g.
#
# C:\Python2.7\
# |- python.exe
# `- Scripts
# `- pip.exe
# virtual env?
pip_command = os.path.join(binary_dir, "pip.exe")
if not os.path.isfile(pip_command):
# nope, let's try the Scripts folder then
scripts_dir = os.path.join(binary_dir, "Scripts")
if os.path.isdir(scripts_dir):
pip_command = os.path.join(scripts_dir, "pip.exe")
if not os.path.isfile(pip_command) or not os.access(pip_command, os.X_OK):
pip_command = None
if pip_command is not None:
self._logger.debug("Found pip at {}, going to figure out its version".format(pip_command))
p = sarge.run([pip_command, "--version"], stdout=sarge.Capture(), stderr=sarge.Capture())
if p.returncode != 0:
self._logger.warn("Error while trying to run pip --version: {}".format(p.stderr.text))
pip_command = None
output = p.stdout.text
# output should look something like this:
#
# pip <version> from <path> (<python version>)
#
# we'll just split on whitespace and then try to use the second entry
if not output.startswith("pip"):
self._logger.warn("pip command returned unparseable output, can't determine version: {}".format(output))
split_output = map(lambda x: x.strip(), output.split())
if len(split_output) < 2:
self._logger.warn("pip command returned unparseable output, can't determine version: {}".format(output))
version_segment = split_output[1]
from pkg_resources import parse_version
try:
pip_version = parse_version(version_segment)
except:
self._logger.exception("Error while trying to parse version string from pip command")
else:
self._logger.info("Found pip at {}, version is {}".format(pip_command, version_segment))
return pip_command, pip_version
def _log_stdout(self, *lines):
self.on_log_stdout(*lines)
def _log_stderr(self, *lines):
self.on_log_stderr(*lines)
Binary file not shown.
+218 -174
View File
@@ -11,8 +11,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: OctoPrint\n" "Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2015-06-09 14:48+0200\n" "POT-Creation-Date: 2015-06-21 17:58+0200\n"
"PO-Revision-Date: 2015-06-09 14:48+0100\n" "PO-Revision-Date: 2015-06-21 18:00+0100\n"
"Last-Translator: Gina Häußge <osd@foosel.net>\n" "Last-Translator: Gina Häußge <osd@foosel.net>\n"
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/" "Language-Team: German (http://www.transifex.com/projects/p/octoprint/"
"language/de/)\n" "language/de/)\n"
@@ -55,7 +55,7 @@ msgid "Identifier"
msgstr "ID" msgstr "ID"
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:66 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:75
#: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:6
#: src/octoprint/templates/sidebar/files_header.jinja2:6 #: src/octoprint/templates/sidebar/files_header.jinja2:6
#: src/octoprint/templates/tabs/timelapse.jinja2:45 #: src/octoprint/templates/tabs/timelapse.jinja2:45
@@ -65,7 +65,7 @@ msgstr "aufsteigend"
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:28 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:28
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:82 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:82
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:6 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:14
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:4 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:4
#: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:6
#: src/octoprint/templates/dialogs/settings/logs.jinja2:12 #: src/octoprint/templates/dialogs/settings/logs.jinja2:12
@@ -78,7 +78,7 @@ msgid "Name"
msgstr "Name" msgstr "Name"
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:29 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:29
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:7 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:15
msgid "Actions" msgid "Actions"
msgstr "Aktionen" msgstr "Aktionen"
@@ -104,7 +104,7 @@ msgid "Profile ini file"
msgstr "Profil-INI-Datei" msgstr "Profil-INI-Datei"
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:68 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:68
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:132 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:141
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:83 #: src/octoprint/templates/dialogs/settings/appearance.jinja2:83
msgid "Browse..." msgid "Browse..."
msgstr "Durchsuchen..." msgstr "Durchsuchen..."
@@ -135,105 +135,120 @@ msgstr "Abbrechen"
msgid "Confirm" msgid "Confirm"
msgstr "Bestätigen" msgstr "Bestätigen"
#: src/octoprint/plugins/pluginmanager/__init__.py:78 #: src/octoprint/plugins/pluginmanager/__init__.py:79
msgid "Plugin Manager" msgid "Plugin Manager"
msgstr "Pluginmanager" msgstr "Pluginmanager"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:110 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:234 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:275
msgid "Installing plugin..." msgid "Installing plugin..."
msgstr "Installiere Plugin..." msgstr "Installiere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:110 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
msgid "Installing plugin from uploaded archive..." msgid "Installing plugin from uploaded archive..."
msgstr "Installiere Plugin von hochgeladenem Archiv..." msgstr "Installiere Plugin von hochgeladenem Archiv..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:122 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:147
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:194 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:223
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:259 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:300
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:285 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:330
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:490 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:544
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:520 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:574
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:537 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:591
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
msgid "Something went wrong" msgid "Something went wrong"
msgstr "Etwas ist schief gegangen" msgstr "Etwas ist schief gegangen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:123 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:148
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:195 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:224
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:260 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:301
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:286 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:331
msgid "Please consult octoprint.log for details" msgid "Please consult octoprint.log for details"
msgstr "Bitte konsultiere octoprint.log für Details" msgstr "Bitte konsultiere octoprint.log für Details"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:236 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:277
#, python-format #, python-format
msgid "Installing plugin \"%(name)s\" from %(url)s..." msgid "Installing plugin \"%(name)s\" from %(url)s..."
msgstr "Installiere Plugin \"%(name)s\" von %(url)s..." msgstr "Installiere Plugin \"%(name)s\" von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:238 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:279
#, python-format #, python-format
msgid "Installing plugin from %(url)s..." msgid "Installing plugin from %(url)s..."
msgstr "Installiere Plugin von %(url)s..." msgstr "Installiere Plugin von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:241 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:282
msgid "Reinstalling plugin..." msgid "Reinstalling plugin..."
msgstr "Reinstalliere Plugin..." msgstr "Reinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:242 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:283
#, python-format #, python-format
msgid "Reinstalling plugin \"%(name)s\" from %(url)s..." msgid "Reinstalling plugin \"%(name)s\" from %(url)s..."
msgstr "Reinstalliere Plugin \"%(name)s\" von %(url)s..." msgstr "Reinstalliere Plugin \"%(name)s\" von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:276 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
msgid "Uninstalling plugin..." msgid "Uninstalling plugin..."
msgstr "Deinstalliere Plugin..." msgstr "Deinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:276 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
#, python-format #, python-format
msgid "Uninstalling plugin \"%(name)s\"" msgid "Uninstalling plugin \"%(name)s\""
msgstr "Deinstalliere Plugin \"%(name)s\"" msgstr "Deinstalliere Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:313 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Reinstall" msgid "Reinstall"
msgstr "Reinstallieren" msgstr "Reinstallieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:313 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:121 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:130
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:137 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:146
msgid "Install" msgid "Install"
msgstr "Installieren" msgstr "Installieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:313 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Incompatible" msgid "Incompatible"
msgstr "Inkompatibel" msgstr "Inkompatibel"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:331 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:374
#: src/octoprint/templates/overlays/reloadui.jinja2:9
msgid "Reload now" msgid "Reload now"
msgstr "Jetzt neu laden" msgstr "Jetzt neu laden"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:400 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:443
msgid "Done!" msgid "Done!"
msgstr "Fertig!" msgstr "Fertig!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:420 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Enable Plugin" msgid "Enable Plugin"
msgstr "Plugin enablen" msgstr "Plugin enablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:420 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Disable Plugin" msgid "Disable Plugin"
msgstr "Plugin disablen" msgstr "Plugin disablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:479 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:528
msgid "Plugin installed"
msgstr "Plugin installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:529
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:533
#, python-format #, python-format
msgid "Plugin \"%(name)s\" reinstalled" msgid "Plugin \"%(name)s\" reinstalled"
msgstr "Plugin \"%(name)s\" reinstalliert" msgstr "Plugin \"%(name)s\" reinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:480 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:534
msgid "The plugin was reinstalled successfully" msgid "The plugin was reinstalled successfully"
msgstr "Das Plugin wurde erfolgreich reinstalliert" msgstr "Das Plugin wurde erfolgreich reinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:481 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535
msgid "" msgid ""
"The plugin was reinstalled successfully, however a restart of OctoPrint is " "The plugin was reinstalled successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
@@ -241,7 +256,7 @@ msgstr ""
"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neustart von " "Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neustart von "
"OctoPrint notwendig bevor es genutzt werden kann." "OctoPrint notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:482 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:536
msgid "" msgid ""
"The plugin was reinstalled successfully, however a reload of the page is " "The plugin was reinstalled successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
@@ -249,16 +264,16 @@ msgstr ""
"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neuladen der " "Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neuladen der "
"Seite notwendig bevor es genutzt werden kann." "Seite notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:484 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:538
#, python-format #, python-format
msgid "Plugin \"%(name)s\" installed" msgid "Plugin \"%(name)s\" installed"
msgstr "Plugin \"%(name)s\" installiert" msgstr "Plugin \"%(name)s\" installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:539
msgid "The plugin was installed successfully" msgid "The plugin was installed successfully"
msgstr "Das Plugin wurde erfolgreich installiert" msgstr "Das Plugin wurde erfolgreich installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:486 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540
msgid "" msgid ""
"The plugin was installed successfully, however a restart of OctoPrint is " "The plugin was installed successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
@@ -266,7 +281,7 @@ msgstr ""
"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neustart von " "Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neustart von "
"OctoPrint notwendig bevor es genutzt werden kann." "OctoPrint notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:487 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541
msgid "" msgid ""
"The plugin was installed successfully, however a reload of the page is " "The plugin was installed successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
@@ -274,19 +289,19 @@ msgstr ""
"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neuladen der " "Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neuladen der "
"Seite notwendig bevor es genutzt werden kann." "Seite notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:498 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552
#, python-format #, python-format
msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s" msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr "" msgstr ""
"Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s" "Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:500 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554
#, python-format #, python-format
msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s" msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr "" msgstr ""
"Installation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s" "Installation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:504 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
#, python-format #, python-format
msgid "" msgid ""
"Reinstalling the plugin from URL \"%(url)s\" failed, please see the log for " "Reinstalling the plugin from URL \"%(url)s\" failed, please see the log for "
@@ -295,7 +310,7 @@ msgstr ""
"Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte " "Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte "
"konsultiere das Log für Details." "konsultiere das Log für Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:506 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:560
#, python-format #, python-format
msgid "" msgid ""
"Installing the plugin from URL \"%(url)s\" failed, please see the log for " "Installing the plugin from URL \"%(url)s\" failed, please see the log for "
@@ -304,16 +319,16 @@ msgstr ""
"Installation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte " "Installation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte "
"konsultiere das Log für Details" "konsultiere das Log für Details"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:515 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569
#, python-format #, python-format
msgid "Plugin \"%(name)s\" uninstalled" msgid "Plugin \"%(name)s\" uninstalled"
msgstr "Plugin \"%(name)s\" deinstalliert" msgstr "Plugin \"%(name)s\" deinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:516 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:570
msgid "The plugin was uninstalled successfully" msgid "The plugin was uninstalled successfully"
msgstr "Das Plugin wurde erfolgreich deinstalliert" msgstr "Das Plugin wurde erfolgreich deinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:517 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:571
msgid "" msgid ""
"The plugin was uninstalled successfully, however a restart of OctoPrint is " "The plugin was uninstalled successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
@@ -321,7 +336,7 @@ msgstr ""
"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neustart von " "Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neustart von "
"OctoPrint notwendig." "OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:518 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572
msgid "" msgid ""
"The plugin was uninstalled successfully, however a reload of the page is " "The plugin was uninstalled successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
@@ -329,27 +344,27 @@ msgstr ""
"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neuladen der " "Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neuladen der "
"Seite notwendig." "Seite notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:522 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:576
#, python-format #, python-format
msgid "Uninstalling the plugin failed: %(reason)s" msgid "Uninstalling the plugin failed: %(reason)s"
msgstr "Deinstallation des Plugins fehlgeschlagen: %(reason)s" msgstr "Deinstallation des Plugins fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:524 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:578
msgid "Uninstalling the plugin failed, please see the log for details." msgid "Uninstalling the plugin failed, please see the log for details."
msgstr "" msgstr ""
"Deinstallation des Plugins fehlgeschlagen, bitte konsultiere das Log für " "Deinstallation des Plugins fehlgeschlagen, bitte konsultiere das Log für "
"Details." "Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:532 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586
#, python-format #, python-format
msgid "Plugin \"%(name)s\" enabled" msgid "Plugin \"%(name)s\" enabled"
msgstr "Plugin \"%(name)s\" aktiviert" msgstr "Plugin \"%(name)s\" aktiviert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:533 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:587
msgid "The plugin was enabled successfully." msgid "The plugin was enabled successfully."
msgstr "Das Plugin wurde erfolgreich aktiviert." msgstr "Das Plugin wurde erfolgreich aktiviert."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:534 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:588
msgid "" msgid ""
"The plugin was enabled successfully, however a restart of OctoPrint is " "The plugin was enabled successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
@@ -357,7 +372,7 @@ msgstr ""
"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neustart von " "Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neustart von "
"OctoPrint notwendig." "OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:589
msgid "" msgid ""
"The plugin was enabled successfully, however a reload of the page is needed " "The plugin was enabled successfully, however a reload of the page is needed "
"for that to take effect." "for that to take effect."
@@ -365,28 +380,28 @@ msgstr ""
"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neuladen der Seite " "Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neuladen der Seite "
"notwendig." "notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:539 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:593
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:556 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:610
#, python-format #, python-format
msgid "Toggling the plugin failed: %(reason)s" msgid "Toggling the plugin failed: %(reason)s"
msgstr "Togglen des Plugins fehlgeschalgen: %(reason)s" msgstr "Togglen des Plugins fehlgeschalgen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:595
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:612
msgid "Toggling the plugin failed, please see the log for details." msgid "Toggling the plugin failed, please see the log for details."
msgstr "" msgstr ""
"Togglen des Plugins fehlgeschlagen, bitte konsultiere das Log für Details." "Togglen des Plugins fehlgeschlagen, bitte konsultiere das Log für Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:549 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:603
#, python-format #, python-format
msgid "Plugin \"%(name)s\" disabled" msgid "Plugin \"%(name)s\" disabled"
msgstr "Plugin \"%(name)s\" deaktiviert" msgstr "Plugin \"%(name)s\" deaktiviert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:550 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:604
msgid "The plugin was disabled successfully." msgid "The plugin was disabled successfully."
msgstr "Das Plugin wurde erfolgreich deaktiviert." msgstr "Das Plugin wurde erfolgreich deaktiviert."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605
msgid "" msgid ""
"The plugin was disabled successfully, however a restart of OctoPrint is " "The plugin was disabled successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
@@ -394,7 +409,7 @@ msgstr ""
"Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neustart von " "Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neustart von "
"OctoPrint notwendig." "OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:606
msgid "" msgid ""
"The plugin was disabled successfully, however a reload of the page is needed " "The plugin was disabled successfully, however a reload of the page is needed "
"for that to take effect." "for that to take effect."
@@ -402,53 +417,61 @@ msgstr ""
"Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neuladen der " "Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neuladen der "
"Seite notwendig." "Seite notwendig."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:1 #: 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 das jegliche Pluginmanagementfunktionen während des Druckens "
"deaktiviert sind."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:9
msgid "Installed Plugins" msgid "Installed Plugins"
msgstr "Installierte Plugins" msgstr "Installierte Plugins"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:13 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:21
msgid "Bundled" msgid "Bundled"
msgstr "Gebundled" msgstr "Gebundled"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:16 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:24
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:90 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:99
#: src/octoprint/templates/index.jinja2:118 #: src/octoprint/templates/index.jinja2:118
msgid "Homepage" msgid "Homepage"
msgstr "Homepage" msgstr "Homepage"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:23 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:31
msgid "Uninstall Plugin" msgid "Uninstall Plugin"
msgstr "Plugin deinstallieren" msgstr "Plugin deinstallieren"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:40 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:48
msgid "Get More..." msgid "Get More..."
msgstr "Mehr..." msgstr "Mehr..."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:51 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:59
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:143 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:167
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:96 #: src/octoprint/templates/dialogs/settings/appearance.jinja2:96
msgid "Close" msgid "Close"
msgstr "Schließen" msgstr "Schließen"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:58 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:66
msgid "Install new Plugins..." msgid "Install new Plugins..."
msgstr "Installation neuer Plugins..." msgstr "Installation neuer Plugins..."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:62 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:71
#, python-format #, python-format
msgid "" msgid ""
"... from the <a href=\"%(url)s\" target=\"_blank\">Plugin Repository</a>" "... from the <a href=\"%(url)s\" target=\"_blank\">Plugin Repository</a>"
msgstr "... vom <a href=\"%(url)s\" target=\"_blank\">Plugin Repository</a>" msgstr "... vom <a href=\"%(url)s\" target=\"_blank\">Plugin Repository</a>"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:66 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:75
msgid "Sort by title" msgid "Sort by title"
msgstr "Nach Titel sortieren" msgstr "Nach Titel sortieren"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:67 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:76
msgid "Sort by publication date" msgid "Sort by publication date"
msgstr "Nach Veröffentlichungsdatum sortieren" msgstr "Nach Veröffentlichungsdatum sortieren"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:67 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:76
#: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:6
#: src/octoprint/templates/sidebar/files_header.jinja2:7 #: src/octoprint/templates/sidebar/files_header.jinja2:7
#: src/octoprint/templates/sidebar/files_header.jinja2:8 #: src/octoprint/templates/sidebar/files_header.jinja2:8
@@ -456,52 +479,52 @@ msgstr "Nach Veröffentlichungsdatum sortieren"
msgid "descending" msgid "descending"
msgstr "absteigend" msgstr "absteigend"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:69 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:78
msgid "Only show uninstalled plugins" msgid "Only show uninstalled plugins"
msgstr "Nur uninstallierte Plugins anzeigen" msgstr "Nur uninstallierte Plugins anzeigen"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:70 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:79
msgid "Only show compatible plugins" msgid "Only show compatible plugins"
msgstr "Nur kompatible Plugins anzeigen" msgstr "Nur kompatible Plugins anzeigen"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:72 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:81
msgid "Refresh list from repository" msgid "Refresh list from repository"
msgstr "Liste vom Repository neu laden" msgstr "Liste vom Repository neu laden"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:78 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:87
#: src/octoprint/templates/sidebar/files.jinja2:2 #: src/octoprint/templates/sidebar/files.jinja2:2
msgid "Search..." msgid "Search..."
msgstr "Suchen..." msgstr "Suchen..."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:89 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:98
msgid "Details" msgid "Details"
msgstr "Details" msgstr "Details"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:106 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:115
msgid "Sadly the repository is currently not available" msgid "Sadly the repository is currently not available"
msgstr "Das Repository ist leider zur Zeit nicht verfügbar" msgstr "Das Repository ist leider zur Zeit nicht verfügbar"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:109 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:118
msgid "Is your OctoPrint installation connected to the internet?" msgid "Is your OctoPrint installation connected to the internet?"
msgstr "Ist Deine OctoPrint Installation mit dem Internet verbunden?" msgstr "Ist Deine OctoPrint Installation mit dem Internet verbunden?"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:114 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:123
msgid "... from URL" msgid "... from URL"
msgstr "... von URL" msgstr "... von URL"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:119 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:128
msgid "Enter URL..." msgid "Enter URL..."
msgstr "URL eingeben..." msgstr "URL eingeben..."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:123 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:132
msgid "This does not look like a valid \"http://\" or \"https://\" URL." msgid "This does not look like a valid \"http://\" or \"https://\" URL."
msgstr "Das sieht nicht wie eine valide \"http://\" oder \"https://\" URL aus." msgstr "Das sieht nicht wie eine valide \"http://\" oder \"https://\" URL aus."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:126 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:135
msgid "... from an uploaded archive" msgid "... from an uploaded archive"
msgstr "... von einem hochgeladenen Archiv" msgstr "... von einem hochgeladenen Archiv"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:139 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:148
msgid "" msgid ""
"This does not look like a valid plugin archive. Valid plugin archives should " "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" "be either zip files or tarballs and have the extension \".zip\", \".tar.gz"
@@ -511,7 +534,19 @@ msgstr ""
"sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension \".zip" "sollten entweder ZIP-Dateien oder Tarballs sein und die Dateiextension \".zip"
"\", \".tar.gz\", \".tgz\" oder \".tar\" haben" "\", \".tar.gz\", \".tgz\" oder \".tar\" haben"
#: src/octoprint/plugins/softwareupdate/__init__.py:412 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:152
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:44
#: src/octoprint/templates/tabs/terminal.jinja2:25
msgid "Advanced options"
msgstr "Erweiterte Optionen"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:158
msgid ""
"Use <code>--process-dependency-links</code> with <code>pip install</code>"
msgstr ""
"Übergebe <code>--process-dependency-links</code> an <code>pip install</code>"
#: src/octoprint/plugins/softwareupdate/__init__.py:499
#: src/octoprint/server/views.py:146 #: src/octoprint/server/views.py:146
#: src/octoprint/static/js/app/viewmodels/appearance.js:11 #: src/octoprint/static/js/app/viewmodels/appearance.js:11
#: src/octoprint/static/js/app/viewmodels/appearance.js:13 #: src/octoprint/static/js/app/viewmodels/appearance.js:13
@@ -520,11 +555,11 @@ msgstr ""
msgid "OctoPrint" msgid "OctoPrint"
msgstr "OctoPrint" msgstr "OctoPrint"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:122 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:114
msgid "There are updates available for the following components:" msgid "There are updates available for the following components:"
msgstr "Es gibt Aktualisierungen für die folgenden Komponenten:" msgstr "Es gibt Aktualisierungen für die folgenden Komponenten:"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:136 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:128
msgid "" msgid ""
"Those components marked with <i class=\"icon-ok\"></i> can be updated " "Those components marked with <i class=\"icon-ok\"></i> can be updated "
"directly." "directly."
@@ -532,15 +567,15 @@ msgstr ""
"Die mit <i class=\"icon-ok\"></i> markierten Komponenten können direkt " "Die mit <i class=\"icon-ok\"></i> markierten Komponenten können direkt "
"aktualisiert werden." "aktualisiert werden."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:139 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:131
msgid "Update Available" msgid "Update Available"
msgstr "Aktualisierung verfügbar" msgstr "Aktualisierung verfügbar"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:151 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:143
msgid "Ignore" msgid "Ignore"
msgstr "Ignorieren" msgstr "Ignorieren"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:155 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:147
msgid "" msgid ""
"You can make this message display again via \"Settings\" > \"SoftwareUpdate" "You can make this message display again via \"Settings\" > \"SoftwareUpdate"
"\" > \"Check for update now\"" "\" > \"Check for update now\""
@@ -548,27 +583,27 @@ msgstr ""
"Du kannst diese Nachricht erneut anzeigen lassen mittels \"Einstellungen\" > " "Du kannst diese Nachricht erneut anzeigen lassen mittels \"Einstellungen\" > "
"\"Software Update\" > \"Jetzt nach Aktualisierungen suchen\"" "\"Software Update\" > \"Jetzt nach Aktualisierungen suchen\""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:159 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:151
msgid "Update now" msgid "Update now"
msgstr "Jetzt aktualisieren" msgstr "Jetzt aktualisieren"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:175 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:168
msgid "Everything is up-to-date" msgid "Everything is up-to-date"
msgstr "Alles ist auf dem neusten Stand" msgstr "Alles ist auf dem neusten Stand"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:221 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:233
msgid "Updating..." msgid "Updating..."
msgstr "Aktualisiere..." msgstr "Aktualisiere..."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:222 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:234
msgid "Now updating, please wait." msgid "Now updating, please wait."
msgstr "Aktualisiere gerade, bitte warten." msgstr "Aktualisiere gerade, bitte warten."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:241 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:253
msgid "Update not started!" msgid "Update not started!"
msgstr "Aktualisierung nicht gestartet!" msgstr "Aktualisierung nicht gestartet!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:242 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:254
msgid "" msgid ""
"The update could not be started. Is it already active? Please consult the " "The update could not be started. Is it already active? Please consult the "
"log for details." "log for details."
@@ -576,11 +611,11 @@ msgstr ""
"Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? Bitte " "Die Aktualisierung konnte nicht gestartet werden. Läuft bereits eine? Bitte "
"konsultiere das Log für Details." "konsultiere das Log für Details."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:264 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:276
msgid "Can't update while printing" msgid "Can't update while printing"
msgstr "Aktualisierung nicht möglich während gedruckt wird" msgstr "Aktualisierung nicht möglich während gedruckt wird"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:265 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:277
msgid "" msgid ""
"A print job is currently in progress. Updating will be prevented until it is " "A print job is currently in progress. Updating will be prevented until it is "
"done." "done."
@@ -588,17 +623,17 @@ msgstr ""
"Ein Druckjob ist zur Zeit aktiv. Aktualisierungen werden unterbunden bis er " "Ein Druckjob ist zur Zeit aktiv. Aktualisierungen werden unterbunden bis er "
"fertig ist." "fertig ist."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:269 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:281
msgid "This will update your OctoPrint installation and restart the server." msgid "This will update your OctoPrint installation and restart the server."
msgstr "" msgstr ""
"Das wird Deine OctoPrint Installation aktualisieren und den Server neu " "Das wird Deine OctoPrint Installation aktualisieren und den Server neu "
"starten." "starten."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:293 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:305
msgid "Restart successful!" msgid "Restart successful!"
msgstr "Neustart erfolgreich!" msgstr "Neustart erfolgreich!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:294 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:306
msgid "" msgid ""
"The server was restarted successfully. The page will now reload " "The server was restarted successfully. The page will now reload "
"automatically." "automatically."
@@ -606,28 +641,28 @@ msgstr ""
"Der Server wurde erfolgreich neu gestartet. Die Seite wird nun automatisch " "Der Server wurde erfolgreich neu gestartet. Die Seite wird nun automatisch "
"neu geladen." "neu geladen."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:326 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:338
#, python-format #, python-format
msgid "Now updating %(name)s to %(version)s" msgid "Now updating %(name)s to %(version)s"
msgstr "Aktualisiere %(name)s auf %(version)s" msgstr "Aktualisiere %(name)s auf %(version)s"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:334 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:346
msgid "Update successful, restarting!" msgid "Update successful, restarting!"
msgstr "Aktualisierung erfolgreich, starte neu!" msgstr "Aktualisierung erfolgreich, starte neu!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:335 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:347
msgid "The update finished successfully and the server will now be restarted." msgid "The update finished successfully and the server will now be restarted."
msgstr "" msgstr ""
"Die Aktualisierung wurde erfolgreich durchgeführt und der Server wird jetzt " "Die Aktualisierung wurde erfolgreich durchgeführt und der Server wird jetzt "
"neu gestartet." "neu gestartet."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:346 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:358
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:388 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:400
msgid "Restart failed" msgid "Restart failed"
msgstr "Neustart fehlgeschlagen" msgstr "Neustart fehlgeschlagen"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:347 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:359
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:389 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:401
msgid "" msgid ""
"The server apparently did not restart by itself, you'll have to do it " "The server apparently did not restart by itself, you'll have to do it "
"manually. Please consult the log file on what went wrong." "manually. Please consult the log file on what went wrong."
@@ -635,23 +670,23 @@ msgstr ""
"Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das " "Der Server hat anscheinend nicht von selbst neu gstartet, Du wirst das "
"manuell tun müssen. Bitte konsultiere das Logfile." "manuell tun müssen. Bitte konsultiere das Logfile."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:363 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:375
msgid "The update finished successfully, please restart OctoPrint now." msgid "The update finished successfully, please restart OctoPrint now."
msgstr "" msgstr ""
"Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte OctoPrint " "Die Aktualisierung wurde erfolgreich abgeschlossen, bitte starte OctoPrint "
"jetzt neu." "jetzt neu."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:365 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:377
msgid "The update finished successfully, please reboot the server now." msgid "The update finished successfully, please reboot the server now."
msgstr "" msgstr ""
"Die Aktualisierung wurde erfolgreich abgeschlossen, bitte reboote den Server " "Die Aktualisierung wurde erfolgreich abgeschlossen, bitte reboote den Server "
"jetzt." "jetzt."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:369 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:381
msgid "Update successful, restart required!" msgid "Update successful, restart required!"
msgstr "Aktualisierung erfolgreich, Neustart notwendig!" msgstr "Aktualisierung erfolgreich, Neustart notwendig!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:382 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:394
msgid "" msgid ""
"Restarting OctoPrint failed, please restart it manually. You might also want " "Restarting OctoPrint failed, please restart it manually. You might also want "
"to consult the log file on what went wrong here." "to consult the log file on what went wrong here."
@@ -660,7 +695,7 @@ msgstr ""
"Du solltest das Logfile konsultieren, um herauszufinden, was hier schief " "Du solltest das Logfile konsultieren, um herauszufinden, was hier schief "
"gelaufen ist." "gelaufen ist."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:384 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:396
msgid "" msgid ""
"Rebooting the server failed, please reboot it manually. You might also want " "Rebooting the server failed, please reboot it manually. You might also want "
"to consult the log file on what went wrong here." "to consult the log file on what went wrong here."
@@ -669,19 +704,19 @@ msgstr ""
"auch das Logfile konsultieren, um herauszufinden, was hier gerade schief " "auch das Logfile konsultieren, um herauszufinden, was hier gerade schief "
"gelaufen ist." "gelaufen ist."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:402 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:414
msgid "Update successful!" msgid "Update successful!"
msgstr "Aktualisierung erfolgreich!" msgstr "Aktualisierung erfolgreich!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:403 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:415
msgid "The update finished successfully." msgid "The update finished successfully."
msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen." msgstr "Die Aktualisierung wurde erfolgreich abgeschlossen."
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:415 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:427
msgid "Update failed!" msgid "Update failed!"
msgstr "Aktualisierung fehlgeschlagen!" msgstr "Aktualisierung fehlgeschlagen!"
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:416 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:428
msgid "" msgid ""
"The update did not finish successfully. Please consult the log for details." "The update did not finish successfully. Please consult the log for details."
msgstr "" msgstr ""
@@ -713,11 +748,6 @@ msgstr "Verfügbar:"
msgid "Check for update now" msgid "Check for update now"
msgstr "Jetzt nach Aktualisierungen suchen" msgstr "Jetzt nach Aktualisierungen suchen"
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:44
#: src/octoprint/templates/tabs/terminal.jinja2:25
msgid "Advanced options"
msgstr "Erweiterte Optionen"
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:46 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:46
msgid "Force check for update (overrides cache used for update checks)" msgid "Force check for update (overrides cache used for update checks)"
msgstr "" msgstr ""
@@ -853,14 +883,14 @@ msgstr "Zugriff"
msgid "Interface" msgid "Interface"
msgstr "Interface" msgstr "Interface"
#: src/octoprint/static/js/app/dataupdater.js:61 #: src/octoprint/static/js/app/dataupdater.js:65
#: src/octoprint/static/js/app/dataupdater.js:95 #: src/octoprint/static/js/app/dataupdater.js:99
#: src/octoprint/static/js/app/helpers.js:423 #: src/octoprint/static/js/app/helpers.js:436
#: src/octoprint/templates/overlays/offline.jinja2:6 #: src/octoprint/templates/overlays/offline.jinja2:6
msgid "Server is offline" msgid "Server is offline"
msgstr "Der Server ist offline" msgstr "Der Server ist offline"
#: src/octoprint/static/js/app/dataupdater.js:62 #: src/octoprint/static/js/app/dataupdater.js:66
msgid "" msgid ""
"The server appears to be offline, at least I'm not getting any response from " "The server appears to be offline, at least I'm not getting any response from "
"it. I'll try to reconnect automatically <strong>over the next couple of " "it. I'll try to reconnect automatically <strong>over the next couple of "
@@ -872,7 +902,7 @@ msgstr ""
"erneut zu verbinden, aber Du kannst mittels des folgenden Buttons auch " "erneut zu verbinden, aber Du kannst mittels des folgenden Buttons auch "
"jederzeit einen manuellen Verbindungsversuch anstoßen." "jederzeit einen manuellen Verbindungsversuch anstoßen."
#: src/octoprint/static/js/app/dataupdater.js:96 #: src/octoprint/static/js/app/dataupdater.js:100
msgid "" msgid ""
"The server appears to be offline, at least I'm not getting any response from " "The server appears to be offline, at least I'm not getting any response from "
"it. I <strong>could not reconnect automatically</strong>, but you may try a " "it. I <strong>could not reconnect automatically</strong>, but you may try a "
@@ -883,31 +913,31 @@ msgstr ""
"aber Du kannst mittels des folgenden Buttons einen manuellen " "aber Du kannst mittels des folgenden Buttons einen manuellen "
"Verbindungsversuch anstoßen." "Verbindungsversuch anstoßen."
#: src/octoprint/static/js/app/dataupdater.js:168 #: src/octoprint/static/js/app/dataupdater.js:166
#: src/octoprint/static/js/app/dataupdater.js:196 #: src/octoprint/static/js/app/dataupdater.js:194
#, python-format #, python-format
msgid "Slicing ... (%(percentage)d%%)" msgid "Slicing ... (%(percentage)d%%)"
msgstr "Slice ... (%(percentage)d%%)" msgstr "Slice ... (%(percentage)d%%)"
#: src/octoprint/static/js/app/dataupdater.js:185 #: src/octoprint/static/js/app/dataupdater.js:183
msgid "Rendering timelapse" msgid "Rendering timelapse"
msgstr "Zeitrafferaufnahme wird gerendert" msgstr "Zeitrafferaufnahme wird gerendert"
#: src/octoprint/static/js/app/dataupdater.js:185 #: src/octoprint/static/js/app/dataupdater.js:183
#, python-format #, python-format
msgid "Now rendering timelapse %(movie_basename)s" msgid "Now rendering timelapse %(movie_basename)s"
msgstr "Rendere Zeitrafferaufnahme %(movie_basename)s" msgstr "Rendere Zeitrafferaufnahme %(movie_basename)s"
#: src/octoprint/static/js/app/dataupdater.js:187 #: src/octoprint/static/js/app/dataupdater.js:185
msgid "Timelapse ready" msgid "Timelapse ready"
msgstr "Zeitrafferaufnahme fertig" msgstr "Zeitrafferaufnahme fertig"
#: src/octoprint/static/js/app/dataupdater.js:187 #: src/octoprint/static/js/app/dataupdater.js:185
#, python-format #, python-format
msgid "New timelapse %(movie_basename)s is done rendering." msgid "New timelapse %(movie_basename)s is done rendering."
msgstr "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert" msgstr "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert"
#: src/octoprint/static/js/app/dataupdater.js:189 #: src/octoprint/static/js/app/dataupdater.js:187
#, python-format #, python-format
msgid "" msgid ""
"Rendering of timelapse %(movie_basename)s failed with return code " "Rendering of timelapse %(movie_basename)s failed with return code "
@@ -916,56 +946,56 @@ msgstr ""
"Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit " "Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit "
"Returncode %(returncode)s" "Returncode %(returncode)s"
#: src/octoprint/static/js/app/dataupdater.js:191 #: src/octoprint/static/js/app/dataupdater.js:189
msgid "Rendering failed" msgid "Rendering failed"
msgstr "Rendering fehlgeschlagen" msgstr "Rendering fehlgeschlagen"
#: src/octoprint/static/js/app/dataupdater.js:198 #: src/octoprint/static/js/app/dataupdater.js:196
msgid "Slicing ..." msgid "Slicing ..."
msgstr "Slice ..." msgstr "Slice ..."
#: src/octoprint/static/js/app/dataupdater.js:204 #: src/octoprint/static/js/app/dataupdater.js:202
msgid "Slicing done" msgid "Slicing done"
msgstr "Slicing abgeschlossen" msgstr "Slicing abgeschlossen"
#: src/octoprint/static/js/app/dataupdater.js:204 #: src/octoprint/static/js/app/dataupdater.js:202
#, python-format #, python-format
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds" msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden" msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden"
#: src/octoprint/static/js/app/dataupdater.js:214 #: src/octoprint/static/js/app/dataupdater.js:212
#, python-format #, python-format
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s" msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s" msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s"
#: src/octoprint/static/js/app/dataupdater.js:215 #: src/octoprint/static/js/app/dataupdater.js:213
msgid "Slicing failed" msgid "Slicing failed"
msgstr "Slicing fehlgeschlagen" msgstr "Slicing fehlgeschlagen"
#: src/octoprint/static/js/app/dataupdater.js:219 #: src/octoprint/static/js/app/dataupdater.js:217
msgid "Streaming ..." msgid "Streaming ..."
msgstr "Streaming ..." msgstr "Streaming ..."
#: src/octoprint/static/js/app/dataupdater.js:225 #: src/octoprint/static/js/app/dataupdater.js:223
msgid "Streaming done" msgid "Streaming done"
msgstr "Streaming abgeschlossen" msgstr "Streaming abgeschlossen"
#: src/octoprint/static/js/app/dataupdater.js:226 #: src/octoprint/static/js/app/dataupdater.js:224
#, python-format #, python-format
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds" msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden" msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden"
#: src/octoprint/static/js/app/helpers.js:344 #: src/octoprint/static/js/app/helpers.js:357
#, python-format #, python-format
msgid "%(hour)02d:%(minute)02d:%(second)02d" msgid "%(hour)02d:%(minute)02d:%(second)02d"
msgstr "%(hour)02d:%(minute)02d:%(second)02d" msgstr "%(hour)02d:%(minute)02d:%(second)02d"
#: src/octoprint/static/js/app/helpers.js:364 #: src/octoprint/static/js/app/helpers.js:377
msgid "YYYY-MM-DD HH:mm" msgid "YYYY-MM-DD HH:mm"
msgstr "DD.MM.YYYY HH:mm" msgstr "DD.MM.YYYY HH:mm"
#: src/octoprint/static/js/app/helpers.js:382 #: src/octoprint/static/js/app/helpers.js:395
#: src/octoprint/static/js/app/helpers.js:387 #: src/octoprint/static/js/app/helpers.js:400
msgid "off" msgid "off"
msgstr "Aus" msgstr "Aus"
@@ -1187,44 +1217,44 @@ msgid "Error"
msgstr "Fehler" msgstr "Fehler"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:96 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:96
#: src/octoprint/static/js/app/viewmodels/settings.js:52 #: src/octoprint/static/js/app/viewmodels/settings.js:53
#: src/octoprint/static/js/app/viewmodels/settings.js:82 #: src/octoprint/static/js/app/viewmodels/settings.js:83
msgid "default" msgid "default"
msgstr "Standard" msgstr "Standard"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:97 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:97
#: src/octoprint/static/js/app/viewmodels/settings.js:53 #: src/octoprint/static/js/app/viewmodels/settings.js:54
#: src/octoprint/static/js/app/viewmodels/settings.js:66 #: src/octoprint/static/js/app/viewmodels/settings.js:67
msgid "red" msgid "red"
msgstr "Rot" msgstr "Rot"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:98 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:98
#: src/octoprint/static/js/app/viewmodels/settings.js:54 #: src/octoprint/static/js/app/viewmodels/settings.js:55
#: src/octoprint/static/js/app/viewmodels/settings.js:68 #: src/octoprint/static/js/app/viewmodels/settings.js:69
msgid "orange" msgid "orange"
msgstr "Orange" msgstr "Orange"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:99 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:99
#: src/octoprint/static/js/app/viewmodels/settings.js:55 #: src/octoprint/static/js/app/viewmodels/settings.js:56
#: src/octoprint/static/js/app/viewmodels/settings.js:70 #: src/octoprint/static/js/app/viewmodels/settings.js:71
msgid "yellow" msgid "yellow"
msgstr "Gelb" msgstr "Gelb"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:100 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:100
#: src/octoprint/static/js/app/viewmodels/settings.js:56 #: src/octoprint/static/js/app/viewmodels/settings.js:57
#: src/octoprint/static/js/app/viewmodels/settings.js:72 #: src/octoprint/static/js/app/viewmodels/settings.js:73
msgid "green" msgid "green"
msgstr "Grün" msgstr "Grün"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:101 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:101
#: src/octoprint/static/js/app/viewmodels/settings.js:57 #: src/octoprint/static/js/app/viewmodels/settings.js:58
#: src/octoprint/static/js/app/viewmodels/settings.js:74 #: src/octoprint/static/js/app/viewmodels/settings.js:75
msgid "blue" msgid "blue"
msgstr "Blau" msgstr "Blau"
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:102 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:102
#: src/octoprint/static/js/app/viewmodels/settings.js:59 #: src/octoprint/static/js/app/viewmodels/settings.js:60
#: src/octoprint/static/js/app/viewmodels/settings.js:78 #: src/octoprint/static/js/app/viewmodels/settings.js:79
msgid "black" msgid "black"
msgstr "Schwarz" msgstr "Schwarz"
@@ -1333,17 +1363,17 @@ msgstr "Sek"
msgid "This will restart the print job from the beginning." msgid "This will restart the print job from the beginning."
msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen." msgstr "Der Druckjob wird zurückgesetzt und von vorne begonnen."
#: src/octoprint/static/js/app/viewmodels/settings.js:58 #: src/octoprint/static/js/app/viewmodels/settings.js:59
#: src/octoprint/static/js/app/viewmodels/settings.js:76 #: src/octoprint/static/js/app/viewmodels/settings.js:77
msgid "violet" msgid "violet"
msgstr "Violett" msgstr "Violett"
#: src/octoprint/static/js/app/viewmodels/settings.js:60 #: src/octoprint/static/js/app/viewmodels/settings.js:61
#: src/octoprint/static/js/app/viewmodels/settings.js:80 #: src/octoprint/static/js/app/viewmodels/settings.js:81
msgid "white" msgid "white"
msgstr "weiß" msgstr "weiß"
#: src/octoprint/static/js/app/viewmodels/settings.js:88 #: src/octoprint/static/js/app/viewmodels/settings.js:89
msgid "Autodetect from browser" msgid "Autodetect from browser"
msgstr "Automatisch vom Browser erkennen" msgstr "Automatisch vom Browser erkennen"
@@ -2281,6 +2311,20 @@ msgstr "SD-Karte ist nicht initialisiert"
msgid "Attempt to reconnect" msgid "Attempt to reconnect"
msgstr "Erneut verbinden" msgstr "Erneut verbinden"
#: src/octoprint/templates/overlays/reloadui.jinja2:6
msgid "Please reload"
msgstr "Bitte die Seite neu laden"
#: src/octoprint/templates/overlays/reloadui.jinja2:7
msgid ""
"There is a new version of the server active now, a reload of the user "
"interface is needed. This will not interrupt any print jobs you might have "
"ongoing. Please reload the web interface now by clicking the button below."
msgstr ""
"Die Serverversion hat sich geändert, ein Neuladen des Webinterfaces ist "
"notwendig. Das hat keinen Einfluss auf deine evtl. laufenden Printjobs. "
"Bitte lade das Webinterface jetzt neu, indem du auf den Button unten klickst."
#: src/octoprint/templates/sidebar/connection.jinja2:8 #: src/octoprint/templates/sidebar/connection.jinja2:8
msgid "Save connection settings" msgid "Save connection settings"
msgstr "Verbindungseinstellungen speichern" msgstr "Verbindungseinstellungen speichern"
+209 -174
View File
@@ -6,9 +6,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: OctoPrint 1.2.0-dev-921-g8696ce9-dirty\n" "Project-Id-Version: OctoPrint 1.2.0-rc3-2-g33ea9c3-dirty\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2015-06-09 14:48+0200\n" "POT-Creation-Date: 2015-06-21 17:58+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -48,7 +48,7 @@ msgid "Identifier"
msgstr "" msgstr ""
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:66 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:75
#: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:6
#: src/octoprint/templates/sidebar/files_header.jinja2:6 #: src/octoprint/templates/sidebar/files_header.jinja2:6
#: src/octoprint/templates/tabs/timelapse.jinja2:45 #: src/octoprint/templates/tabs/timelapse.jinja2:45
@@ -58,7 +58,7 @@ msgstr ""
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:22
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:28 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:28
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:82 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:82
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:6 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:14
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:4 #: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:4
#: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:6
#: src/octoprint/templates/dialogs/settings/logs.jinja2:12 #: src/octoprint/templates/dialogs/settings/logs.jinja2:12
@@ -71,7 +71,7 @@ msgid "Name"
msgstr "" msgstr ""
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:29 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:29
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:7 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:15
msgid "Actions" msgid "Actions"
msgstr "" msgstr ""
@@ -97,7 +97,7 @@ msgid "Profile ini file"
msgstr "" msgstr ""
#: src/octoprint/plugins/cura/templates/cura_settings.jinja2:68 #: src/octoprint/plugins/cura/templates/cura_settings.jinja2:68
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:132 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:141
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:83 #: src/octoprint/templates/dialogs/settings/appearance.jinja2:83
msgid "Browse..." msgid "Browse..."
msgstr "" msgstr ""
@@ -128,290 +128,308 @@ msgstr ""
msgid "Confirm" msgid "Confirm"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/__init__.py:78 #: src/octoprint/plugins/pluginmanager/__init__.py:79
msgid "Plugin Manager" msgid "Plugin Manager"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:110 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:234 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:275
msgid "Installing plugin..." msgid "Installing plugin..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:110 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
msgid "Installing plugin from uploaded archive..." msgid "Installing plugin from uploaded archive..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:122 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:147
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:194 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:223
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:259 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:300
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:285 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:330
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:490 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:544
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:520 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:574
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:537 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:591
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
msgid "Something went wrong" msgid "Something went wrong"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:123 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:148
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:195 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:224
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:260 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:301
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:286 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:331
msgid "Please consult octoprint.log for details" msgid "Please consult octoprint.log for details"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:236 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:277
#, python-format #, python-format
msgid "Installing plugin \"%(name)s\" from %(url)s..." msgid "Installing plugin \"%(name)s\" from %(url)s..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:238 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:279
#, python-format #, python-format
msgid "Installing plugin from %(url)s..." msgid "Installing plugin from %(url)s..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:241 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:282
msgid "Reinstalling plugin..." msgid "Reinstalling plugin..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:242 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:283
#, python-format #, python-format
msgid "Reinstalling plugin \"%(name)s\" from %(url)s..." msgid "Reinstalling plugin \"%(name)s\" from %(url)s..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:276 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
msgid "Uninstalling plugin..." msgid "Uninstalling plugin..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:276 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
#, python-format #, python-format
msgid "Uninstalling plugin \"%(name)s\"" msgid "Uninstalling plugin \"%(name)s\""
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:313 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Reinstall" msgid "Reinstall"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:313 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:121 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:130
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:137 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:146
msgid "Install" msgid "Install"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:313 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Incompatible" msgid "Incompatible"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:331 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:374
#: src/octoprint/templates/overlays/reloadui.jinja2:9
msgid "Reload now" msgid "Reload now"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:400 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:443
msgid "Done!" msgid "Done!"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:420 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Enable Plugin" msgid "Enable Plugin"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:420 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Disable Plugin" msgid "Disable Plugin"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:479 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:528
msgid "Plugin installed"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:529
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:533
#, python-format #, python-format
msgid "Plugin \"%(name)s\" reinstalled" msgid "Plugin \"%(name)s\" reinstalled"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:480 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:534
msgid "The plugin was reinstalled successfully" msgid "The plugin was reinstalled successfully"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:481 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535
msgid "" msgid ""
"The plugin was reinstalled successfully, however a restart of OctoPrint " "The plugin was reinstalled successfully, however a restart of OctoPrint "
"is needed for that to take effect." "is needed for that to take effect."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:482 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:536
msgid "" msgid ""
"The plugin was reinstalled successfully, however a reload of the page is " "The plugin was reinstalled successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:484 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:538
#, python-format #, python-format
msgid "Plugin \"%(name)s\" installed" msgid "Plugin \"%(name)s\" installed"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:539
msgid "The plugin was installed successfully" msgid "The plugin was installed successfully"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:486 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540
msgid "" msgid ""
"The plugin was installed successfully, however a restart of OctoPrint is " "The plugin was installed successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:487 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541
msgid "" msgid ""
"The plugin was installed successfully, however a reload of the page is " "The plugin was installed successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:498 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552
#, python-format #, python-format
msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s" msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:500 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554
#, python-format #, python-format
msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s" msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:504 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
#, python-format #, python-format
msgid "" msgid ""
"Reinstalling the plugin from URL \"%(url)s\" failed, please see the log " "Reinstalling the plugin from URL \"%(url)s\" failed, please see the log "
"for details." "for details."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:506 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:560
#, python-format #, python-format
msgid "" msgid ""
"Installing the plugin from URL \"%(url)s\" failed, please see the log for" "Installing the plugin from URL \"%(url)s\" failed, please see the log for"
" details." " details."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:515 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569
#, python-format #, python-format
msgid "Plugin \"%(name)s\" uninstalled" msgid "Plugin \"%(name)s\" uninstalled"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:516 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:570
msgid "The plugin was uninstalled successfully" msgid "The plugin was uninstalled successfully"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:517 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:571
msgid "" msgid ""
"The plugin was uninstalled successfully, however a restart of OctoPrint " "The plugin was uninstalled successfully, however a restart of OctoPrint "
"is needed for that to take effect." "is needed for that to take effect."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:518 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572
msgid "" msgid ""
"The plugin was uninstalled successfully, however a reload of the page is " "The plugin was uninstalled successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:522 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:576
#, python-format #, python-format
msgid "Uninstalling the plugin failed: %(reason)s" msgid "Uninstalling the plugin failed: %(reason)s"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:524 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:578
msgid "Uninstalling the plugin failed, please see the log for details." msgid "Uninstalling the plugin failed, please see the log for details."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:532 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586
#, python-format #, python-format
msgid "Plugin \"%(name)s\" enabled" msgid "Plugin \"%(name)s\" enabled"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:533 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:587
msgid "The plugin was enabled successfully." msgid "The plugin was enabled successfully."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:534 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:588
msgid "" msgid ""
"The plugin was enabled successfully, however a restart of OctoPrint is " "The plugin was enabled successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:589
msgid "" msgid ""
"The plugin was enabled successfully, however a reload of the page is " "The plugin was enabled successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:539 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:593
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:556 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:610
#, python-format #, python-format
msgid "Toggling the plugin failed: %(reason)s" msgid "Toggling the plugin failed: %(reason)s"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:595
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:612
msgid "Toggling the plugin failed, please see the log for details." msgid "Toggling the plugin failed, please see the log for details."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:549 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:603
#, python-format #, python-format
msgid "Plugin \"%(name)s\" disabled" msgid "Plugin \"%(name)s\" disabled"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:550 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:604
msgid "The plugin was disabled successfully." msgid "The plugin was disabled successfully."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605
msgid "" msgid ""
"The plugin was disabled successfully, however a restart of OctoPrint is " "The plugin was disabled successfully, however a restart of OctoPrint is "
"needed for that to take effect." "needed for that to take effect."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552 #: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:606
msgid "" msgid ""
"The plugin was disabled successfully, however a reload of the page is " "The plugin was disabled successfully, however a reload of the page is "
"needed for that to take effect." "needed for that to take effect."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:1 #: 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 ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:9
msgid "Installed Plugins" msgid "Installed Plugins"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:13 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:21
msgid "Bundled" msgid "Bundled"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:16 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:24
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:90 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:99
#: src/octoprint/templates/index.jinja2:118 #: src/octoprint/templates/index.jinja2:118
msgid "Homepage" msgid "Homepage"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:23 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:31
msgid "Uninstall Plugin" msgid "Uninstall Plugin"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:40 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:48
msgid "Get More..." msgid "Get More..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:51 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:59
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:143 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:167
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:96 #: src/octoprint/templates/dialogs/settings/appearance.jinja2:96
msgid "Close" msgid "Close"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:58 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:66
msgid "Install new Plugins..." msgid "Install new Plugins..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:62 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:71
#, python-format #, python-format
msgid "... from the <a href=\"%(url)s\" target=\"_blank\">Plugin Repository</a>" msgid "... from the <a href=\"%(url)s\" target=\"_blank\">Plugin Repository</a>"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:66 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:75
msgid "Sort by title" msgid "Sort by title"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:67 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:76
msgid "Sort by publication date" msgid "Sort by publication date"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:67 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:76
#: src/octoprint/templates/dialogs/settings/logs.jinja2:6 #: src/octoprint/templates/dialogs/settings/logs.jinja2:6
#: src/octoprint/templates/sidebar/files_header.jinja2:7 #: src/octoprint/templates/sidebar/files_header.jinja2:7
#: src/octoprint/templates/sidebar/files_header.jinja2:8 #: src/octoprint/templates/sidebar/files_header.jinja2:8
@@ -419,59 +437,69 @@ msgstr ""
msgid "descending" msgid "descending"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:69 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:78
msgid "Only show uninstalled plugins" msgid "Only show uninstalled plugins"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:70 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:79
msgid "Only show compatible plugins" msgid "Only show compatible plugins"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:72 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:81
msgid "Refresh list from repository" msgid "Refresh list from repository"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:78 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:87
#: src/octoprint/templates/sidebar/files.jinja2:2 #: src/octoprint/templates/sidebar/files.jinja2:2
msgid "Search..." msgid "Search..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:89 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:98
msgid "Details" msgid "Details"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:106 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:115
msgid "Sadly the repository is currently not available" msgid "Sadly the repository is currently not available"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:109 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:118
msgid "Is your OctoPrint installation connected to the internet?" msgid "Is your OctoPrint installation connected to the internet?"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:114 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:123
msgid "... from URL" msgid "... from URL"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:119 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:128
msgid "Enter URL..." msgid "Enter URL..."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:123 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:132
msgid "This does not look like a valid \"http://\" or \"https://\" URL." msgid "This does not look like a valid \"http://\" or \"https://\" URL."
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:126 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:135
msgid "... from an uploaded archive" msgid "... from an uploaded archive"
msgstr "" msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:139 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:148
msgid "" msgid ""
"This does not look like a valid plugin archive. Valid plugin archives " "This does not look like a valid plugin archive. Valid plugin archives "
"should be either zip files or tarballs and have the extension \".zip\", " "should be either zip files or tarballs and have the extension \".zip\", "
"\".tar.gz\", \".tgz\" or \".tar\"" "\".tar.gz\", \".tgz\" or \".tar\""
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:412 #: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:152
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:44
#: src/octoprint/templates/tabs/terminal.jinja2:25
msgid "Advanced options"
msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:158
msgid "Use <code>--process-dependency-links</code> with <code>pip install</code>"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:499
#: src/octoprint/server/views.py:146 #: src/octoprint/server/views.py:146
#: src/octoprint/static/js/app/viewmodels/appearance.js:11 #: src/octoprint/static/js/app/viewmodels/appearance.js:11
#: src/octoprint/static/js/app/viewmodels/appearance.js:13 #: src/octoprint/static/js/app/viewmodels/appearance.js:13
@@ -480,142 +508,142 @@ msgstr ""
msgid "OctoPrint" msgid "OctoPrint"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:122 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:114
msgid "There are updates available for the following components:" msgid "There are updates available for the following components:"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:136 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:128
msgid "" msgid ""
"Those components marked with <i class=\"icon-ok\"></i> can be updated " "Those components marked with <i class=\"icon-ok\"></i> can be updated "
"directly." "directly."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:139 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:131
msgid "Update Available" msgid "Update Available"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:151 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:143
msgid "Ignore" msgid "Ignore"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:155 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:147
msgid "" msgid ""
"You can make this message display again via \"Settings\" > " "You can make this message display again via \"Settings\" > "
"\"SoftwareUpdate\" > \"Check for update now\"" "\"SoftwareUpdate\" > \"Check for update now\""
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:159 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:151
msgid "Update now" msgid "Update now"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:175 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:168
msgid "Everything is up-to-date" msgid "Everything is up-to-date"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:221 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:233
msgid "Updating..." msgid "Updating..."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:222 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:234
msgid "Now updating, please wait." msgid "Now updating, please wait."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:241 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:253
msgid "Update not started!" msgid "Update not started!"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:242 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:254
msgid "" msgid ""
"The update could not be started. Is it already active? Please consult the" "The update could not be started. Is it already active? Please consult the"
" log for details." " log for details."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:264 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:276
msgid "Can't update while printing" msgid "Can't update while printing"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:265 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:277
msgid "" msgid ""
"A print job is currently in progress. Updating will be prevented until it" "A print job is currently in progress. Updating will be prevented until it"
" is done." " is done."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:269 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:281
msgid "This will update your OctoPrint installation and restart the server." msgid "This will update your OctoPrint installation and restart the server."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:293 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:305
msgid "Restart successful!" msgid "Restart successful!"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:294 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:306
msgid "" msgid ""
"The server was restarted successfully. The page will now reload " "The server was restarted successfully. The page will now reload "
"automatically." "automatically."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:326 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:338
#, python-format #, python-format
msgid "Now updating %(name)s to %(version)s" msgid "Now updating %(name)s to %(version)s"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:334 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:346
msgid "Update successful, restarting!" msgid "Update successful, restarting!"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:335 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:347
msgid "The update finished successfully and the server will now be restarted." msgid "The update finished successfully and the server will now be restarted."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:346 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:358
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:388 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:400
msgid "Restart failed" msgid "Restart failed"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:347 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:359
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:389 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:401
msgid "" msgid ""
"The server apparently did not restart by itself, you'll have to do it " "The server apparently did not restart by itself, you'll have to do it "
"manually. Please consult the log file on what went wrong." "manually. Please consult the log file on what went wrong."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:363 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:375
msgid "The update finished successfully, please restart OctoPrint now." msgid "The update finished successfully, please restart OctoPrint now."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:365 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:377
msgid "The update finished successfully, please reboot the server now." msgid "The update finished successfully, please reboot the server now."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:369 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:381
msgid "Update successful, restart required!" msgid "Update successful, restart required!"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:382 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:394
msgid "" msgid ""
"Restarting OctoPrint failed, please restart it manually. You might also " "Restarting OctoPrint failed, please restart it manually. You might also "
"want to consult the log file on what went wrong here." "want to consult the log file on what went wrong here."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:384 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:396
msgid "" msgid ""
"Rebooting the server failed, please reboot it manually. You might also " "Rebooting the server failed, please reboot it manually. You might also "
"want to consult the log file on what went wrong here." "want to consult the log file on what went wrong here."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:402 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:414
msgid "Update successful!" msgid "Update successful!"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:403 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:415
msgid "The update finished successfully." msgid "The update finished successfully."
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:415 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:427
msgid "Update failed!" msgid "Update failed!"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:416 #: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:428
msgid "" msgid ""
"The update did not finish successfully. Please consult the log for " "The update did not finish successfully. Please consult the log for "
"details." "details."
@@ -646,11 +674,6 @@ msgstr ""
msgid "Check for update now" msgid "Check for update now"
msgstr "" msgstr ""
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:44
#: src/octoprint/templates/tabs/terminal.jinja2:25
msgid "Advanced options"
msgstr ""
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:46 #: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:46
msgid "Force check for update (overrides cache used for update checks)" msgid "Force check for update (overrides cache used for update checks)"
msgstr "" msgstr ""
@@ -783,14 +806,14 @@ msgstr ""
msgid "Interface" msgid "Interface"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:61 #: src/octoprint/static/js/app/dataupdater.js:65
#: src/octoprint/static/js/app/dataupdater.js:95 #: src/octoprint/static/js/app/dataupdater.js:99
#: src/octoprint/static/js/app/helpers.js:423 #: src/octoprint/static/js/app/helpers.js:436
#: src/octoprint/templates/overlays/offline.jinja2:6 #: src/octoprint/templates/overlays/offline.jinja2:6
msgid "Server is offline" msgid "Server is offline"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:62 #: src/octoprint/static/js/app/dataupdater.js:66
msgid "" msgid ""
"The server appears to be offline, at least I'm not getting any response " "The server appears to be offline, at least I'm not getting any response "
"from it. I'll try to reconnect automatically <strong>over the next couple" "from it. I'll try to reconnect automatically <strong>over the next couple"
@@ -798,94 +821,94 @@ msgid ""
"anytime using the button below." "anytime using the button below."
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:96 #: src/octoprint/static/js/app/dataupdater.js:100
msgid "" msgid ""
"The server appears to be offline, at least I'm not getting any response " "The server appears to be offline, at least I'm not getting any response "
"from it. I <strong>could not reconnect automatically</strong>, but you " "from it. I <strong>could not reconnect automatically</strong>, but you "
"may try a manual reconnect using the button below." "may try a manual reconnect using the button below."
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:168 #: src/octoprint/static/js/app/dataupdater.js:166
#: src/octoprint/static/js/app/dataupdater.js:196 #: src/octoprint/static/js/app/dataupdater.js:194
#, python-format #, python-format
msgid "Slicing ... (%(percentage)d%%)" msgid "Slicing ... (%(percentage)d%%)"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:185 #: src/octoprint/static/js/app/dataupdater.js:183
msgid "Rendering timelapse" msgid "Rendering timelapse"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:185 #: src/octoprint/static/js/app/dataupdater.js:183
#, python-format #, python-format
msgid "Now rendering timelapse %(movie_basename)s" msgid "Now rendering timelapse %(movie_basename)s"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:187 #: src/octoprint/static/js/app/dataupdater.js:185
msgid "Timelapse ready" msgid "Timelapse ready"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:187 #: src/octoprint/static/js/app/dataupdater.js:185
#, python-format #, python-format
msgid "New timelapse %(movie_basename)s is done rendering." msgid "New timelapse %(movie_basename)s is done rendering."
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:189 #: src/octoprint/static/js/app/dataupdater.js:187
#, python-format #, python-format
msgid "" msgid ""
"Rendering of timelapse %(movie_basename)s failed with return code " "Rendering of timelapse %(movie_basename)s failed with return code "
"%(returncode)s" "%(returncode)s"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:191 #: src/octoprint/static/js/app/dataupdater.js:189
msgid "Rendering failed" msgid "Rendering failed"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:198 #: src/octoprint/static/js/app/dataupdater.js:196
msgid "Slicing ..." msgid "Slicing ..."
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:204 #: src/octoprint/static/js/app/dataupdater.js:202
msgid "Slicing done" msgid "Slicing done"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:204 #: src/octoprint/static/js/app/dataupdater.js:202
#, python-format #, python-format
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds" msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:214 #: src/octoprint/static/js/app/dataupdater.js:212
#, python-format #, python-format
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s" msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:215 #: src/octoprint/static/js/app/dataupdater.js:213
msgid "Slicing failed" msgid "Slicing failed"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:219 #: src/octoprint/static/js/app/dataupdater.js:217
msgid "Streaming ..." msgid "Streaming ..."
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:225 #: src/octoprint/static/js/app/dataupdater.js:223
msgid "Streaming done" msgid "Streaming done"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:226 #: src/octoprint/static/js/app/dataupdater.js:224
#, python-format #, python-format
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds" msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/helpers.js:344 #: src/octoprint/static/js/app/helpers.js:357
#, python-format #, python-format
msgid "%(hour)02d:%(minute)02d:%(second)02d" msgid "%(hour)02d:%(minute)02d:%(second)02d"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/helpers.js:364 #: src/octoprint/static/js/app/helpers.js:377
msgid "YYYY-MM-DD HH:mm" msgid "YYYY-MM-DD HH:mm"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/helpers.js:382 #: src/octoprint/static/js/app/helpers.js:395
#: src/octoprint/static/js/app/helpers.js:387 #: src/octoprint/static/js/app/helpers.js:400
msgid "off" msgid "off"
msgstr "" msgstr ""
@@ -1101,44 +1124,44 @@ msgid "Error"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:96 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:96
#: src/octoprint/static/js/app/viewmodels/settings.js:52 #: src/octoprint/static/js/app/viewmodels/settings.js:53
#: src/octoprint/static/js/app/viewmodels/settings.js:82 #: src/octoprint/static/js/app/viewmodels/settings.js:83
msgid "default" msgid "default"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:97 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:97
#: src/octoprint/static/js/app/viewmodels/settings.js:53 #: src/octoprint/static/js/app/viewmodels/settings.js:54
#: src/octoprint/static/js/app/viewmodels/settings.js:66 #: src/octoprint/static/js/app/viewmodels/settings.js:67
msgid "red" msgid "red"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:98 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:98
#: src/octoprint/static/js/app/viewmodels/settings.js:54 #: src/octoprint/static/js/app/viewmodels/settings.js:55
#: src/octoprint/static/js/app/viewmodels/settings.js:68 #: src/octoprint/static/js/app/viewmodels/settings.js:69
msgid "orange" msgid "orange"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:99 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:99
#: src/octoprint/static/js/app/viewmodels/settings.js:55 #: src/octoprint/static/js/app/viewmodels/settings.js:56
#: src/octoprint/static/js/app/viewmodels/settings.js:70 #: src/octoprint/static/js/app/viewmodels/settings.js:71
msgid "yellow" msgid "yellow"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:100 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:100
#: src/octoprint/static/js/app/viewmodels/settings.js:56 #: src/octoprint/static/js/app/viewmodels/settings.js:57
#: src/octoprint/static/js/app/viewmodels/settings.js:72 #: src/octoprint/static/js/app/viewmodels/settings.js:73
msgid "green" msgid "green"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:101 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:101
#: src/octoprint/static/js/app/viewmodels/settings.js:57 #: src/octoprint/static/js/app/viewmodels/settings.js:58
#: src/octoprint/static/js/app/viewmodels/settings.js:74 #: src/octoprint/static/js/app/viewmodels/settings.js:75
msgid "blue" msgid "blue"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/printerprofiles.js:102 #: src/octoprint/static/js/app/viewmodels/printerprofiles.js:102
#: src/octoprint/static/js/app/viewmodels/settings.js:59 #: src/octoprint/static/js/app/viewmodels/settings.js:60
#: src/octoprint/static/js/app/viewmodels/settings.js:78 #: src/octoprint/static/js/app/viewmodels/settings.js:79
msgid "black" msgid "black"
msgstr "" msgstr ""
@@ -1244,17 +1267,17 @@ msgstr ""
msgid "This will restart the print job from the beginning." msgid "This will restart the print job from the beginning."
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:58 #: src/octoprint/static/js/app/viewmodels/settings.js:59
#: src/octoprint/static/js/app/viewmodels/settings.js:76 #: src/octoprint/static/js/app/viewmodels/settings.js:77
msgid "violet" msgid "violet"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:60 #: src/octoprint/static/js/app/viewmodels/settings.js:61
#: src/octoprint/static/js/app/viewmodels/settings.js:80 #: src/octoprint/static/js/app/viewmodels/settings.js:81
msgid "white" msgid "white"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:88 #: src/octoprint/static/js/app/viewmodels/settings.js:89
msgid "Autodetect from browser" msgid "Autodetect from browser"
msgstr "" msgstr ""
@@ -2103,6 +2126,18 @@ msgstr ""
msgid "Attempt to reconnect" msgid "Attempt to reconnect"
msgstr "" msgstr ""
#: src/octoprint/templates/overlays/reloadui.jinja2:6
msgid "Please reload"
msgstr ""
#: src/octoprint/templates/overlays/reloadui.jinja2:7
msgid ""
"There is a new version of the server active now, a reload of the user "
"interface is needed. This will not interrupt any print jobs you might "
"have ongoing. Please reload the web interface now by clicking the button "
"below."
msgstr ""
#: src/octoprint/templates/sidebar/connection.jinja2:8 #: src/octoprint/templates/sidebar/connection.jinja2:8
msgid "Save connection settings" msgid "Save connection settings"
msgstr "" msgstr ""