Move admin to static folder, reduce manual mode timeout to 40 seconds

This commit is contained in:
Kelvin Ly 2023-05-16 16:01:08 -04:00
parent e3cc1cd407
commit 6287708d8c
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ class Controller:
self._manual_mode = False self._manual_mode = False
self.manual_on = False self.manual_on = False
self.manual_timeout = 0 self.manual_timeout = 0
self.manual_duration = 120 self.manual_duration = 40
self.humidifier_history = np.zeros(30) self.humidifier_history = np.zeros(30)
self.first_sample = False self.first_sample = False

View File

@ -71,7 +71,7 @@ async function manualModeLoop(auth) {
manual_loop_running = true manual_loop_running = true
try { try {
while (manual_mode) { while (manual_mode) {
await sleep(60*1000) await sleep(30*1000)
if (manual_mode) await manualMode(auth, manual_mode) if (manual_mode) await manualMode(auth, manual_mode)
} }
} finally { } finally {