From a6d51e41bf59775f4fe058e70ee949b7b2a938ab Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 12 Nov 2025 19:08:41 -0800 Subject: [PATCH] clean --- mesh_bot.py | 6 +++++- pong_bot.py | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 38f7ed8..3c99cf5 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -2043,7 +2043,11 @@ def onReceive(packet, interface): hop = "Gateway" if hop in ("MQTT", "Gateway") and hop_count > 0: - hop += f" {hop_count} Hops" + hop = f" {hop_count} Hops" + + # Add relay node info if present + if packet.get('relayNode') is not None: + hop += f" (Relay:{packet['relayNode']})" if enableHopLogs: logger.debug(f"System: Packet HopDebugger: hop_away:{hop_away} hop_limit:{hop_limit} hop_start:{hop_start} calculated_hop_count:{hop_count} final_hop_value:{hop} via_mqtt:{via_mqtt} transport_mechanism:{transport_mechanism} Hostname:{rxNodeHostName}") diff --git a/pong_bot.py b/pong_bot.py index e5ad88a..4e4cac1 100755 --- a/pong_bot.py +++ b/pong_bot.py @@ -398,7 +398,11 @@ def onReceive(packet, interface): hop = "Gateway" if hop in ("MQTT", "Gateway") and hop_count > 0: - hop += f" {hop_count} Hops" + hop = f" {hop_count} Hops" + + # Add relay node info if present + if packet.get('relayNode') is not None: + hop += f" (Relay:{packet['relayNode']})" if my_settings.enableHopLogs: logger.debug(f"System: Packet HopDebugger: hop_away:{hop_away} hop_limit:{hop_limit} hop_start:{hop_start} calculated_hop_count:{hop_count} final_hop_value:{hop} via_mqtt:{via_mqtt} transport_mechanism:{transport_mechanism} Hostname:{rxNodeHostName}")