annotate py/config.py @ 456:3db3665af2e2

reload config on SIGHUP
author Matt Johnston <matt@ucc.asn.au>
date Thu, 03 Jan 2013 20:12:07 +0800
parents 25bdf95f0e29
children 256505f98c4d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
447
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents: 444
diff changeset
1
448
fe729664a5e6 working better. logging works properly, cleanup fridge.off() happens.
Matt Johnston <matt@ucc.asn.au>
parents: 447
diff changeset
2 FRIDGE_SLEEP = 10
fe729664a5e6 working better. logging works properly, cleanup fridge.off() happens.
Matt Johnston <matt@ucc.asn.au>
parents: 447
diff changeset
3 SENSOR_SLEEP = 15
fe729664a5e6 working better. logging works properly, cleanup fridge.off() happens.
Matt Johnston <matt@ucc.asn.au>
parents: 447
diff changeset
4 UPLOAD_SLEEP = 300
447
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents: 444
diff changeset
5
448
fe729664a5e6 working better. logging works properly, cleanup fridge.off() happens.
Matt Johnston <matt@ucc.asn.au>
parents: 447
diff changeset
6 FRIDGE_DELAY = 3 # 10 mins
fe729664a5e6 working better. logging works properly, cleanup fridge.off() happens.
Matt Johnston <matt@ucc.asn.au>
parents: 447
diff changeset
7 FRIDGE_WORT_INVALID_TIME = 300 # 5 mins
444
c5629d79b4ac few more bits
Matt Johnston <matt@ucc.asn.au>
parents: 443
diff changeset
8
447
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents: 444
diff changeset
9 PARAMS_FILE = './tempserver.conf'
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents: 444
diff changeset
10
8fdf86ea41e7 few updates, seems to run
Matt Johnston <matt@ucc.asn.au>
parents: 444
diff changeset
11 SENSOR_BASE_DIR = '/sys/devices/w1_bus_master1'
448
fe729664a5e6 working better. logging works properly, cleanup fridge.off() happens.
Matt Johnston <matt@ucc.asn.au>
parents: 447
diff changeset
12 FRIDGE_GPIO = '/sys/devices/virtual/gpio/gpio17'
452
25bdf95f0e29 config for sensor IDs
Matt Johnston <matt@ucc.asn.au>
parents: 449
diff changeset
13 WORT_NAME = '28-0000042cf4dd'
25bdf95f0e29 config for sensor IDs
Matt Johnston <matt@ucc.asn.au>
parents: 449
diff changeset
14 FRIDGE_NAME = '28-0000042cccc4'
25bdf95f0e29 config for sensor IDs
Matt Johnston <matt@ucc.asn.au>
parents: 449
diff changeset
15 AMBIENT_NAME = '28-0000042c6dbb'
449
e99559bf188f internal temperature sensor
Matt Johnston <matt@ucc.asn.au>
parents: 448
diff changeset
16 INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp'