From 4b6f3c09764aae8027d247acf5322d8b159ad73b Mon Sep 17 00:00:00 2001 From: Tim Gunter Date: Sat, 10 Apr 2021 01:22:20 -0700 Subject: [PATCH] Add owner to showInfo() --- meshtastic/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index 2e028a1..4f9265b 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -162,10 +162,12 @@ class MeshInterface: def showInfo(self): """Show human readable summary about this object""" - print(f"My info: {stripnl(MessageToJson(self.myInfo))}") + + print(f"Owner: {self.getLongName()} ({self.getShortName()})") + print(f"\nMy info: {stripnl(MessageToJson(self.myInfo))}") print("\nNodes in mesh:") for n in self.nodes.values(): - print(" " + stripnl(n)) + print(f" {stripnl(n)}") def getNode(self, nodeId): """Return a node object which contains device settings and channel info"""