From 041fe67773770a691ee2ae5134cb954cadec930b Mon Sep 17 00:00:00 2001 From: David Zingg Date: Sun, 28 Jun 2020 14:23:18 +0200 Subject: [PATCH] #21 Add PowerOFF when print is finished --- .idea/workspace.xml | 18 ++++++++---------- octoprint_mystromswitch/__init__.py | 1 + 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ea840e1..7b7a040 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,9 +2,7 @@ - - diff --git a/octoprint_mystromswitch/__init__.py b/octoprint_mystromswitch/__init__.py index 1715efb..8fdf159 100644 --- a/octoprint_mystromswitch/__init__.py +++ b/octoprint_mystromswitch/__init__.py @@ -6,6 +6,7 @@ import requests import ssl import time from octoprint.util import RepeatedTimer +from octoprint.events import eventManager, Events class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,