Mercurial > templog
diff web/log.py @ 483:93af94e6bd9d
param editor roughly working
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 04 Feb 2014 23:39:06 +0800 |
parents | 9950ffa9a79b |
children | cbe14244a372 |
line wrap: on
line diff
--- a/web/log.py Tue Feb 04 22:49:16 2014 +0800 +++ b/web/log.py Tue Feb 04 23:39:06 2014 +0800 @@ -260,7 +260,7 @@ 'overshoot_delay': 720, # 12 minutes 'overshoot_factor': 1, # ºC 'disabled': False, - 'nowort': False, + 'nowort': True, 'fridge_range_lower': 3, 'fridge_range_upper': 3, } @@ -274,6 +274,14 @@ kind = 'yesno' else: kind = 'number' + n['amount'] = 0.1; + if k == 'overshoot_delay': + n['unit'] = ' sec' + n['amount'] = 60 + else: + n['unit'] = 'º' n['kind'] = kind + n['title'] = k r.append(n) + return json.dumps(r, sort_keys=True, indent=4)