comparison py/config.py @ 299:358c50004679

merge
author Matt Johnston <matt@ucc.asn.au>
date Mon, 27 Feb 2017 23:20:07 +0800
parents d3ebdb1d6a55
children 9e2181e3ce6d
comparison
equal deleted inserted replaced
286:61269311ed3d 299:358c50004679
6 6
7 FRIDGE_DELAY = 600 # 10 mins, to avoid fridge damage from frequent cycling off/on 7 FRIDGE_DELAY = 600 # 10 mins, to avoid fridge damage from frequent cycling off/on
8 FRIDGE_WORT_INVALID_TIME = 300 # 5 mins 8 FRIDGE_WORT_INVALID_TIME = 300 # 5 mins
9 9
10 # 12 hours of "offline" readings stored 10 # 12 hours of "offline" readings stored
11 MAX_READINGS = 12*60*60 / SENSOR_SLEEP 11 MAX_READINGS = 12*60*60 // SENSOR_SLEEP
12 12
13 PARAMS_FILE = os.path.join(os.path.dirname(__file__), 'tempserver.conf') 13 PARAMS_FILE = os.path.join(os.path.dirname(__file__), 'tempserver.conf')
14 14
15 SENSOR_BASE_DIR = '/sys/devices/w1_bus_master1' 15 SENSOR_BASE_DIR = '/sys/devices/w1_bus_master2'
16 FRIDGE_GPIO_PIN = 17 16 FRIDGE_GPIO_PIN = 17
17 WORT_NAME = '28-0000042cf4dd' 17 #WORT_NAME = '28-0000042cf4dd'
18 FRIDGE_NAME = '28-0000042cccc4' 18 #FRIDGE_NAME = '28-0000042cccc4'
19 AMBIENT_NAME = '28-0000042c6dbb' 19 #AMBIENT_NAME = '28-0000042c6dbb'
20 AMBIENT_NAME = 'missingambient'
21 FRIDGE_NAME = '28-0000042c6dbb'
22 WORT_NAME = '28-0000042cccc4' # was fridge
20 INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp' 23 INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp'
21 24
22 HMAC_KEY = "a key" 25 HMAC_KEY = "a key"
23 SERVER_URL = 'https://evil.ucc.asn.au/~matt/templog' 26 SERVER_URL = 'https://evil.ucc.asn.au/~matt/templog'
24 UPDATE_URL = "%s/update" % SERVER_URL 27 UPDATE_URL = "%s/update" % SERVER_URL