Mercurial > templog
diff py/config.py @ 161:ad22db765ba1
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 10 Jan 2013 19:46:32 +0800 |
parents | 256505f98c4d |
children | d73077e8cd67 |
line wrap: on
line diff
--- a/py/config.py Tue Jan 08 22:31:12 2013 +0800 +++ b/py/config.py Thu Jan 10 19:46:32 2013 +0800 @@ -1,11 +1,14 @@ -FRIDGE_SLEEP = 10 +FRIDGE_SLEEP = 60 SENSOR_SLEEP = 15 -UPLOAD_SLEEP = 300 +UPLOAD_SLEEP = 80 -FRIDGE_DELAY = 3 # 10 mins +FRIDGE_DELAY = 600 # 10 mins FRIDGE_WORT_INVALID_TIME = 300 # 5 mins +# 12 hours +MAX_READINGS = 12*60*60 / SENSOR_SLEEP + PARAMS_FILE = './tempserver.conf' SENSOR_BASE_DIR = '/sys/devices/w1_bus_master1' @@ -14,3 +17,11 @@ FRIDGE_NAME = '28-0000042cccc4' AMBIENT_NAME = '28-0000042c6dbb' INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp' + +HMAC_KEY = "a key" +UPDATE_URL = 'https://matt.ucc.asn.au/test/templog/update' + +try: + from localconfig import * +except ImportError: + pass