comparison web/config.py @ 244:2071d939e4ff

use base64 data, faster
author Matt Johnston <matt@ucc.asn.au>
date Thu, 21 May 2015 00:00:10 +0800
parents efb5cad2e98b
children 03e540c3ec24
comparison
equal deleted inserted replaced
240:c90190a380c6 244:2071d939e4ff
14 SSH_KEYFILE = '/home/matt/.ssh/somekey' 14 SSH_KEYFILE = '/home/matt/.ssh/somekey'
15 SSH_PROG = 'ssh' 15 SSH_PROG = 'ssh'
16 16
17 UPDATE_URL = 'http://evil.ucc.asn.au/~matt/templog/update' 17 UPDATE_URL = 'http://evil.ucc.asn.au/~matt/templog/update'
18 18
19 GRAPH_WIDTH = 1200 19 GRAPH_WIDTH = 600
20 GRAPH_HEIGHT = 600 20 GRAPH_HEIGHT = 700
21 ZOOM = 1 21 ZOOM = 1
22 # determine by viewing the image
23 GRAPH_LEFT_MARGIN = 65
22 24
23 LINE_WIDTH = 2 25 LINE_WIDTH = 2
24 26
25 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Old Fridge", 27 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Old Fridge",
26 'sensor_28 CC C1 1A 03 00 00 D4': "Old Ambient", 28 'sensor_28 CC C1 1A 03 00 00 D4': "Old Ambient",
48 50
49 51
50 GRAPH_FONT = "Prociono" 52 GRAPH_FONT = "Prociono"
51 #GRAPH_FONT = "URW Gothic L" 53 #GRAPH_FONT = "URW Gothic L"
52 54
53 # determine by zooming in an image viewer
54 GRAPH_LEFT_MARGIN = 63
55 55
56 # 1 hour 56 # 1 hour
57 CSRF_TIMEOUT = 3600 57 CSRF_TIMEOUT = 3600
58 58
59 try: 59 try: