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)