From a0227952519796546e2ceddf51ca9167667fdfd1 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Thu, 28 Aug 2025 09:12:54 -0700 Subject: [PATCH] Added the traceroute and neighbours to the map --- meshview/templates/map.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meshview/templates/map.html b/meshview/templates/map.html index 3ff2ec4..e284b7d 100644 --- a/meshview/templates/map.html +++ b/meshview/templates/map.html @@ -302,7 +302,7 @@ function blinkNode(marker, longName, portnum) { function fetchNewPackets() { if (!lastFetchTime) return; - fetch(`/api/packets?limit=5&since=${lastFetchTime}`) + fetch(`/api/packets?since=${lastFetchTime}`) .then(res => res.json()) .then(data => { if (!data.packets || data.packets.length === 0) return; @@ -326,6 +326,7 @@ let packetInterval = null; function startPacketFetcher() { if (!packetInterval) { + fetchLatestPacket(); packetInterval = setInterval(fetchNewPackets, 1000); console.log("Packet fetching started"); }