Mercurial > templog
comparison py/config.py @ 563:dd809548424c
integer division
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 13 Jun 2015 21:56:51 +0800 |
parents | c5f8375b12a2 |
children | 20c89630be6c |
comparison
equal
deleted
inserted
replaced
562:55cae4f27e75 | 563:dd809548424c |
---|---|
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 |