Mercurial > templog
comparison 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 |
comparison
equal
deleted
inserted
replaced
304:02aff9ff8d24 | 305:6087c692d381 |
---|---|
3 FRIDGE_SLEEP = 60 # this value works. may affect the algorithm | 3 FRIDGE_SLEEP = 60 # this value works. may affect the algorithm |
4 SENSOR_SLEEP = 15 # same for this. | 4 SENSOR_SLEEP = 15 # same for this. |
5 UPLOAD_SLEEP = 83 # nice and prime | 5 UPLOAD_SLEEP = 83 # nice and prime |
6 | 6 |
7 FRIDGE_DELAY = 600 # 10 mins, to avoid fridge damage from frequent cycling off/on | 7 FRIDGE_DELAY = 600 # 10 mins, to avoid fridge damage from frequent cycling off/on |
8 FRIDGE_WORT_INVALID_TIME = 300 # 5 mins | 8 |
9 # time to wait before just using fridge for fallback | |
10 FRIDGE_WORT_INVALID_TIME = 180 # 3 minutes | |
11 # time to wait before turning it off if neither sensors work. | |
12 # must be > FRIDGE_WORT_INVALID_TIME | |
13 ALL_INVALID_TIME = 480 # 8 minutes | |
9 | 14 |
10 # 12 hours of "offline" readings stored | 15 # 12 hours of "offline" readings stored |
11 MAX_READINGS = 12*60*60 // SENSOR_SLEEP | 16 MAX_READINGS = 12*60*60 // SENSOR_SLEEP |
12 | 17 |
13 PARAMS_FILE = os.path.join(os.path.dirname(__file__), 'tempserver.conf') | 18 PARAMS_FILE = os.path.join(os.path.dirname(__file__), 'tempserver.conf') |