#6 UI Updates senden und anzeigen

This commit is contained in:
David Zingg 2019-11-20 21:12:33 +01:00
parent 1cab3457a7
commit 79bc4eb897

View File

@ -47,6 +47,10 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
self._timer.cancel() self._timer.cancel()
self._logger.info("Canceling Timer") self._logger.info("Canceling Timer")
self._logger.info(self.ip)
self._logger.info(self.intervall)
self._logger.info("Starting timer.") self._logger.info("Starting timer.")
self._timer = RepeatedTimer(self.intervall, self._timer_task) self._timer = RepeatedTimer(self.intervall, self._timer_task)
self._timer.start() self._timer.start()
@ -62,7 +66,8 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
except (requests.exceptions.ConnectionError, ValueError): except (requests.exceptions.ConnectionError, ValueError):
self._logger.info('Connection Error Host: {}'.format(self.ip)) self._logger.info('Connection Error Host: {}'.format(self.ip))
# Do all Staff here # Do all Staff here
pass else:
self._logger.info("Ip is None")
def on_after_startup(self): def on_after_startup(self):
self._logger.info("Hello World!") self._logger.info("Hello World!")