- Go to https://openweathermap.org/api
- Sign up for free account
- Generate API key
- Copy key to
src/js/config.js
- Public API for ocean current data
- No registration needed
- Get your OpenWeatherMap API key
- Open
src/js/config.js - Replace
YOUR_API_KEY_HEREwith your actual key - Save file
- Open
index.htmlin browser - Check browser console for API connection status
- OpenWeatherMap Free Tier: 1,000 calls/day
- NOAA CO-OPS: No limit (public service)
Your OpenWeatherMap API key will look like this:
a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
Never commit your actual API keys to version control. The config.js file should be added to .gitignore to keep your keys private.