Compare commits

..
38 Commits
Author SHA1 Message Date
Gina Häußge 81735d07c9 Merge branch 'rc/maintenance' 2019-05-13 14:54:51 +02:00
Gina Häußge 2c640ff8b8 🔖 Preparing release of 1.3.11 2019-05-13 13:52:32 +02:00
Gina Häußge 0331a25ae3 📝 Reflect API key changes in docs
Closes #3121
2019-05-13 12:55:25 +02:00
Gina Häußge af32858549 🔖 Preparing release of 1.3.11rc3, part 2 2019-04-11 12:21:24 +02:00
Gina Häußge d1104ddbae 🐛 Fix file list refresh after SD list update 2019-04-11 12:14:59 +02:00
Gina Häußge e2519abbbe ✨ Add setting for exclusive comm port flag
Just in case there are issues with that on some setups as first RC seem
to indicate, we make it toggleable.
2019-04-11 12:14:38 +02:00
Gina Häußge 967b3bbff8 🔖 Preparing release of 1.3.11rc3 2019-04-10 17:38:17 +02:00
Gina Häußge 9721aec32a 🐛 printer safety: Fix for unicode issues
Fixes #3090
2019-04-10 17:15:59 +02:00
Gina Häußge 68952c20bd ⏪ Switch lines read from serial back to bytes
While long term we want to have unicode here, the rest of the code
is not even remotely prepared for handling utf-8 strings as visible in
the large amount of unicode issues visible in sentry.

So for now we go back to byte objects and fix #3091 differently
2019-04-10 17:15:58 +02:00
Gina Häußge 03e328fd13 📝 Fix a documentation issue
Fixes #3117
2019-04-10 17:13:29 +02:00
Gina Häußge 9775d99feb 🔇 error tracking: mute tornado's WebSocketErrors 2019-04-10 12:03:45 +02:00
Gina Häußge bfcff9a1cd 🐛 Fix some potential encoding errors 2019-04-10 12:03:31 +02:00
Gina Häußge 5ca286f4e3 🔇 error tracking: mute ispErrors 2019-04-10 11:39:02 +02:00
Gina Häußge 58806a3d00 🔧 error tracking: update DSNs 2019-04-09 17:22:16 +02:00
Gina Häußge 72cc1afb45 🐛 Refresh connection tab on disconnect
That way we'll hopefully notice vanishing/changed ports.

Potential fix for #3111, waiting for test results from @arhi
2019-04-09 17:00:57 +02:00
Gina Häußge 323131cbc5 ☔ Harden against estimation exceptions 2019-04-09 16:56:17 +02:00
Gina Häußge f389773036 ☔ Make sure rolling window is at least 1
See #3116
2019-04-09 16:56:02 +02:00
Gina Häußge 0a04043922 🐛 Fix potential division by zero
Fixes #3116
2019-04-09 16:55:35 +02:00
Gina Häußge 84fa3b6073 🐛 Don't log empty lines
See also #3115
2019-04-09 11:07:11 +02:00
Gina Häußge d6576306b0 🐛 Add missing rstrip
Fixes #3115
2019-04-09 11:06:04 +02:00
Gina Häußge 8970fb42b1 ✨ error tracking: further filtering 2019-04-08 14:08:57 +02:00
Gina Häußge de6d1afdd6 ✨ Add flag to ignore incomplete startup
See https://github.com/foosel/OctoPrint/issues/3103#issuecomment-480612935
2019-04-08 12:12:00 +02:00
Gina Häußge 0a1cc68a6b ♻ error tracking: minor restructuring 2019-04-05 18:36:50 +02:00
Gina Häußge f1309dad1d ✨ error tracking: filter all exceptions triggered in plugins
The new extra parameter passed to exception loggers throughout
OctoPrint allows even more aggressive filtering to reduce the noise
further.
2019-04-05 17:48:52 +02:00
Gina Häußge b353c4eee2 ✨ extra logging parameter to add plugin identifier
Will allow to identify logged exceptions originating from calling
plugins, but also log plugin identifiers directly in the log message
if so desired.
2019-04-05 17:47:36 +02:00
Gina Häußge 34c30ed73f 🐛 Fix wrong textual representation of STARTING state
See comment/log files in #3104
2019-04-05 16:23:11 +02:00
Gina Häußge 8da5bb2d42 🐛 Fix bug in port detection
Closes #3108
2019-04-05 15:19:58 +02:00
Gina Häußge 65fe048ade ☔ error tracking: ignore RequestExceptions
We don't want to get error events every time someone's net connection
goes down or the webcam is misconfigured.
2019-04-05 10:17:12 +02:00
Gina Häußge 7efcf00baf Merge pull request #3106 from hlovdal/explicit_python_version
README: Use explicit python version for virtualenv
2019-04-05 09:47:52 +02:00
Håkon Løvdal a3254466f7 Whitespace fixes 2019-04-05 01:10:30 +02:00
Håkon Løvdal f8dc504773 Add example of using explicit python version 2019-04-05 01:10:30 +02:00
Gina Häußge 3574c2ddf9 🐛 virtual printer: Fix yet another unicode issue
Closes #3105
2019-04-04 19:05:17 +02:00
Gina Häußge 1dc0f1fb31 ☔ Define empty UI_API_KEY to be backwards compatible
Some plugins rely on this to be defined, let's give them some more time
to update.
2019-04-04 18:55:24 +02:00
Gina Häußge 5c522d86ca Merge remote-tracking branch 'origin/staging/maintenance' into staging/maintenance 2019-04-04 17:09:11 +02:00
Gina Häußge f785c8180b 🔖 staging/maintenance is now 1.3.11rc3.dev 2019-04-04 17:08:33 +02:00
Gina Häußge 410c3ee5f6 ☔ error tracking: ignore errors from packed_plugins.js 2019-04-04 14:12:19 +02:00
Gina Häußge 48825fd4c2 ⬆ error tracking: update js sentry sdk 2019-04-04 14:11:30 +02:00
Gina Häußge ff9c83ea25 ☔ Don't confuse users with pip's "OMG PY2.7 IS EOL!!1!" message
We know that python 2.7 is about to reach end of life. We are making
preparations for this in the devel branch. We don't need pip going
around and alarming our users about something they cannot solve, and
which pretty much is already solved anyhow.

So we nuke this stupid message present in current pip versions. Hard.

See also #2988
2019-04-04 11:51:16 +02:00
45 changed files with 2335 additions and 5023 deletions

No files matched your search

+3 -3
View File
@@ -24,10 +24,10 @@ maintenance 1.3.11 e14c00f135bf2a955e54ac3f0a2928d8440055d2 pep440-dev
fix/.* 1.3.11 e14c00f135bf2a955e54ac3f0a2928d8440055d2 pep440-dev
improve/.* 1.3.11 e14c00f135bf2a955e54ac3f0a2928d8440055d2 pep440-dev
# staging/maintenance is currently the branch for preparation of 1.3.11rc2
# staging/maintenance is currently the branch for preparation of 1.3.11rc3
# so is regressionfix/...
staging/maintenance 1.3.11rc2 73df8c2407f04756261acfe62ac3d72877f8a97d pep440-dev
regressionfix/.* 1.3.11rc2 73df8c2407f04756261acfe62ac3d72877f8a97d pep440-dev
staging/maintenance 1.3.11rc3 18e7d2b72ad73c5d8e522cebbc001d0e8a3dff14 pep440-dev
regressionfix/.* 1.3.11rc3 18e7d2b72ad73c5d8e522cebbc001d0e8a3dff14 pep440-dev
# every other branch is a development branch and thus gets resolved to 1.4.0-dev for now
.* 1.4.0 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev
+36 -48
View File
@@ -1,57 +1,13 @@
# OctoPrint Changelog
## 1.3.11rc2 (2019-04-04)
### Improvements
* More resilience against broken configurations.
* More resilience against platform startup issues during environment detection.
* Don't confuse users with pip's new "OMG PY2.7 IS EOL!!1!" message.
* Error Tracking: Severely restrict what gets tracked:
* we are only interested in handled core exceptions or unhandled exceptions
* we are not interested at all in `SerialException`
* in the frontend we are only interested in things originating in the `static` files
* in the frontend we are not interested in anything originating in `packed_plugins.js`
### Bug fixes
* [#3088](https://github.com/foosel/OctoPrint/issues/3088) (regression) - Fix 500 error on index rendering in case of plugins that use unicode in plugin vars.
* [#3089](https://github.com/foosel/OctoPrint/issues/3089) (regression) - Fix missing `_chamberTemp` definition
* [#3090](https://github.com/foosel/OctoPrint/issues/3090) (regression) - Fix missing method causing an exception on `/api/printer/tool` endpoint
* [#3091](https://github.com/foosel/OctoPrint/issues/3091) (regression) - Printer Safety Check: Fix unicode errors in certain communication scenarios.
* [#3092](https://github.com/foosel/OctoPrint/issues/3092) - Fix invalid tool parameter detection on `/api/printer/tool` endpoint.
* [#3098](https://github.com/foosel/OctoPrint/issues/3098) - Backup: Exclude temporary timelapse files as well if timelapses are excluded from backup.
* Fix missing default value for `self._errorValue` in comm layer.
* Don't read return code on async system commands, it won't work.
### Unreproduced issues
The following issues were reported in RC1 but so far have been unreproduced and further data to analyse them is still missing. If you encounter any of them please report back with a [fully filled out issue template](https://github.com/foosel/OctoPrint/blob/master/CONTRIBUTING.md#what-should-i-include-in-a-bug-report):
* ["Print completes but temp data appears to be 'stuck' at last known value for bed and hotend."](https://github.com/foosel/OctoPrint/issues/3087#issuecomment-478369220)
### Special thanks to all the contributors!
Special thanks to everyone who contributed to this release candidate and provided full, analysable bug reports.
### More information
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.11rc1...1.3.11rc1)
## 1.3.11rc1 (2019-03-28)
## 1.3.11 (2019-05-14)
### Heads-up: 1.3.11 unbundles the Cura plugin
If you rely on the Cura Plugin for your workflow that so far was bundled with OctoPrint, be sure to install the [Cura Legacy plugin](https://github.com/OctoPrint/OctoPrint-CuraLegacy) that's now also available on the plugin repository.
If you rely on the Cura Plugin for your workflow that so far was bundled with OctoPrint, be sure to install the [Cura Legacy plugin](https://github.com/OctoPrint/OctoPrint-CuraLegacy) that's now also [available on the plugin repository](https://plugins.octoprint.org/plugins/curalegacy/).
Once installed the Cura Legacy plugin will import the settings and profiles from the former bundled Cura plugin automatically on first start.
### Heads-up: 1.3.11 bundles a new Error Tracking plugin, please enable it on Release Candidates
The Error Tracking plugin is a completely separate plugin from the existing Anonymous Usage Tracking plugin. It's tracking is disabled by default. Its purpose is to collect error information from instances in order to allow better issue analysis especially during the Release Candidate phase, or when prompted after reporting a bug. Thus it will also ask you to enable it on start while subscribed to an RC release channel.
The plugin uses a [sentry.io](https://sentry.io) instance, kindly provided to OctoPrint by sentry.io.
### Improvements
* [#1938](https://github.com/foosel/OctoPrint/issues/1938) - Allow slicing parallel to printing on machines with more than one core.
@@ -107,12 +63,23 @@ The plugin uses a [sentry.io](https://sentry.io) instance, kindly provided to Oc
* Use `monotonic_time` for relative times everywhere.
* Support for heated chamber firmware capabilities.
* Remove `UI_API_KEY` and API disabling. With the inclusion of the ForceLogin plugin that doesn't serve a real purpose anymore in most cases, and it was only ever more of a rate limiting feature than an actual security measure anyhow. Plus it lead to a ton of false security alarms.
* More resilience against broken configurations.
* More resilience against platform startup issues during environment detection.
* Don't confuse users with current `pip`'s "Python 2.7 is EOL" messages
* Define empty `UI_API_KEY` for backwards compatibility with third party plugins
* Add config flag `server.ignoredIncompleteStartup` to override incomplete startup detection
* Hardening against errors triggered during print time estimation
* Introduce setting to disable exclusive claim on serial port. There might be issues with this out there in the field, so having the option to disable it is a good thing.
* Docs: Improve docs of connection API to avoid issues as encountered in [#3043](https://github.com/foosel/OctoPrint/issues/3043).
* Action Command Prompt plugin: Set `M876` as default command as discussed in [MarlinFirmware/Marlin#12982](https://github.com/MarlinFirmware/Marlin/pull/12982).
* Action Command Prompt plugin: Add `M876` to `EMERGENCY_PARSER` compliant commands, if configured accordingly. See also [MarlinFirmware/Marlin#12982](https://github.com/MarlinFirmware/Marlin/pull/12982).
* Action Command Prompt plugin: Signal support for action command prompts to firmware via `M876 P1`, if configured accordingly. See also [MarlinFirmware/Marlin#12982](https://github.com/MarlinFirmware/Marlin/pull/12982).
* Action Command Prompt plugin: Properly handle `PROMPT_SUPPORT` capability report from firmware and configure action command prompt support accordingly. See also [MarlinFirmware/Marlin#12982](https://github.com/MarlinFirmware/Marlin/pull/12982).
* Error Tracking plugin: New plugin utilizing [sentry.io](https://sentry.io) to track any kind of errors thrown in either backend or the default UI. Will ship disabled by default, has to be enabled by the user. Release Candidates will prompt users to enable it in order to improve on error detection during RC phase.
* Error Tracking: Severely restrict what gets tracked:
* we are only interested in handled core exceptions or unhandled exceptions
* we are not interested at all in `SerialException`
* Error Tracking: Further restriction of what gets tracked
* Forcelogin plugin: Set sorting key to 0 to increase likelihood of coming before alternative UIs.
* Forcelogin plugin: Add favicon meta tags.
* Plugin Manager plugin, Softwareupdate plugin: Use scrollables instead of pagination.
@@ -142,10 +109,26 @@ The plugin uses a [sentry.io](https://sentry.io) instance, kindly provided to Oc
* [#3053](https://github.com/foosel/OctoPrint/pull/3053) - GCODE Viewer: Fix an issue with multi extruder files where only a higher extruder index is actually used and all prior ones are undefined.
* [#3080](https://github.com/foosel/OctoPrint/issues/3080) - Virtual Printer plugin: Fix tracking of negative movements and homing.
* [#3071](https://github.com/foosel/OctoPrint/issues/3071) - Application Keys plugin: Fix appkeys not working when access control is disabled.
* [#3088](https://github.com/foosel/OctoPrint/issues/3088) (regression) - Fix 500 error on index rendering in case of plugins that use unicode in plugin vars.
* [#3089](https://github.com/foosel/OctoPrint/issues/3089) (regression) - Fix missing `_chamberTemp` definition
* [#3090](https://github.com/foosel/OctoPrint/issues/3090) (regression) - Fix missing method causing an exception on `/api/printer/tool` endpoint
* [#3091](https://github.com/foosel/OctoPrint/issues/3091) (regression) - Printer Safety Check: Fix unicode errors in certain communication scenarios.
* [#3092](https://github.com/foosel/OctoPrint/issues/3092) - Fix invalid tool parameter detection on `/api/printer/tool` endpoint.
* [#3098](https://github.com/foosel/OctoPrint/issues/3098) - Backup: Exclude temporary timelapse files as well if timelapses are excluded from backup.
* [#3105](https://github.com/foosel/OctoPrint/issues/3105) (regression) - Virtual printer: Fix an encoding issue
* [#3108](https://github.com/foosel/OctoPrint/issues/3108) (regression) - Fix bug in port detection
* [#3111](https://github.com/foosel/OctoPrint/issues/3111) (regression) - Refresh port list after disconnect to detect vanishing ports
* [#3115](https://github.com/foosel/OctoPrint/issues/3115) (regression) - Fix extra newlines in `serial.log` and empty lines on terminal
* [#3116](https://github.com/foosel/OctoPrint/issues/3116) - Fix potential division by zero
* Fix a typo in an error message during startup.
* `paused` action command must not trigger *any* local processing. See also [MarlinFirmware/Marlin#12982](https://github.com/MarlinFirmware/Marlin/pull/12982).
* Only use page size from local storage in `ItemListHelper` if configured.
* Fix caching headers on main view.
* Fix missing default value for `self._errorValue` in comm layer.
* Don't read return code on async system commands, it won't work.
* Fix wrong textual representation of `STARTING` state
* Fix some potential encoding errors in the comm layer
* Fix for the file list in the UI not getting refreshed after an SD list refresh from the printer.
* Docs: Fix documentation for firmware info & capability plugin hooks.
* Docs: Fix a formatting issue in the event docs, making it seem like events were deprecated when it was only payload entries that are deprecated.
* Forcelogin plugin: Never handle the UI if ACL is disabled.
@@ -154,11 +137,16 @@ The plugin uses a [sentry.io](https://sentry.io) instance, kindly provided to Oc
### Special thanks to all the contributors!
Special thanks to everyone who contributed to this release candidate, especially [@agrif](https://github.com/agrif), [@akraus53](https://github.com/akraus53), [@AndyQ](https://github.com/AndyQ), [@CapnBry](https://github.com/CapnBry), [@DanielJoyce](https://github.com/DanielJoyce), [@devildant](https://github.com/devildant), [@Fabi0San](https://github.com/Fabi0San), [@fake-name](https://github.com/fake-name), [@fieldOfView](https://github.com/fieldOfView), [@gloomyandy](https://github.com/gloomyandy), [@HarlemSquirrel](https://github.com/HarlemSquirrel), [@hgross](https://github.com/hgross), [@jubaleth](https://github.com/foosel/OctoPrint/commits?author=jubaleth), [@melgish](https://github.com/melgish), [@rgriebl](https://github.com/rgriebl) and [@tedder](https://github.com/tedder) for their PRs.
Special thanks to everyone who contributed to this release, especially [@agrif](https://github.com/agrif), [@akraus53](https://github.com/akraus53), [@AndyQ](https://github.com/AndyQ), [@CapnBry](https://github.com/CapnBry), [@DanielJoyce](https://github.com/DanielJoyce), [@devildant](https://github.com/devildant), [@Fabi0San](https://github.com/Fabi0San), [@fake-name](https://github.com/fake-name), [@fieldOfView](https://github.com/fieldOfView), [@gloomyandy](https://github.com/gloomyandy), [@HarlemSquirrel](https://github.com/HarlemSquirrel), [@hgross](https://github.com/hgross), [@jubaleth](https://github.com/foosel/OctoPrint/commits?author=jubaleth), [@melgish](https://github.com/melgish), [@rgriebl](https://github.com/rgriebl) and [@tedder](https://github.com/tedder) for their PRs.
### More information
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.10...1.3.11rc1)
* [Commits](https://github.com/foosel/OctoPrint/compare/1.3.10...1.3.11)
* Release Candidates:
* [1.3.11rc1](https://github.com/foosel/OctoPrint/releases/tag/1.3.11rc1)
* [1.3.11rc2](https://github.com/foosel/OctoPrint/releases/tag/1.3.11rc2)
* [1.3.11rc3](https://github.com/foosel/OctoPrint/releases/tag/1.3.11rc3)
* A big **Thank you!** to everyone who reported back on these release candidates this time: [@arhi](https://github.com/arhi), [@b-morgan](https://github.com/b-morgan), [@CRCinAU](https://github.com/CRCinAU), [@devildant](https://github.com/devildant), [@evanquinnalaska](https://github.com/evanquinnalaska), [@FormerLurker](https://github.com/FormerLurker), [@gege2b](https://github.com/gege2b), [@isbric](https://github.com/isbric), [@JohnOCFII](https://github.com/JohnOCFII), [@kazibole](https://github.com/kazibole), [@nionio6915](https://github.com/nionio6915), [@reloxx13](https://github.com/reloxx13), [@schnello](https://github.com/schnello), [@trunzoc](https://github.com/trunzoc), [@vfrdirk](https://github.com/vfrdirk) & [@zeroflow](https://github.com/zeroflow)
## 1.3.10 (2018-12-10)
+5 -4
View File
@@ -31,7 +31,7 @@ If you enjoy OctoPrint, please consider becoming a regular supporter!**
You are currently looking at the source code repository of OctoPrint. If you already installed it
(e.g. by using the Raspberry Pi targeted distribution [OctoPi](https://github.com/guysoft/OctoPi)) and only
want to find out how to use it, [the documentation](http://docs.octoprint.org/) and [the public wiki](https://github.com/foosel/OctoPrint/wiki)
might be of more interest for you. You might also want to subscribe to join
might be of more interest for you. You might also want to subscribe to join
[the community forum at community.octoprint.org](https://community.octoprint.org) where there are other active users who might be
able to help you with any questions you might have.
@@ -39,7 +39,7 @@ able to help you with any questions you might have.
Contributions of all kinds are welcome, not only in the form of code but also with regards to the
[official documentation](http://docs.octoprint.org/) or [the public wiki](https://github.com/foosel/OctoPrint/wiki), debugging help
in the [bug tracker](https://github.com/foosel/OctoPrint/issues), support of other users on
in the [bug tracker](https://github.com/foosel/OctoPrint/issues), support of other users on
[the community forum at community.octoprint.org](https://community.octoprint.org)
and also [financially](https://octoprint.org/support-octoprint/?utm_source=github&utm_medium=readme).
@@ -65,14 +65,15 @@ you already have Python 2.7, pip and virtualenv set up on your system:
1. Checkout OctoPrint: `git clone https://github.com/foosel/OctoPrint.git`
2. Change into the OctoPrint folder: `cd OctoPrint`
3. Create a user-owned virtual environment therein: `virtualenv venv`
3. Create a user-owned virtual environment therein: `virtualenv venv` if your system default python version is
python 2.7, otherwise you need to specify the version explicitly, e.g. `virtualenv --python=python2.7 venv`.
4. Install OctoPrint *into that virtual environment*: `./venv/bin/pip install .`
You may then start the OctoPrint server via `/path/to/OctoPrint/venv/bin/octoprint`, see [Usage](#usage)
for details.
After installation, please make sure you follow the first-run wizard and set up
access control as necessary.
access control as necessary.
## Dependencies
+2 -2
View File
@@ -21,7 +21,7 @@ thanks to everyone who contributed!
* E3D BigBox
* Eric Betts
* Ernesto Martinez
* Frank Sander
* Franziska Kunsmann
* George Robles
* jean-claude migneault
* Jeff Renfer
@@ -54,4 +54,4 @@ thanks to everyone who contributed!
* Trent Shumay
* Ulrich Kempken
and 1509 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
and 1544 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
+21 -10
View File
@@ -11,9 +11,9 @@ General information
Authorization
=============
OctoPrint's API expects an API key to be supplied with each request. This API key can be either the globally
configured one, a user specific one if "Access Control" is enabled or an app and user specific one as generated
by the authorization workflow implemented by the bundled :ref:`Application Keys Plugin <sec-bundledplugins-appkeys>` (since 1.3.10).
If :ref:`Access Control <sec-features-access_control>` is enabled OctoPrint's API expects an API key to be supplied with each request. This API
key can be either the globally configured one, a user specific one or an app and user specific one as generated by the
authorization workflow implemented by the bundled :ref:`Application Keys Plugin <sec-bundledplugins-appkeys>` (since 1.3.10).
Clients are advised to implement the :ref:`Application Keys Plugin workflow <sec-bundledplugins-appkeys-workflow>` first and
fallback on directing the user to manually supply the the user specific API key. The global key should rarely be used.
@@ -26,8 +26,6 @@ The API key must be supplied in the custom HTTP header ``X-Api-Key``, e.g.
Host: example.com
X-Api-Key: abcdef...
If it is missing or included but invalid, OctoPrint will directly return a response with status :http:statuscode:`403`.
For testing purposes it is also possible to supply the API key via a query parameter ``apikey``, e.g.
.. sourcecode:: http
@@ -37,6 +35,24 @@ For testing purposes it is also possible to supply the API key via a query param
Please be advised that clients should use the header field variant if at all possible.
If the key is missing or invalid, OctoPrint will treat the request as it would any unauthenticated anonymous request to the endpoint.
Consequently, if the bundled :ref:`ForceLogin plugin <sec-bundledplugins-forcelogin>` is active (which is the default), that means
that any requests without or with an invalid API key targeting other API endpoints than :ref:`Login <sec-api-general-login>`
will be denied with a :http:statuscode:`403`.
.. warning::
If :ref:`Access Control <sec-features-access_control>` is disabled, OctoPrint will treat any unauthenticated anonymous requests and thus also requests
with an invalid or outright missing API key as requests with full admin rights!
.. note::
The API key requirements changed in 1.3.11. Up to that version, even if Access Control was disabled, all requests needed to
be supplied with an API Key. To make the webinterface work under these circumstances, an unauthenticated anonymous API key was injected into the
HTML page and also available on the :ref:`Push API <sec-api-push>`. The presence and ready availability of this unauthenticated
anonymous "UI API key" caused confusion and false alarm among users and didn't contribute to the security of the platform in a
meaningful way, so it was finally abandoned in 1.3.11.
.. _fig-api-general-globalapikey:
.. figure:: ../images/settings-global-api-key.png
:align: center
@@ -58,11 +74,6 @@ Please be advised that clients should use the header field variant if at all pos
The API key options in the "Change password" dialog. Users can generate and revoke their custom API key here.
.. note::
OctoPrint's web interface uses a custom API key that is freshly generated on every server start. This key is not
intended to be used by any other client and would not be very useful in any case, since it basically represents
a completely anonymous client.
.. _sec-api-general-contenttype:
Content Type
+8 -2
View File
@@ -413,8 +413,7 @@ The following settings are only relevant to you if you want to do OctoPrint deve
# Lines to send on simulated reset
resetLines:
- start
- Marlin: Virtual Marlin!
- "\x80"
- "Marlin: Virtual Marlin!"
- "SD card ok"
# Initial set of prepared oks to use instead of regular ok (e.g. to simulate
@@ -952,6 +951,13 @@ Use the following settings to configure the server:
# reset the setting to false
startOnceInSafeMode: false
# Signals to OctoPrint that the last startup was incomplete. OctoPrint will then startup
# in safe mode
incompleteStartup: false
# Set this to true to make OctoPrint ignore incomplete startups. Helpful for development.
ignoreIncompleteStartup: false
# Secret key for encrypting cookies and such, randomly generated on first run
secretKey: someSecretKey
+2 -2
View File
@@ -21,12 +21,12 @@ Commands, which are admin-only.
If Access Control is disabled, everything is directly accessible. **That also
includes all administrative functionality as well as full control over the
printer!**
printer**, and without the need for an :ref:`API key <sec-api-general-authorization>`!
Upon first start a configuration wizard is provided which allows configuration
of the first administrator account or alternatively disabling Access Control
(which is **NOT** recommended for systems that are directly accessible via the
Internet!).
internet or other untrusted networks!).
.. hint::
+4 -1
View File
@@ -104,7 +104,10 @@ def init_platform(basedir, configfile, use_logging_file=True, logging_file=None,
after_logging(**kwargs)
settings_start_once_in_safemode = "settings" if settings.getBoolean(["server", "startOnceInSafeMode"]) else None
settings_incomplete_startup_safemode = "incomplete_startup" if settings.getBoolean(["server", "incompleteStartup"]) else None
settings_incomplete_startup_safemode = "incomplete_startup" \
if settings.getBoolean(["server", "incompleteStartup"]) \
and not settings.getBoolean(["server", "ignoreIncompleteStartup"]) \
else None
safe_mode = safe_mode or settings_start_once_in_safemode or settings_incomplete_startup_safemode
kwargs["safe_mode"] = safe_mode
if callable(after_safe_mode):
+2 -1
View File
@@ -92,7 +92,8 @@ class OctoPrintPluginCommands(click.MultiCommand):
continue
result[name + self.sep + command.name] = command
except:
self._logger.exception("Error while retrieving cli commands for plugin {}".format(name))
self._logger.exception("Error while retrieving cli commands for plugin {}".format(name),
extra=dict(plugin=name))
return result
+2 -1
View File
@@ -125,7 +125,8 @@ class EnvironmentDetector(object):
result[implementation._identifier] = additional
except:
self._logger.exception("Error while fetching additional "
"environment data from plugin {}".format(implementation._identifier))
"environment data from plugin {}".format(implementation._identifier),
extra=dict(plugin=implementation._identifier))
return result
+1 -2
View File
@@ -186,8 +186,7 @@ class EventManager(object):
octoprint.plugin.call_plugin(octoprint.plugin.types.EventHandlerPlugin,
"on_event",
args=(event, payload),
initialized=True)
args=(event, payload))
self._logger.info("Event loop shut down")
except:
self._logger.exception("Ooops, the event bus worker loop crashed")
+10 -5
View File
@@ -78,7 +78,9 @@ def full_extension_tree():
continue
result = octoprint.util.dict_merge(result, plugin_result, leaf_merger=leaf_merger)
except:
logging.getLogger(__name__).exception("Exception while retrieving additional extension tree entries from SlicerPlugin {name}".format(name=plugin.key))
logging.getLogger(__name__).exception("Exception while retrieving additional extension "
"tree entries from SlicerPlugin {name}".format(name=plugin._identifier),
extra=dict(plugin=plugin._identifier))
extension_tree_hooks = octoprint.plugin.plugin_manager().get_hooks("octoprint.filemanager.extension_tree")
for name, hook in extension_tree_hooks.items():
@@ -88,7 +90,9 @@ def full_extension_tree():
continue
result = octoprint.util.dict_merge(result, hook_result, leaf_merger=leaf_merger)
except:
logging.getLogger(__name__).exception("Exception while retrieving additional extension tree entries from hook {name}".format(name=name))
logging.getLogger(__name__).exception("Exception while retrieving additional extension "
"tree entries from hook {name}".format(name=name),
extra=dict(plugin=name))
return result
@@ -429,7 +433,8 @@ class FileManager(object):
try:
plugin.on_slicing_progress(slicer, source_location, source_path, dest_location, dest_path, progress)
except:
self._logger.exception("Exception while sending slicing progress to plugin %s" % plugin._identifier)
self._logger.exception("Exception while sending slicing progress to plugin %s" % plugin._identifier,
extra=dict(plugin=plugin._identifier))
import threading
thread = threading.Thread(target=call_plugins, args=(slicer, source_location, source_path, dest_location, dest_path, progress_int))
@@ -464,11 +469,11 @@ class FileManager(object):
if printer_profile is None:
printer_profile = self._printer_profile_manager.get_current_or_default()
for hook in self._preprocessor_hooks.values():
for name, hook in self._preprocessor_hooks.items():
try:
hook_file_object = hook(path, file_object, links=links, printer_profile=printer_profile, allow_overwrite=allow_overwrite)
except:
self._logger.exception("Error when calling preprocessor hook {}, ignoring".format(hook))
self._logger.exception("Error when calling preprocessor hook for plugin {}, ignoring".format(name), extra=dict(plugin=name))
continue
if hook_file_object is not None:
+3 -4
View File
@@ -196,8 +196,7 @@ def call_plugin(types, method, args=None, kwargs=None, callback=None, error_call
error_callback (function): A callback to invoke after the call of an implementation resulted in an exception.
Will be called with the three arguments ``name``, ``plugin`` and ``exc``. ``name`` will be the plugin
identifier, ``plugin`` the plugin implementation instance itself and ``exc`` the caught exception.
initialized (boolean): Whether the plugin needs to be initialized (True) or not (False). Initialization status
is determined be presence of injected ``_identifier`` property.
initialized (boolean): Ignored.
"""
if not isinstance(types, (list, tuple)):
@@ -211,7 +210,7 @@ def call_plugin(types, method, args=None, kwargs=None, callback=None, error_call
plugins = plugin_manager().get_implementations(*types, sorting_context=sorting_context)
for plugin in plugins:
if initialized and not hasattr(plugin, "_identifier"):
if not hasattr(plugin, "_identifier"):
continue
if hasattr(plugin, method):
@@ -221,7 +220,7 @@ def call_plugin(types, method, args=None, kwargs=None, callback=None, error_call
if callback:
callback(plugin._identifier, plugin, result)
except Exception as exc:
logger.exception("Error while calling plugin %s" % plugin._identifier)
logger.exception("Error while calling plugin %s" % plugin._identifier, extra=dict(plugin=plugin._identifier))
if error_callback:
error_callback(plugin._identifier, plugin, exc)
@@ -12,10 +12,8 @@ from octoprint.util.version import get_octoprint_version_string, is_released_oct
from flask import jsonify
from flask_babel import gettext
from serial import SerialException
SENTRY_URL_SERVER = "https://4273b441bb654c4398de42ba86350963@sentry.io/1373987"
SENTRY_URL_COREUI = "https://f9bcd7185f73430bbe7c09ff69586b0f@sentry.io/1374096"
SENTRY_URL_SERVER = "https://4069187705ab4e76921eb19db2e9ccbb@sentry.io/1373987"
SENTRY_URL_COREUI = "https://a4ab48f27daf4c129392b78be15412b8@sentry.io/1374096"
SETTINGS_DEFAULTS = dict(enabled=False,
enabled_unreleased=False,
@@ -23,10 +21,40 @@ SETTINGS_DEFAULTS = dict(enabled=False,
url_server=SENTRY_URL_SERVER,
url_coreui=SENTRY_URL_COREUI)
import serial
import requests.exceptions
import errno
import octoprint.util.avr_isp.ispBase
import tornado.websocket
IGNORED_EXCEPTIONS = [
(SerialException, "octoprint.util.comm"),
# serial exceptions in octoprint.util.comm
(serial.SerialException, lambda exc, logger, plugin: logger == "octoprint.util.comm"),
# isp errors during port auto detection in octoprint.util.comm
(octoprint.util.avr_isp.ispBase.IspError, lambda exc, logger, plugin: logger == "octoprint.util.comm"),
# IOErrors of any kind due to a full file system
(IOError, lambda exc, logger, plugin: getattr(exc, "errno") and exc.errno in (getattr(errno, "ENOSPC"),)),
# RequestExceptions of any kind
requests.exceptions.RequestException,
# Tornado WebSocketErrors of any kind
tornado.websocket.WebSocketError
]
try:
# noinspection PyUnresolvedReferences
from octoprint.plugins.backup import InsufficientSpace
# if the backup plugin is enabled, ignore InsufficientSpace errors from it as well
IGNORED_EXCEPTIONS.append(InsufficientSpace)
del InsufficientSpace
except ImportError:
pass
class ErrorTrackingPlugin(octoprint.plugin.SettingsPlugin,
octoprint.plugin.AssetPlugin,
@@ -109,13 +137,19 @@ def _enable_errortracking():
handled = True
logger = event.get("logger", "")
plugin = event.get("extra", dict()).get("plugin", None)
for ignore in IGNORED_EXCEPTIONS:
if isinstance(ignore, tuple):
ignored_exc, ignored_logger = ignore
if isinstance(hint["exc_info"][1], ignored_exc) and logger.startswith(ignored_logger):
# exception ignored for logger
return None
ignored_exc, matcher = ignore
else:
ignored_exc = ignore
matcher = lambda *args: True
exc = hint["exc_info"][1]
if isinstance(exc, ignored_exc) and matcher(exc, logger, plugin):
# exception ignored for logger
return None
elif isinstance(ignore, type):
if isinstance(hint["exc_info"][1], ignore):
@@ -139,6 +173,12 @@ def _enable_errortracking():
# we only want our active bundled plugins
return None
if plugin is not None:
plugin_info = plugin_manager().get_plugin_info(plugin)
if plugin_info is None or not plugin_info.bundled:
# we only want our active bundled plugins
return None
return event
sentry_sdk.init(url_server,
@@ -1,3 +1,2 @@
/*! @sentry/browser 4.5.1 (6a390acf) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(t){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,n)};function n(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,o,i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function s(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{u(r.next(t))}catch(t){i(t)}}function a(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(s,a)}u((r=r.apply(t,e||[])).next())})}function a(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=e.call(t,s)}catch(t){i=[6,t],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function l(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(c(arguments[e]));return t}function p(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function f(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function h(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function d(t){return void 0===t}function v(t){return"function"==typeof t}function g(t){return"[object String]"===Object.prototype.toString.call(t)}function y(t){return"[object Object]"===Object.prototype.toString.call(t)}function m(t){return t!=t}function b(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}}function E(){var t=b(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}function x(t){var e,n,r,o,i,s=[];if(!t||!t.tagName)return"";if(s.push(t.tagName.toLowerCase()),t.id&&s.push("#"+t.id),(e=t.className)&&g(e))for(n=e.split(/\s+/),i=0;i<n.length;i++)s.push("."+n[i]);var a=["type","name","title","alt"];for(i=0;i<a.length;i++)r=a[i],(o=t.getAttribute(r))&&s.push("["+r+'="'+o+'"]');return s.join("")}function _(t){if(!t)return{};var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function S(t){if(t.message)return t.message;if(t.exception&&t.exception.values&&t.exception.values[0]){var e=t.exception.values[0];return e.type&&e.value?e.type+": "+e.value:e.type||e.value||t.event_id||"<unknown>"}return t.event_id||"<unknown>"}function w(t){var e=b();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log"].forEach(function(t){t in e.console&&n[t].__sentry__&&(r[t]=n[t].__sentry_wrapped__,n[t]=n[t].__sentry_original__)});var o=t();return Object.keys(r).forEach(function(t){n[t]=r[t]}),o}function k(t,e){return void 0===e&&(e=0),0!==e&&g(t)?t.length<=e?t:t.substr(0,e)+"...":t}function O(t,e){if(!Array.isArray(t))return"";for(var n=[],r=0;r<t.length;r++){var o=t[r];try{n.push(String(o))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function j(t,e){return!(Line truncated
//# sourceMappingURL=bundle.min.js.map
/*! @sentry/browser 5.0.5 (913eafc4) | https://github.com/getsentry/sentry-javascript */
var Sentry=function(n){"use strict";var t=function(n,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,r)};function r(n,r){function i(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}var i,e,o,u=function(){return(u=Object.assign||function(n){for(var t,r=1,i=arguments.length;r<i;r++)for(var e in t=arguments[r])Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n}).apply(this,arguments)};function c(n,t,r,i){return new(r||(r=Promise))(function(e,o){function u(n){try{s(i.next(n))}catch(n){o(n)}}function c(n){try{s(i.throw(n))}catch(n){o(n)}}function s(n){n.done?e(n.value):new r(function(t){t(n.value)}).then(u,c)}s((i=i.apply(n,t||[])).next())})}function s(n,t){var r,i,e,o,u={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,i&&(e=2&o[0]?i.return:o[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,o[1])).done)return e;switch(i=0,e&&(o=[2&o[0],e.value]),o[0]){case 0:case 1:e=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,i=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(e=(e=u.trys).length>0&&e[e.length-1])&&(6===o[0]||2===o[0])){u=0;continue}if(3===o[0]&&(!e||o[1]>e[0]&&o[1]<e[3])){u.label=o[1];break}if(6===o[0]&&u.label<e[1]){u.label=e[1],e=o;break}if(e&&u.label<e[2]){u.label=e[2],u.ops.push(o);break}e[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(n){o=[6,n],i=0}finally{r=e=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}function f(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var i,e,o=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)u.push(i.value)}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return u}function a(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(f(arguments[t]));return n}function h(n){switch(Object.prototype.toString.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return n instanceof Error}}function v(n){return"[object ErrorEvent]"===Object.prototype.toString.call(n)}function l(n){return"[object DOMError]"===Object.prototype.toString.call(n)}function d(n){return"[object String]"===Object.prototype.toString.call(n)}function p(n){return null===n||"object"!=typeof n&&"function"!=typeof n}function m(n){return"[object Object]"===Object.prototype.toString.call(n)}function y(n){return Boolean(n&&n.then&&"function"==typeof n.then)}!function(n){n[n.None=0]="None",n[n.Error=1]="Error",n[n.Debug=2]="Debug",n[n.Verbose=3]="Verbose"}(i||(i={})),(e=n.Severity||(n.Severity={})).Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical",function(n){n.fromString=function(t){switch(t){case"debug":return n.Debug;case"info":return n.Info;case"warn":case"warning":return n.Warning;case"error":return n.Error;case"fatal":return n.Fatal;case"critical":return n.Critical;case"log":default:return n.Log}}}(n.Severity||(n.Severity={})),(o=n.Status||(n.Status={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.Invalid="invalid",o.Failed="failed",function(n){n.fromHttpCode=function(t){return t>=200&&t<300?n.Success:429===t?n.RateLimit:t>=400&&t<500?n.Invalid:t>=500?n.Failed:n.Unknown}}(n.Status||(n.Status={}));var b={};function w(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:b}function g(){var n=w(),t=n.crypto||n.msCrypto;if(void 0!==t&&t.getRandomValues){var r=new Uint16Array(8);t.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var i=function(n){for(var t=n.toString(16);t.length<4;)t="0"+t;return t};return i(r[0])+i(r[1])+i(r[2])+i(r[3])+i(r[4])+i(r[5])+i(r[6])+i(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function E(n){var t,r,i,e,o,u=[];if(!n||!n.tagName)return"";if(u.push(n.tagName.toLowerCase()),n.id&&u.push("#"+n.id),(t=n.className)&&d(t))for(r=t.split(/\s+/),o=0;o<r.length;o++)u.push("."+r[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)i=c[o],(e=n.getAttribute(i))&&u.push("["+i+'="'+e+'"]');return u.join("")}function x(n){if(!n)return{};var t=n.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+r+i}}function j(n){if(n.message)return n.message;if(n.exception&&n.exception.values&&n.excepLine truncated
@@ -7,7 +7,15 @@
Sentry.init({
dsn: errortracking_url_coreui,
release: VERSION
release: VERSION,
whitelistUrls: [
// only include static assets
"/static/"
],
blacklistUrls: [
// exclude third party plugins
"/static/webassets/packed_plugins.js"
]
});
Sentry.configureScope(function (scope) {
scope.setUser({"id": errortracking_unique_id});
+2 -1
View File
@@ -87,7 +87,8 @@ class ForceLoginPlugin(octoprint.plugin.UiPlugin,
if isinstance(assets, (tuple, list)):
additional_assets += assets
except:
self._logger.exception("Error fetching theming CSS to include from plugin {}".format(name))
self._logger.exception("Error fetching theming CSS to include from plugin {}".format(name),
extra=dict(plugin=name))
render_kwargs.update(dict(forcelogin_theming=additional_assets))
return make_response(render_template("forcelogin_index.jinja2", **render_kwargs))
@@ -688,7 +688,9 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
if additional_args:
args.append(additional_args)
return self._pip_caller.execute(*args)
kwargs = dict(env=dict(PYTHONWARNINGS="ignore:DEPRECATION::pip._internal.cli.base_command"))
return self._pip_caller.execute(*args, **kwargs)
def _log_message(self, *lines):
self._log(lines, prefix=u"*", stream="message")
@@ -900,7 +902,8 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
reconnect_hooks.extend(filter(lambda x: isinstance(x, basestring), result))
except:
self._logger.exception("Error while retrieving additional hooks for which a "
"reconnect is required from plugin {name}".format(**locals()))
"reconnect is required from plugin {name}".format(**locals()),
extra=dict(plugin=name))
return reconnect_hooks
@@ -8,6 +8,7 @@ import octoprint.plugin
from octoprint.events import Events
from octoprint.server import user_permission
from octoprint.util import to_unicode
from .checks.firmware_unsafe import FirmwareUnsafeChecks
@@ -77,19 +78,24 @@ class PrinterSafetyCheckPlugin(octoprint.plugin.AssetPlugin,
def on_gcode_received(self, comm_instance, line, *args, **kwargs):
if self._scan_received:
self._run_checks("received", line)
self._run_checks("received", to_unicode(line, errors="replace"))
return line
##~~ Firmware info hook handler
def on_firmware_info_received(self, comm_instance, firmware_name, firmware_data):
self._run_checks("m115", firmware_name, firmware_data)
self._run_checks("m115",
to_unicode(firmware_name, errors="replace"),
dict((to_unicode(key, errors="replace"), to_unicode(value, errors="replace"))
for key, value in firmware_data.items()))
self._scan_received = False
##~~ Firmware capability hook handler
def on_firmware_cap_received(self, comm_instance, cap, enabled, all_caps):
self._run_checks("cap", cap, enabled)
self._run_checks("cap",
to_unicode(cap, errors="replace"),
enabled)
##~~ Helpers
@@ -119,7 +119,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
try:
hook_checks = hook()
except:
self._logger.exception("Error while retrieving update information from plugin {name}".format(**locals()))
self._logger.exception("Error while retrieving update information "
"from plugin {name}".format(**locals()),
extra=dict(plugin=name))
else:
for key, default_config in hook_checks.items():
if key in effective_configs or key == "octoprint":
@@ -87,7 +87,7 @@ def perform_update(target, check, target_version, log_cb=None, online=True, forc
logger.debug(u"Target: %s, executing pip install %s" % (target, install_arg))
pip_args = ["--disable-pip-version-check", "install", install_arg, "--no-cache-dir"]
pip_kwargs = dict()
pip_kwargs = dict(env=dict(PYTHONWARNINGS="ignore:DEPRECATION::pip._internal.cli.base_command"))
if pip_working_directory is not None:
pip_kwargs.update(cwd=pip_working_directory)
@@ -18,7 +18,7 @@ from serial import SerialTimeoutException
from octoprint.settings import settings
from octoprint.plugin import plugin_manager
from octoprint.util import RepeatedTimer, monotonic_time, to_bytes
from octoprint.util import RepeatedTimer, monotonic_time, to_bytes, to_unicode
class VirtualPrinter(object):
command_regex = re.compile("^([GMTF])(\d+)")
@@ -300,7 +300,7 @@ class VirtualPrinter(object):
self._dont_answer = False
continue
data = data.strip()
data = to_unicode(data.strip(), errors="replace")
# strip checksum
if "*" in data:
@@ -1367,6 +1367,9 @@ class VirtualPrinter(object):
pass
def write(self, data):
data = to_bytes(data, errors="replace")
u_data = to_unicode(data, errors="replace")
if self._debug_awol:
return len(data)
@@ -1379,13 +1382,13 @@ class VirtualPrinter(object):
return 0
if "M112" in data and self._supportM112:
self._seriallog.info(u"<<< {}".format(data.strip()))
self._seriallog.info(u"<<< {}".format(u_data))
self._kill()
return len(data)
try:
written = self.incoming.put(data, timeout=self._write_timeout, partial=True)
self._seriallog.info(u"<<< {}".format(data.strip()))
self._seriallog.info(u"<<< {}".format(u_data))
return written
except queue.Full:
self._logger.info("Incoming queue is full, raising SerialTimeoutException")
@@ -1420,7 +1423,7 @@ class VirtualPrinter(object):
try:
# fetch a line from the queue, wait no longer than timeout
line = self.outgoing.get(timeout=timeout)
line = to_unicode(self.outgoing.get(timeout=timeout), errors="replace")
self._seriallog.info(u">>> {}".format(line.strip()))
self.outgoing.task_done()
return to_bytes(line, errors="replace")
+4 -2
View File
@@ -37,6 +37,8 @@ class PrintTimeEstimator(object):
if interval <= 0:
interval = 1.0
rolling_window = 15 / interval
if rolling_window < 1:
rolling_window = 1
# we are happy when one rolling window has been stable
countdown = rolling_window
@@ -226,14 +228,14 @@ class TimeEstimationHelper(object):
@property
def average_total_rolling(self):
if not self._count or self._count < self._rolling_window:
if not self._count or self._count < self._rolling_window or not len(self._totals):
return None
else:
return sum(self._totals) / len(self._totals)
@property
def average_distance(self):
if not self._count or self._count < self._rolling_window + 1:
if not self._count or self._count < self._rolling_window + 1 or not len(self._distances):
return None
else:
return sum(self._distances) / len(self._distances)
+16 -9
View File
@@ -95,7 +95,8 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
self._logger.info("Using print time estimator provided by {}".format(name))
self._estimator_factory = estimator
except:
self._logger.exception("Error while processing analysis queues from {}".format(name))
self._logger.exception("Error while processing analysis queues from {}".format(name),
extra=dict(plugin=name))
#hook card upload
self.sd_card_upload_hooks = plugin_manager().get_hooks("octoprint.printer.sdcardupload")
@@ -229,7 +230,8 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
try:
plugin.on_print_progress(storage, filename, progress)
except:
self._logger.exception("Exception while sending print progress to plugin %s" % plugin._identifier)
self._logger.exception("Exception while sending print progress to plugin %s" % plugin._identifier,
extra=dict(plugin=plugin._identifier))
thread = threading.Thread(target=call_plugins, args=(storage, filename, progress))
thread.daemon = False
@@ -721,7 +723,9 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
if result is not None:
return result
except:
self._logger.exception("There was an error running the sd upload hook provided by plugin {}".format(name))
self._logger.exception("There was an error running the sd upload "
"hook provided by plugin {}".format(name),
extra=dict(plugin=name))
else:
# no plugin feels responsible, use the default implementation
@@ -855,11 +859,14 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
statisticalTotalPrintTime = self._selectedFile["estimatedPrintTime"]
statisticalTotalPrintTimeType = self._selectedFile.get("estimatedPrintTimeType", None)
printTimeLeft, printTimeLeftOrigin = estimator.estimate(progress,
printTime,
cleanedPrintTime,
statisticalTotalPrintTime,
statisticalTotalPrintTimeType)
try:
printTimeLeft, printTimeLeftOrigin = estimator.estimate(progress,
printTime,
cleanedPrintTime,
statisticalTotalPrintTime,
statisticalTotalPrintTimeType)
except Exception:
self._logger.exception("Error while estimating print time via {}".format(estimator))
return self._dict(completion=progress * 100 if progress is not None else None,
filepos=filepos,
@@ -1123,7 +1130,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
self._stateMonitor.set_state(self._dict(text=self.get_state_string(), flags=self._getStateFlags()))
def on_comm_sd_files(self, files):
eventManager().fire(Events.UPDATED_FILES, {"type": "gcode"})
eventManager().fire(Events.UPDATED_FILES, {"type": "printables"})
self._sdFilelistAvailable.set()
def on_comm_file_selected(self, full_path, size, sd, user=None):
+32 -14
View File
@@ -191,8 +191,9 @@ class Server(object):
if self._settings is None:
self._settings = settings()
self._settings.setBoolean(["server", "incompleteStartup"], True)
self._settings.save()
if not self._settings.getBoolean(["server", "ignoreIncompleteStartup"]):
self._settings.setBoolean(["server", "incompleteStartup"], True)
self._settings.save()
if self._plugin_manager is None:
self._plugin_manager = octoprint.plugin.plugin_manager()
@@ -288,7 +289,8 @@ class Server(object):
additional_factories = hook()
analysis_queue_factories.update(**additional_factories)
except:
self._logger.exception("Error while processing analysis queues from {}".format(name))
self._logger.exception("Error while processing analysis queues from {}".format(name),
extra=dict(plugin=name))
analysisQueue = octoprint.filemanager.analysis.AnalysisQueue(analysis_queue_factories)
slicingManager = octoprint.slicing.SlicingManager(self._settings.getBaseFolder("slicingProfiles"), printerProfileManager)
@@ -345,7 +347,8 @@ class Server(object):
self._logger.debug("Created user manager instance from factory {}".format(name))
break
except:
self._logger.exception("Error while creating user manager instance from factory {}".format(name))
self._logger.exception("Error while creating user manager instance from factory {}".format(name),
extra=dict(plugin=name))
else:
name = self._settings.get(["accessControl", "userManager"])
try:
@@ -368,7 +371,8 @@ class Server(object):
self._logger.debug("Created printer instance from factory {}".format(name))
break
except:
self._logger.exception("Error while creating printer instance from factory {}".format(name))
self._logger.exception("Error while creating printer instance from factory {}".format(name),
extra=dict(plugin=name))
else:
printer = Printer(fileManager, analysisQueue, printerProfileManager)
components.update(dict(printer=printer))
@@ -457,7 +461,8 @@ class Server(object):
constant, value = octoprint.events.Events.register_event(event, prefix="plugin_{}_".format(name))
self._logger.debug("Registered event {} of plugin {} as Events.{} = \"{}\"".format(event, name, constant, value))
except:
self._logger.exception("Error while retrieving custom event list from plugin {}".format(name))
self._logger.exception("Error while retrieving custom event list from plugin {}".format(name),
extra=dict(plugin=name))
pluginManager.implementation_inject_factories=[octoprint_plugin_inject_factory,
settings_plugin_inject_factory]
@@ -468,7 +473,9 @@ class Server(object):
try:
settings_plugin_config_migration_and_cleanup(implementation._identifier, implementation)
except:
self._logger.exception("Error while trying to migrate settings for plugin {}, ignoring it".format(implementation._identifier))
self._logger.exception("Error while trying to migrate settings for "
"plugin {}, ignoring it".format(implementation._identifier),
extra=dict(plugin=plugin._identifier))
pluginManager.implementation_post_inits=[settings_plugin_config_migration_and_cleanup]
@@ -540,7 +547,8 @@ class Server(object):
try:
access_validators_from_plugins.append(util.tornado.access_validation_factory(app, hook))
except:
self._logger.exception("Error while adding tornado access validator from plugin {}".format(plugin))
self._logger.exception("Error while adding tornado access validator from plugin {}".format(plugin),
extra=dict(plugin=plugin))
admin_validators = [util.tornado.access_validation_factory(app, util.flask.admin_validator),] + access_validators_from_plugins
user_validators = [util.tornado.access_validation_factory(app, util.flask.user_validator),] + access_validators_from_plugins
@@ -606,7 +614,9 @@ class Server(object):
try:
result = hook(list(server_routes))
except:
self._logger.exception("There was an error while retrieving additional server routes from plugin hook {name}".format(**locals()))
self._logger.exception("There was an error while retrieving additional "
"server routes from plugin hook {name}".format(**locals()),
extra=dict(plugin=name))
else:
if isinstance(result, (list, tuple)):
for entry in result:
@@ -649,7 +659,9 @@ class Server(object):
try:
result = hook(list(max_body_sizes))
except:
self._logger.exception("There was an error while retrieving additional upload sizes from plugin hook {name}".format(**locals()))
self._logger.exception("There was an error while retrieving additional "
"upload sizes from plugin hook {name}".format(**locals()),
extra=dict(plugin=name))
else:
if isinstance(result, (list, tuple)):
for entry in result:
@@ -1179,7 +1191,9 @@ class Server(object):
blueprint, prefix = self._prepare_blueprint_plugin(plugin)
blueprints[prefix] = blueprint
except:
self._logger.exception("Error while registering blueprint of plugin {}, ignoring it".format(plugin._identifier))
self._logger.exception("Error while registering blueprint of "
"plugin {}, ignoring it".format(plugin._identifier),
extra=dict(plugin=plugin._identifier))
continue
return blueprints
@@ -1195,7 +1209,9 @@ class Server(object):
blueprint, prefix = self._prepare_asset_plugin(plugin)
blueprints[prefix] = blueprint
except:
self._logger.exception("Error while registering assets of plugin {}, ignoring it".format(plugin._identifier))
self._logger.exception("Error while registering assets of plugin "
"{}, ignoring it".format(plugin._identifier),
extra=dict(plugin=plugin._identifier))
continue
return blueprints
@@ -1243,7 +1259,8 @@ class Server(object):
for h in result:
blueprint.before_request(h)
except:
self._logger.exception("Error processing before_request hooks from plugin {}".format(name))
self._logger.exception("Error processing before_request hooks from plugin {}".format(name),
extra=dict(plugin=name))
for name, hook in after_hooks.items():
try:
@@ -1252,7 +1269,8 @@ class Server(object):
for h in result:
blueprint.after_request(h)
except:
self._logger.exception("Error processing after_request hooks from plugin {}".format(name))
self._logger.exception("Error processing after_request hooks from plugin {}".format(name),
extra=dict(plugin=name))
def _setup_assets(self):
global app
+35 -21
View File
@@ -60,15 +60,20 @@ def pluginData(name):
if len(api_plugins) > 1:
return make_response("More than one api provider registered for {name}, can't proceed".format(name=name), 500)
api_plugin = api_plugins[0]
if api_plugin.is_api_adminonly() and not current_user.is_admin():
return make_response("Forbidden", 403)
try:
api_plugin = api_plugins[0]
if api_plugin.is_api_adminonly() and not current_user.is_admin():
return make_response("Forbidden", 403)
response = api_plugin.on_api_get(request)
response = api_plugin.on_api_get(request)
if response is not None:
return response
return NO_CONTENT
if response is not None:
return response
return NO_CONTENT
except Exception:
logging.getLogger(__name__).exception("Error calling SimpleApiPlugin {}".format(name),
extra=dict(plugin=name))
return abort(500)
#~~ commands for plugins
@@ -84,21 +89,26 @@ def pluginCommand(name):
return make_response("More than one api provider registered for {name}, can't proceed".format(name=name), 500)
api_plugin = api_plugins[0]
valid_commands = api_plugin.get_api_commands()
if valid_commands is None:
return make_response("Method not allowed", 405)
try:
valid_commands = api_plugin.get_api_commands()
if valid_commands is None:
return make_response("Method not allowed", 405)
if api_plugin.is_api_adminonly() and not current_user.is_admin():
return make_response("Forbidden", 403)
if api_plugin.is_api_adminonly() and not current_user.is_admin():
return make_response("Forbidden", 403)
command, data, response = get_json_command_from_request(request, valid_commands)
if response is not None:
return response
command, data, response = get_json_command_from_request(request, valid_commands)
if response is not None:
return response
response = api_plugin.on_api_command(command, data)
if response is not None:
return response
return NO_CONTENT
response = api_plugin.on_api_command(command, data)
if response is not None:
return response
return NO_CONTENT
except Exception:
logging.getLogger(__name__).exception("Error while excuting SimpleApiPlugin {}".format(name),
extra=dict(plugin=name))
return abort(500)
#~~ first run setup
@@ -119,7 +129,9 @@ def wizardState():
version = implementation.get_wizard_version()
ignored = octoprint.plugin.WizardPlugin.is_wizard_ignored(seen_wizards, implementation)
except:
logging.getLogger(__name__).exception("There was an error fetching wizard details for {}, ignoring".format(name))
logging.getLogger(__name__).exception("There was an error fetching wizard "
"details for {}, ignoring".format(name),
extra=dict(plugin=name))
else:
result[name] = dict(required=required, details=details, version=version, ignored=ignored)
@@ -154,7 +166,9 @@ def wizardFinish():
if name in handled:
seen_wizards[name] = implementation.get_wizard_version()
except:
logging.getLogger(__name__).exception("There was an error finishing the wizard for {}, ignoring".format(name))
logging.getLogger(__name__).exception("There was an error finishing the "
"wizard for {}, ignoring".format(name),
extra=dict(plugin=name))
s().set(["server", "seenWizards"], seen_wizards)
s().save()
+7 -2
View File
@@ -130,6 +130,7 @@ def getSettings():
"serial": {
"port": connectionOptions["portPreference"],
"baudrate": connectionOptions["baudratePreference"],
"exclusive": s.getBoolean(["serial", "exclusive"]),
"portOptions": connectionOptions["ports"],
"baudrateOptions": connectionOptions["baudrates"],
"autoconnect": s.getBoolean(["serial", "autoconnect"]),
@@ -276,7 +277,8 @@ def _get_plugin_settings():
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))
name=plugin._plugin_name),
extra=dict(plugin=plugin._identifier))
return data
@@ -418,6 +420,7 @@ def _saveSettings(data):
if "autoconnect" in data["serial"]: s.setBoolean(["serial", "autoconnect"], data["serial"]["autoconnect"])
if "port" in data["serial"]: s.set(["serial", "port"], data["serial"]["port"])
if "baudrate" in data["serial"]: s.setInt(["serial", "baudrate"], data["serial"]["baudrate"])
if "exclusive" in data["serial"]: s.setBoolean(["serial", "exclusive"], data["serial"]["exclusive"])
if "timeoutConnection" in data["serial"]: s.setFloat(["serial", "timeout", "connection"], data["serial"]["timeoutConnection"], min=1.0)
if "timeoutDetection" in data["serial"]: s.setFloat(["serial", "timeout", "detection"], data["serial"]["timeoutDetection"], min=1.0)
if "timeoutCommunication" in data["serial"]: s.setFloat(["serial", "timeout", "communication"], data["serial"]["timeoutCommunication"], min=1.0)
@@ -551,6 +554,8 @@ def _saveSettings(data):
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))
logger.exception("Could not save settings for plugin {name} ({version})".format(version=plugin._plugin_version,
name=plugin._plugin_name),
extra=dict(plugin=plugin._identifier))
s.save(trigger_event=True)
+3 -1
View File
@@ -107,7 +107,9 @@ def _get_registered_apps():
logger.warn("Plugin {} is still implementing the appkey hook that is deprecated since 1.3.11 and will be removed in 1.4.0. Switch it over to the Application Keys Plugin workflow.".format(name))
except:
import logging
logging.getLogger(__name__).exception("Error while retrieving additional appkeys from plugin {name}".format(**locals()))
logging.getLogger(__name__).exception("Error while retrieving additional appkeys "
"from plugin {name}".format(**locals()),
extra=dict(plugin=name))
continue
any_version_enabled = dict()
+3 -1
View File
@@ -193,7 +193,9 @@ def get_user_for_apikey(apikey):
if user is not None:
return user
except:
logging.getLogger(__name__).exception("Error running api key validator for plugin {} and key {}".format(name, apikey))
logging.getLogger(__name__).exception("Error running api key validator "
"for plugin {} and key {}".format(name, apikey),
extra=dict(plugin=name))
return None
+2 -1
View File
@@ -1539,7 +1539,8 @@ def collect_plugin_assets(enable_gcodeviewer=True, preferred_stylesheet="css"):
all_assets = implementation.get_assets()
basefolder = implementation.get_asset_folder()
except:
logger.exception("Got an error while trying to collect assets from {}, ignoring assets from the plugin".format(name))
logger.exception("Got an error while trying to collect assets from {}, ignoring assets from the plugin".format(name),
extra=dict(plugin=name))
continue
def asset_exists(category, asset):
+8 -4
View File
@@ -268,7 +268,8 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
try:
proceed = proceed and hook(self, self._user, type, payload)
except:
self._logger.exception("Error processing emit hook handler from plugin {}".format(name))
self._logger.exception("Error processing emit hook handler from plugin {}".format(name),
extra=dict(plugin=name))
if not proceed:
return
@@ -290,7 +291,8 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
try:
proceed = proceed and hook(self, self._user)
except:
self._logger.exception("Error processing register hook handler for plugin {}".format(name))
self._logger.exception("Error processing register hook handler for plugin {}".format(name),
extra=dict(plugin=name))
if not proceed:
return
@@ -358,7 +360,8 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
try:
hook(self, self._user)
except:
self._logger.exception("Error processing authed hook handler for plugin {}".format(name))
self._logger.exception("Error processing authed hook handler for plugin {}".format(name),
extra=dict(plugin=name))
def _on_logout(self):
self._user = None
@@ -367,5 +370,6 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, o
try:
hook(self, self._user)
except:
self._logger.exception("Error processing authed hook handler for plugin {}".format(name))
self._logger.exception("Error processing authed hook handler for plugin {}".format(name),
extra=dict(plugin=name))
+32 -21
View File
@@ -123,18 +123,22 @@ def in_cache():
ui_plugins = pluginManager.get_implementations(octoprint.plugin.UiPlugin,
sorting_context="UiPlugin.on_ui_render")
for plugin in ui_plugins:
if plugin.will_handle_ui(request):
ui = plugin._identifier
key = _cache_key(plugin._identifier,
url=url,
additional_key_data=plugin.get_ui_additional_key_data_for_cache)
unless = _preemptive_unless(url, additional_unless=plugin.get_ui_preemptive_caching_additional_unless)
data = _preemptive_data(plugin._identifier,
path=path,
base_url=base_url,
data=plugin.get_ui_data_for_preemptive_caching,
additional_request_data=plugin.get_ui_additional_request_data_for_preemptive_caching)
break
try:
if plugin.will_handle_ui(request):
ui = plugin._identifier
key = _cache_key(plugin._identifier,
url=url,
additional_key_data=plugin.get_ui_additional_key_data_for_cache)
unless = _preemptive_unless(url, additional_unless=plugin.get_ui_preemptive_caching_additional_unless)
data = _preemptive_data(plugin._identifier,
path=path,
base_url=base_url,
data=plugin.get_ui_data_for_preemptive_caching,
additional_request_data=plugin.get_ui_additional_request_data_for_preemptive_caching)
break
except Exception:
_logger.exception("Error while calling plugin {}, skipping it".format(plugin._identifier),
extra=dict(plugin=plugin._identifier))
else:
ui = "_default"
key = _cache_key("_default", url=url)
@@ -403,13 +407,17 @@ def index():
# select view from plugins and fall back on default view if no plugin will handle it
ui_plugins = pluginManager.get_implementations(octoprint.plugin.UiPlugin, sorting_context="UiPlugin.on_ui_render")
for plugin in ui_plugins:
if plugin.will_handle_ui(request):
# plugin claims responsibility, let it render the UI
response = plugin_view(plugin)
if response is not None:
break
else:
_logger.warn("UiPlugin {} returned an empty response".format(plugin._identifier))
try:
if plugin.will_handle_ui(request):
# plugin claims responsibility, let it render the UI
response = plugin_view(plugin)
if response is not None:
break
else:
_logger.warn("UiPlugin {} returned an empty response".format(plugin._identifier))
except Exception:
_logger.exception("Error while calling plugin {}, skipping it".format(plugin._identifier),
extra=dict(plugin=plugin._identifier))
else:
response = default_view()
@@ -508,7 +516,9 @@ def fetch_template_data(refresh=False):
try:
result = hook(dict(template_sorting), dict(template_rules))
except:
_logger.exception("Error while retrieving custom template type definitions from plugin {name}".format(**locals()))
_logger.exception("Error while retrieving custom template type "
"definitions from plugin {name}".format(**locals()),
extra=dict(plugin=name))
else:
if not isinstance(result, list):
continue
@@ -649,7 +659,8 @@ def fetch_template_data(refresh=False):
wizard_required = implementation.is_wizard_required()
wizard_ignored = octoprint.plugin.WizardPlugin.is_wizard_ignored(seen_wizards, implementation)
except:
_logger.exception("Error while retrieving template data for plugin {}, ignoring it".format(name))
_logger.exception("Error while retrieving template data for plugin {}, ignoring it".format(name),
extra=dict(plugin=name))
continue
if not isinstance(vars, dict):
+2
View File
@@ -88,6 +88,7 @@ default_settings = {
"serial": {
"port": None,
"baudrate": None,
"exclusive": True,
"autoconnect": False,
"log": False,
"timeout": {
@@ -158,6 +159,7 @@ default_settings = {
"port": 5000,
"firstRun": True,
"startOnceInSafeMode": False,
"ignoreIncompleteStartup": False,
"incompleteStartup": False,
"seenWizards": {},
"secretKey": None,
+2 -1
View File
@@ -139,7 +139,8 @@ class SlicingManager(object):
try:
slicers[plugin.get_slicer_properties()["type"]] = plugin
except:
self._logger.exception("Error while getting properties from slicer {}, ignoring it".format(plugin._identifier))
self._logger.exception("Error while getting properties from slicer {}, ignoring it".format(plugin._identifier),
extra=dict(plugin=plugin._identifier))
continue
self._slicers = slicers
@@ -177,6 +177,10 @@ $(function() {
self.requestData();
};
self.onEventDisconnected = function() {
self.requestData();
};
self.onStartup = function() {
var connectionTab = $("#connection");
connectionTab.on("show", function() {
@@ -149,6 +149,7 @@ $(function() {
self.serial_port = ko.observable();
self.serial_baudrate = ko.observable();
self.serial_exclusive = ko.observable();
self.serial_portOptions = ko.observableArray([]);
self.serial_baudrateOptions = ko.observableArray([]);
self.serial_autoconnect = ko.observable(undefined);
@@ -8,7 +8,7 @@
<div class="tab-content">
<div id="settings_serial_general" class="tab-pane active">
<fieldset>
<fieldset id="settings_serial_general_connection">
<legend>{{ _('Connection') }}</legend>
<div class="control-group" title="{{ _('Serial port to connect to, setting this to AUTO will make OctoPrint try to automatically find the right setting') }}">
<label class="control-label" for="settings-serialPort">{{ _('Serial Port') }}</label>
@@ -43,8 +43,16 @@
<span class="help-inline">{{ _('Use this to define additional serial port baud rates to list for connecting with, e.g. <code>123456</code>. Comma separated.') }}</span>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: serial_exclusive" id="settings-serialExclusive"> {{ _('Request exclusive access to the serial port') }}
<span class="help-block">{{ _('Uncheck this if you are having problems connecting to your printer.') }}</span>
</label>
</div>
</div>
</fieldset>
<fieldset>
<fieldset id="settings_serial_general_logging">
<legend>{{ _('Serial logging') }}</legend>
<div class="control-group">
<div class="controls">
@@ -25,6 +25,7 @@
// sockjs should define CLOSE_NORMAL for us, but they don't (from ws spec)
var SOCKJS_CLOSE_NORMAL = 1000;
var UI_API_KEY = ""; // deprecated, only left for compatibility reasons
var VERSION = "{{ version.number|e }}";
var DISPLAY_VERSION = "{{ version.display|e }}";
var BRANCH = "{{ version.branch|e }}";
+3 -1
View File
@@ -79,7 +79,9 @@ def valid_timelapse(path):
continue
extensions += result
except:
logging.getLogger(__name__).exception("Exception while retrieving additional timelapse extensions from hook {name}".format(name=name))
logging.getLogger(__name__).exception("Exception while retrieving additional timelapse "
"extensions from hook {name}".format(name=name),
extra=dict(plugin=name))
_extensions = list(set(extensions))
File diff suppressed because it is too large. Load diff
+51 -26
View File
@@ -687,9 +687,9 @@ class MachineCom(object):
if self.isSdFileSelected():
return "Starting print from SD"
elif self.isStreaming():
return "Sending file to SD"
return "Starting to send file to SD"
else:
return "Printing"
return "Starting"
elif state == self.STATE_PRINTING:
if self.isSdFileSelected():
return "Printing from SD"
@@ -999,7 +999,8 @@ class MachineCom(object):
try:
retval = hook(self, "gcode", scriptName)
except:
self._logger.exception("Error while processing hook {name}.".format(**locals()))
self._logger.exception("Error while processing hook {name}.".format(**locals()),
extra=dict(plugin=name))
else:
if retval is None:
continue
@@ -1520,7 +1521,8 @@ class MachineCom(object):
if parsedTemps is None or not parsedTemps:
return
except:
self._logger.exception("Error while processing temperatures in {}, skipping".format(name))
self._logger.exception("Error while processing temperatures in {}, skipping".format(name),
extra=dict(plugin=name))
if current_tool_key in parsedTemps.keys():
shared_nozzle = self._printerProfileManager.get_current_or_default()["extruder"]["sharedNozzle"]
@@ -1660,11 +1662,13 @@ class MachineCom(object):
self._log("Disconnecting on request of the printer...")
self._callback.on_comm_force_disconnect()
else:
for hook in self._printer_action_hooks:
for name, hook in self._printer_action_hooks.items():
try:
self._printer_action_hooks[hook](self, line, action_command)
hook(self, line, action_command)
except:
self._logger.exception("Error while calling hook {} with action command {}".format(self._printer_action_hooks[hook], action_command))
self._logger.exception("Error while calling hook from plugin "
"{} with action command {}".format(name, action_command),
extra=dict(plugin=name))
continue
if self._state not in (self.STATE_CONNECTING, self.STATE_DETECT_BAUDRATE):
@@ -1908,7 +1912,8 @@ class MachineCom(object):
try:
hook(self, firmware_name, copy.copy(data))
except:
self._logger.exception("Error processing firmware info hook {}:".format(name))
self._logger.exception("Error processing firmware info hook {}:".format(name),
extra=dict(plugin=name))
##~~ Firmware capability report triggered by M115
elif lower_line.startswith("cap:"):
@@ -1932,7 +1937,8 @@ class MachineCom(object):
try:
hook(self, capability, enabled, copy.copy(self._firmware_capabilities))
except:
self._logger.exception("Error processing firmware capability hook {}:".format(name))
self._logger.exception("Error processing firmware capability hook {}:".format(name),
extra=dict(plugin=name))
##~~ invalid extruder
elif 'invalid extruder' in lower_line:
@@ -2553,7 +2559,7 @@ class MachineCom(object):
self._log("Trying {}".format(p))
programmer.connect(p)
serial_obj = programmer.leaveISP()
except:
except Exception as e:
self._log("Could not connect to or enter programming mode on {}, might not be a printer or just not allow programming mode".format(p))
self._logger.info("Could not enter programming mode on {}: {}".format(p, e))
@@ -2585,10 +2591,12 @@ class MachineCom(object):
"baudrate": baudrateList()[0] if baudrate == 0 else baudrate,
"timeout": read_timeout,
"write_timeout": 0,
"parity": serial.PARITY_ODD,
"exclusive": True
"parity": serial.PARITY_ODD
}
if settings().getBoolean(["serial", "exclusive"]):
serial_port_args["exclusive"] = True
serial_obj = serial.Serial(**serial_port_args)
serial_obj.close()
@@ -2692,7 +2700,8 @@ class MachineCom(object):
try:
ret = hook(self, stripped_error)
except:
self._logger.exception("Error while processing hook {name}:".format(**locals()))
self._logger.exception("Error while processing hook {name}:".format(**locals()),
extra=dict(plugin=name))
else:
if ret:
return line
@@ -2739,18 +2748,19 @@ class MachineCom(object):
self.close(is_error=True)
return None
try:
ret = ret.decode('utf-8')
except UnicodeDecodeError:
ret = ret.decode('latin1')
self._log(u"Recv: {}".format(ret))
if ret != "":
try:
self._log("Recv: " + sanitize_ascii(ret))
except ValueError as e:
self._log("WARN: While reading last line: %s" % e)
self._log("Recv: " + repr(ret))
for name, hook in self._received_message_hooks.items():
try:
ret = hook(self, ret)
except Exception:
self._logger.exception("Error while processing hook {name}:".format(**locals()))
self._logger.exception("Error while processing hook {name}:".format(**locals()),
extra=dict(plugin=name))
else:
if ret is None:
return ""
@@ -3179,7 +3189,7 @@ class MachineCom(object):
def _log_command_phase(self, phase, command, *args, **kwargs):
if self._phaseLogger.isEnabledFor(logging.DEBUG):
output_parts = [u"phase: {}".format(phase),
u"command: {}".format(command)]
u"command: {}".format(to_unicode(command, errors="replace"))]
if kwargs.get("command_type"):
output_parts.append(u"command_type: {}".format(kwargs["command_type"]))
@@ -3190,7 +3200,7 @@ class MachineCom(object):
if kwargs.get("tags"):
output_parts.append(u"tags: [ {} ]".format(", ".join(sorted(kwargs["tags"]))))
self._phaseLogger.debug(" | ".join(output_parts))
self._phaseLogger.debug(u" | ".join(output_parts))
def _process_command_phase(self, phase, command, command_type=None, gcode=None, subcode=None, tags=None):
if gcode is None:
@@ -3209,7 +3219,12 @@ class MachineCom(object):
try:
hook_results = hook(self, phase, command, command_type, gcode, subcode=subcode, tags=tags)
except:
self._logger.exception("Error while processing hook {name} for phase {phase} and command {command}:".format(**locals()))
self._logger.exception(u"Error while processing hook {name} for phase "
u"{phase} and command {command}:".format(name=name,
phase=phase,
command=to_unicode(command,
errors="replace")),
extra=dict(plugin=name))
else:
normalized = _normalize_command_handler_result(command, command_type, gcode, subcode, tags,
hook_results,
@@ -3219,7 +3234,14 @@ class MachineCom(object):
# make sure we don't allow multi entry results in anything but the queuing phase
if not phase in ("queuing",) and len(normalized) > 1:
self._logger.error("Error while processing hook {name} for phase {phase} and command {command}: Hook returned multi-entry result for phase {phase} and command {command}. That's not supported, if you need to do multi expansion of commands you need to do this in the queuing phase. Ignoring hook result and sending command as-is.".format(**locals()))
self._logger.error(u"Error while processing hook {name} for phase {phase} and command {command}: "
u"Hook returned multi-entry result for phase {phase} and command {command}. "
u"That's not supported, if you need to do multi expansion of commands you "
u"need to do this in the queuing phase. Ignoring hook result and sending "
u"command as-is.".format(name=name,
phase=phase,
command=to_unicode(command, errors="replace")),
extra=dict(plugin=name))
new_results.append((command, command_type, gcode, subcode, tags))
else:
new_results += normalized
@@ -3290,7 +3312,9 @@ class MachineCom(object):
try:
hook(self, phase, atcommand, parameters, tags=tags)
except:
self._logger.exception("Error while processing hook {} for phase {} and command {}:".format(name, phase, atcommand))
self._logger.exception(u"Error while processing hook {} for "
u"phase {} and command {}:".format(name, phase, to_unicode(atcommand, errors="replace")),
extra=dict(plugin=name))
# trigger built-in handler if available
handler = getattr(self, "_atcommand_{}_{}".format(atcommand, phase), None)
@@ -3298,7 +3322,8 @@ class MachineCom(object):
try:
handler(atcommand, parameters, tags=tags)
except:
self._logger.exception("Error in handler for phase {} and command {}".format(phase, atcommand))
self._logger.exception(u"Error in handler for phase {} and command {}".format(phase,
to_unicode(atcommand, errors="replace")))
##~~ actual sending via serial
Binary file not shown.
File diff suppressed because it is too large. Load diff
+176 -168
View File
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.3.11rc2.dev18+g0b6dd7e76\n"
"Project-Id-Version: OctoPrint 1.3.11rc3.post1.dev0+g0331a25ae\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2019-04-04 14:21+0200\n"
"POT-Creation-Date: 2019-05-13 13:45+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -46,14 +46,14 @@ msgid ""
msgstr ""
#: src/octoprint/plugins/action_command_prompt/templates/action_command_prompt_settings.jinja2:11
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:258
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:312
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:266
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:320
msgid "Always"
msgstr ""
#: src/octoprint/plugins/action_command_prompt/templates/action_command_prompt_settings.jinja2:14
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:261
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:315
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:269
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:323
msgid "Never"
msgstr ""
@@ -61,9 +61,9 @@ msgstr ""
#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:16
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:211
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2:68
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:157
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:267
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:348
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:165
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:275
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:356
#: src/octoprint/templates/dialogs/settings/webcam.jinja2:10
#: src/octoprint/templates/dialogs/settings/webcam.jinja2:25
#: src/octoprint/templates/snippets/settings/server/serverPluginBlacklist.jinja2:5
@@ -595,13 +595,13 @@ msgid "Server Commands"
msgstr ""
#: src/octoprint/plugins/corewizard/subwizards.py:49
#: src/octoprint/server/views.py:585
#: src/octoprint/server/views.py:595
msgid "Webcam & Timelapse"
msgstr ""
#: src/octoprint/plugins/corewizard/subwizards.py:64
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:1
#: src/octoprint/server/views.py:591
#: src/octoprint/server/views.py:601
msgid "Access Control"
msgstr ""
@@ -1002,7 +1002,7 @@ msgid ""
"discoverable on the network via Bonjour and uPnP."
msgstr ""
#: src/octoprint/plugins/errortracking/__init__.py:39
#: src/octoprint/plugins/errortracking/__init__.py:67
#: src/octoprint/plugins/errortracking/templates/errortracking_settings.jinja2:1
msgid "Error Tracking"
msgstr ""
@@ -1024,7 +1024,7 @@ msgstr ""
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:275
#: src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js:301
#: src/octoprint/static/js/app/viewmodels/loginstate.js:101
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:389
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:397
msgid "Ignore"
msgstr ""
@@ -1092,7 +1092,7 @@ msgid ""
"</p>\n"
msgstr ""
#: src/octoprint/plugins/forcelogin/__init__.py:189
#: src/octoprint/plugins/forcelogin/__init__.py:190
msgid ""
"Without this plugin anonymous users will have read-only access to your "
"OctoPrint instance. Only disable this if you are comfortable with this, "
@@ -1816,11 +1816,11 @@ msgstr ""
msgid "Save"
msgstr ""
#: src/octoprint/plugins/printer_safety_check/__init__.py:47
#: src/octoprint/plugins/printer_safety_check/__init__.py:48
msgid "Printer Safety Warning"
msgstr ""
#: src/octoprint/plugins/printer_safety_check/__init__.py:173
#: src/octoprint/plugins/printer_safety_check/__init__.py:179
msgid ""
"Without this plugin OctoPrint will no longer be able to check if the "
"printer it is connected to has a known safetyissue and inform you about "
@@ -1841,25 +1841,25 @@ msgstr ""
msgid "Learn more..."
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:519
#: src/octoprint/plugins/softwareupdate/__init__.py:521
msgid "Python"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:520
#: src/octoprint/plugins/softwareupdate/__init__.py:522
msgid "pip"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:521
#: src/octoprint/plugins/softwareupdate/__init__.py:523
msgid "setuptools"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:608
#: src/octoprint/plugins/softwareupdate/__init__.py:610
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard.jinja2:1
msgid "Software Update"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:1048
#: src/octoprint/server/views.py:589
#: src/octoprint/plugins/softwareupdate/__init__.py:1050
#: src/octoprint/server/views.py:599
#: src/octoprint/static/js/app/viewmodels/appearance.js:99
#: src/octoprint/static/js/app/viewmodels/appearance.js:104
#: src/octoprint/static/js/app/viewmodels/appearance.js:106
@@ -1869,7 +1869,7 @@ msgstr ""
msgid "OctoPrint"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:1212
#: src/octoprint/plugins/softwareupdate/__init__.py:1214
msgid ""
"Without this plugin OctoPrint will no longer be able to update itself or "
"any of your installed plugins which might put your system at risk."
@@ -2410,109 +2410,109 @@ msgid ""
"tracking.octoprint.org</a>.\n"
msgstr ""
#: src/octoprint/server/views.py:499
#: src/octoprint/server/views.py:507
msgid "Plugins"
msgstr ""
#: src/octoprint/server/views.py:556
#: src/octoprint/server/views.py:566
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:12
msgid "Connection"
msgstr ""
#: src/octoprint/server/views.py:557
#: src/octoprint/server/views.py:567
#: src/octoprint/templates/sidebar/state.jinja2:1
msgid "State"
msgstr ""
#: src/octoprint/server/views.py:558
#: src/octoprint/server/views.py:568
msgid "Files"
msgstr ""
#: src/octoprint/server/views.py:564
#: src/octoprint/server/views.py:574
msgid "Temperature"
msgstr ""
#: src/octoprint/server/views.py:565
#: src/octoprint/server/views.py:575
msgid "Control"
msgstr ""
#: src/octoprint/server/views.py:566
#: src/octoprint/server/views.py:576
msgid "GCode Viewer"
msgstr ""
#: src/octoprint/server/views.py:567
#: src/octoprint/server/views.py:577
msgid "Terminal"
msgstr ""
#: src/octoprint/server/views.py:568
#: src/octoprint/server/views.py:578
#: src/octoprint/templates/sidebar/state.jinja2:8
msgid "Timelapse"
msgstr ""
#: src/octoprint/server/views.py:574
#: src/octoprint/server/views.py:584
msgid "Printer"
msgstr ""
#: src/octoprint/server/views.py:576
#: src/octoprint/server/views.py:586
msgid "Serial Connection"
msgstr ""
#: src/octoprint/server/views.py:577
#: src/octoprint/server/views.py:587
#: src/octoprint/templates/dialogs/settings/printerprofiles.jinja2:1
msgid "Printer Profiles"
msgstr ""
#: src/octoprint/server/views.py:578
#: src/octoprint/server/views.py:588
msgid "Temperatures"
msgstr ""
#: src/octoprint/server/views.py:579
#: src/octoprint/server/views.py:589
msgid "Terminal Filters"
msgstr ""
#: src/octoprint/server/views.py:580
#: src/octoprint/server/views.py:590
msgid "GCODE Scripts"
msgstr ""
#: src/octoprint/server/views.py:582 src/octoprint/server/views.py:584
#: src/octoprint/server/views.py:592 src/octoprint/server/views.py:594
msgid "Features"
msgstr ""
#: src/octoprint/server/views.py:586
#: src/octoprint/server/views.py:596
msgid "GCODE Visualizer"
msgstr ""
#: src/octoprint/server/views.py:587
#: src/octoprint/server/views.py:597
msgid "API"
msgstr ""
#: src/octoprint/server/views.py:592
#: src/octoprint/server/views.py:602
#: src/octoprint/templates/dialogs/settings/folders.jinja2:2
#: src/octoprint/templates/sidebar/files_header.jinja2:10
msgid "Folders"
msgstr ""
#: src/octoprint/server/views.py:593
#: src/octoprint/server/views.py:603
msgid "Appearance"
msgstr ""
#: src/octoprint/server/views.py:594
#: src/octoprint/server/views.py:604
msgid "Server"
msgstr ""
#: src/octoprint/server/views.py:600
#: src/octoprint/server/views.py:610
msgid "Access"
msgstr ""
#: src/octoprint/server/views.py:601
#: src/octoprint/server/views.py:611
msgid "Interface"
msgstr ""
#: src/octoprint/server/views.py:617
#: src/octoprint/server/views.py:627
msgid "Start"
msgstr ""
#: src/octoprint/server/views.py:618
#: src/octoprint/server/views.py:628
#: src/octoprint/templates/dialogs/wizard.jinja2:57
msgid "Finish"
msgstr ""
@@ -2858,7 +2858,7 @@ msgid "Transferring file to SD"
msgstr ""
#: src/octoprint/static/js/app/main.js:216
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:396
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:404
msgid "Pausing"
msgstr ""
@@ -2867,7 +2867,7 @@ msgid "Resuming"
msgstr ""
#: src/octoprint/static/js/app/main.js:218
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:405
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:413
msgid "Cancelling"
msgstr ""
@@ -3386,23 +3386,23 @@ msgstr ""
msgid "Autodetect from browser"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:324
#: src/octoprint/static/js/app/viewmodels/settings.js:325
msgid "If you see your webcam stream below, the entered stream URL is ok."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:332
#: src/octoprint/static/js/app/viewmodels/settings.js:333
msgid "Stream test"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:350
#: src/octoprint/static/js/app/viewmodels/settings.js:351
msgid "Could not retrieve snapshot URL, please double check the URL"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:351
#: src/octoprint/static/js/app/viewmodels/settings.js:352
msgid "Snapshot test failed"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:365
#: src/octoprint/static/js/app/viewmodels/settings.js:366
#, python-format
msgid ""
"Could retrieve the snapshot URL, but it didn't look like an image. Got "
@@ -3411,58 +3411,58 @@ msgid ""
"or videos."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:390
#: src/octoprint/static/js/app/viewmodels/settings.js:391
msgid ""
"If you see your webcam snapshot picture below, the entered snapshot URL "
"is ok."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:392
#: src/octoprint/static/js/app/viewmodels/settings.js:393
msgid "Snapshot test"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:425
#: src/octoprint/static/js/app/viewmodels/settings.js:426
msgid "The path doesn't exist"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:427
#: src/octoprint/static/js/app/viewmodels/settings.js:428
msgid "The path is not a file"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:429
#: src/octoprint/static/js/app/viewmodels/settings.js:430
msgid "The path is not an executable"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:432
#: src/octoprint/static/js/app/viewmodels/settings.js:492
#: src/octoprint/static/js/app/viewmodels/settings.js:433
#: src/octoprint/static/js/app/viewmodels/settings.js:493
msgid "The path is valid"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:452
#: src/octoprint/static/js/app/viewmodels/settings.js:453
msgid "The server is not reachable"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:454
#: src/octoprint/static/js/app/viewmodels/settings.js:455
msgid "The server is reachable"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:483
#: src/octoprint/static/js/app/viewmodels/settings.js:484
msgid "The path is a broken symlink."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:485
#: src/octoprint/static/js/app/viewmodels/settings.js:486
msgid "The path does not exist and cannot be created."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:487
#: src/octoprint/static/js/app/viewmodels/settings.js:488
msgid "The path is not a folder."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:489
#: src/octoprint/static/js/app/viewmodels/settings.js:490
msgid "The path is not writable."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:613
#: src/octoprint/static/js/app/viewmodels/settings.js:614
#: src/octoprint/static/js/app/viewmodels/usersettings.js:99
msgid ""
"This will generate a new API Key. The old API Key will cease to function "
@@ -4190,10 +4190,10 @@ msgid ""
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:67
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:52
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:389
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:399
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:408
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:60
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:397
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:407
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:416
#: src/octoprint/templates/tabs/gcodeviewer.jinja2:117
msgid "Warning"
msgstr ""
@@ -4342,85 +4342,93 @@ msgid ""
"connecting with, e.g. <code>123456</code>. Comma separated."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:48
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:49
msgid "Request exclusive access to the serial port"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:50
msgid "Uncheck this if you are having problems connecting to your printer."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:56
msgid "Serial logging"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:52
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:60
msgid "Log communication to <code>serial.log</code>"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:53
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:61
msgid ""
"While this can negatively impact performance, a <code>serial.log</code> "
"can be incredibly useful for debugging any issues observed in the "
"communication between OctoPrint and your printer."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:61
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:69
msgid "Query intervals"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:62
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:70
msgid "Interval in which to poll for the temperature information from the printer"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:63
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:71
msgid "Temperature interval (polling)"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:69
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:77
msgid "When printing or idle"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:76
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:84
msgid "When idle and a target temperature is set"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:79
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:87
msgid ""
"Temperature report interval to request from autoreport capable firmwares."
" A value of 0 disables autoreporting by the firmware and forces polling."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:80
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:88
msgid "Temperature interval (autoreport)"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:86
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:106
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:94
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:114
msgid "Autoreport interval to request from firmware"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:89
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:97
msgid ""
"Interval in which to poll for the SD printing status information from the"
" printer while printing"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:90
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:98
msgid "SD status interval (polling)"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:96
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:104
msgid "When printing from the printer's SD"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:99
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:107
msgid ""
"SD status interval to request from autoreport capable firmwares. A value "
"of 0 disables autoreporting by the firmware and forces polling."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:100
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:108
msgid "SD status interval (autoreport)"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:111
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:119
msgid "Timeouts"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:112
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:120
msgid ""
"Time after which the communication with your printer will be considered "
"timed out if nothing was sent by your printer (and an attempt to get it "
@@ -4428,111 +4436,111 @@ msgid ""
"than this for some moves."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:113
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:121
msgid "Communication timeout"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:119
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:127
msgid "<code>busy</code> protocol support not detected"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:126
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:134
msgid "<code>busy</code> protocol support detected"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:129
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:137
msgid ""
"Time after which a connection attempt to the printer will be considered "
"as having failed"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:130
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:138
msgid "Connection timeout"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:138
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:146
msgid ""
"Time after which to consider an auto detection attempt to have failed if "
"no successful connection is detected"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:139
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:147
msgid "Autodetection timeout"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:147
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:155
msgid ""
"Time after which to consider a position query on pause or cancel to have "
"failed"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:148
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:156
msgid "Position query timeout"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:159
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:167
msgid ""
"Time to wait after opening the serial connection before starting baudrate"
" detection"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:160
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:168
msgid "Initial baudrate detection pause"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:166
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:174
msgid ""
"Some controllers need a bit of a breather before baudrate detection after"
" initial connect. If baudrate detection fails due to a hanging "
"controller, try increasing this value."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:169
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:177
msgid ""
"Maximum consecutive communication timeouts while idle. More than this and"
" the printer will be considered to be gone. Set to 0 to disable."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:170
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:178
msgid "Max. consecutive timeouts while idle"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:173
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:180
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:187
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:181
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:188
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:195
msgid "Set to 0 to disable consecutive timeout detection and handling."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:176
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:184
msgid ""
"Maximum consecutive communication timeouts while printing. More than this"
" and the printer will be considered to be gone. Set to 0 to disable."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:177
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:185
msgid "Max. consecutive timeouts while printing"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:183
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:191
msgid ""
"Maximum consecutive communication timeouts while a long running command "
"is active. More than this and the printer will be considered to be gone. "
"Set to 0 to disable."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:184
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:192
msgid "Max. consecutive timeouts during long running commands"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:196
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:204
msgid "Firmware specific settings"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:200
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:208
msgid "Enable automatic firmware detection"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:201
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:209
msgid ""
"\n"
" If enabled, OctoPrint will try to figure "
@@ -4544,77 +4552,77 @@ msgid ""
" "
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:212
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:220
msgid "Select SD files by relative path"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:212
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:220
msgid "RepRap Firmware"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:219
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:227
msgid "Always assume SD card is present"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:219
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:226
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:233
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:240
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:247
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:258
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:227
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:234
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:241
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:248
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:255
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:266
msgid "Repetier"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:226
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:234
msgid "Ignore consecutive resend requests for the same line"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:233
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:241
#, python-format
msgid ""
"Support <code>TargetExtr%%n</code>/<code>TargetBed</code> target "
"temperature format"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:240
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:248
msgid "Disable detection of external heatups"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:247
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:255
msgid "Actively pause communication during <code>G4</code> dwell command"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:252
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:260
msgid "Send a checksum with the command"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:255
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:263
msgid "When printing"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:272
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:280
msgid "Support temperature autoreporting by firmware, if detected"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:279
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:287
msgid "Support sd status autoreporting by firmware, if detected"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:286
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:294
msgid ""
"Send emergency GCODES <code>M108</code> and <code>M410</code> without "
"waiting for acknowledgement, if detected as supported by the firmware"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:293
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:301
msgid "Support <code>busy</code> protocol, if detected"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:300
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:308
msgid "Simulate <code>ok</code> for <code>M29</code>"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:301
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:309
msgid ""
"Most Marlin forks that were derived from Marlin versions &lt; v1.1.0 do "
"not send an acknowledging <code>ok</code> for a <code>M29</code>. Check "
@@ -4622,40 +4630,40 @@ msgid ""
"to your printer's SD."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:306
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:314
msgid "Simulate <code>ok</code> for resend requests"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:309
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:317
msgid "If detected as necessary"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:317
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:325
msgid ""
"Some Marlin forks lack an acknowledging <code>ok</code> with their resend"
" requests. Set this to \"always\" or \"if detected as necessary\" if you "
"run into communication stalls on resend requests."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:324
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:332
msgid "Protocol fine tuning"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:328
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:336
msgid "Wait for <code>start</code> on connect"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:329
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:337
msgid ""
"Try checking this if you run into connection timeouts due to your printer"
" taking too long to respond to OctoPrint's handshake attempts on connect."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:334
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:342
msgid "Blocked commands"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:337
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:345
msgid ""
"Use this to specify commands that should never be sent to the printer. "
"Just the G or M code, comma separated. Defaults to <code>M0</code> and "
@@ -4663,111 +4671,111 @@ msgid ""
"controller has been pressed if it receives either of those two commands."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:341
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:349
msgid "Pausing commands"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:344
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:352
msgid ""
"Use this to specify commands on which OctoPrint should pause the print "
"job. Just the G or M code, comma separated. Defaults to <code>M0</code>, "
"<code>M1</code> and <code>M25</code>."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:350
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:358
msgid "Command to send to the firmware on first handshake attempt."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:351
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:359
msgid "\"Hello\" command"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:354
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:362
msgid ""
"Use this to specify a different command than the default "
"<code>M110</code> to send to the printer on initial connection to trigger"
" a communication handshake."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:357
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:365
msgid ""
"Commands that are know to run long and hence should suppress "
"communication timeouts from being triggered."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:358
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:366
msgid "Long running commands"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:361
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:369
msgid ""
"Use this to specify the commands known to take a long time to complete "
"without output from your printer and hence might cause timeout issues. "
"Just the G or M code, comma separated."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:364
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:372
msgid ""
"Commands that always require a line number and checksum to be sent with "
"them."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:365
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:373
msgid "Commands that always require a checksum"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:368
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:376
msgid ""
"Use this to specify which commands <strong>always</strong> need to be "
"sent with a checksum. Comma separated list."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:377
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:385
msgid "Error handling"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:379
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:387
msgid "What to do on a firmware error (<code>Error:</code> or <code>!!</code>)"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:382
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390
msgid "Disconnect from the printer"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:385
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:393
msgid "Cancel any ongoing prints but stay connected to the printer"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:386
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:394
msgid ""
"Please note that if you choose this, OctoPrint will still disconnect from"
" the printer in case of <em>fatal</em> errors reported by your firmware "
"(e.g. <code>kill() called</code>, <code>fatal:</code>)."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:390
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:398
msgid ""
"Only choose this if your firmware sends error messages that are not "
"actual errors. Might mask printer issues (even fatal errors!), be "
"careful!"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:399
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:407
msgid "Log position on pause"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:400
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:408
msgid ""
"If you disable this, the <code>pause_position</code> placeholders in your"
" pause/resume GCODE scripts will stay unpopulated! However, pausing speed"
" might improve slightly."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:408
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:416
msgid "Log position on cancel"
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:409
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:417
msgid ""
"If you disable this, the <code>cancel_position</code> placeholders in "
"your cancel GCODE script and the corresponding data in the print recovery"
@@ -4775,11 +4783,11 @@ msgid ""
"slightly."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:414
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:422
msgid "Attempt to abort any blocking heatups on cancel via <code>M108</code>."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:415
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:423
msgid ""
"Uncheck this if your firmware doesn't support <code>M108</code> for "
"aborting blocking heatups!"