Code: Alles auswählen
# Configuration examples for piTelex
# 2023-03-15
# requirements: commentjson, argparse (additional requirements per section are listed there)
#
# This file can be used as a starting point for piTelex installations using the default hardware configuration.
# Screen and log module should be enabled always for testing and debugging purposes.
# Archive module, if enabled, saves a prettyprint transcript of each connection.
#
# enable the TTY module(s) that correspond to your TTY type.
# Disable ("enable": false,) or optionally delete unused modules or entries.
#
# For detailed configuration infos see the wiki pages.
#
# Additional modules are described in the telex_Example_XXX.json files
#
{
"devices": {
# screen output and kwyboard input (for debugging)
"screen": {
"type": "screen",
"enable": true,
"show_BuZi": true,
"show_ctrl": true,
"show_info": false,
"show_capital": false
},
###########################################################################
# Module type "RPiTTY"
# requirements: pigpio (deamon and lib)
# TW39 or V10 teletype with FSG over GPIO pins of Raspberry Pi
# BONTelex Epson TM-T88 Series
"Printer TM-T88": {
"type": "terminal",
"enable": true,
"portname": "/dev/ttyUSB0",
"baudrate": 9600,
"bytesize": 8,
"stopbits": 1,
"parity": "N",
"dsrdtr": false,
"rtscts": false,
"xonxoff": false,
"show_BuZi": false,
"show_ctrl": false,
"show_info": false,
"show_capital": false,
"send_only": true,
"auto_CRLF": 42, # number of chars in a line before CR LF
"init": "[1B]M1\r\n -= BONTelex =-\r\n", # small font: [1B]M1, normal font: [1B]M0
"replace_char": {
"-": "[B1]", # null
"&": "[EA]", # bell
},
"replace_esc": {
"zz": "\r\n\r\n\r\n\r\n[1B6D]" #cut paper
}
},
###
# control the workflow (dialing, idle, typing-mode, text-phrases) with buttons
# and show status with LEDs
"RPiCtrl": {
"type": "RPiCtrl",
"enable": true,
# separate number switch - see also module RPiTTY
"pin_number_switch": 0,
# user buttons B1/B2/B3/B4: 8/7/5/6 Pin 40: 21
"pin_button_1T": 21, # Single button AT->LT->ST
"pin_button_AT": 0, # AT-button to request dialing
"pin_button_ST": 0, # ST-button to stop a connection
"pin_button_LT": 0, # LT-button to switch to local mode
"pin_button_PT": 8, # PT-button to wakeup ffrom sleep mode
"pin_button_U1": 0, # user-button 1
"pin_button_U2": 0, # user-button 2
"pin_button_U3": 0, # user-button 3
"pin_button_U4": 0, # user-button 4
"text_button_U1": "Hello", # text for user-button 1
"text_button_U2": "Hello", # text for user-button 2
"text_button_U3": "Hello", # text for user-button 3
"text_button_U4": "Hello", # text for user-button 4
# single LEDs
"pin_LED_LT": 0,
"pin_LED_A": 0,
"pin_LED_WB": 0,
"pin_LED_WB_A": 0,
# Duo-LEDs with common cathodes for status info
"pin_LED_status_R": 23,
"pin_LED_status_G": 24,
# power saving
"pin_power": 0, # GPIO on SEU-M: 9
"inv_power": false
},
###########################################################################
# Module type "i-Telex"
"i-Telex": {
"type": "i-Telex",
"enable": true,
"port": 2342,
# WARNING
# Setting tns-dynip-number to anything except 0 will enable dynamic IP
# updates with i-Telex TNS (Teilnehmerserver, Subscriber Server).
#
# Leave at 0 if you've chosen a static TNS entry!
# Change to something nonzero if and only if
# - you've got your number approved by i-Telex administrators, and
# - you've chosen dynamic IP update and told i-Telex administrators so, and
# - you've set your TNS pin properly.
"tns_dynip_number": 0,
"tns_pin": xxxxx
},
###########################################################################
"log": {
"type": "log",
"enable": true,
"filename": "./data.log"
},
###########################################################################
"archive": {
"type": "archive",
"enable": true,
"path": "./archive/"
}
},
###########################################################################
"verbose": true,
"wru_id": "123456 dummy d",
"wru_replace_always": true,
"wru_fallback": false,
"dial_timeout": 0,
"continue_with_no_printer": true,
"debug": 3,
"errorlog_path": "./errorlog/"
}
So sieht die im Moment aus.