Mercurial > templog
annotate web/config.py @ 124:24e343a3ef93
update sensors config
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 10 Oct 2012 22:50:02 +0800 |
parents | b2d0887fb306 |
children | 6a9419ac8f77 |
rev | line source |
---|---|
82
0f7c005b3f87
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
1 # for server |
0f7c005b3f87
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
2 BTADDR = "00:12:03:27:70:88" |
0f7c005b3f87
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
3 SLEEP_TIME = 5 |
28 | 4 |
37
8da0fdadc8d7
- Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents:
33
diff
changeset
|
5 DATA_PATH = '/home/matt/templog/web/data' |
28 | 6 |
83 | 7 HMAC_KEY = 'a hmac key' # override in local config file |
28 | 8 |
89
51d889ad39a3
main.c : add a delay before turning on uart
Matt Johnston <matt@ucc.asn.au>
parents:
87
diff
changeset
|
9 UPDATE_URL = 'http://evil.ucc.asn.au/~matt/templog/update' |
33 | 10 |
78 | 11 GRAPH_WIDTH = 1200 |
12 GRAPH_HEIGHT = 600 | |
13 ZOOM = 1 | |
29 | 14 |
15 LINE_WIDTH = 2 | |
16 | |
124 | 17 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Fridge", |
78 | 18 'sensor_28 CC C1 1A 03 00 00 D4': "Ambient", |
124 | 19 'sensor_28 49 BC 1A 03 00 00 54': "Wort", |
61 | 20 'sensor_voltage': 'Voltage', |
21 } | |
29 | 22 |
61 | 23 SENSOR_COLOURS = {'Wort': 'e49222', |
78 | 24 'Ambient': '028b3d', |
61 | 25 'Voltage': '7db5d3aa', |
124 | 26 'Fridge': '4c40c8', |
61 | 27 } |
28 | |
31
5e75e08d20ac
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
29
diff
changeset
|
29 |
67 | 30 GRAPH_FONT = "Prociono" |
31 #GRAPH_FONT = "URW Gothic L" | |
69 | 32 |
33 # 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
|
34 GRAPH_LEFT_MARGIN = 63 |
83 | 35 |
36 try: | |
87 | 37 from localconfig import * |
83 | 38 except ImportError: |
39 pass |