Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dms-codes/amsatorg
Satellite Tracking Script This Python script allows you to retrieve real-time information about various amateur radio satellites. It provides two main functions: GetStatus(satname): This function retrieves and displays the status of a satellite, including recent reports, callsigns
https://github.com/dms-codes/amsatorg
amsat python radioamateur satellite
Last synced: 2 days ago
JSON representation
Satellite Tracking Script This Python script allows you to retrieve real-time information about various amateur radio satellites. It provides two main functions: GetStatus(satname): This function retrieves and displays the status of a satellite, including recent reports, callsigns
- Host: GitHub
- URL: https://github.com/dms-codes/amsatorg
- Owner: dms-codes
- Created: 2021-06-01T12:21:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-29T09:04:48.000Z (7 months ago)
- Last Synced: 2024-06-29T10:23:19.887Z (7 months ago)
- Topics: amsat, python, radioamateur, satellite
- Language: Python
- Homepage: https://github.com/dms-codes/amsatorg
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Satellite Tracking Script
This Python script allows you to retrieve real-time information about various amateur radio satellites. It provides two main functions:
1. `GetStatus(satname)`: This function retrieves and displays the status of a satellite, including recent reports, callsigns, and grid squares. It uses the AMSAT API to fetch this information.
2. `GetPasses(grid, satname)`: This function retrieves and displays the next passes of a satellite over a specific grid location. It provides information such as pass date, time, duration, azimuth of acquisition of signal (AOS), maximum elevation, azimuth of maximum elevation, and azimuth of loss of signal (LOS).
## Usage
To use this script, you need to have Python installed on your system. You can run the script by executing the following commands in your terminal:
1. Install the required libraries (if not already installed):
```bash
pip install requests
```2. Run the script with the following command:
```bash
python satellite_tracking.py
```Make sure to modify the `grid` and `sat_names` variables within the script to match your desired grid location and list of satellite names for tracking. By default, the script is configured to track the following satellites:
- AISAT-1
- CubeBel-1
- CUTE-1
- LilacSat-2
- FS-3You can customize the list of satellites by updating the `sat_names` variable.
## Examples
Here are some examples of how to use the script:
```python
# Retrieve status information for a satellite (e.g., IO-86)
status_info = GetStatus("IO-86")
print(status_info)# Retrieve upcoming passes for a satellite (e.g., IO-86) over a specific grid (e.g., OI33)
pass_info = GetPasses("OI33", "IO-86")
print(pass_info)# Retrieve the first upcoming pass for a satellite (e.g., IO-86) over a specific grid (e.g., OI33)
first_pass_info = Get1stPass("OI33", "IO-86")
print(first_pass_info)# Retrieve the first upcoming passes for a list of satellites (e.g., sat_names) over a specific grid (e.g., OI33)
GetAllSat1stPass("OI33", sat_names)
```Please note that you need an internet connection to fetch real-time satellite information from the AMSAT API.
## Dependencies
This script relies on the following Python library:
- `requests`: This library is used to make HTTP requests to the AMSAT API for retrieving satellite information. Install it using the `pip` command as mentioned above.
## Disclaimer
This script is provided as-is and may be subject to changes in the AMSAT API or other external factors. Use it responsibly and consider any usage restrictions or terms of use imposed by the AMSAT API provider.
Feel free to customize and extend the script to suit your specific needs or integrate it into other projects as necessary.