Mirror of https://github.com/Jxck-S/plane-notify
This is the backend to ElonsJet and other bots
acasads-badsbadsbexchangeadsbxairportemergency-squawklandopenskyopensky-apiopensky-networkplaneresolutionadviosrysquawktakeofftcas
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
230 B
5 lines
230 B
5 years ago
|
def pullplane(TRACK_PLANE):
|
||
|
from opensky_api import OpenSkyApi
|
||
|
opens_api = OpenSkyApi("<openskyusername>", "<openskypass>")
|
||
|
planeData = opens_api.get_states(time_secs=0, icao24=TRACK_PLANE.lower())
|
||
|
return planeData
|