#6 UI Updates senden und anzeigen

logs entfernt
This commit is contained in:
David Zingg 2019-11-20 22:16:57 +01:00
parent 761a92c2f6
commit a8fa2b31fd

View File

@ -56,7 +56,6 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
try: try:
request = requests.get( request = requests.get(
'http://{}/report'.format(self.ip), timeout=1) 'http://{}/report'.format(self.ip), timeout=1)
self._logger.info(request.json())
self._plugin_manager.send_plugin_message(self._identifier, self._plugin_manager.send_plugin_message(self._identifier,
request.json()) request.json())
except (requests.exceptions.ConnectionError, ValueError): except (requests.exceptions.ConnectionError, ValueError):
@ -65,10 +64,10 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin,
self._logger.info("Ip is None") self._logger.info("Ip is None")
def on_after_startup(self): def on_after_startup(self):
self._logger.info("Hello World!") pass
def on_shutdown(self): def on_shutdown(self):
self._logger.info("Hello World!") pass
def on_settings_migrate(self, target, current): def on_settings_migrate(self, target, current):
pass pass