X

Page title or image name
Weather forecast
Accomodation Nearby

Forecast for Aldridge Sailing Club

    TimeWeatherTempVisibilityDirectionSpeedPressureHumidPercip(mm)
    comments powered by Disqus
    '); var weatherData = weather.data.weather; var imageUrl = "http://events.sailracer.org/weather/icons/"; var winDirimageBase = "http://events.sailracer.org/weather/arrows/"; var initialWeatherToday = weather.data.current_condition[0] //build clickes and first table $(function () { for (var i = 0; i < weatherData.length; i++) { var day = new Date(weatherData[i].date).getDay(); var indx = i == 0 ? getWeathHourIndex() : 0; var ary = weatherData[i].hourly[indx].weatherIconUrl[0].value.split('/'); var filename = ary[ary.length - 1]; var current = i == 0 ? "current" : ""; $(".mylist").append(genclickerHtml(i, days[day], filename, weatherData[i].hourly[indx].winddirDegree, weatherData[i].hourly[indx].tempC, weatherData[i].hourly[indx].windspeedMiles, current)); GenSummary(0); } }); function GenSummary(index) { if (typeof currentViewIndex !== "undefined") { if (currentViewIndex === index) return; } setActive(index); $("#tbodyid").empty(); var currentDay = weatherData[index].hourly; var j1 = index == 0 ? getWeathHourIndex() : 0; for (var j = j1; j < currentDay.length; j++) { var filename, time, temp, v, dir, dirDeg, spd, prsr, hum, percp; var ary = currentDay[j].weatherIconUrl[0].value.split('/'); filename = ary[ary.length - 1]; temp = currentDay[j].tempC; v = currentDay[j].visibility; dir = currentDay[j].winddir16Point; dirDeg = currentDay[j].winddirDegree; spd = currentDay[j].windspeedMiles; prsr = currentDay[j].pressure; time = getTimeFromIndex(currentDay[j].time) hum = currentDay[j].humidity; percp = currentDay[j].precipMM; $(".details").append(genSummaryHtml(time, filename, temp, v, dir, spd, prsr, hum, percp)); currentViewIndex = index; } }