diff web/log.py @ 183:177f616893e6

param editor roughly working
author Matt Johnston <matt@ucc.asn.au>
date Tue, 04 Feb 2014 23:39:06 +0800
parents e731c0d30b09
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)