get_passes.py is a quick and simple Python code that downloads the next visible passes of a
list of satellites from the N2YO API. Currently it just creates a query and returns the JSON
that the API returns.
Requires Python 3 and the requests and toml packages.
Run python get_passes.py satellites.txt, with the following
-
satellites.txtis a file containing the desired satellite IDs, one per line. The filetest_list.txtcan be used for testing. It contains the IDs of the International Space Station and the AALTO-1 cubesat. -
The file
config.tomlmust exist and contain the station coordinates, number of days to look up from the current time, and the minimum pass duration (in seconds) to be accepted. See the example. -
The file
N2YO_API_KEY.txtmust exist and contain your API key. This is provided on the user page when logged in on N2YO.