Backing up old changes from PC- 9
This commit is contained in:
parent
cf1c352489
commit
f9a36ca1e5
|
@ -11,7 +11,7 @@ from OpenSkySetup import pullplane
|
||||||
|
|
||||||
#Setup PushBullet
|
#Setup PushBullet
|
||||||
from pushbullet import Pushbullet
|
from pushbullet import Pushbullet
|
||||||
pb = Pushbullet("<pushbulletapikey>")
|
pb = Pushbullet("<pushbulletapikey")
|
||||||
elon_jet_channel = pb.get_channel('<channeltaghere>')
|
elon_jet_channel = pb.get_channel('<channeltaghere>')
|
||||||
|
|
||||||
#Set Plane ICAO
|
#Set Plane ICAO
|
||||||
|
@ -47,7 +47,10 @@ while True:
|
||||||
geo_alt_m = None
|
geo_alt_m = None
|
||||||
#Get API States for Plane
|
#Get API States for Plane
|
||||||
planeData = None
|
planeData = None
|
||||||
|
try:
|
||||||
planeData = pullplane(TRACK_PLANE)
|
planeData = pullplane(TRACK_PLANE)
|
||||||
|
except:
|
||||||
|
print ("Opensky Error")
|
||||||
print (Fore.YELLOW)
|
print (Fore.YELLOW)
|
||||||
print ("OpenSky Debug", planeData)
|
print ("OpenSky Debug", planeData)
|
||||||
print(Style.RESET_ALL)
|
print(Style.RESET_ALL)
|
||||||
|
@ -77,7 +80,10 @@ while True:
|
||||||
if longitude != None and latitude != None:
|
if longitude != None and latitude != None:
|
||||||
|
|
||||||
combined = f"{latitude}, {longitude}"
|
combined = f"{latitude}, {longitude}"
|
||||||
|
try:
|
||||||
location = geolocator.reverse(combined)
|
location = geolocator.reverse(combined)
|
||||||
|
except:
|
||||||
|
print ("Geopy API Error")
|
||||||
print (Fore.YELLOW)
|
print (Fore.YELLOW)
|
||||||
print ("Geopy debug: ", location.raw)
|
print ("Geopy debug: ", location.raw)
|
||||||
print(Style.RESET_ALL)
|
print(Style.RESET_ALL)
|
||||||
|
|
Loading…
Reference in New Issue