{"id":24360443,"url":"https://github.com/dms-codes/n2yo","last_synced_at":"2025-04-15T15:22:07.965Z","repository":{"id":169618393,"uuid":"372821769","full_name":"dms-codes/n2yo","owner":"dms-codes","description":"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. ","archived":false,"fork":false,"pushed_at":"2023-09-30T22:03:18.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T21:51:08.461Z","etag":null,"topics":["amsat","n2yo-api","python","satellite","tracking-api"],"latest_commit_sha":null,"homepage":"https://github.com/dms-codes/n2yo","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dms-codes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-01T12:27:35.000Z","updated_at":"2024-11-19T11:37:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"dcf41ca7-66d0-4fdf-8e27-1e17cdd3d22c","html_url":"https://github.com/dms-codes/n2yo","commit_stats":null,"previous_names":["dms-codes/n2yo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fn2yo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fn2yo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fn2yo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dms-codes%2Fn2yo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dms-codes","download_url":"https://codeload.github.com/dms-codes/n2yo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249095157,"owners_count":21211873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amsat","n2yo-api","python","satellite","tracking-api"],"created_at":"2025-01-18T21:19:56.499Z","updated_at":"2025-04-15T15:22:07.930Z","avatar_url":"https://github.com/dms-codes.png","language":"Python","readme":"# Satellite Tracking Script\n\nThis 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.\n\n## Prerequisites\n\nBefore using this script, you need to obtain an API key from N2YO. Replace `\"yourAPIkey\"` in the script with your actual API key.\n\n## Usage\n\nTo use the script, you can call the provided functions to retrieve specific information about satellites. Here are some of the available functions:\n\n- `GetTLEData(NORADId)`: Retrieves TLE data for a satellite with the given NORAD ID.\n- `GetSatPosData(NORAId, observer_lat, observer_long, observer_alt, seconds)`: Retrieves satellite position data for a specific satellite at a given observer's location.\n- `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.\n\nYou 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.\n\n## Example\n\n```python\nif __name__ == \"__main__\":\n    observer_lat = -6.21462\t\n    observer_long = 106.84513\n    observer_alt = 0\n    print(ReportRadioPasses(\"33591\", observer_lat, observer_long, observer_alt, 1, 10))\n```\n\nIn 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.\n\n## Dependencies\n\nThis script relies on the `requests` library to make HTTP requests to the N2YO API. Make sure you have it installed before running the script.\n\n```bash\npip install requests\n```\n\n## Disclaimer\n\nPlease be aware of the terms and conditions of the N2YO API and comply with any usage restrictions or limitations imposed by the service provider.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Fn2yo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdms-codes%2Fn2yo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdms-codes%2Fn2yo/lists"}