Giter Club home page Giter Club logo

n2yo's Introduction

Satellite Tracking Script

This Python script allows you to track satellites using the N2YO API. It provides various functions to retrieve satellite information, including Two-Line Element Set (TLE) data, satellite positions, and radio passes information. You can use this script to monitor and track satellites of interest.

Prerequisites

Before using this script, you need to obtain an API key from N2YO. Replace "yourAPIkey" in the script with your actual API key.

Usage

To use the script, you can call the provided functions to retrieve specific information about satellites. Here are some of the available functions:

  • GetTLEData(NORADId): Retrieves TLE data for a satellite with the given NORAD ID.
  • GetSatPosData(NORAId, observer_lat, observer_long, observer_alt, seconds): Retrieves satellite position data for a specific satellite at a given observer's location.
  • GetRadioPasses(NORAId, observer_lat, observer_long, observer_alt, days, min_elevation): Retrieves radio pass information for a specific satellite over a specified number of days with a minimum elevation.

You can also use the ReportRadioPasses function to generate a report for radio passes of a specific satellite. The example provided at the end of the script demonstrates how to use this function.

Example

if __name__ == "__main__":
    observer_lat = -6.21462	
    observer_long = 106.84513
    observer_alt = 0
    print(ReportRadioPasses("33591", observer_lat, observer_long, observer_alt, 1, 10))

In this example, the script reports radio passes for a satellite with NORAD ID "33591" over the course of one day with a minimum elevation of 10 degrees.

Dependencies

This script relies on the requests library to make HTTP requests to the N2YO API. Make sure you have it installed before running the script.

pip install requests

Disclaimer

Please be aware of the terms and conditions of the N2YO API and comply with any usage restrictions or limitations imposed by the service provider.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.