Mercurial > templog
annotate web/config.py @ 450:cea8ec101c6b
lcd works
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 18 Dec 2012 22:20:47 +0800 |
parents | 2607e4f322cf |
children | 632d436d227b |
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" |
438 | 3 SLEEP_TIME = 60 |
4 SERIAL_HOST='home.example.com' | |
5 SERIAL_PORT=1999 | |
334 | 6 |
344
ea1779d27641
- Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents:
339
diff
changeset
|
7 DATA_PATH = '/home/matt/templog/web/data' |
334 | 8 |
389 | 9 HMAC_KEY = 'a hmac key' # override in local config file |
334 | 10 |
395
f0ddb75bcf04
main.c : add a delay before turning on uart
Matt Johnston <matt@ucc.asn.au>
parents:
393
diff
changeset
|
11 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
|
12 |
384 | 13 GRAPH_WIDTH = 1200 |
14 GRAPH_HEIGHT = 600 | |
15 ZOOM = 1 | |
335 | 16 |
17 LINE_WIDTH = 2 | |
18 | |
423 | 19 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Fridge", |
384 | 20 'sensor_28 CC C1 1A 03 00 00 D4': "Ambient", |
423 | 21 'sensor_28 49 BC 1A 03 00 00 54': "Wort", |
367 | 22 'sensor_voltage': 'Voltage', |
425
eb685e1afcbb
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
423
diff
changeset
|
23 'sensor_fridge_setpoint': 'Setpoint', |
431 | 24 'sensor_fridge_on': 'Cool', |
367 | 25 } |
335 | 26 |
367 | 27 SENSOR_COLOURS = {'Wort': 'e49222', |
384 | 28 'Ambient': '028b3d', |
367 | 29 'Voltage': '7db5d3aa', |
423 | 30 'Fridge': '4c40c8', |
425
eb685e1afcbb
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
423
diff
changeset
|
31 'Setpoint': '39c662', |
431 | 32 'Cool': 'd7cedd', |
367 | 33 } |
34 | |
337
f575ef538f5d
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
35 |
373 | 36 GRAPH_FONT = "Prociono" |
37 #GRAPH_FONT = "URW Gothic L" | |
375 | 38 |
39 # 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
|
40 GRAPH_LEFT_MARGIN = 63 |
389 | 41 |
42 try: | |
393 | 43 from localconfig import * |
389 | 44 except ImportError: |
45 pass |