Mercurial > templog
comparison py/config.py @ 264:205809a8872f
integer division
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 13 Jun 2015 21:56:51 +0800 |
parents | 26eee8591f61 |
children | 20c89630be6c |
comparison
equal
deleted
inserted
replaced
263:654caee52c83 | 264:205809a8872f |
---|---|
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_master1' |
16 FRIDGE_GPIO_PIN = 17 | 16 FRIDGE_GPIO_PIN = 17 |