Mercurial > templog
comparison py/config.py @ 253:0a1b642e3086
long polling config updates
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 08 Jun 2015 22:29:46 +0800 |
parents | d9e81a563923 |
children | 26eee8591f61 |
comparison
equal
deleted
inserted
replaced
251:b6079cb0c665 | 253:0a1b642e3086 |
---|---|
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 #UPDATE_URL = 'https://matt.ucc.asn.au/test/templog/update' | 23 SERVER_URL = 'https://evil.ucc.asn.au/~matt/templog/update' |
24 UPDATE_URL = 'https://evil.ucc.asn.au/~matt/templog/update' | 24 UPDATE_URL = "%s/update" % SERVER_URL |
25 SETTINGS_URL = "%s/update" % SERVER_URL | |
25 | 26 |
26 # site-local values overridden in localconfig, eg WORT_NAME, HMAC_KEY | 27 # site-local values overridden in localconfig, eg WORT_NAME, HMAC_KEY |
27 try: | 28 try: |
28 from localconfig import * | 29 from localconfig import * |
29 except ImportError: | 30 except ImportError: |