comparison py/config.py @ 556:c5f8375b12a2

long polling works
author Matt Johnston <matt@ucc.asn.au>
date Tue, 09 Jun 2015 23:27:44 +0800
parents 9499bd2f344b
children 205809a8872f
comparison
equal deleted inserted replaced
555:9dea75bd765f 556:c5f8375b12a2
18 FRIDGE_NAME = '28-0000042cccc4' 18 FRIDGE_NAME = '28-0000042cccc4'
19 AMBIENT_NAME = '28-0000042c6dbb' 19 AMBIENT_NAME = '28-0000042c6dbb'
20 INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp' 20 INTERNAL_TEMPERATURE = '/sys/class/thermal/thermal_zone0/temp'
21 21
22 HMAC_KEY = "a key" 22 HMAC_KEY = "a key"
23 SERVER_URL = 'https://evil.ucc.asn.au/~matt/templog/update' 23 SERVER_URL = 'https://evil.ucc.asn.au/~matt/templog'
24 UPDATE_URL = "%s/update" % SERVER_URL 24 UPDATE_URL = "%s/update" % SERVER_URL
25 SETTINGS_URL = "%s/update" % SERVER_URL 25 SETTINGS_URL = "%s/get_settings" % SERVER_URL
26 26
27 # site-local values overridden in localconfig, eg WORT_NAME, HMAC_KEY 27 # site-local values overridden in localconfig, eg WORT_NAME, HMAC_KEY
28 try: 28 try:
29 from localconfig import * 29 from localconfig import *
30 except ImportError: 30 except ImportError: