Mercurial > templog
annotate web/config.py @ 390:c0ffbfaac1c7
fix localconfig import
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 11 Jul 2012 23:38:36 +0800 |
parents | 5e3880342390 |
children | 81b8c84344c4 |
rev | line source |
---|---|
388
b33045e7e08e
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
1 |
b33045e7e08e
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
2 # for server |
b33045e7e08e
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
3 BTADDR = "00:12:03:27:70:88" |
b33045e7e08e
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
4 SLEEP_TIME = 5 |
334 | 5 |
344
ea1779d27641
- Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents:
339
diff
changeset
|
6 DATA_PATH = '/home/matt/templog/web/data' |
334 | 7 |
389 | 8 HMAC_KEY = 'a hmac key' # override in local config file |
334 | 9 |
339
449272fc63a3
- Debug log file for server
Matt Johnston <matt@ucc.asn.au>
parents:
337
diff
changeset
|
10 UPDATE_URL = 'https://evil.ucc.asn.au/~matt/templog/update' |
449272fc63a3
- Debug log file for server
Matt Johnston <matt@ucc.asn.au>
parents:
337
diff
changeset
|
11 |
384 | 12 GRAPH_WIDTH = 1200 |
13 GRAPH_HEIGHT = 600 | |
14 ZOOM = 1 | |
335 | 15 |
16 LINE_WIDTH = 2 | |
17 | |
362 | 18 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Wort", |
384 | 19 'sensor_28 CC C1 1A 03 00 00 D4': "Ambient", |
20 'sensor_28 49 BC 1A 03 00 00 54': "Other", | |
367 | 21 'sensor_voltage': 'Voltage', |
22 } | |
335 | 23 |
367 | 24 SENSOR_COLOURS = {'Wort': 'e49222', |
384 | 25 'Ambient': '028b3d', |
367 | 26 'Voltage': '7db5d3aa', |
384 | 27 'Other': '78000c', |
367 | 28 } |
29 | |
337
f575ef538f5d
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
30 |
373 | 31 GRAPH_FONT = "Prociono" |
32 #GRAPH_FONT = "URW Gothic L" | |
375 | 33 |
34 # determine by zooming in an image viewer | |
379
fed6738be1ab
Get rid of axes labels, tidy html
Matt Johnston <matt@ucc.asn.au>
parents:
375
diff
changeset
|
35 GRAPH_LEFT_MARGIN = 63 |
389 | 36 |
37 try: | |
38 import localconfig | |
39 g = globals() | |
390 | 40 for k in dir(localconfig): |
389 | 41 if k in g: |
390 | 42 g[k] = localconfig.__dict__[k] |
389 | 43 except ImportError: |
44 pass |