mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-03-04 23:27:46 +01:00
Added the traceroute and neighbours to the map
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user