Mercurial > templog
comparison py/config.py @ 160:256505f98c4d
uploader works
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 03 Jan 2013 22:37:33 +0800 |
parents | 0529f3527626 |
children | d73077e8cd67 |
comparison
equal
deleted
inserted
replaced
159:683cfd134f6a | 160:256505f98c4d |
---|---|
1 | 1 |
2 FRIDGE_SLEEP = 10 | 2 FRIDGE_SLEEP = 60 |
3 SENSOR_SLEEP = 15 | 3 SENSOR_SLEEP = 15 |
4 UPLOAD_SLEEP = 300 | 4 UPLOAD_SLEEP = 80 |
5 | 5 |
6 FRIDGE_DELAY = 3 # 10 mins | 6 FRIDGE_DELAY = 600 # 10 mins |
7 FRIDGE_WORT_INVALID_TIME = 300 # 5 mins | 7 FRIDGE_WORT_INVALID_TIME = 300 # 5 mins |
8 | |
9 # 12 hours | |
10 MAX_READINGS = 12*60*60 / SENSOR_SLEEP | |
8 | 11 |
9 PARAMS_FILE = './tempserver.conf' | 12 PARAMS_FILE = './tempserver.conf' |
10 | 13 |
11 SENSOR_BASE_DIR = '/sys/devices/w1_bus_master1' | 14 SENSOR_BASE_DIR = '/sys/devices/w1_bus_master1' |
12 FRIDGE_GPIO = '/sys/devices/virtual/gpio/gpio17' | 15 FRIDGE_GPIO = '/sys/devices/virtual/gpio/gpio17' |
13 WORT_NAME = '28-0000042cf4dd' | 16 WORT_NAME = '28-0000042cf4dd' |
14 FRIDGE_NAME = '28-0000042cccc4' | 17 FRIDGE_NAME = '28-0000042cccc4' |
15 AMBIENT_NAME = '28-0000042c6dbb' | 18 AMBIENT_NAME = '28-0000042c6dbb' |
16 INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp' | 19 INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp' |
20 | |
21 HMAC_KEY = "a key" | |
22 UPDATE_URL = 'https://matt.ucc.asn.au/test/templog/update' | |
23 | |
24 try: | |
25 from localconfig import * | |
26 except ImportError: | |
27 pass |