Does Sky AI Forecast require an API key?
Does Sky AI Forecast require an API key?
No. Sky AI Forecast uses the Open-Meteo API, which is completely free and requires no registration or API key. You can start making requests immediately without any account setup.
Why is temperature always shown in Celsius?
Why is temperature always shown in Celsius?
The app requests the Replace uses of the raw temperature variable with
temperature_2m variable from Open-Meteo, which returns values in Celsius by default.To display Fahrenheit, apply the standard conversion formula — (°C × 9/5) + 32 — when rendering the temperature value. In script.js, wrap the temperature value before inserting it into the DOM:tempF wherever you want Fahrenheit output.How accurate is the forecast?
How accurate is the forecast?
Open-Meteo aggregates data from multiple national weather services, including NOAA, DWD, and ECMWF. Forecast accuracy is comparable to mainstream consumer weather apps.The 16-day forecast range is available, but predictions beyond 7 days carry significantly more uncertainty and should be treated as indicative rather than precise.
What happens if I search for an ambiguous city name?
What happens if I search for an ambiguous city name?
The app passes
count=1 in the geocoding query, so it always takes the first — and most relevant — result returned by Open-Meteo. For common or ambiguous names (e.g. “Springfield”), the result may not be the city you intended.To disambiguate, include a state or country in your search: Springfield, Illinois or Springfield, US.Can I use this app offline?
Can I use this app offline?
No. Sky AI Forecast fetches live data from the Open-Meteo API on every search. An active internet connection is required. There is no local caching or offline mode.
Why does the 16-Day Outlook only show 16 days when the function is called show30d()?
Why does the 16-Day Outlook only show 16 days when the function is called show30d()?
The function name
show30d() is a legacy of an earlier version of the app that targeted a 30-day range. The actual API call uses forecast_days=16, so the data covers 16 days. The function name was never updated to match and does not reflect the real forecast range.How do I deploy this to a website?
How do I deploy this to a website?
Sky AI Forecast is a static app consisting of three files:
index.html, style.css, and script.js. Any static hosting platform can serve it. Common options include:- GitHub Pages — push your files to a repository and enable Pages in the repository settings.
- Netlify — drag and drop your project folder into the Netlify dashboard.
- Vercel — import the repository or run
vercel deployfrom the project directory. - Any web server — upload the three files to the server’s public root directory.
Can I embed this app in an existing page?
Can I embed this app in an existing page?
Yes. Because the app is plain HTML, CSS, and JavaScript, you can integrate it into an existing project:Adjust class names and IDs if they conflict with your existing codebase.
- Copy the relevant HTML structure from
index.htmlinto your page. - Copy the styles from
style.cssinto your stylesheet (or import the file). - Copy the JavaScript from
script.jsinto your script bundle (or import the file). - Ensure the Lucide CDN script tag is present in your page’s
<head>: