From 4aae8d743c999c187059dbe1afc6f47ae3ada507 Mon Sep 17 00:00:00 2001 From: DJ7NT Date: Fri, 11 Apr 2025 12:24:59 +0000 Subject: [PATCH 1/2] Friendly debuggng/verbosity at console --- mqtt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mqtt.js b/mqtt.js index 1864449..529679c 100755 --- a/mqtt.js +++ b/mqtt.js @@ -56,7 +56,7 @@ mqttC.on('message', function (topic, message) { // Handler, wenn mqtt-message ko } else { tobrowser=parse_cat_msg(topic,msg.content); // io.emit("cat",tobrowser); // und raus an den Browser (nur fuer DIESES Socket, nicht fuer alle Clients) damit - console.log(topic+' / CAT for User '+tobrowser.user_id+' at '+tobrowser.qrg+' in Mode '+tobrowser.mode); + console.log(topic+' / CAT for User '+tobrowser.user_id+' ('+msg.content.user_name+') at '+tobrowser.qrg+' in Mode '+tobrowser.mode); } } else { console.log(msg.content.user_name+' not in Whitelist'); From b2981fd54f27af5b56c5128530752580f85ee507 Mon Sep 17 00:00:00 2001 From: DJ7NT Date: Fri, 11 Apr 2025 12:45:11 +0000 Subject: [PATCH 2/2] In JS/Browser Filtering on own call --- index.html | 94 +++++++++++++++++++++++++----------------------------- 1 file changed, 44 insertions(+), 50 deletions(-) diff --git a/index.html b/index.html index 0acde11..8f5a408 100644 --- a/index.html +++ b/index.html @@ -47,65 +47,59 @@