Skip to content

Commit

Permalink
change meshview url and monitored topics
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebenner authored Dec 28, 2024
1 parent eb38481 commit 7df8475
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"}`,
Expand All @@ -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,
},
{
Expand Down Expand Up @@ -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,
};
}),
Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit 7df8475

Please sign in to comment.