Skip to content
constants.py 1.72 KiB
Newer Older
developer8's avatar
developer8 committed


THD_SLEEP = .7
SERV_JOIN = 1.0  # timeout
developer8's avatar
developer8 committed
URL_ERROR_MESSAGE = "INPUT ERROR IN URL QUERY STRING !"
HTTP_TIMEOUT = 2
# BBB_DEBUG_LOG     = 'bbb_debug_log.log'

# url_query_string
LOG_DIR = 'log_dir'

DEVICE = 'device'
START_INDEX = 'start_index'
END_INDEX = 'end_index'
START_TIME = 'start_time'
END_TIME = 'end_time'
BLACK_LIST_WRITE = 'black_list_write'
WHITE_LIST_WRITE = 'white_list_write'
developer7's avatar
developer7 committed
EXCLUDE_BLACK_LIST = 'exclude_black_list'
DEFAULT_APP_PASS = 'default_app_pass'
NEW_PASS = 'new_pass'
UNREAD_LOG = 'unread_log'
UNR_COUNT = '1'
UNR_GET = '2'
UNR_ACK = '3'
RTE = 'rte'
STOP_SERVER = 'stop_server'
FUNCTION = 'get_function'
LIGHTS = 'lights'
EDIT_LIST = 'edit_list'
developer8's avatar
developer8 committed
AVAILABLE_DEVICES = '1'
ACTUAL_LIST = '2'
CLEAR_LIST = '3'
ADD_DEVICE = '4'
ERASE_DEVICE = '5'
DEVICE_TYPE = 'device_type'
DEVICE_ID = 'device_id'
BIN_FNAME = 'BIN_fname'
developer7's avatar
developer7 committed
BIN_FIRMWARE_NAME = 'fwName'
CONFIG_FILE_WR_NAME = 'confWR' 
CONFIG_FILE_READ = 'Config_file_RD'
developer8's avatar
developer8 committed
CONFIG_FILE_WRITE = 'Config_file_WR'
GIT_PULL = 'Git_Pull'
GIT_USERNAME = 'git_username'
GIT_PASS = 'git_pass'
developer7's avatar
developer7 committed
GET_DLL_VERSION = 'v'
GET_PROGRAM_VERSION = 'V'
GET_IP_ADDRESS = 'IP'
GET_APP_VERSION = 'AV'
GET_DEBUG_LOG = 'DBG'
GET_NET_TIME = 'Nt'
GET_ADMIN_SETTINGS = 'AS'
GET_DEVICE_LIST = 'Q'
developer7's avatar
developer7 committed
GET_LIST_DEV_INFO = 'q'
developer7's avatar
developer7 committed
GET_LIST_DEV_LENGTH = 'ldh'
GET_PLATFORM_CHECK = 'plchk'
GET_MAIN_VERSION = 'MV'
developer7's avatar
developer7 committed
GET_RASPI_TEMP = 'GRPT'
developer7's avatar
developer7 committed

developer23's avatar
developer23 committed
HTML_OTHER_INIT_SCRIPT = 'login.html'
HTM_OTHER_INIT_SCRIPT = 'login.htm'
HTML_INIT_SCRIPT = 'ais_readers.html'
HTM_INIT_SCRIPT = 'ais_readers.htm'
HTML_FOLDER = 'html'
developer8's avatar
developer8 committed

developer7's avatar
developer7 committed

developer7's avatar
developer7 committed
# download files ext
DOWN_FILE_EXT_CSV = '.csv'
developer7's avatar
developer7 committed
DOWN_FILE_EXT = ['.csv', '', '.log']
developer7's avatar
developer7 committed


# http
developer8's avatar
developer8 committed
HTTP_SERVER_NAME = ''
HTTP_SERVER_PORT = 8080  # 8080