From bb6a9077098e5183ac469734b666fa2cc26a87e0 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Wed, 13 Mar 2024 04:31:13 +1300 Subject: [PATCH] show last updated at --- src/public/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/public/index.html b/src/public/index.html index 4ca56d8..50fafe6 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -530,6 +530,9 @@ tooltip += `
Air Util: ${Number(node.air_util_tx).toFixed(2)}%`; } + // updated ago + tooltip += `

Updated: ${moment(new Date(node.updated_at)).fromNow()}`; + // create node marker var marker = L.marker([node.latitude, node.longitude], { icon: icon,