From 79bc4eb897eb73f0de0f1e985c8ecb79c22eabcd Mon Sep 17 00:00:00 2001 From: David Zingg Date: Wed, 20 Nov 2019 21:12:33 +0100 Subject: [PATCH] #6 UI Updates senden und anzeigen --- octoprint_mystromswitch/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/octoprint_mystromswitch/__init__.py b/octoprint_mystromswitch/__init__.py index 7163c63..b65eb39 100644 --- a/octoprint_mystromswitch/__init__.py +++ b/octoprint_mystromswitch/__init__.py @@ -47,6 +47,10 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin, self._timer.cancel() self._logger.info("Canceling Timer") + self._logger.info(self.ip) + self._logger.info(self.intervall) + + self._logger.info("Starting timer.") self._timer = RepeatedTimer(self.intervall, self._timer_task) self._timer.start() @@ -62,7 +66,8 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin, except (requests.exceptions.ConnectionError, ValueError): self._logger.info('Connection Error Host: {}'.format(self.ip)) # Do all Staff here - pass + else: + self._logger.info("Ip is None") def on_after_startup(self): self._logger.info("Hello World!")