From 458f6dfca4abbdf9e128a9aa45a0029e9a420068 Mon Sep 17 00:00:00 2001 From: John Hays Date: Sat, 13 Jan 2024 16:27:26 -0800 Subject: [PATCH] Update README and Links --- README.md | 2 +- client/script.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 474f7d4..bb53b02 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ You will need to have a domain name for the site and current certificates tied t **key.pem** and **cert.pem** in the same directory as index.js. I suggest using (Certbot)[https://certbot.eff.org/] to obtain free signed certificates that all major browsers recognize as legitimate. I typically run Apache2 or another webserver to allow Certbot to authenticate the site to create the certificates. The certificates will -typically reside in /etc/live/**your domain name** and I simply soft link (ls -s) them from the dsgwdashboard directory. You can disable the webserver, +typically reside in /etc/live/**your domain name** and I simply soft link (ln -s) them from the dsgwdashboard directory. You can disable the webserver, such as Apache2 or NGNIX once you have the certificates. Before starting up the dsgwdashboard you will want to have DStarGateway running, to prepopulate the log files. Your first task diff --git a/client/script.js b/client/script.js index 80238e4..e580666 100644 --- a/client/script.js +++ b/client/script.js @@ -33,7 +33,9 @@ socket.addEventListener("links", data => { $("#linktable").append("RepeaterReflectorProtocol" + "DeviceDirectionTimestamp"); $.each(data, function(index,val){ - $("#linktable").append("" + val.repeater + "" + val.reflector + + var reflector = val.reflector.substring(0,7).trim(); + if (reflector.substring(0,3) == "REF") reflector = "" + val.reflector + ""; + $("#linktable").append("" + val.repeater + "" + reflector + "" + val.protocol + "" + val.device + "" + val.direction + "" + val.timestamp + ""); // console.log(index, val);