refactor: Remove MemoryMonitor import and instance from scheduler setup
This commit is contained in:
parent
81137a4c5e
commit
39a4952426
5
main.py
5
main.py
@ -27,7 +27,7 @@ from scripts.air_conditioning import ACController
|
||||
from scripts.heating import HeaterController
|
||||
from scripts.web_server import TempWebServer
|
||||
from scripts.scheduler import ScheduleMonitor # NEW: Import scheduler for time-based temp changes
|
||||
from scripts.memory_check import MemoryMonitor, check_memory_once # NEW: Import memory checker
|
||||
from scripts.memory_check import check_memory_once # Just the function
|
||||
|
||||
# ===== START: Configuration Loading =====
|
||||
# Load saved settings from config.json file on Pico
|
||||
@ -249,9 +249,6 @@ monitors = [
|
||||
|
||||
# Schedule monitor: Changes temp targets based on time of day
|
||||
schedule_monitor,
|
||||
|
||||
# Memory monitor: Checks RAM usage every 5 minutes
|
||||
MemoryMonitor(interval=300), # 300 seconds = 5 minutes
|
||||
|
||||
# AC monitor: Automatically turns AC on/off based on temperature
|
||||
ac_monitor,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user