NASA EPIC Earth Imagery Integration
-
Created
@app.route("/api/epic")an endpoint that parses the date parameter and validates input against theYYYY-MM-DDformat. -
Built
_fetch_epic_images()to query the EPIC API from NASA and parse the full PNG, including year, month, and day path components. -
Wrapped raw API calls inside a
_cached()helper function with a 24-hour cache TTL to lower redundant external API requests. -
Added a date selection input with a Show Images button and responsive grid to display all earth images.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.