Mercurial > templog
annotate web/config.py @ 203:11a1b59b0624
Move old stuff to its own place
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 30 Mar 2014 20:21:56 +0800 |
parents | 6dd157a12035 |
children | efb5cad2e98b |
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 |
194 | 7 |
37
8da0fdadc8d7
- Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents:
33
diff
changeset
|
8 DATA_PATH = '/home/matt/templog/web/data' |
28 | 9 |
194 | 10 # local config items |
11 HMAC_KEY = 'a hmac key' | |
12 ALLOWED_USERS = [] # list of sha1 hashes of client ssl keys | |
13 SSH_HOST = 'remotehost' | |
14 SSH_KEYFILE = '/home/matt/.ssh/somekey' | |
15 SSH_PROG = 'ssh' | |
189 | 16 |
89
51d889ad39a3
main.c : add a delay before turning on uart
Matt Johnston <matt@ucc.asn.au>
parents:
87
diff
changeset
|
17 UPDATE_URL = 'http://evil.ucc.asn.au/~matt/templog/update' |
33 | 18 |
78 | 19 GRAPH_WIDTH = 1200 |
20 GRAPH_HEIGHT = 600 | |
21 ZOOM = 1 | |
29 | 22 |
23 LINE_WIDTH = 2 | |
24 | |
164
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
25 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
|
26 '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
|
27 'sensor_28 49 BC 1A 03 00 00 54': "Old Wort", |
61 | 28 'sensor_voltage': 'Voltage', |
126
6a9419ac8f77
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
124
diff
changeset
|
29 'sensor_fridge_setpoint': 'Setpoint', |
131 | 30 'sensor_fridge_on': 'Cool', |
164
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
31 'sensor_28-0000042cf4dd': "Wort", |
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
32 'sensor_28-0000042cccc4': "Fridge", |
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
33 'sensor_28-0000042c6dbb': "Ambient", |
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
34 'sensor_internal': "Processor", |
61 | 35 } |
29 | 36 |
61 | 37 SENSOR_COLOURS = {'Wort': 'e49222', |
78 | 38 'Ambient': '028b3d', |
61 | 39 'Voltage': '7db5d3aa', |
202
6dd157a12035
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
194
diff
changeset
|
40 'Fridge': '93c8ff', |
126
6a9419ac8f77
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
124
diff
changeset
|
41 'Setpoint': '39c662', |
131 | 42 'Cool': 'd7cedd', |
164
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
43 'Processor': 'bf7a69', |
61 | 44 } |
45 | |
31
5e75e08d20ac
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
29
diff
changeset
|
46 |
67 | 47 GRAPH_FONT = "Prociono" |
48 #GRAPH_FONT = "URW Gothic L" | |
69 | 49 |
50 # 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
|
51 GRAPH_LEFT_MARGIN = 63 |
83 | 52 |
185 | 53 # 1 hour |
54 CSRF_TIMEOUT = 3600 | |
55 | |
83 | 56 try: |
87 | 57 from localconfig import * |
83 | 58 except ImportError: |
59 pass |