This is a lightweight single-page weather dashboard that:
- Searches cities via Open‑Meteo geocoding (no API key).
- Shows current weather and 7-day forecast.
- Displays an hourly temperature chart (next ~48 hours) using Chart.js.
- Unit toggle: °C / °F.
- Geolocation support (if the browser grants permission).
Files
- index.html — main page (single-file, includes Chart.js via CDN)
- netlify.toml — Netlify config (optional)
Local usage (quick)
- Save the index.html to a folder (e.g.,
weather-dashboard/). - Open
index.htmlin your browser OR run the local server:
python -m http.server 8000
and open http://localhost:8000
Deploy to Netlify (drag & drop)
- Go to https://app.netlify.com/drop
- Drag the
index.htmlfile (or the folder/ZIP) onto the page. - Netlify will publish a site and give you a URL.
Notes
- No API key required.
- Open‑Meteo rate limits are generous for casual use; for heavy production use consider caching.
- For automated deploys, push these files to a GitHub repo and connect Netlify to that repo.