Mercurial > templog
annotate web/config.py @ 193:063ff856f9c5
working
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 11 Feb 2014 23:48:03 +0800 |
parents | 101c66da848d |
children | 4fa8cbf31065 |
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" |
139 | 3 SLEEP_TIME = 60 |
4 SERIAL_HOST='home.example.com' | |
5 SERIAL_PORT=1999 | |
28 | 6 |
37
8da0fdadc8d7
- Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents:
33
diff
changeset
|
7 DATA_PATH = '/home/matt/templog/web/data' |
28 | 8 |
83 | 9 HMAC_KEY = 'a hmac key' # override in local config file |
28 | 10 |
189 | 11 ALLOWED_USERS = [] # local config. list of sha1 hashes of client ssl keys |
12 | |
89
51d889ad39a3
main.c : add a delay before turning on uart
Matt Johnston <matt@ucc.asn.au>
parents:
87
diff
changeset
|
13 UPDATE_URL = 'http://evil.ucc.asn.au/~matt/templog/update' |
33 | 14 |
78 | 15 GRAPH_WIDTH = 1200 |
16 GRAPH_HEIGHT = 600 | |
17 ZOOM = 1 | |
29 | 18 |
19 LINE_WIDTH = 2 | |
20 | |
164
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
21 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Old Fridge", |
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
22 'sensor_28 CC C1 1A 03 00 00 D4': "Old Ambient", |
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
23 'sensor_28 49 BC 1A 03 00 00 54': "Old Wort", |
61 | 24 'sensor_voltage': 'Voltage', |
126
6a9419ac8f77
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
124
diff
changeset
|
25 'sensor_fridge_setpoint': 'Setpoint', |
131 | 26 'sensor_fridge_on': 'Cool', |
164
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
27 'sensor_28-0000042cf4dd': "Wort", |
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
28 'sensor_28-0000042cccc4': "Fridge", |
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
29 'sensor_28-0000042c6dbb': "Ambient", |
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
30 'sensor_internal': "Processor", |
61 | 31 } |
29 | 32 |
61 | 33 SENSOR_COLOURS = {'Wort': 'e49222', |
78 | 34 'Ambient': '028b3d', |
61 | 35 'Voltage': '7db5d3aa', |
124 | 36 'Fridge': '4c40c8', |
126
6a9419ac8f77
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
124
diff
changeset
|
37 'Setpoint': '39c662', |
131 | 38 'Cool': 'd7cedd', |
164
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
39 'Processor': 'bf7a69', |
61 | 40 } |
41 | |
31
5e75e08d20ac
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
29
diff
changeset
|
42 |
67 | 43 GRAPH_FONT = "Prociono" |
44 #GRAPH_FONT = "URW Gothic L" | |
69 | 45 |
46 # 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
|
47 GRAPH_LEFT_MARGIN = 63 |
83 | 48 |
185 | 49 # 1 hour |
50 CSRF_TIMEOUT = 3600 | |
51 | |
83 | 52 try: |
87 | 53 from localconfig import * |
83 | 54 except ImportError: |
55 pass |