annotate web/config.py @ 383:a032051475fe

ui tweaks
author Matt Johnston <matt@ucc.asn.au>
date Wed, 04 Jul 2012 22:36:52 +0800
parents fed6738be1ab
children c7b6da1adb47
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
334
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1
344
ea1779d27641 - Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents: 339
diff changeset
2 DATA_PATH = '/home/matt/templog/web/data'
334
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
3
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
4 HMAC_KEY = 'a hmac key'
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
5
339
449272fc63a3 - Debug log file for server
Matt Johnston <matt@ucc.asn.au>
parents: 337
diff changeset
6 UPDATE_URL = 'https://evil.ucc.asn.au/~matt/templog/update'
449272fc63a3 - Debug log file for server
Matt Johnston <matt@ucc.asn.au>
parents: 337
diff changeset
7
335
1e22eaf93620 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 334
diff changeset
8 GRAPH_WIDTH = 800
337
f575ef538f5d - Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents: 335
diff changeset
9 GRAPH_HEIGHT = 400
383
a032051475fe ui tweaks
Matt Johnston <matt@ucc.asn.au>
parents: 379
diff changeset
10 ZOOM = 1.5
335
1e22eaf93620 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 334
diff changeset
11
1e22eaf93620 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 334
diff changeset
12 LINE_WIDTH = 2
1e22eaf93620 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 334
diff changeset
13
362
8fea6144951b improve graphs
Matt Johnston <matt@ucc.asn.au>
parents: 344
diff changeset
14 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Wort",
383
a032051475fe ui tweaks
Matt Johnston <matt@ucc.asn.au>
parents: 379
diff changeset
15 'sensor_28 CC C1 1A 03 00 00 D4': "Lid",
367
3db118498b97 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 362
diff changeset
16 'sensor_voltage': 'Voltage',
3db118498b97 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 362
diff changeset
17 }
335
1e22eaf93620 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 334
diff changeset
18
367
3db118498b97 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 362
diff changeset
19 SENSOR_COLOURS = {'Wort': 'e49222',
383
a032051475fe ui tweaks
Matt Johnston <matt@ucc.asn.au>
parents: 379
diff changeset
20 'Lid': '028b3d',
367
3db118498b97 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 362
diff changeset
21 'Voltage': '7db5d3aa',
3db118498b97 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 362
diff changeset
22 }
3db118498b97 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 362
diff changeset
23
337
f575ef538f5d - Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents: 335
diff changeset
24
373
1f530c97c053 more graph fiddling
Matt Johnston <matt@ucc.asn.au>
parents: 369
diff changeset
25 GRAPH_FONT = "Prociono"
1f530c97c053 more graph fiddling
Matt Johnston <matt@ucc.asn.au>
parents: 369
diff changeset
26 #GRAPH_FONT = "URW Gothic L"
375
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 373
diff changeset
27
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 373
diff changeset
28 # 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
29 GRAPH_LEFT_MARGIN = 63