From 54d03830e31a8a0e3c257f440fdffb2fb5ca97e0 Mon Sep 17 00:00:00 2001 From: John Pickup Date: Mon, 26 Jun 2023 20:06:20 +0100 Subject: [PATCH] . --- kiln-controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiln-controller.py b/kiln-controller.py index d7a23f9..12700d3 100755 --- a/kiln-controller.py +++ b/kiln-controller.py @@ -56,7 +56,7 @@ def index(): @app.get('/api/stats') def handle_api(): log.info("/api/stats command received") - return json.dumps(oven) + return json.dumps(oven.get_state()) # if hasattr(oven,'pid'): # if hasattr(oven.pid,'pidstats'): # log.info(oven.pid)