--:--
2,3°C
Szombathely
2,3°C
--
🌅 Napszakok és 24 órás előrejelzés
👕 Mit vegyek fel ma Szombathelyen?
👕
Betöltés...
📅 hét napos előrejelzés szombathelyre
érintsd meg a napokat a további részletekért
📈 Előrejelzési grafikonok

📊 szöveges előrejelzés szombathelyre

🔍 🔄 FRISSÍTÉS

⏳ visszatekintés: 100 év adatai

Összes látogatás: ...
">↑ `; vC++; } }); // --- INNENTŐL JÖN A HÉTNAPOS ELŐREJELZÉS A HÁROM IKONNAL --- const f7Cont = document.getElementById('forecast-7day'); f7Cont.innerHTML = ''; for (let i = 0; i < 7; i++) { const d = new Date(); d.setDate(d.getDate() + i); const dayName = daysHU[d.getDay()]; // Időszeletek: Reggel (8h), Nappal (14h), Este (20h) const hReggel = (i * 24) + 8; const hNappal = (i * 24) + 14; const hEste = (i * 24) + 20; const ikonReggel = getI(w.hourly.weather_code[hReggel], true).src; const ikonNappal = getI(w.hourly.weather_code[hNappal], true).src; const ikonEste = getI(w.hourly.weather_code[hEste], false).src; const minT = Math.round(w.daily.temperature_2m_min[i]); const maxT = Math.round(w.daily.temperature_2m_max[i]); f7Cont.innerHTML += `
${dayName}
${minT}° / ${maxT}°
`; } // --- VÉGE A HÉTNAPOS RÉSZNEK --- } catch (err) { console.error("Hiba az adatok frissítésekor:", err); } } // Indítás és időzítő updateWeatherAssets(); setInterval(updateWeatherAssets, 60000); const windColor = getWindColor(windSpeed); const phaseDate = new Date(); if(p.nextDay) phaseDate.setDate(phaseDate.getDate() + 1); pCont.innerHTML += `
${daysHU[phaseDate.getDay()]}
${p.n}
${Math.round(w.hourly.temperature_2m[tH])}°C
💧 ${w.hourly.precipitation_probability[tH]}%
`; vC++; } }); const hCont = document.getElementById('hourly-container'); hCont.innerHTML = ''; for(let i=0; i<24; i++) { const hIdx = currHour + i; if(hIdx < w.hourly.time.length) { const hTime = new Date(w.hourly.time[hIdx]).getHours(); const hIcon = getI(w.hourly.weather_code[hIdx], w.hourly.is_day[hIdx]); hCont.innerHTML += `
${hTime}:00 ${Math.round(w.hourly.temperature_2m[hIdx])}°C 💧${w.hourly.precipitation_probability[hIdx]}%
`; } } const f7 = document.getElementById('forecast-7day'); f7.innerHTML = ''; for(let i=0; i<7; i++) { const d = new Date(); d.setDate(d.getDate() + i); const icon = getI(w.daily.weather_code[i], true); f7.innerHTML += `
${i === 0 ? "MA" : daysHU[d.getDay()]}
${Math.round(w.daily.temperature_2m_min[i])}° / ${Math.round(w.daily.temperature_2m_max[i])}°
`; } } catch (e) { console.log(e); } } updateWeatherAssets(); setInterval(updateWeatherAssets, 300000);