comparison py/params.py @ 461:1eb68df9f8ab

Add daemon mode with locking, add "disabled" parameter
author Matt Johnston <matt@ucc.asn.au>
date Fri, 11 Jan 2013 23:41:56 +0800
parents c34083c078db
children 5d5424acfed0
comparison
equal deleted inserted replaced
460:bd01dca5f5b4 461:1eb68df9f8ab
12 _FIELD_DEFAULTS = { 12 _FIELD_DEFAULTS = {
13 'fridge_setpoint': 16, 13 'fridge_setpoint': 16,
14 'fridge_difference': 0.2, 14 'fridge_difference': 0.2,
15 'overshoot_delay': 720, # 12 minutes 15 'overshoot_delay': 720, # 12 minutes
16 'overshoot_factor': 1, # ºC 16 'overshoot_factor': 1, # ºC
17 'disabled': False,
17 } 18 }
18 19
19 class Params(dict): 20 class Params(dict):
20 class Error(Exception): 21 class Error(Exception):
21 pass 22 pass