Mercurial > templog
diff py/config.py @ 305:6087c692d381
turn the fridge off if both sensors are broken
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 24 Jul 2019 23:24:51 +0800 |
parents | 9e2181e3ce6d |
children |
line wrap: on
line diff
--- a/py/config.py Wed Jul 24 23:21:33 2019 +0800 +++ b/py/config.py Wed Jul 24 23:24:51 2019 +0800 @@ -5,7 +5,12 @@ UPLOAD_SLEEP = 83 # nice and prime FRIDGE_DELAY = 600 # 10 mins, to avoid fridge damage from frequent cycling off/on -FRIDGE_WORT_INVALID_TIME = 300 # 5 mins + +# time to wait before just using fridge for fallback +FRIDGE_WORT_INVALID_TIME = 180 # 3 minutes +# time to wait before turning it off if neither sensors work. +# must be > FRIDGE_WORT_INVALID_TIME +ALL_INVALID_TIME = 480 # 8 minutes # 12 hours of "offline" readings stored MAX_READINGS = 12*60*60 // SENSOR_SLEEP