-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.py
87 lines (59 loc) · 2.05 KB
/
configuration.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- coding: utf-8 -*-
# Version format: MAJOR.MINOR.BUGFIX
# 2021.03.01: updated requirements.txt due to vulnerability in cryptography lib.
VERSION = "1.0.1"
VERSION_TOOL_TIP = "First release version containing basic set of features for demonstration purposes.\n\
This PoC (Proof of Concept) still needs to be \"refactored\" and \"un-extremed\"."
# LOGGING_LEVEL specifies the lowest-severity log message a logger will handle, where debug is the lowest built-in severity level and critical is the highest built-in severity.
# For example, if the severity level is INFO, the logger will handle only INFO, WARNING, ERROR, and CRITICAL messages and will ignore DEBUG messages.
LOGGING_LEVEL = "logging.INFO"
# encryption (fix values)
ENRYPTION_BLOCK_BYTES_LEN = 16 # any relation to audioSettings.DATA_MAX_LEN_BYTES ???
PADDING_BITS_LEN = (ENRYPTION_BLOCK_BYTES_LEN*8)
# app font size
FONT_SIZE_APP = 8
# send on ENTER
SEND_ON_ENTER = True
# show advance settings
SHOW_ADVANCED_SETTINGS = False
# update period of GUI
GUI_UPDATE_PERIOD_IN_SEC = 0.5
# user name
USER_NAME = "Alice"
# call/answer automatically
CALL_ANSWER_AUTO = True
# show live status
SHOW_LIVE_STATUS = True
# audio device settings
AUDIO_DEVICE_TX_IN = "none"
AUDIO_DEVICE_TX_OUT = "none"
AUDIO_DEVICE_RX_IN = "none"
AUDIO_DEVICE_RX_OUT = "none"
# diagram (advanced settings)
SHOW_PLOT = True
PLOT_FFT = True
PLOT_CODE_ONLY = False
# chat
TEXT_SIZE = 12
TEXT_BOLD = True
TEXT_FAMILY = "Arial"
# sound effects (e.g. when pushing buttons)
SOUND_EFFECTS = True
# Audio Input for TX: distortion, scrambling on/off
IN_TX_DISTORT = True
IN_TX_SCRAMBLE = False
IN_RX_UNDISTORT = False
# hear RX voice or RX code?
OUT_RX_HEAR_VOICE = False
# transmit voice?
TRANSMIT_IN_TX_VOICE = True
# performance (advanced settings)
SHOW_PERFORMANCE = True
TX_PROC_MS = 0.0
RX_PROC_MS = 0.0
ROUNDTRIP_MS = 0.0
# script or .exe?
# the following parameters are determined at runtime (not stored in config.ini)
IS_SCRIPT = True
PATH_PREFIX = "./dist/"
CONFIG_FILENAME = "config.ini"