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