This script uses the wheretheiss.at API to retrieve data about the International Space Station (ISS) and display it in the console. It uses the npm package Signale to format and color the output.
- Node.js and npm must be installed on your machine.
- Clone the repository.
- Install the dependencies by running
npm install
. - Run the script with
node isstracking.js
.
The script will continuously retrieve data from the API and display it in the console. The data includes the following fields:
- Latitude
- Longitude
- Altitude
- Velocity
- Visibility
Each field is labeled and color-coded for easy reading. The script also clears the console each time the data is updated.
You can customize the output by modifying the options passed to the Signale constructor in the script. For example, you can change the color and badge of each field by modifying the 'color' and 'badge' properties in the 'types' object. You can also change the refresh rate by modifying the value passed to setInterval()
function.