Mercurial > templog
annotate web/config.py @ 488:4792e9910cde
watcher script
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 09 Feb 2014 11:41:13 +0800 |
parents | d68af9e84485 |
children | 4fa8cbf31065 |
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 |
344
ea1779d27641
- Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents:
339
diff
changeset
|
7 DATA_PATH = '/home/matt/templog/web/data' |
334 | 8 |
389 | 9 HMAC_KEY = 'a hmac key' # override in local config file |
334 | 10 |
488 | 11 ALLOWED_USERS = [] # local config. list of sha1 hashes of client ssl keys |
12 | |
395
f0ddb75bcf04
main.c : add a delay before turning on uart
Matt Johnston <matt@ucc.asn.au>
parents:
393
diff
changeset
|
13 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
|
14 |
384 | 15 GRAPH_WIDTH = 1200 |
16 GRAPH_HEIGHT = 600 | |
17 ZOOM = 1 | |
335 | 18 |
19 LINE_WIDTH = 2 | |
20 | |
464
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
21 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
|
22 '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
|
23 'sensor_28 49 BC 1A 03 00 00 54': "Old Wort", |
367 | 24 'sensor_voltage': 'Voltage', |
425
eb685e1afcbb
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
423
diff
changeset
|
25 'sensor_fridge_setpoint': 'Setpoint', |
431 | 26 'sensor_fridge_on': 'Cool', |
464
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
27 'sensor_28-0000042cf4dd': "Wort", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
28 'sensor_28-0000042cccc4': "Fridge", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
29 'sensor_28-0000042c6dbb': "Ambient", |
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
30 'sensor_internal': "Processor", |
367 | 31 } |
335 | 32 |
367 | 33 SENSOR_COLOURS = {'Wort': 'e49222', |
384 | 34 'Ambient': '028b3d', |
367 | 35 'Voltage': '7db5d3aa', |
423 | 36 'Fridge': '4c40c8', |
425
eb685e1afcbb
ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents:
423
diff
changeset
|
37 'Setpoint': '39c662', |
431 | 38 'Cool': 'd7cedd', |
464
c3926e7cfb0c
LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents:
438
diff
changeset
|
39 'Processor': 'bf7a69', |
367 | 40 } |
41 | |
337
f575ef538f5d
- Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents:
335
diff
changeset
|
42 |
373 | 43 GRAPH_FONT = "Prociono" |
44 #GRAPH_FONT = "URW Gothic L" | |
375 | 45 |
46 # determine by zooming in an image viewer | |
379
fed6738be1ab
Get rid of axes labels, tidy html
Matt Johnston <matt@ucc.asn.au>
parents:
375
diff
changeset
|
47 GRAPH_LEFT_MARGIN = 63 |
389 | 48 |
485 | 49 # 1 hour |
50 CSRF_TIMEOUT = 3600 | |
51 | |
389 | 52 try: |
393 | 53 from localconfig import * |
389 | 54 except ImportError: |
55 pass |