Production intervals: weather 60s, sensors 30s
This commit is contained in:
parent
94fa7db000
commit
1b2c0b51c4
|
|
@ -377,7 +377,7 @@ async function updateWeather() {
|
|||
} catch(e) {}
|
||||
}
|
||||
updateWeather();
|
||||
setInterval(updateWeather, 86400000); // once per day
|
||||
setInterval(updateWeather, 60000); // every minute
|
||||
|
||||
// === ROOM SENSORS (7pm - 8am only) ===
|
||||
const sensorEl = document.getElementById('room-sensors');
|
||||
|
|
@ -413,7 +413,7 @@ async function updateSensors() {
|
|||
}
|
||||
|
||||
updateSensors();
|
||||
setInterval(updateSensors, 5000);
|
||||
setInterval(updateSensors, 30000);
|
||||
|
||||
// === PULSE-OX CAMERA (7pm - 8am only) ===
|
||||
const camImg = document.getElementById('pulse-cam');
|
||||
|
|
|
|||
Loading…
Reference in New Issue