2016-05-23 16:01:04 +02:00
|
|
|
# -*- coding: UTF-8 -*-
|
|
|
|
'''
|
|
|
|
rtx - RetroText
|
|
|
|
Configuration file
|
|
|
|
'''
|
|
|
|
|
|
|
|
import logging
|
|
|
|
|
2016-10-31 16:40:10 +01:00
|
|
|
## define the location of rtx pages
|
2016-10-31 16:43:42 +01:00
|
|
|
## rtx searches all directories and serves the page from the first one
|
|
|
|
PAGES=[
|
|
|
|
"pages/",
|
|
|
|
"presentation/",
|
|
|
|
"demopages/",
|
|
|
|
]
|
2016-05-23 16:01:04 +02:00
|
|
|
|
|
|
|
## logging settings:
|
|
|
|
# loglevel values: DEBUG (all messages) > INFO > WARNING > ERROR > CRITICAL (only cricital messages)
|
|
|
|
LOGLEVEL=logging.DEBUG
|
|
|
|
|
|
|
|
## serial port settings:
|
2018-05-31 17:11:18 +02:00
|
|
|
#PORT="/dev/pts/5"
|
2018-06-01 13:09:23 +02:00
|
|
|
PORT="/dev/ttyUSB1"
|
2018-05-31 17:11:18 +02:00
|
|
|
BAUDRATE="1200"
|
2016-05-23 16:01:04 +02:00
|
|
|
# if the system is connected directly (null-modem): MODE=direct
|
|
|
|
# if the system is connected via a modem: MODE=modem
|
2018-05-31 17:11:18 +02:00
|
|
|
# if the system is connected to a miniBtx module: MODE=minibtx
|
2016-05-31 15:35:32 +02:00
|
|
|
#MODE="modem"
|
2018-05-31 17:11:18 +02:00
|
|
|
#MODE="direct"
|
|
|
|
MODE="minibtx"
|
2016-05-23 16:01:04 +02:00
|
|
|
# the init strings for the modem, sent serially at startup
|
|
|
|
MODEM_INIT1="AT&F"
|
|
|
|
MODEM_INIT2="AT%B1200/75%C0%E0%G1-J0\\N0&G1"
|
|
|
|
# after rtx receives the "RING" string, it sends the ANSWER string to the modem to answer the call
|
|
|
|
MODEM_RING="RING"
|
|
|
|
MODEM_ANSWER="ATA"
|