1 | #!/usr/bin/env python |
---|
2 | # -*- coding: utf-8 -*- |
---|
3 | # |
---|
4 | # Puzzlebox - Brainstorms - Configuration |
---|
5 | # |
---|
6 | # Copyright Steven M. Castellotti (2010) |
---|
7 | # |
---|
8 | # Portions of this code have been previously |
---|
9 | # released under the GNU Pulic License (GPL) version 2 |
---|
10 | # and is Copyright Steven M. Castellotti (2010) |
---|
11 | # For more information please refer to http://www.gnu.org/copyleft/gpl.htm |
---|
12 | # |
---|
13 | # Last Update: 2010.01.28 |
---|
14 | # |
---|
15 | ##################################################################### |
---|
16 | |
---|
17 | ##################################################################### |
---|
18 | # General configuration |
---|
19 | ##################################################################### |
---|
20 | |
---|
21 | DEBUG = 1 |
---|
22 | |
---|
23 | ##################################################################### |
---|
24 | # Logging |
---|
25 | ##################################################################### |
---|
26 | |
---|
27 | LOG_LEVEL_DEBUG = 2 |
---|
28 | LOG_LEVEL_INFO = 1 |
---|
29 | LOG_LEVEL_ERROR = 0 |
---|
30 | LOG_LEVEL_DISABLE = -1 |
---|
31 | |
---|
32 | DEFAULT_LOG_LEVEL = LOG_LEVEL_DEBUG |
---|
33 | DEFAULT_LOGFILE = 'puzzlebox' |
---|
34 | |
---|
35 | LOGFILE_DIR = '/var/log/puzzlebox' |
---|
36 | LOGFILE_SUFFIX = '.log' |
---|
37 | LOGFILE_SUFFIX_DEBUG = '_debug.log' |
---|
38 | LOGFILE_SUFFIX_INFO = '_info.log' |
---|
39 | LOGFILE_SUFFIX_ERROR = '_error.log' |
---|
40 | |
---|
41 | SPLIT_LOGFILES = False |
---|
42 | |
---|
43 | #MONITORING_LOGFILE = 'monitoring' |
---|
44 | #MONITORING_FAILLOG = 'monitoring_failure' |
---|
45 | #XORG_RESET_LOGFILE = 'xorg_reset' |
---|
46 | |
---|
47 | |
---|
48 | ##################################################################### |
---|
49 | # Network addresses |
---|
50 | ##################################################################### |
---|
51 | |
---|
52 | #SERVER_HOST = '127.0.0.1' |
---|
53 | SERVER_HOST = '' |
---|
54 | SERVER_PORT = 8194 |
---|
55 | |
---|
56 | |
---|
57 | ##################################################################### |
---|
58 | # Remote Control configuration |
---|
59 | ##################################################################### |
---|
60 | |
---|
61 | BLUETOOTH_DEVICE = '/dev/rfcomm0' |
---|
62 | MOTORS_MOUNTED_BACKWARDS = True |
---|
63 | MOTOR_PORT_RIGHT = 'a' |
---|
64 | MOTOR_PORT_LEFT = 'b' |
---|
65 | DEFAULT_RC_COMMAND = 'test_drive' |
---|
66 | |
---|
67 | |
---|
68 | ##################################################################### |
---|
69 | # Server configuration |
---|
70 | ##################################################################### |
---|
71 | |
---|
72 | MAX_COMPONENTS = 16 |
---|
73 | |
---|
74 | |
---|
75 | ##################################################################### |
---|
76 | # Client configuration |
---|
77 | ##################################################################### |
---|
78 | |
---|
79 | MAX_CONNECTION_ATTEMPTS = 5 |
---|
80 | HEALTH_CHECK_CONNECTION_ATTEMPTS = 5 |
---|
81 | NO_REPLY_WAIT = 10 # how many seconds before considering a component dead |
---|
82 | |
---|