From 3d7cb06446691d08aa6ca48b1b870a0bd369f02c Mon Sep 17 00:00:00 2001 From: David Zingg Date: Sat, 29 Feb 2020 16:08:03 +0100 Subject: [PATCH] #21 Add PowerOFF when print is finished MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit neue Einstellmöglichkeiten anzeigen --- .idea/misc.xml | 2 +- .idea/workspace.xml | 228 +++++++++++++++++- octoprint_mystromswitch/__init__.py | 77 +++++- .../static/js/mystromswitch.js | 41 +++- .../templates/mystromswitch_settings.jinja2 | 31 +++ .../templates/mystromswitch_sidebar.jinja2 | 9 + 6 files changed, 373 insertions(+), 15 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index d3b7f65..cf3bce4 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3a46de4..7b41104 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,8 +2,12 @@ + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + onOffBu + onOffButtonEnabled + onmystromswitchEvent + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Show option to automatic shutdown Octoprint after Print is finished + + {{ _('This setting shows the option to shut Octoprint down and switch your mySwitch off after your Print is finished.') }} + + + +
+
+ + {{ _('This setting shows the option to switch your mySwitch off after your Print is finished') }} +
+
+ +
+ +
+
+ + seconds +
+ {{ _('Delay in seconds after after print is finished') }} +
+
+ diff --git a/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 b/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 index 8fa3af7..13d22f9 100644 --- a/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 +++ b/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2 @@ -2,4 +2,13 @@ + + +