From 416e6951fce1418af35be71a022f29ff078a2902 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Tue, 8 Oct 2024 18:19:08 -0700 Subject: [PATCH] Update system.py --- modules/system.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/modules/system.py b/modules/system.py index 0ff69ce..7910faa 100644 --- a/modules/system.py +++ b/modules/system.py @@ -775,30 +775,42 @@ def consumeMetadata(packet, rxNode=0): # WAYPOINT_APP packets if packet_type == 'WAYPOINT_APP': - if debugMetadata: print(f"DEBUG WAYPOINT_APP: {packet}\n\n") + if debugMetadata: print(f"DEBUG WAYPOINT_APP: {packet['decoded']['waypoint']}\n\n") + # get the waypoint data + waypoint_data = packet['decoded']['waypoint'] + keys = ['latitude', 'longitude',] # NEIGHBORINFO_APP if packet_type == 'NEIGHBORINFO_APP': if debugMetadata: print(f"DEBUG NEIGHBORINFO_APP: {packet}\n\n") + # get the neighbor info data + neighbor_data = packet['decoded']['neighborInfo'] # TRACEROUTE_APP if packet_type == 'TRACEROUTE_APP': if debugMetadata: print(f"DEBUG TRACEROUTE_APP: {packet}\n\n") + # get the traceroute data + traceroute_data = packet['decoded']['traceroute'] # DETECTION_SENSOR_APP if packet_type == 'DETECTION_SENSOR_APP': if debugMetadata: print(f"DEBUG DETECTION_SENSOR_APP: {packet}\n\n") + # get the detection sensor data + detection_data = packet['decoded']['detectionSensor'] # PAXCOUNTER_APP if packet_type == 'PAXCOUNTER_APP': if debugMetadata: print(f"DEBUG PAXCOUNTER_APP: {packet}\n\n") + # get the paxcounter data + paxcounter_data = packet['decoded']['paxcounter'] # REMOTE_HARDWARE_APP if packet_type == 'REMOTE_HARDWARE_APP': if debugMetadata: print(f"DEBUG REMOTE_HARDWARE_APP: {packet}\n\n") + # get the remote hardware data + remote_hardware_data = packet['decoded']['remoteHardware'] - async def BroadcastScheduler(): # handle schedule checks for the broadcast of messages while True: