Mercurial > templog
annotate web/config.py @ 276:2630995fb973
Change colours
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 17 Nov 2015 22:24:28 +0800 |
parents | 03e540c3ec24 |
children | 35ae717d48f0 |
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 |
244 | 19 GRAPH_WIDTH = 600 |
20 GRAPH_HEIGHT = 700 | |
78 | 21 ZOOM = 1 |
244 | 22 # determine by viewing the image |
23 GRAPH_LEFT_MARGIN = 65 | |
29 | 24 |
25 LINE_WIDTH = 2 | |
26 | |
164
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
27 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
|
28 '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
|
29 'sensor_28 49 BC 1A 03 00 00 54': "Old Wort", |
61 | 30 'sensor_voltage': 'Voltage', |
126
6a9419ac8f77
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
124
diff
changeset
|
31 'sensor_fridge_setpoint': 'Setpoint', |
131 | 32 'sensor_fridge_on': 'Cool', |
164
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
33 'sensor_28-0000042cf4dd': "Wort", |
276 | 34 'sensor_28-0000042cccc4': "OldFridge", |
35 'sensor_28-0000042c6dbb': "Fridge", | |
164
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
36 'sensor_internal': "Processor", |
61 | 37 } |
29 | 38 |
227
efb5cad2e98b
Only print interesting legend labels
Matt Johnston <matt@ucc.asn.au>
parents:
202
diff
changeset
|
39 # print legend for these ones |
efb5cad2e98b
Only print interesting legend labels
Matt Johnston <matt@ucc.asn.au>
parents:
202
diff
changeset
|
40 LEGEND_NAMES = set(("Wort", "Fridge", "Ambient", "Setpoint")) |
efb5cad2e98b
Only print interesting legend labels
Matt Johnston <matt@ucc.asn.au>
parents:
202
diff
changeset
|
41 |
61 | 42 SENSOR_COLOURS = {'Wort': 'e49222', |
78 | 43 'Ambient': '028b3d', |
61 | 44 'Voltage': '7db5d3aa', |
202
6dd157a12035
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
194
diff
changeset
|
45 'Fridge': '93c8ff', |
126
6a9419ac8f77
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
124
diff
changeset
|
46 'Setpoint': '39c662', |
131 | 47 'Cool': 'd7cedd', |
164
632d436d227b
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
139
diff
changeset
|
48 'Processor': 'bf7a69', |
61 | 49 } |
50 | |
31
5e75e08d20ac
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
29
diff
changeset
|
51 |
67 | 52 GRAPH_FONT = "Prociono" |
53 #GRAPH_FONT = "URW Gothic L" | |
69 | 54 |
83 | 55 |
185 | 56 # 1 hour |
57 CSRF_TIMEOUT = 3600 | |
58 | |
258
03e540c3ec24
fix server side long polling
Matt Johnston <matt@ucc.asn.au>
parents:
244
diff
changeset
|
59 LONG_POLL_TIMEOUT = 500 |
03e540c3ec24
fix server side long polling
Matt Johnston <matt@ucc.asn.au>
parents:
244
diff
changeset
|
60 |
83 | 61 try: |
87 | 62 from localconfig import * |
83 | 63 except ImportError: |
64 pass |