diff --git a/Control/brewpi/astirrer.py b/Control/brewpi/astirrer.py index d6f7dcb..d4b67e6 100644 --- a/Control/brewpi/astirrer.py +++ b/Control/brewpi/astirrer.py @@ -12,7 +12,8 @@ class AStirrer(abc.ABC): self.isOn = 1 def log(self, s): - print("{:.2f}: {}".format(time.time(), s)) + now = time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime()) + print("{}: {}".format(now, s)) def process(self): isOn = self.isOn diff --git a/Control/brewpi/controller.py b/Control/brewpi/controller.py index 1686336..31ff17c 100644 --- a/Control/brewpi/controller.py +++ b/Control/brewpi/controller.py @@ -129,8 +129,8 @@ class Controller(TimerListener): self.log("Wait user input!") def log(self, s): - now = time.time() - print("{:.2f}: {}".format(now, s)) + now = time.strftime("%a, %d %b %Y %H:%M:%S", time.localtime()) + print("{}: {}".format(now, s)) def report(self): self.log("Temp SOLL {} °C".format(self.ctrl_theta_soll))