#!/usr/bin/env python # -*- coding: utf-8 -*- # # Puzzlebox - Brainstorms - Configuration # # Copyright Steven M. Castellotti (2010) # # Portions of this code have been previously # released under the GNU Pulic License (GPL) version 2 # and is Copyright Steven M. Castellotti (2010) # For more information please refer to http://www.gnu.org/copyleft/gpl.htm # # Last Update: 2010.01.28 # ##################################################################### ##################################################################### # General configuration ##################################################################### DEBUG = 1 ##################################################################### # Logging ##################################################################### LOG_LEVEL_DEBUG = 2 LOG_LEVEL_INFO = 1 LOG_LEVEL_ERROR = 0 LOG_LEVEL_DISABLE = -1 DEFAULT_LOG_LEVEL = LOG_LEVEL_DEBUG DEFAULT_LOGFILE = 'puzzlebox' LOGFILE_DIR = '/var/log/puzzlebox' LOGFILE_SUFFIX = '.log' LOGFILE_SUFFIX_DEBUG = '_debug.log' LOGFILE_SUFFIX_INFO = '_info.log' LOGFILE_SUFFIX_ERROR = '_error.log' SPLIT_LOGFILES = False #MONITORING_LOGFILE = 'monitoring' #MONITORING_FAILLOG = 'monitoring_failure' #XORG_RESET_LOGFILE = 'xorg_reset' ##################################################################### # Network addresses ##################################################################### #SERVER_HOST = '127.0.0.1' SERVER_HOST = '' SERVER_PORT = 8194 ##################################################################### # Remote Control configuration ##################################################################### BLUETOOTH_DEVICE = '/dev/rfcomm0' MOTORS_MOUNTED_BACKWARDS = True MOTOR_PORT_RIGHT = 'a' MOTOR_PORT_LEFT = 'b' ##################################################################### # Server configuration ##################################################################### MAX_COMPONENTS = 16 ##################################################################### # Client configuration ##################################################################### MAX_CONNECTION_ATTEMPTS = 5 HEALTH_CHECK_CONNECTION_ATTEMPTS = 5 NO_REPLY_WAIT = 10 # how many seconds before considering a component dead