Skip to content

lanfeng2/-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Dashboard (Open‑Meteo) — Ready-to-deploy

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)

  1. Save the index.html to a folder (e.g., weather-dashboard/).
  2. Open index.html in your browser OR run the local server:
python -m http.server 8000

and open http://localhost:8000

Deploy to Netlify (drag & drop)

  1. Go to https://app.netlify.com/drop
  2. Drag the index.html file (or the folder/ZIP) onto the page.
  3. 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.

About

anfeng

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors