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: