comparison web/config.py @ 301:47c259458160

merge
author Matt Johnston <matt@ucc.asn.au>
date Sat, 06 Jul 2019 19:17:21 +0800
parents f7261dd970da
children
comparison
equal deleted inserted replaced
300:65a6b56fd18a 301:47c259458160
7 7
8 DATA_PATH = '/home/matt/templog/web/data' 8 DATA_PATH = '/home/matt/templog/web/data'
9 9
10 # local config items 10 # local config items
11 HMAC_KEY = 'a hmac key' 11 HMAC_KEY = 'a hmac key'
12 ALLOWED_USERS = [] # list of sha1 hashes of client ssl keys 12 ALLOWED_USERS = [] # list of hashes allowed, as provided by the Email link
13 SSH_HOST = 'remotehost'
14 SSH_KEYFILE = '/home/matt/.ssh/somekey'
15 SSH_PROG = 'ssh'
16 13
17 UPDATE_URL = 'http://evil.ucc.asn.au/~matt/templog/update' 14 UPDATE_URL = 'http://evil.ucc.asn.au/~matt/templog/update'
15
16 EMAIL = "[email protected]"
18 17
19 GRAPH_WIDTH = 600 18 GRAPH_WIDTH = 600
20 GRAPH_HEIGHT = 700 19 GRAPH_HEIGHT = 700
21 ZOOM = 1 20 ZOOM = 1
22 # determine by viewing the image 21 # determine by viewing the image
23 GRAPH_LEFT_MARGIN = 65 22 GRAPH_LEFT_MARGIN = 65
24 23
25 LINE_WIDTH = 2 24 LINE_WIDTH = 2
26 25
27 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Old Fridge", 26 SENSOR_NAMES = {
27 'sensor_28 CE B2 1A 03 00 00 99': "Old Fridge",
28 'sensor_28 CC C1 1A 03 00 00 D4': "Old Ambient", 28 'sensor_28 CC C1 1A 03 00 00 D4': "Old Ambient",
29 'sensor_28 49 BC 1A 03 00 00 54': "Old Wort", 29 'sensor_28 49 BC 1A 03 00 00 54': "Old Wort",
30 'sensor_voltage': 'Voltage', 30 'sensor_voltage': 'Voltage',
31 'sensor_fridge_setpoint': 'Setpoint', 31 'sensor_fridge_setpoint': 'Setpoint',
32 'sensor_fridge_on': 'Cool', 32 'sensor_fridge_on': 'Cool',
33 'sensor_28-0000042cf4dd': "Wort", 33 'sensor_28-0000042cf4dd': "New Old Wort",
34 'sensor_28-0000042d36cc': "Wort",
34 'sensor_28-0000042cccc4': "OldFridge", 35 'sensor_28-0000042cccc4': "OldFridge",
35 'sensor_28-0000042c6dbb': "Fridge", 36 'sensor_28-0000042c6dbb': "New Old Fridge",
37 'sensor_28-0000068922df': "Fridge",
36 'sensor_internal': "Processor", 38 'sensor_internal': "Processor",
37 } 39 }
38 40
39 # print legend for these ones 41 # print legend for these ones
40 LEGEND_NAMES = set(("Wort", "Fridge", "Ambient", "Setpoint")) 42 LEGEND_NAMES = set(("Wort", "Fridge", "Ambient", "Setpoint"))