comparison py/params.py @ 162:d73077e8cd67

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 256505f98c4d
children 5d5424acfed0
comparison
equal deleted inserted replaced
161:ad22db765ba1 162:d73077e8cd67
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