annotate web/config.py @ 175:33ed66a7ea0b

Ignore temp>80
author Matt Johnston <matt@ucc.asn.au>
date Thu, 25 Jul 2013 08:03:30 +0800
parents 632d436d227b
children adbf70d1449f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82
0f7c005b3f87 move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents: 78
diff changeset
1 # for server
0f7c005b3f87 move server config into config.py
Matt Johnston <matt@ucc.asn.au>
parents: 78
diff changeset
2 BTADDR = "00:12:03:27:70:88"
139
94330d90f11f use tcp instead
Matt Johnston <matt@ucc.asn.au>
parents: 131
diff changeset
3 SLEEP_TIME = 60
94330d90f11f use tcp instead
Matt Johnston <matt@ucc.asn.au>
parents: 131
diff changeset
4 SERIAL_HOST='home.example.com'
94330d90f11f use tcp instead
Matt Johnston <matt@ucc.asn.au>
parents: 131
diff changeset
5 SERIAL_PORT=1999
28
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
6
37
8da0fdadc8d7 - Getting there, update has problems
Matt Johnston <matt@ucc.asn.au>
parents: 33
diff changeset
7 DATA_PATH = '/home/matt/templog/web/data'
28
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
8
83
b9179968a272 - fix set_params (strange)
Matt Johnston <matt@ucc.asn.au>
parents: 82
diff changeset
9 HMAC_KEY = 'a hmac key' # override in local config file
28
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
10
89
51d889ad39a3 main.c : add a delay before turning on uart
Matt Johnston <matt@ucc.asn.au>
parents: 87
diff changeset
11 UPDATE_URL = 'http://evil.ucc.asn.au/~matt/templog/update'
33
024f5571df8c - Debug log file for server
Matt Johnston <matt@ucc.asn.au>
parents: 31
diff changeset
12
78
c7b6da1adb47 ui tweaks
Matt Johnston <matt@ucc.asn.au>
parents: 77
diff changeset
13 GRAPH_WIDTH = 1200
c7b6da1adb47 ui tweaks
Matt Johnston <matt@ucc.asn.au>
parents: 77
diff changeset
14 GRAPH_HEIGHT = 600
c7b6da1adb47 ui tweaks
Matt Johnston <matt@ucc.asn.au>
parents: 77
diff changeset
15 ZOOM = 1
29
048143905092 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 28
diff changeset
16
048143905092 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 28
diff changeset
17 LINE_WIDTH = 2
048143905092 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 28
diff changeset
18
164
632d436d227b LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents: 139
diff changeset
19 SENSOR_NAMES = {'sensor_28 CE B2 1A 03 00 00 99': "Old Fridge",
632d436d227b LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents: 139
diff changeset
20 'sensor_28 CC C1 1A 03 00 00 D4': "Old Ambient",
632d436d227b LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents: 139
diff changeset
21 'sensor_28 49 BC 1A 03 00 00 54': "Old Wort",
61
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
22 'sensor_voltage': 'Voltage',
126
6a9419ac8f77 ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents: 124
diff changeset
23 'sensor_fridge_setpoint': 'Setpoint',
131
719d5669ab27 extra logging
Matt Johnston <matt@ucc.asn.au>
parents: 126
diff changeset
24 'sensor_fridge_on': 'Cool',
164
632d436d227b LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents: 139
diff changeset
25 'sensor_28-0000042cf4dd': "Wort",
632d436d227b LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents: 139
diff changeset
26 'sensor_28-0000042cccc4': "Fridge",
632d436d227b LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents: 139
diff changeset
27 'sensor_28-0000042c6dbb': "Ambient",
632d436d227b LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents: 139
diff changeset
28 'sensor_internal': "Processor",
61
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
29 }
29
048143905092 work on web interface
Matt Johnston <matt@ucc.asn.au>
parents: 28
diff changeset
30
61
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
31 SENSOR_COLOURS = {'Wort': 'e49222',
78
c7b6da1adb47 ui tweaks
Matt Johnston <matt@ucc.asn.au>
parents: 77
diff changeset
32 'Ambient': '028b3d',
61
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
33 'Voltage': '7db5d3aa',
124
24e343a3ef93 update sensors config
Matt Johnston <matt@ucc.asn.au>
parents: 96
diff changeset
34 'Fridge': '4c40c8',
126
6a9419ac8f77 ui tweaks, add fridge values
Matt Johnston <matt@ucc.asn.au>
parents: 124
diff changeset
35 'Setpoint': '39c662',
131
719d5669ab27 extra logging
Matt Johnston <matt@ucc.asn.au>
parents: 126
diff changeset
36 'Cool': 'd7cedd',
164
632d436d227b LHS axis scaling easily changeable
Matt Johnston <matt@ucc.asn.au>
parents: 139
diff changeset
37 'Processor': 'bf7a69',
61
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
38 }
62112fc2af21 sort out voltage logging
Matt Johnston <matt@ucc.asn.au>
parents: 56
diff changeset
39
31
5e75e08d20ac - Various fixes for web server, kind of works
Matt Johnston <matt@ucc.asn.au>
parents: 29
diff changeset
40
67
46c43e13a759 more graph fiddling
Matt Johnston <matt@ucc.asn.au>
parents: 63
diff changeset
41 GRAPH_FONT = "Prociono"
46c43e13a759 more graph fiddling
Matt Johnston <matt@ucc.asn.au>
parents: 63
diff changeset
42 #GRAPH_FONT = "URW Gothic L"
69
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 67
diff changeset
43
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 67
diff changeset
44 # 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
45 GRAPH_LEFT_MARGIN = 63
83
b9179968a272 - fix set_params (strange)
Matt Johnston <matt@ucc.asn.au>
parents: 82
diff changeset
46
b9179968a272 - fix set_params (strange)
Matt Johnston <matt@ucc.asn.au>
parents: 82
diff changeset
47 try:
87
81b8c84344c4 - log more details
Matt Johnston <matt@ucc.asn.au>
parents: 84
diff changeset
48 from localconfig import *
83
b9179968a272 - fix set_params (strange)
Matt Johnston <matt@ucc.asn.au>
parents: 82
diff changeset
49 except ImportError:
b9179968a272 - fix set_params (strange)
Matt Johnston <matt@ucc.asn.au>
parents: 82
diff changeset
50 pass