What is displayed
Each row in the list shows three pieces of information:| Column | Source field | Format |
|---|---|---|
| Date | daily.time[i] | Short month + day, e.g. "Jun 15" |
| Weather icon | daily.weather_code[i] | Derived via getWeatherIcon() |
| Daily high temp | daily.temperature_2m_max[i] | Rounded to the nearest integer, shown in °C (bold) |
globalWeatherData.daily.time — up to 16 entries, as the weather API is called with forecast_days=16.
How to trigger it
Click the 16-Day Outlook tab. Like the hourly view, it does not load automatically and requires a successful city search before the tab becomes visible.Date formatting
Rawdaily.time values are ISO 8601 date strings (e.g. "2024-06-15"). The app formats them using:
"Jun 15" regardless of the browser’s locale, because 'en-US' is hardcoded.
The function in the source code is named
show30d(), which is a legacy name. It displays 16 days of data, matching the forecast_days=16 parameter in the Open-Meteo API request.Temperature
The temperature shown is the daily maximum (temperature_2m_max), rounded with Math.round() and displayed in bold. Minimum temperatures are fetched by the API (temperature_2m_min) but are not currently rendered in this view.
The daily maximum is the highest temperature expected at 2 metres above ground level anywhere within that calendar day in the city’s local timezone.
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 |