From d20b6e70de301596fbd997d8b6b2283f57cb388c Mon Sep 17 00:00:00 2001 From: Kestin Goforth Date: Thu, 26 Jan 2023 03:21:36 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Remove=20old=20webcam=20from=20c?= =?UTF-8?q?orewizard=20(#4717)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/corewizard/subwizards.py | 19 --------- .../templates/corewizard_webcam_wizard.jinja2 | 42 ------------------- 2 files changed, 61 deletions(-) delete mode 100644 src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2 diff --git a/src/octoprint/plugins/corewizard/subwizards.py b/src/octoprint/plugins/corewizard/subwizards.py index 42b9ee04e..1aab390c7 100644 --- a/src/octoprint/plugins/corewizard/subwizards.py +++ b/src/octoprint/plugins/corewizard/subwizards.py @@ -37,25 +37,6 @@ class ServerCommandsSubwizard: return gettext("Server Commands") -# noinspection PyUnresolvedReferences,PyMethodMayBeStatic -class WebcamSubwizard: - def _is_webcam_wizard_firstrunonly(self): - return True - - def _is_webcam_wizard_required(self): - webcam_snapshot_url = self._settings.global_get(["webcam", "snapshot"]) - webcam_stream_url = self._settings.global_get(["webcam", "stream"]) - ffmpeg_path = self._settings.global_get(["webcam", "ffmpeg"]) - - return not (webcam_snapshot_url and webcam_stream_url and ffmpeg_path) - - def _get_webcam_wizard_details(self): - return {"required": self._is_webcam_wizard_required()} - - def _get_webcam_wizard_name(self): - return gettext("Webcam & Timelapse") - - # noinspection PyUnresolvedReferences,PyMethodMayBeStatic class AclSubwizard: def _is_acl_wizard_firstrunonly(self): diff --git a/src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2 b/src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2 deleted file mode 100644 index 79342dcd7..000000000 --- a/src/octoprint/plugins/corewizard/templates/corewizard_webcam_wizard.jinja2 +++ /dev/null @@ -1,42 +0,0 @@ -

{{ _('Webcam & Timelapse Recordings') }}

- -{% trans %}

- If you have a webcam, you may now configure it here. -

{% endtrans %} - -

{{ _('Webcam') }}

- -{% trans %}

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

- It may be -

-

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

{% endtrans %} - -
- {% include "snippets/settings/webcam/webcamStreamUrl.jinja2" %} - {% include "snippets/settings/webcam/webcamSnapshotUrl.jinja2" %} -
- -

{{ _('Timelapse Recordings') }}

- -{% trans %}

- To render the snapshots into timelapse recordings, OctoPrint also needs to - know the correct path to FFMPEG. -

{% endtrans %} - -
- {% include "snippets/settings/webcam/ffmpegPath.jinja2" %} -