diff --git a/src/octoprint/server/api/timelapse.py b/src/octoprint/server/api/timelapse.py index 2c5af7336..2c54a5c86 100644 --- a/src/octoprint/server/api/timelapse.py +++ b/src/octoprint/server/api/timelapse.py @@ -43,8 +43,7 @@ def _config_for_timelapse(timelapse): return dict(type="timed", postRoll=timelapse.post_roll, fps=timelapse.fps, - interval=timelapse.interval, - capturePostRoll=timelapse.capture_post_roll) + interval=timelapse.interval) else: return dict(type="off") @@ -216,14 +215,6 @@ def setTimelapseConfig(): else: return make_response("Invalid value for interval: %d" % interval, 400) - if "capturePostRoll" in data: - try: - capturePostRoll = bool(data["capturePostRoll"]) - except ValueError: - return make_response("Invalid value for capturePostRoll: %r" % data["capturePostRoll"], 400) - else: - config["options"]["capturePostRoll"] = capturePostRoll - if "retractionZHop" in data: try: retractionZHop = float(data["retractionZHop"]) diff --git a/src/octoprint/static/js/app/viewmodels/timelapse.js b/src/octoprint/static/js/app/viewmodels/timelapse.js index 5599f7f12..74c1bf22f 100644 --- a/src/octoprint/static/js/app/viewmodels/timelapse.js +++ b/src/octoprint/static/js/app/viewmodels/timelapse.js @@ -11,7 +11,6 @@ $(function() { self.defaultInterval = 10; self.defaultRetractionZHop = 0; self.defaultMinDelay = 5.0; - self.defaultCapturePostRoll = true; self.timelapseType = ko.observable(undefined); self.timelapseTimedInterval = ko.observable(self.defaultInterval); @@ -19,7 +18,6 @@ $(function() { self.timelapseFps = ko.observable(self.defaultFps); self.timelapseRetractionZHop = ko.observable(self.defaultRetractionZHop); self.timelapseMinDelay = ko.observable(self.defaultMinDelay); - self.timelapseCapturePostRoll = ko.observable(self.defaultCapturePostRoll); self.serverConfig = ko.observable(); @@ -76,9 +74,6 @@ $(function() { self.timelapseMinDelay.subscribe(function() { self.isDirty(true); }); - self.timelapseCapturePostRoll.subscribe(function() { - self.isDirty(true); - }); self.persist.subscribe(function() { self.isDirty(true); }); @@ -176,12 +171,6 @@ $(function() { self.timelapseTimedInterval(self.defaultInterval); } - if (config.type === "timed" && config.capturePostRoll !== undefined){ - self.timelapseCapturePostRoll(config.capturePostRoll); - } else { - self.timelapseCapturePostRoll(self.defaultCapturePostRoll); - } - if (config.type === "zchange" && config.retractionZHop !== undefined && config.retractionZHop > 0) { self.timelapseRetractionZHop(config.retractionZHop); } else { @@ -386,7 +375,6 @@ $(function() { if (self.timelapseType() === "timed") { payload["interval"] = self.timelapseTimedInterval(); - payload["capturePostRoll"] = self.timelapseCapturePostRoll(); } if (self.timelapseType() === "zchange") { diff --git a/src/octoprint/templates/tabs/timelapse.jinja2 b/src/octoprint/templates/tabs/timelapse.jinja2 index 3c2cbf495..c47778de5 100644 --- a/src/octoprint/templates/tabs/timelapse.jinja2 +++ b/src/octoprint/templates/tabs/timelapse.jinja2 @@ -56,16 +56,7 @@ {{ _('sec') }} - {{ _('OctoPrint will take additional pictures to add this many seconds to the end of your rendered timelapse.') }} - - - -