From 48c283703dbd96d940cbac7fbfa46889244f73a8 Mon Sep 17 00:00:00 2001 From: David Zingg Date: Thu, 16 Jan 2020 17:32:39 +0100 Subject: [PATCH] =?UTF-8?q?#17=20Logs=20aufger=C3=A4umt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/workspace.xml | 20 +++++++++++--------- octoprint_mystromswitch/__init__.py | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 431ca2f..f086de0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,6 +2,7 @@ + @@ -443,6 +444,7 @@ - \ No newline at end of file diff --git a/octoprint_mystromswitch/__init__.py b/octoprint_mystromswitch/__init__.py index 9210b18..04492c9 100644 --- a/octoprint_mystromswitch/__init__.py +++ b/octoprint_mystromswitch/__init__.py @@ -87,7 +87,7 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin, intervall = timestamp - self.lastTimeStamp # Energy in Wh self.energy = self.energy + (intervall * data["power"] / 3600) - self._logger.info( + self._logger.debug( "Energy: " + str(self.energy) + " interval: " + str(intervall) + " power: " + str( data["power"])) self.lastTimeStamp = timestamp