From d80c61c8bdf8c8fcb3edb1d1b2296246a603283b Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Sat, 27 Mar 2021 11:07:58 +0800 Subject: [PATCH] use new lastHeard field --- meshtastic/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index 85d7ecd..160dcd5 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -151,7 +151,7 @@ def printNodes(nodes, myId): alt = formatFloat(node['position'].get("altitude"), "{:.0f}", " m") batt = formatFloat(node['position'].get("batteryLevel"), "{:.2f}", "%") snr = formatFloat(node.get("snr"), "{:.2f}", " dB") - LH = getLH(node['position'].get("time")) + LH = getLH(node.get("lastHeard")) timeAgo = getTimeAgo(node['position'].get("time")) tableData.append({"N": 0, "User": node['user']['longName'], "AKA": node['user']['shortName'], "ID": node['user']['id'],