annotate web/config.py @ 77:959e88c0bdfa

ui tweaks
author Matt Johnston <matt@ucc.asn.au>
date Wed, 04 Jul 2012 22:36:52 +0800
parents 0a8639039453
children c7b6da1adb47
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
1
37
8da0fdadc8d7 - Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents: 33
diff changeset
2 DATA_PATH = '/home/matt/templog/web/data'
28
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
33
024f5571df8c - Debug log file for server
Matt Johnston <matt@ucc.asn.au>
parents: 31
diff changeset
6 UPDATE_URL = 'https://evil.ucc.asn.au/~matt/templog/update'
024f5571df8c - Debug log file for server
Matt Johnston <matt@ucc.asn.au>
parents: 31
diff changeset
7
29
048143905092 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 28
diff changeset
8 GRAPH_WIDTH = 800
31
5e75e08d20ac - Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents: 29
diff changeset
9 GRAPH_HEIGHT = 400
77
959e88c0bdfa ui tweaks
Matt Johnston <matt@ucc.asn.au>
parents: 73
diff changeset
10 ZOOM = 1.5
29
048143905092 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 28
diff changeset
11
048143905092 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 28
diff changeset
12 LINE_WIDTH = 2
048143905092 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 28
diff changeset
13
56
79761ee67134 improve graphs
Matt Johnston <matt@ucc.asn.au>
parents: 37
diff changeset
14 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Wort",
77
959e88c0bdfa ui tweaks
Matt Johnston <matt@ucc.asn.au>
parents: 73
diff changeset
15 'sensor_28 CC C1 1A 03 00 00 D4': "Lid",
61
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
16 'sensor_voltage': 'Voltage',
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
17 }
29
048143905092 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 28
diff changeset
18
61
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
19 SENSOR_COLOURS = {'Wort': 'e49222',
77
959e88c0bdfa ui tweaks
Matt Johnston <matt@ucc.asn.au>
parents: 73
diff changeset
20 'Lid': '028b3d',
61
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
21 'Voltage': '7db5d3aa',
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
22 }
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
23
31
5e75e08d20ac - Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents: 29
diff changeset
24
67
46c43e13a759 more graph fiddling
Matt Johnston <matt@ucc.asn.au>
parents: 63
diff changeset
25 GRAPH_FONT = "Prociono"
46c43e13a759 more graph fiddling
Matt Johnston <matt@ucc.asn.au>
parents: 63
diff changeset
26 #GRAPH_FONT = "URW Gothic L"
69
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 67
diff changeset
27
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 67
diff changeset
28 # determine by zooming in an image viewer
73
0a8639039453 Get rid of axes labels, tidy html
Matt Johnston <matt@ucc.asn.au>
parents: 69
diff changeset
29 GRAPH_LEFT_MARGIN = 63