# Show NASA APOD and nearest asteroid data in Home Assistant dashboards

> Quick overview This workflow runs daily and pulls NASA’s Astronomy Picture of the Day plus the closest near‑Earth asteroid from NASA’s NEO feed, then upserts both datasets into Home Assistant as sensors for use in dashboards and automations. How it works 1. Runs every day at 6:00 AM (or on demand via manual trigger) and starts two parallel data pulls. 2. Requests NASA’s Astronomy Picture of the Day (APOD) from the NASA API with thumbnail support enabled. 3. Extracts the APOD title, date, media type, a best-available image/thumbnail URL, and trims the explanation to 280 characters. 4. Upserts a Home Assistant sensor state at sensor.nasaapod with the APOD title and attributes (image URL, explanation, media type, and date). 5. Requests NASA’s Near-Earth Object feed for today through the next three days from the NASA API. 6. Flattens all returned asteroids, sorts them by miss distance, and selects the closest approach with distance, estimated diameter, velocity, and hazard flag. 7. Upserts

- **Domain**: `n8n-workflow-19849.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/19849
- Page (HTML): https://agenstry.com/agents/n8n-workflow-19849.n8n.io
- Documentation: https://n8n.io/workflows/19849
