small gui changes

closes #104
This commit is contained in:
dj2ls 2022-01-10 09:06:08 +01:00
parent 4ea42d5dba
commit 4b6397c0ab
5 changed files with 13 additions and 11 deletions

View file

@ -20,17 +20,17 @@ if (!fs.existsSync(configFolder)) {
// create config file if not exists
var configContent = `
{
"tnc_host": "192.168.178.163",
"tnc_host": "127.0.0.1",
"tnc_port": "3000",
"daemon_host": "192.168.178.163",
"daemon_host": "127.0.0.1",
"daemon_port": "3001",
"mycall": "AA0AA",
"mygrid": "JN40aa",
"deviceid": "2028",
"deviceport": "/dev/ttyUSB0",
"deviceid": "RIG_MODEL_DUMMY_NOVFO",
"deviceport": "/dev/ttyACM1",
"serialspeed": "9600",
"ptt": "RTS",
"spectrum": "scatter",
"ptt": "USB",
"spectrum": "waterfall",
"tnclocation": "localhost"
}
`;
@ -86,10 +86,10 @@ var daemonProcess = null;
function createWindow() {
win = new BrowserWindow({
width: 1000,
width: 1050,
height: 430,
autoHideMenuBar: true,
icon: __dirname + '/src/app-icon.png',
icon: __dirname + '/src/cube_round.png',
webPreferences: {
//preload: path.join(__dirname, 'preload-main.js'),
preload: require.resolve('./preload-main.js'),

BIN
gui/src/cube_round.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

View file

@ -12,7 +12,7 @@
<!-- Waterfall CSS -->
<link rel="stylesheet" type="text/css" href="waterfall/waterfall.css" />
<link rel="stylesheet" type="text/css" href="styles.css" />
<!--<title>codec2 | FreeDATA</title>-->
<title>FreeDATA</title>
</head>

View file

@ -25,9 +25,11 @@ import helpers
log_handler.setup_logging("daemon")
structlog.get_logger("structlog").info("[DMN] Starting FreeDATA daemon", author="DJ2LS", year="2022", version="0.1")
# get python version, which is needed later for determining installation path
python_version = str(sys.version_info[0]) + "." + str(sys.version_info[1])
structlog.get_logger("structlog").info("[DMN] Starting...", python=python_version)
structlog.get_logger("structlog").info("[DMN] Python", version=python_version)
####################################################

View file

@ -69,7 +69,7 @@ if __name__ == '__main__':
# config logging
log_handler.setup_logging("tnc")
structlog.get_logger("structlog").info("[TNC] Starting FreeDATA", author="DJ2LS", year="2022", version="0.1")
# start data handler
data_handler.DATA()