1
0
rtx/config.py

35 lines
882 B
Python
Raw Normal View History

2016-05-23 16:01:04 +02:00
# -*- coding: UTF-8 -*-
'''
rtx - RetroText
Configuration file
'''
import logging
## 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:
2016-10-31 15:43:43 +01:00
PORT="/dev/pts/5"
2016-05-31 15:35:32 +02:00
#PORT="/dev/ttyUSB0"
2016-05-23 16:01:04 +02:00
BAUDRATE="2400"
# if the system is connected directly (null-modem): MODE=direct
# if the system is connected via a modem: MODE=modem
2016-05-31 15:35:32 +02:00
#MODE="modem"
MODE="direct"
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"