Mercurial > templog
comparison py/config.py @ 465:a40f30fad8f6
Merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 21 Jan 2013 07:25:52 +0800 |
parents | 1eb68df9f8ab |
children | ccebadce4619 |
comparison
equal
deleted
inserted
replaced
464:c3926e7cfb0c | 465:a40f30fad8f6 |
---|---|
1 import os.path | |
1 | 2 |
2 FRIDGE_SLEEP = 10 | 3 FRIDGE_SLEEP = 60 |
3 SENSOR_SLEEP = 15 | 4 SENSOR_SLEEP = 15 |
4 UPLOAD_SLEEP = 300 | 5 UPLOAD_SLEEP = 80 |
5 | 6 |
6 FRIDGE_DELAY = 3 # 10 mins | 7 FRIDGE_DELAY = 600 # 10 mins |
7 FRIDGE_WORT_INVALID_TIME = 300 # 5 mins | 8 FRIDGE_WORT_INVALID_TIME = 300 # 5 mins |
8 | 9 |
9 PARAMS_FILE = './tempserver.conf' | 10 # 12 hours |
11 MAX_READINGS = 12*60*60 / SENSOR_SLEEP | |
12 | |
13 PARAMS_FILE = os.path.join(os.path.dirname(__file__), 'tempserver.conf') | |
10 | 14 |
11 SENSOR_BASE_DIR = '/sys/devices/w1_bus_master1' | 15 SENSOR_BASE_DIR = '/sys/devices/w1_bus_master1' |
12 FRIDGE_GPIO = '/sys/devices/virtual/gpio/gpio17' | 16 FRIDGE_GPIO = '/sys/devices/virtual/gpio/gpio17' |
13 WORT_NAME = '28-0000042cf4dd' | 17 WORT_NAME = '28-0000042cf4dd' |
14 FRIDGE_NAME = '28-0000042cccc4' | 18 FRIDGE_NAME = '28-0000042cccc4' |
15 AMBIENT_NAME = '28-0000042c6dbb' | 19 AMBIENT_NAME = '28-0000042c6dbb' |
16 INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp' | 20 INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp' |
21 | |
22 HMAC_KEY = "a key" | |
23 UPDATE_URL = 'https://matt.ucc.asn.au/test/templog/update' | |
24 | |
25 try: | |
26 from localconfig import * | |
27 except ImportError: | |
28 pass |