NEO Objects Viewer
This extension allows you to view Near-Earth Objects (NEOs) from NASA's API for the next 7 days, including today. It provides detailed information about each NEO, including name, size, and close approach date. This is an easy-to-use tool for anyone interested in tracking NEOs and their proximity to Earth.
Features
- View NEO objects for the next 7 days, including today.
- Get detailed information about each NEO, including its size, speed, and closest approach to Earth.
- Fetch data from NASA's API in real-time.
- Display NEOs in an easy-to-read format in the editor.
Example:
Here's an example of how the NEO data might look:
[
\text{{NEO Name: 2023 AL1}} \
\text{{Close Approach Date: 2025-04-01}} \
\text{{Estimated Diameter: 30 meters}} \
\text{{Speed: 20 km/s}}
]
Tip: Click on each NEO to open a detailed view with additional information!
Requirements
- Node.js: Ensure that Node.js is installed in your environment.
- NASA API Key: You will need to obtain a NASA API key. You can get one by registering on NASA’s API portal.
- VS Code: This extension is compatible with Visual Studio Code, version 1.50 or higher.
Installation:
- Clone or download the repository.
- Install dependencies using
npm install
.
- Add your NASA API key to the configuration (see Extension Settings below).
- Launch the extension in VS Code.
Extension Settings
This extension contributes the following settings:
neoViewer.apiKey
: Set your NASA API key here to authenticate requests to the NASA API.
neoViewer.dateRange
: Set the date range for NEOs (default is 7 days, including today).
Example:
{
"neoViewer.apiKey": "your-api-key-here",
"neoViewer.dateRange": 7
}
Known Issues
- The extension may take a few seconds to load NEO data as it fetches it from the NASA API.
- Occasionally, the NASA API may experience downtime, leading to temporary unavailability of NEO data.
- If the API key is invalid, the extension will fail to load NEOs and show an error message.
Release Notes
1.0.0
- Initial release of NEO Objects Viewer extension.
- Fetch NEO data from NASA API and display it for the next 7 days.
1.0.1
- Bug fix: Improved error handling for invalid API keys.
- Performance improvements for fetching and rendering NEO data.
Following extension guidelines
Ensure that you've read through the extension guidelines and follow the best practices for creating your extension.
Working with Markdown
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
- Split the editor (
Cmd+\
on macOS or Ctrl+\
on Windows and Linux).
- Toggle preview (
Shift+Cmd+V
on macOS or Shift+Ctrl+V
on Windows and Linux).
- Press
Ctrl+Space
(Windows, Linux, macOS) to see a list of Markdown snippets.
Enjoy!