Mercurial > templog
annotate web/config.py @ 468:00dea0afb6bb
move requirements to py directory
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 08 Mar 2013 20:49:22 +0800 |
parents | c3926e7cfb0c |
children | adbf70d1449f |
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 | |
464
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
19 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Old Fridge", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
20 'sensor_28 CC C1 1A 03 00 00 D4': "Old Ambient", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
21 'sensor_28 49 BC 1A 03 00 00 54': "Old 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', |
464
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
25 'sensor_28-0000042cf4dd': "Wort", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
26 'sensor_28-0000042cccc4': "Fridge", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
27 'sensor_28-0000042c6dbb': "Ambient", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
28 'sensor_internal': "Processor", |
367 | 29 } |
335 | 30 |
367 | 31 SENSOR_COLOURS = {'Wort': 'e49222', |
384 | 32 'Ambient': '028b3d', |
367 | 33 'Voltage': '7db5d3aa', |
423 | 34 'Fridge': '4c40c8', |
425
eb685e1afcbb
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
423
diff
changeset
|
35 'Setpoint': '39c662', |
431 | 36 'Cool': 'd7cedd', |
464
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
37 'Processor': 'bf7a69', |
367 | 38 } |
39 | |
337
f575ef538f5d
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
40 |
373 | 41 GRAPH_FONT = "Prociono" |
42 #GRAPH_FONT = "URW Gothic L" | |
375 | 43 |
44 # 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
|
45 GRAPH_LEFT_MARGIN = 63 |
389 | 46 |
47 try: | |
393 | 48 from localconfig import * |
389 | 49 except ImportError: |
50 pass |