The 24-hour forecast view shows weather conditions for each of the next 24 hours, starting from the first entry in the hourly dataset returned by the API.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/m20prs/Sky-AI-Forecast/llms.txt
Use this file to discover all available pages before exploring further.
What is displayed
Each row in the list shows three pieces of information:| Column | Source field | Format |
|---|---|---|
| Time | hourly.time[i] | Local hour as "H:00" (e.g. "14:00") |
| Weather icon | hourly.weather_code[i] | Derived via getWeatherIcon() |
| Temperature | hourly.temperature_2m[i] | Shown in °C, unrounded |
hourly arrays).
How to trigger it
Click the 24h Forecast tab. The view does not load automatically — you must click the tab after a city search has completed.The tab is hidden until a successful search has been performed. Once visible, clicking it always re-renders the list from the current
globalWeatherData object.Time formatting
The rawhourly.time values are ISO 8601 strings (e.g. "2024-06-15T14:00"). The app extracts the local hour using:
"0:00", "9:00", and "14:00". The timezone is determined by the timezone=auto parameter in the weather API request, so times reflect the local time at the searched city.
Weather icons
Icons follow the samegetWeatherIcon() logic used across all views:
| Code range | Icon | Colour |
|---|---|---|
0 | Sun | Amber |
1 – 3 | Cloud | Light blue |
4+ | Cloud-rain | Blue |