Mercurial > templog
view py/config.py @ 219:16a83e2c97a0
sleep on a semaphore so it can start/stop immediately when there's a SIGHUP
from the web UI. makes it seem more magical.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 19 Dec 2014 21:52:50 +0800 |
parents | ccebadce4619 |
children | 251524081924 |
line wrap: on
line source
import os.path FRIDGE_SLEEP = 60 SENSOR_SLEEP = 15 UPLOAD_SLEEP = 80 FRIDGE_DELAY = 600 # 10 mins FRIDGE_WORT_INVALID_TIME = 300 # 5 mins # 12 hours MAX_READINGS = 12*60*60 / SENSOR_SLEEP PARAMS_FILE = os.path.join(os.path.dirname(__file__), 'tempserver.conf') SENSOR_BASE_DIR = '/sys/devices/w1_bus_master1' FRIDGE_GPIO = '/sys/devices/virtual/gpio/gpio17' WORT_NAME = '28-0000042cf4dd' FRIDGE_NAME = '28-0000042cccc4' AMBIENT_NAME = '28-0000042c6dbb' INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp' HMAC_KEY = "a key" #UPDATE_URL = 'https://matt.ucc.asn.au/test/templog/update' UPDATE_URL = 'https://evil.ucc.asn.au/~matt/templog/update' try: from localconfig import * except ImportError: pass