Move admin to static folder, reduce manual mode timeout to 40 seconds
This commit is contained in:
parent
e3cc1cd407
commit
6287708d8c
|
@ -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
|
||||||
|
|
|
@ -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 {
|
Loading…
Reference in New Issue