From 7df84759b0a571445765e112c8698a22e12cfabe Mon Sep 17 00:00:00 2001 From: Mike Benner <36419818+mikebenner@users.noreply.github.com> Date: Fri, 27 Dec 2024 20:32:01 -0800 Subject: [PATCH] change meshview url and monitored topics --- index.ts | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/index.ts b/index.ts index 1498f63..1b1c333 100644 --- a/index.ts +++ b/index.ts @@ -338,13 +338,13 @@ const createDiscordMessage = async (packetGroup, text) => { "https://cdn.discordapp.com/avatars/1292336040790724690/03c725a48b2f304c2c44f119a1111ff4.webp", embeds: [ { - url: `https://meshview.politefield-7ba65bdb.westus3.azurecontainerapps.io/packet_list/${packet.from}`, + url: `https://meshview.socalmesh.org/packet_list/${packet.from}`, color: 6810260, timestamp: new Date(packet.rxTime * 1000).toISOString(), author: { name: `${nodeInfos[nodeIdHex] ? nodeInfos[nodeIdHex].longName : "Unknown"}`, - url: `https://meshview.politefield-7ba65bdb.westus3.azurecontainerapps.io/packet_list/${packet.from}`, + url: `https://meshview.socalmesh.org/packet_list/${packet.from}`, icon_url: avatarUrl, }, title: `${nodeInfos[nodeIdHex] ? nodeInfos[nodeIdHex].shortName : "UNK"}`, @@ -361,7 +361,7 @@ const createDiscordMessage = async (packetGroup, text) => { // }, { name: "Packet", - value: `[${packetGroup.id.toString(16)}](https://meshview.politefield-7ba65bdb.westus3.azurecontainerapps.io//packet/${packetGroup.id})`, + value: `[${packetGroup.id.toString(16)}](https://meshview.socalmesh.org/packet/${packetGroup.id})`, inline: true, }, { @@ -424,7 +424,7 @@ const createDiscordMessage = async (packetGroup, text) => { return { name: `Gateway`, - value: `[${gatewayDisplaName} (${hopText})](https://meshview.politefield-7ba65bdb.westus3.azurecontainerapps.io//packet_list/${nodeHex2id(envelope.gatewayId.replace("!", ""))})${gatewayDelay > 0 ? " (" + gatewayDelay + "ms)" : ""}`, + value: `[${gatewayDisplaName} (${hopText})](https://meshview.socalmesh.org/packet_list/${nodeHex2id(envelope.gatewayId.replace("!", ""))})${gatewayDelay > 0 ? " (" + gatewayDelay + "ms)" : ""}`, inline: true, }; }), @@ -477,16 +477,7 @@ const baymesh_client = mqtt.connect(mqttBrokerUrl, { }); const ba_home_topics = [ - "msh/US/socalmesh", - "msh/US/SoCalMesh", "msh/US/CA/socalmesh", - "msh/US/CA/SoCalMesh", - "msh/US/CA/orangecounty", - "msh/US/CA/losangelescounty", - "msh/US/CA/sandiegocounty", - "msh/US/missionviejo", - "msh/US/CA/santaana", - "msh/US/CA/anaheim", ]; const sv_home_topics = [