diff py/tempserver.py @ 259:26eee8591f61

long polling works
author Matt Johnston <matt@ucc.asn.au>
date Tue, 09 Jun 2015 23:27:44 +0800
parents 0a1b642e3086
children 20c89630be6c
line wrap: on
line diff
--- a/py/tempserver.py	Mon Jun 08 22:33:04 2015 +0800
+++ b/py/tempserver.py	Tue Jun 09 23:27:44 2015 +0800
@@ -18,6 +18,7 @@
 import sensor
 import params
 import uploader
+import configwaiter
 
 
 class Tempserver(object):
@@ -141,7 +142,7 @@
     parser = argparse.ArgumentParser()
     parser.add_argument('--hup', action='store_true')
     parser.add_argument('--new', action='store_true')
-    parser.add_argument('--daemon', action='store_true')
+    parser.add_argument('-D', '--daemon', action='store_true')
     parser.add_argument('-d', '--debug', action='store_true')
     parser.add_argument('-t', '--test', action='store_true')
     args = parser.parse_args()