From 6287708d8cece4418e982dfac358b92007973763 Mon Sep 17 00:00:00 2001 From: Kelvin Ly Date: Tue, 16 May 2023 16:01:08 -0400 Subject: [PATCH] Move admin to static folder, reduce manual mode timeout to 40 seconds --- shroom_controller.py | 2 +- dev/admin.htm => static/admin.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename dev/admin.htm => static/admin.html (99%) diff --git a/shroom_controller.py b/shroom_controller.py index f1a3f41..a8c644c 100644 --- a/shroom_controller.py +++ b/shroom_controller.py @@ -127,7 +127,7 @@ class Controller: self._manual_mode = False self.manual_on = False self.manual_timeout = 0 - self.manual_duration = 120 + self.manual_duration = 40 self.humidifier_history = np.zeros(30) self.first_sample = False diff --git a/dev/admin.htm b/static/admin.html similarity index 99% rename from dev/admin.htm rename to static/admin.html index 2ef3c8b..28a8760 100644 --- a/dev/admin.htm +++ b/static/admin.html @@ -71,7 +71,7 @@ async function manualModeLoop(auth) { manual_loop_running = true try { while (manual_mode) { - await sleep(60*1000) + await sleep(30*1000) if (manual_mode) await manualMode(auth, manual_mode) } } finally {