source: rc/puzzlebox_brainstorms_configuration.py @ 5

Last change on this file since 5 was 5, checked in by sc, 13 years ago

rc:

  • modified to use configuration module

server:

  • test_drive function added

configuration:

  • initial checkin

client:

  • initial checkin
File size: 3.1 KB
Line 
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
21DEBUG = 1
22
23#####################################################################
24# Logging
25#####################################################################
26
27LOG_LEVEL_DEBUG = 2
28LOG_LEVEL_INFO = 1
29LOG_LEVEL_ERROR = 0
30LOG_LEVEL_DISABLE = -1
31
32DEFAULT_LOG_LEVEL = LOG_LEVEL_DEBUG
33DEFAULT_LOGFILE = 'puzzlebox'
34
35LOGFILE_DIR = '/var/log/puzzlebox'
36LOGFILE_SUFFIX = '.log'
37LOGFILE_SUFFIX_DEBUG = '_debug.log'
38LOGFILE_SUFFIX_INFO = '_info.log'
39LOGFILE_SUFFIX_ERROR = '_error.log'
40
41SPLIT_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'
53SERVER_HOST = ''
54SERVER_PORT = 8194
55
56#CONTENT_SET_HOST = '127.0.0.1'
57#CONTENT_SET_PORT = 16384
58
59#WEB_BROWSER_HOST = '127.0.0.1'
60#WEB_BROWSER_PORT = 18192
61
62
63#####################################################################
64# Remote Control configuration
65#####################################################################
66
67BLUETOOTH_DEVICE = '/dev/rfcomm0'
68MOTORS_MOUNTED_BACKWARDS = True
69MOTOR_PORT_RIGHT = 'a'
70MOTOR_PORT_LEFT = 'b'
71
72
73#####################################################################
74# Specific configuration
75#####################################################################
76
77# content set
78#CONTENT_SET_CHANGE_RETRIES = 3
79#CONTENT_SET_INITIAL_DELAY = 10
80
81# initialize
82#DEFAULT_BACKGROUND_COLOUR = 'black'
83#CURSOR_PATH = '/home/apps/eyemagnet/images/system/empty_cursor.bmp'
84#EYEMAGNET_LOGO_PATH = '/home/client/media/images/system/eyemagnet_logo.png'
85
86# Master Control Program
87MAX_COMPONENTS = 16
88#AUTOBIT_TIMEOUT = 5 # how long in seconds to give browser animations to start
89
90# Master Control Client
91MAX_CONNECTION_ATTEMPTS = 5
92HEALTH_CHECK_CONNECTION_ATTEMPTS = 5
93NO_REPLY_WAIT = 10 # how many seconds before considering a component dead
94
95# monitoring
96#HEALTH_CHECK_TIMER = 30
97#SCRIPT_CHECK_TIMER = 60
98#SCRIPT_CHECKLIST = { \
99        #'compiz': { \
100                #'check': '/usr/share/eyemagnet/eyemagnet_compiz_manager/eyemagnet_compiz_manager.py', \
101                #'check_args': ['check_health'], \
102                #'recover': '/usr/bin/eyemagnet_xorg_reset.py', \
103                #'recover_args': [] \
104                #} \
105        #}
106
107# web browser
108#HIDE_ON_DURATION_EXPIRE = True
109#GTKMOZ_PROFILE_DIR = "/home/client/.gtkmozembed/"
110
111# window
112#DEINTERLACE_VIDEO = 1
113#TEMPORAL_FIELD_SEPARATION = 1
114#VIDEO_NICE = 2
115#PID_SEARCH_COUNT = 10
116#DUAL_SQUEEZE_DELAY = 7.5
117#INITIAL_TUNER_SQUEEZE_DELAY = 6
118
Note: See TracBrowser for help on using the repository browser.