From 38fc8e68c68fcc460f42fd5eec6d7cc8b0780522 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Wed, 13 Mar 2024 04:38:36 +1300 Subject: [PATCH] show id and hex id --- src/public/index.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/public/index.html b/src/public/index.html index 50fafe6..ecb18fa 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -505,9 +505,8 @@ var icon = iconOnline; // todo status var tooltip = `${node.long_name}` + - `
ID: ${node.node_id_hex}` + - `
Role: ${node.role_name}` + `
Short Name: ${node.short_name}` + + `
Role: ${node.role_name}` + `
Hardware: ${node.hardware_model_name}`; if(node.battery_level){ @@ -530,8 +529,10 @@ tooltip += `
Air Util: ${Number(node.air_util_tx).toFixed(2)}%`; } - // updated ago - tooltip += `

Updated: ${moment(new Date(node.updated_at)).fromNow()}`; + // bottom info + tooltip += `

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