Refactor main.py: update TemperatureMonitor initialization to use check_interval and report_interval for improved monitoring
This commit is contained in:
parent
07d04a6084
commit
1753966cf7
3
main.py
3
main.py
@ -35,7 +35,8 @@ for key, sensor in sensors.items():
|
|||||||
TemperatureMonitor(
|
TemperatureMonitor(
|
||||||
sensor=sensor,
|
sensor=sensor,
|
||||||
label=config['label'],
|
label=config['label'],
|
||||||
interval=300, # 5 minutes
|
check_interval=10, # Check temp every 10 seconds
|
||||||
|
report_interval=30, # Report/log every 30 seconds
|
||||||
alert_high=config['alert_high'],
|
alert_high=config['alert_high'],
|
||||||
alert_low=config['alert_low'],
|
alert_low=config['alert_low'],
|
||||||
log_file="/temp_logs.csv",
|
log_file="/temp_logs.csv",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user