Merge branch 'master' into maintenance

This commit is contained in:
Gina Häußge committed 2020-11-30 16:06:11 +01:00
commit 3dc683ea99
8 files changed
+181 -129

No files matched your search

+1 -1
View File
@@ -68,4 +68,4 @@ thanks to everyone who contributed!
* Sven Mueller
* Ulrich Kempken
and 2107 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)!
and 2116 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)!
+2 -112
View File
@@ -354,84 +354,22 @@ Data model
==========
The data model on the settings API mostly reflects the contents of
:ref:`config.yaml <sec-configuration-config_yaml>`. The settings tree
returned by the API contains the following fields, which are directly
mapped from the same fields in ``config.yaml`` unless otherwise noted:
:ref:`config.yaml <sec-configuration-config_yaml>`, which are directly
mapped, with the following exceptions:
.. list-table::
:header-rows: 1
* - Field
- Notes
* - ``api.enabled``
-
* - ``api.key``
- Only maps to ``api.key`` in ``config.yaml`` if request is sent with admin rights, set to ``n/a`` otherwise.
Starting with OctoPrint 1.3.3 setting this field via :ref:`the API <sec-api-settings-save>` is not possible,
only :ref:`regenerating it <sec-api-settings-generateapikey>` is supported. Setting a custom value is only
possible through `config.yaml`.
* - ``api.allowCrossOrigin``
-
* - ``appearance.name``
-
* - ``appearance.color``
-
* - ``appearance.colorTransparent``
-
* - ``appearance.defaultLanguage``
-
* - ``appearance.showFahrenheitAlso``
-
* - ``feature.gcodeViewer``
- Maps to ``gcodeViewer.enabled`` in ``config.yaml``
* - ``feature.sizeThreshold``
- Maps to ``gcodeViewer.sizeThreshold`` in ``config.yaml``
* - ``feature.mobileSizeThreshold``
- Maps to ``gcodeViewer.mobileSizeThreshold`` in ``config.yaml``
* - ``feature.temperatureGraph``
-
* - ``feature.waitForStart``
-
* - ``feature.alwaysSendChecksum``
-
* - ``feature.neverSendChecksum``
-
* - ``feature.sdSupport``
-
* - ``feature.sdRelativePath``
-
* - ``feature.sdAlwaysAvailable``
-
* - ``feature.swallowOkAfterResend``
-
* - ``feature.repetierTargetTemp``
-
* - ``feature.externalHeatupDetection``
-
* - ``feature.keyboardControl``
-
* - ``feature.pollWatched``
-
* - ``feature.ignoreIdenticalResends``
-
* - ``feature.modelSizeDetection``
-
* - ``feature.firmwareDetection``
-
* - ``feature.printCancelConfirmation``
-
* - ``feature.blockWhileDwelling``
-
* - ``folder.uploads``
-
* - ``folder.timelapse``
-
* - ``folder.timelapseTmp``
- Maps to ``folder.timelapse_tmp`` in ``config.yaml``
* - ``folder.logs``
-
* - ``folder.watched``
-
* - ``plugins``
- Plugin settings as available from ``config.yaml`` and :class:`~octoprint.plugin.SettingsPlugin` implementations
* - ``printer.defaultExtrusionLength``
@@ -446,8 +384,6 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted:
- Available serial ports
* - ``serial.baudrateOptions``
- Available serial baudrates
* - ``serial.autoconnect``
-
* - ``serial.timeoutConnection``
- Maps to ``serial.timeout.connection`` in ``config.yaml``
* - ``serial.timeoutDetection``
@@ -460,50 +396,18 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted:
- Maps to ``serial.timeout.temperatureTargetSet`` in ``config.yaml``
* - ``serial.timeoutSdStatus``
- Maps to ``serial.timeout.sdStatus`` in ``config.yaml``
* - ``serial.log``
-
* - ``serial.additionalPorts``
-
* - ``serial.additionalBaudrates``
-
* - ``serial.longRunningCommands``
-
* - ``serial.checksumRequiringCommands``
-
* - ``serial.helloCommand``
-
* - ``serial.ignoreErrorsFromFirmware``
-
* - ``serial.disconnectOnErrors``
-
* - ``serial.triggerOkForM29``
-
* - ``serial.supportResendsWIthoutOk``
-
* - ``serial.maxTimeoutsIdle``
- Maps to ``serial.maxCommunicationTimeouts.idle`` in ``config.yaml``
* - ``serial.maxTimeoutsPrinting``
- Maps to ``serial.maxCommunicationTimeouts.printing`` in ``config.yaml``
* - ``serial.maxTimeoutsLong``
- Maps to ``serial.maxCommunicationTimeouts.long`` in ``config.yaml``
* - ``server.commands.systemShutdownCommand``
-
* - ``server.commands.systemRestartCommand``
-
* - ``server.commands.serverRestartCommand``
-
* - ``server.diskspace.warning``
-
* - ``server.diskspace.critical``
-
* - ``system.actions``
- Whole subtree taken from ``config.yaml``
* - ``system.events``
- Whole subtree taken from ``config.yaml``
* - ``temperature.profiles``
- Whole subtree taken from ``config.yaml``
* - ``temperature.cutoff``
-
* - ``terminalFilters``
- Whole subtree taken from ``config.yaml``
* - ``webcam.streamUrl``
@@ -512,17 +416,3 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted:
- Maps to ``webcam.snapshot`` in ``config.yaml``
* - ``webcam.ffmpegPath``
- Maps to ``webcam.ffmpeg`` in ``config.yaml``
* - ``webcam.bitrate``
-
* - ``webcam.ffmpegThreads``
-
* - ``webcam.ffmpegVideoCodec``
-
* - ``webcam.watermark``
-
* - ``webcam.flipH``
-
* - ``webcam.flipV``
-
* - ``webcam.rotate90``
-
@@ -21,10 +21,10 @@ from octoprint.util.version import (
)
SENTRY_URL_SERVER = (
"https://e08a2195f1844c17a99a03dd04cc127f@o118517.ingest.sentry.io/1373987"
"https://53f015cb6c3046088019baed6ff5b653@o118517.ingest.sentry.io/1373987"
)
SENTRY_URL_COREUI = (
"https://def48ce0f05340f0b30d5f4e981f8686@o118517.ingest.sentry.io/1374096"
"https://993cc8f6848b4ccca8c66be5769ccb50@o118517.ingest.sentry.io/1374096"
)
SETTINGS_DEFAULTS = {
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2020-11-17 14:24+0100\n"
"PO-Revision-Date: 2020-11-17 14:27+0100\n"
"POT-Creation-Date: 2020-11-30 14:27+0100\n"
"PO-Revision-Date: 2020-11-30 14:29+0100\n"
"Last-Translator: Gina Häußge <osd@foosel.net>\n"
"Language: de\n"
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n"
@@ -4699,10 +4699,12 @@ msgid "\n"
" It's also recommended to create a user account without admin access and use that for third\n"
" party clients where possible.\n"
" "
msgstr "Der globale API Key sollte am Besten nicht mehr verwendet werden. Es ist ein einzelner Key, der vollen Adminzugriff auf die gesamte OctoPrint Instanz gibt.\n"
"Stattdessen solltest du individuelle Application Keys für Third-Party-Clients erstellen. Dadurch bekommen diese die Zugriffsrechte des jeweiligen für die Erstellung \n"
"des Keys genutzten Nutzeraccounts und du kannst einem Client auch einfach wieder den Zugriff entziehen, oder für alle anderen den Key ändern zu müssen.\n"
"Es ist außerdem empfohlen, einen Useraccount ohne Adminzugriff zu erstellen und so möglich für Third-Party-Clients zu verwenden."
msgstr "\n"
" Der globale API Key sollte am Besten nicht mehr verwendet werden. Es ist ein einzelner Key, der vollen Adminzugriff auf die gesamte OctoPrint Instanz gibt.\n"
" Stattdessen solltest du individuelle Application Keys für Third-Party-Clients erstellen. Dadurch bekommen diese die Zugriffsrechte des jeweiligen für die Erstellung \n"
" des Keys genutzten Nutzeraccounts und du kannst einem Client auch einfach wieder den Zugriff entziehen ohne für alle anderen den Key ändern zu müssen.\n"
" Es ist außerdem empfohlen, einen Useraccount ohne Adminzugriff zu erstellen und so möglich für Third-Party-Clients zu verwenden.\n"
" "
#: src/octoprint/templates/dialogs/settings/api.jinja2:23
msgid "Access Application Keys"
@@ -7965,3 +7967,82 @@ msgstr "Zeitrafferaufnahme rendern"
#~ msgid "Resend requests"
#~ msgstr "Resendrequests"
#~ msgid ""
#~ "\n"
#~ " The global API key "
#~ "should best not be used anymore. "
#~ "It's one single key that gives "
#~ "full admin access to\n"
#~ " your whole OctoPrint instance."
#~ " Instead of using it you should "
#~ "create individual Application Keys for\n"
#~ " your third party clients. "
#~ "That way they get permissions matching"
#~ " the user account used for key\n"
#~ ""
#~ " creation and you can "
#~ "also revoke access to one app "
#~ "without having to change the keys "
#~ "for all other apps.\n"
#~ " It's also recommended to "
#~ "create a user account without admin "
#~ "access and use that for third\n"
#~ " party clients where possible.\n"
#~ " "
#~ msgstr ""
#~ "Der globale API Key sollte am "
#~ "Besten nicht mehr verwendet werden. Es"
#~ " ist ein einzelner Key, der vollen"
#~ " Adminzugriff auf die gesamte OctoPrint "
#~ "Instanz gibt.\n"
#~ "Stattdessen solltest du individuelle "
#~ "Application Keys für Third-Party-Clients"
#~ " erstellen. Dadurch bekommen diese die "
#~ "Zugriffsrechte des jeweiligen für die "
#~ "Erstellung \n"
#~ "des Keys genutzten Nutzeraccounts und du"
#~ " kannst einem Client auch einfach "
#~ "wieder den Zugriff entziehen, oder für"
#~ " alle anderen den Key ändern zu "
#~ "müssen.\n"
#~ "Es ist außerdem empfohlen, einen "
#~ "Useraccount ohne Adminzugriff zu erstellen "
#~ "und so möglich für Third-Party-"
#~ "Clients zu verwenden."
#~ msgid "Export"
#~ msgstr "Port"
#~ msgid "Offline after error"
#~ msgstr ""
#~ msgid "Starting to send file to SD"
#~ msgstr ""
#~ msgid ""
#~ "\n"
#~ " It is recommended to no"
#~ " longer use the global API key "
#~ "as it's one single key that gives"
#~ " full admin access\n"
#~ " to your whole OctoPrint "
#~ "instance. <strong>It will be removed in"
#~ " OctoPrint 2.0</strong>.\n"
#~ " Instead of using the "
#~ "global key you should create individual"
#~ " Application Keys for\n"
#~ " your third party clients. "
#~ "That way they get permissions matching"
#~ " the user account used for key\n"
#~ ""
#~ " creation and you can "
#~ "also revoke access to one app "
#~ "without having to change the keys "
#~ "for all other apps.\n"
#~ " It's also recommended to "
#~ "create a user account without admin "
#~ "access and use that for third\n"
#~ " party clients where possible.\n"
#~ " "
#~ msgstr ""
Binary file not shown.
+87 -6
View File
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2020-11-17 14:24+0100\n"
"PO-Revision-Date: 2020-11-17 14:27+0100\n"
"POT-Creation-Date: 2020-11-30 14:27+0100\n"
"PO-Revision-Date: 2020-11-30 14:29+0100\n"
"Last-Translator: Gina Häußge <osd@foosel.net>\n"
"Language: de\n"
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n"
@@ -4699,10 +4699,12 @@ msgid "\n"
" It's also recommended to create a user account without admin access and use that for third\n"
" party clients where possible.\n"
" "
msgstr "Der globale API Key sollte am Besten nicht mehr verwendet werden. Es ist ein einzelner Key, der vollen Adminzugriff auf die gesamte OctoPrint Instanz gibt.\n"
"Stattdessen solltest du individuelle Application Keys für Third-Party-Clients erstellen. Dadurch bekommen diese die Zugriffsrechte des jeweiligen für die Erstellung \n"
"des Keys genutzten Nutzeraccounts und du kannst einem Client auch einfach wieder den Zugriff entziehen, oder für alle anderen den Key ändern zu müssen.\n"
"Es ist außerdem empfohlen, einen Useraccount ohne Adminzugriff zu erstellen und so möglich für Third-Party-Clients zu verwenden."
msgstr "\n"
" Der globale API Key sollte am Besten nicht mehr verwendet werden. Es ist ein einzelner Key, der vollen Adminzugriff auf die gesamte OctoPrint Instanz gibt.\n"
" Stattdessen solltest du individuelle Application Keys für Third-Party-Clients erstellen. Dadurch bekommen diese die Zugriffsrechte des jeweiligen für die Erstellung \n"
" des Keys genutzten Nutzeraccounts und du kannst einem Client auch einfach wieder den Zugriff entziehen ohne für alle anderen den Key ändern zu müssen.\n"
" Es ist außerdem empfohlen, einen Useraccount ohne Adminzugriff zu erstellen und so möglich für Third-Party-Clients zu verwenden.\n"
" "
#: src/octoprint/templates/dialogs/settings/api.jinja2:23
msgid "Access Application Keys"
@@ -7965,3 +7967,82 @@ msgstr "Zeitrafferaufnahme rendern"
#~ msgid "Resend requests"
#~ msgstr "Resendrequests"
#~ msgid ""
#~ "\n"
#~ " The global API key "
#~ "should best not be used anymore. "
#~ "It's one single key that gives "
#~ "full admin access to\n"
#~ " your whole OctoPrint instance."
#~ " Instead of using it you should "
#~ "create individual Application Keys for\n"
#~ " your third party clients. "
#~ "That way they get permissions matching"
#~ " the user account used for key\n"
#~ ""
#~ " creation and you can "
#~ "also revoke access to one app "
#~ "without having to change the keys "
#~ "for all other apps.\n"
#~ " It's also recommended to "
#~ "create a user account without admin "
#~ "access and use that for third\n"
#~ " party clients where possible.\n"
#~ " "
#~ msgstr ""
#~ "Der globale API Key sollte am "
#~ "Besten nicht mehr verwendet werden. Es"
#~ " ist ein einzelner Key, der vollen"
#~ " Adminzugriff auf die gesamte OctoPrint "
#~ "Instanz gibt.\n"
#~ "Stattdessen solltest du individuelle "
#~ "Application Keys für Third-Party-Clients"
#~ " erstellen. Dadurch bekommen diese die "
#~ "Zugriffsrechte des jeweiligen für die "
#~ "Erstellung \n"
#~ "des Keys genutzten Nutzeraccounts und du"
#~ " kannst einem Client auch einfach "
#~ "wieder den Zugriff entziehen, oder für"
#~ " alle anderen den Key ändern zu "
#~ "müssen.\n"
#~ "Es ist außerdem empfohlen, einen "
#~ "Useraccount ohne Adminzugriff zu erstellen "
#~ "und so möglich für Third-Party-"
#~ "Clients zu verwenden."
#~ msgid "Export"
#~ msgstr "Port"
#~ msgid "Offline after error"
#~ msgstr ""
#~ msgid "Starting to send file to SD"
#~ msgstr ""
#~ msgid ""
#~ "\n"
#~ " It is recommended to no"
#~ " longer use the global API key "
#~ "as it's one single key that gives"
#~ " full admin access\n"
#~ " to your whole OctoPrint "
#~ "instance. <strong>It will be removed in"
#~ " OctoPrint 2.0</strong>.\n"
#~ " Instead of using the "
#~ "global key you should create individual"
#~ " Application Keys for\n"
#~ " your third party clients. "
#~ "That way they get permissions matching"
#~ " the user account used for key\n"
#~ ""
#~ " creation and you can "
#~ "also revoke access to one app "
#~ "without having to change the keys "
#~ "for all other apps.\n"
#~ " It's also recommended to "
#~ "create a user account without admin "
#~ "access and use that for third\n"
#~ " party clients where possible.\n"
#~ " "
#~ msgstr ""
+2 -2
View File
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.5.0rc2.dev19+gf2ed1ebc7\n"
"Project-Id-Version: OctoPrint 1.5.0rc4.dev4+g308ac450e.dirty\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2020-11-17 14:24+0100\n"
"POT-Creation-Date: 2020-11-30 14:27+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"