diff --git a/index.js b/index.js index 492a987..f22eab3 100644 --- a/index.js +++ b/index.js @@ -48,7 +48,9 @@ let serverConfig = { tunerName: "", tunerDesc: "", lat: "0", - lon: "0" + lon: "0", + broadcastTuner: false, + proxyIp: "", }, password: { tunePass: "", @@ -404,6 +406,7 @@ wss.on('connection', (ws, request) => { ws.on('close', (code, reason) => { currentUsers--; + dataHandler.showOnlineUsers(currentUsers); logInfo(`Web client \x1b[31mdisconnected\x1b[0m (${clientIp}) \x1b[90m[${currentUsers}]`); }); diff --git a/tx_search.js b/tx_search.js index c3a644b..7e28f37 100644 --- a/tx_search.js +++ b/tx_search.js @@ -22,9 +22,9 @@ const fetchInterval = 3000; // Fetch data from maps function fetchTx(freq, piCode, rdsPs) { const now = Date.now(); - + freq = parseFloat(freq); // Check if it's been at least 3 seconds since the last fetch and if the QTH is correct - if (now - lastFetchTime < fetchInterval || serverConfig.identification.lat.length < 2) { + if (now - lastFetchTime < fetchInterval || serverConfig.identification.lat.length < 2 || freq < 87) { return Promise.resolve(); } diff --git a/web/css/helpers.css b/web/css/helpers.css index cf229ba..918d9e8 100644 --- a/web/css/helpers.css +++ b/web/css/helpers.css @@ -137,6 +137,10 @@ margin-top: 10px; } +.top-25 { + margin-top: 25px; +} + .bottom-20 { margin-bottom: 20px; } diff --git a/web/css/modal.css b/web/css/modal.css index adfa5c6..dc699c1 100644 --- a/web/css/modal.css +++ b/web/css/modal.css @@ -68,6 +68,60 @@ background: var(--color-5); } +.modal-panel { + width: 450px; + height: 100%; + position: absolute; + right: 0; + text-align: center; + background-color: var(--color-main); +} + +.modal-panel .flex-container { + align-items: stretch; +} + +.modal-panel h1 { + font-size: 42px; +} + +.modal-panel-sidebar { + width: 64px; + background-color: var(--color-1); + cursor: pointer; +} + +.modal-panel-content { + flex: 1; + position: relative; +} + +.modal-panel-content .version-info { + position: absolute; + bottom: 0; + width: 100%; +} + +.modal-panel-footer { + width: 450px; + height: 100px; + background-color: var(--color-main); + vertical-align: bottom; +} + +.modal-panel .form-group { + float: none !important; +} + +.modal-panel .dropdown { + margin: auto; +} + +.modal-panel label { + width: 200px; + margin: auto; +} + @media only screen and (max-width: 768px) { .modal-content { min-width: 90% !important; @@ -83,4 +137,17 @@ #closeModalButton { position: static; } + .modal-panel { + width: 100%; + } +} + +@media only screen and (max-height: 768px) { + .modal-panel .version-info { + position: static; + bottom: auto; + } + .modal-panel-content { + overflow-y: auto; + } } \ No newline at end of file diff --git a/web/index.ejs b/web/index.ejs index e33ea45..e51913e 100644 --- a/web/index.ejs +++ b/web/index.ejs @@ -195,13 +195,15 @@ -