From 9854af6f055f2be88841aabf11313d3c192097e7 Mon Sep 17 00:00:00 2001 From: jbruce12000 Date: Sun, 22 May 2022 15:49:27 -0400 Subject: [PATCH] changing default output message --- watcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watcher.py b/watcher.py index 44c7957..7c9ef2c 100755 --- a/watcher.py +++ b/watcher.py @@ -55,7 +55,7 @@ class Watcher(object): if self.has_errors(): self.bad_checks = self.bad_checks + 1 else: - log.info("OK %s" % datetime.datetime.now()) + log.info("OK temp=%0.2f target=%0.2f error=%0.2f" % (self.stats['ispoint'],self.stats['setpoint'],self.stats['err'])) if self.bad_checks >= self.bad_check_limit: msg = "error kiln needs help. %s" % json.dumps(self.stats,indent=2, sort_keys=True) @@ -68,7 +68,7 @@ if __name__ == "__main__": watcher = Watcher( kiln_url = "http://0.0.0.0:8082/api/stats", - slack_hook_url = "you must set this", + slack_hook_url = "you must add this" bad_check_limit = 6, temp_error_limit = 10, sleepfor = 10 )