40 lines
1.3 KiB
Python
Raw Normal View History

2020-09-06 15:27:47 +02:00
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
2020-12-22 08:29:09 +01:00
import report
2020-09-06 15:27:47 +02:00
FULL_SCREEN = False
2020-09-06 15:27:47 +02:00
# TCP-Server
#
server_out_secret = None # or set a secret to require client authentification: b'give_a_secret_string_here'
server_out_ip = '192.168.0.121'
server_out_port = 37000
server_in_secret = None # or set a secret to require client authentification: b'give_a_secret_string_here'
server_in_ip = '192.168.0.120'
server_in_port = 37000
server_garage_secret = None # or set a secret to require client authentification: b'give_a_secret_string_here'
server_garage_ip = '192.168.0.13'
server_garage_port = 10000
# Logging
#
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
SHORT_FMT = "%(asctime)s: %(levelname)-7s - %(message)s"
""" A short formatter including the most important information"""
LONG_FMT = """~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
File "%(pathname)s", line %(lineno)d, in %(funcName)s
%(asctime)s: %(levelname)-7s - %(message)s"""
""" A long formatter which results in links to the source code inside Eclipse"""
2020-12-22 08:29:09 +01:00
# Logging
#
APP_NAME = 'smarthome'
LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
LOGHOST = 'localhost'
LOGPORT = 19996
formatter = report.LONG_FMT