Mercurial > templog
annotate web/config.py @ 564:59cb8449ef97
Limit log
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 13 Jun 2015 22:49:14 +0800 |
parents | d563e14da813 |
children | 2630995fb973 |
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 |
492 | 7 |
344
ea1779d27641
- Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents:
339
diff
changeset
|
8 DATA_PATH = '/home/matt/templog/web/data' |
334 | 9 |
492 | 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' | |
488 | 16 |
395
f0ddb75bcf04
main.c : add a delay before turning on uart
Matt Johnston <matt@ucc.asn.au>
parents:
393
diff
changeset
|
17 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
|
18 |
542 | 19 GRAPH_WIDTH = 600 |
20 GRAPH_HEIGHT = 700 | |
384 | 21 ZOOM = 1 |
542 | 22 # determine by viewing the image |
23 GRAPH_LEFT_MARGIN = 65 | |
335 | 24 |
25 LINE_WIDTH = 2 | |
26 | |
464
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
27 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
|
28 '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
|
29 'sensor_28 49 BC 1A 03 00 00 54': "Old Wort", |
367 | 30 'sensor_voltage': 'Voltage', |
425
eb685e1afcbb
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
423
diff
changeset
|
31 'sensor_fridge_setpoint': 'Setpoint', |
431 | 32 'sensor_fridge_on': 'Cool', |
464
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
33 'sensor_28-0000042cf4dd': "Wort", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
34 'sensor_28-0000042cccc4': "Fridge", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
35 'sensor_28-0000042c6dbb': "Ambient", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
36 'sensor_internal': "Processor", |
367 | 37 } |
335 | 38 |
526
1f25c9d97111
Only print interesting legend labels
Matt Johnston <matt@ucc.asn.au>
parents:
501
diff
changeset
|
39 # print legend for these ones |
1f25c9d97111
Only print interesting legend labels
Matt Johnston <matt@ucc.asn.au>
parents:
501
diff
changeset
|
40 LEGEND_NAMES = set(("Wort", "Fridge", "Ambient", "Setpoint")) |
1f25c9d97111
Only print interesting legend labels
Matt Johnston <matt@ucc.asn.au>
parents:
501
diff
changeset
|
41 |
367 | 42 SENSOR_COLOURS = {'Wort': 'e49222', |
384 | 43 'Ambient': '028b3d', |
367 | 44 'Voltage': '7db5d3aa', |
501
236e5d131b3e
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
492
diff
changeset
|
45 'Fridge': '93c8ff', |
425
eb685e1afcbb
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
423
diff
changeset
|
46 'Setpoint': '39c662', |
431 | 47 'Cool': 'd7cedd', |
464
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
48 'Processor': 'bf7a69', |
367 | 49 } |
50 | |
337
f575ef538f5d
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
51 |
373 | 52 GRAPH_FONT = "Prociono" |
53 #GRAPH_FONT = "URW Gothic L" | |
375 | 54 |
389 | 55 |
485 | 56 # 1 hour |
57 CSRF_TIMEOUT = 3600 | |
58 | |
559
d563e14da813
fix server side long polling
Matt Johnston <matt@ucc.asn.au>
parents:
542
diff
changeset
|
59 LONG_POLL_TIMEOUT = 500 |
d563e14da813
fix server side long polling
Matt Johnston <matt@ucc.asn.au>
parents:
542
diff
changeset
|
60 |
389 | 61 try: |
393 | 62 from localconfig import * |
389 | 63 except ImportError: |
64 pass |