From ae6517c65414e985d6577c73b8077880bc701344 Mon Sep 17 00:00:00 2001 From: Jxck-S Date: Mon, 17 Aug 2020 15:10:12 -0400 Subject: [PATCH] Get ride of TRACK_PLANE now ICAO, all CAPS --- NotifyBot.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/NotifyBot.py b/NotifyBot.py index 0b83d59..35b1927 100644 --- a/NotifyBot.py +++ b/NotifyBot.py @@ -42,8 +42,7 @@ else: pb = None #Set Plane ICAO -TRACK_PLANE = config.get('DATA', 'ICAO') -icao = TRACK_PLANE.upper() +icao = config.get('DATA', 'ICAO').upper() #Pre Set Non Reseting Variables geo_alt_ft = None last_geo_alt_ft = None @@ -75,12 +74,12 @@ while True: #Get API States for Plane plane_Dict = None if config.get('DATA', 'SOURCE') == "OPENS": - plane_Dict, failed = pullOpenSky(TRACK_PLANE) + plane_Dict, failed = pullOpenSky(icao) print (Fore.YELLOW) print ("OpenSky Sourced Data: ", plane_Dict) print(Style.RESET_ALL) elif config.get('DATA', 'SOURCE') == "ADSBX": - plane_Dict, failed = pullADSBX(TRACK_PLANE) + plane_Dict, failed = pullADSBX(icao) print (Fore.YELLOW) print ("ADSBX Sourced Data: ", plane_Dict) print(Style.RESET_ALL)