Mercurial > templog
annotate web/config.py @ 417:b73ea78317dc
a bit more logging. make printf floats work
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 06 Oct 2012 23:53:28 +0800 |
parents | 45d96250387c |
children | 24e343a3ef93 |
rev | line source |
---|---|
388
b33045e7e08e
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
1 # for server |
b33045e7e08e
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
2 BTADDR = "00:12:03:27:70:88" |
b33045e7e08e
move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
3 SLEEP_TIME = 5 |
334 | 4 |
344
ea1779d27641
- Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents:
339
diff
changeset
|
5 DATA_PATH = '/home/matt/templog/web/data' |
334 | 6 |
389 | 7 HMAC_KEY = 'a hmac key' # override in local config file |
334 | 8 |
395
f0ddb75bcf04
main.c : add a delay before turning on uart
Matt Johnston <matt@ucc.asn.au>
parents:
393
diff
changeset
|
9 UPDATE_URL = 'http://evil.ucc.asn.au/~matt/templog/update' |
339
449272fc63a3
- Debug log file for server
Matt Johnston <matt@ucc.asn.au>
parents:
337
diff
changeset
|
10 |
384 | 11 GRAPH_WIDTH = 1200 |
12 GRAPH_HEIGHT = 600 | |
13 ZOOM = 1 | |
335 | 14 |
15 LINE_WIDTH = 2 | |
16 | |
362 | 17 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Wort", |
384 | 18 'sensor_28 CC C1 1A 03 00 00 D4': "Ambient", |
19 'sensor_28 49 BC 1A 03 00 00 54': "Other", | |
367 | 20 'sensor_voltage': 'Voltage', |
21 } | |
335 | 22 |
367 | 23 SENSOR_COLOURS = {'Wort': 'e49222', |
384 | 24 'Ambient': '028b3d', |
367 | 25 'Voltage': '7db5d3aa', |
384 | 26 'Other': '78000c', |
367 | 27 } |
28 | |
337
f575ef538f5d
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
29 |
373 | 30 GRAPH_FONT = "Prociono" |
31 #GRAPH_FONT = "URW Gothic L" | |
375 | 32 |
33 # 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
|
34 GRAPH_LEFT_MARGIN = 63 |
389 | 35 |
36 try: | |
393 | 37 from localconfig import * |
389 | 38 except ImportError: |
39 pass |