Mercurial > templog
annotate web/config.py @ 82:0f7c005b3f87
move server config into config.py
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 11 Jul 2012 22:50:23 +0800 |
parents | c7b6da1adb47 |
children | b9179968a272 |
rev | line source |
---|---|
82
0f7c005b3f87
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
1 |
0f7c005b3f87
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
2 # for server |
0f7c005b3f87
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
3 BTADDR = "00:12:03:27:70:88" |
0f7c005b3f87
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
4 SLEEP_TIME = 5 |
28 | 5 |
37
8da0fdadc8d7
- Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents:
33
diff
changeset
|
6 DATA_PATH = '/home/matt/templog/web/data' |
28 | 7 |
8 HMAC_KEY = 'a hmac key' | |
9 | |
33 | 10 UPDATE_URL = 'https://evil.ucc.asn.au/~matt/templog/update' |
11 | |
78 | 12 GRAPH_WIDTH = 1200 |
13 GRAPH_HEIGHT = 600 | |
14 ZOOM = 1 | |
29 | 15 |
16 LINE_WIDTH = 2 | |
17 | |
56 | 18 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Wort", |
78 | 19 'sensor_28 CC C1 1A 03 00 00 D4': "Ambient", |
20 'sensor_28 49 BC 1A 03 00 00 54': "Other", | |
61 | 21 'sensor_voltage': 'Voltage', |
22 } | |
29 | 23 |
61 | 24 SENSOR_COLOURS = {'Wort': 'e49222', |
78 | 25 'Ambient': '028b3d', |
61 | 26 'Voltage': '7db5d3aa', |
78 | 27 'Other': '78000c', |
61 | 28 } |
29 | |
31
5e75e08d20ac
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
29
diff
changeset
|
30 |
67 | 31 GRAPH_FONT = "Prociono" |
32 #GRAPH_FONT = "URW Gothic L" | |
69 | 33 |
34 # determine by zooming in an image viewer | |
73
0a8639039453
Get rid of axes labels, tidy html
Matt Johnston <matt@ucc.asn.au>
parents:
69
diff
changeset
|
35 GRAPH_LEFT_MARGIN = 63 |