Mercurial > templog
annotate web/config.py @ 432:b90e9c695cfd
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 14 Oct 2012 21:52:00 +0800 |
parents | ae12b30352f0 |
children | 94330d90f11f |
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 | |
423 | 17 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Fridge", |
384 | 18 'sensor_28 CC C1 1A 03 00 00 D4': "Ambient", |
423 | 19 'sensor_28 49 BC 1A 03 00 00 54': "Wort", |
367 | 20 'sensor_voltage': 'Voltage', |
425
eb685e1afcbb
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
423
diff
changeset
|
21 'sensor_fridge_setpoint': 'Setpoint', |
431 | 22 'sensor_fridge_on': 'Cool', |
367 | 23 } |
335 | 24 |
367 | 25 SENSOR_COLOURS = {'Wort': 'e49222', |
384 | 26 'Ambient': '028b3d', |
367 | 27 'Voltage': '7db5d3aa', |
423 | 28 'Fridge': '4c40c8', |
425
eb685e1afcbb
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
423
diff
changeset
|
29 'Setpoint': '39c662', |
431 | 30 'Cool': 'd7cedd', |
367 | 31 } |
32 | |
337
f575ef538f5d
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
33 |
373 | 34 GRAPH_FONT = "Prociono" |
35 #GRAPH_FONT = "URW Gothic L" | |
375 | 36 |
37 # 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
|
38 GRAPH_LEFT_MARGIN = 63 |
389 | 39 |
40 try: | |
393 | 41 from localconfig import * |
389 | 42 except ImportError: |
43 pass |