67
67
dateRel: "",//Tomorrow",
68
68
date: formatTimestamp(dailyForecasts[x].date, 'dddd, dd MMMM'),
69
69
temp: (dailyForecasts[x]["current"] === undefined) ? dailyForecasts[x][units].tempMax :
70
dailyForecasts[x]["current"][units].temp,
71
tempMin: dailyForecasts[x][units].tempMin,
72
tempMax: (dailyForecasts[x]["current"] !== undefined) ? dailyForecasts[x][units].tempMax : null,
70
dailyForecasts[x]["current"][units].temp,
71
tempMin: dailyForecasts[x][units].tempMin.toString(),
72
tempMax: (dailyForecasts[x]["current"] !== undefined
73
&& dailyForecasts[x][units].tempMax !== undefined) ? dailyForecasts[x][units].tempMax.toString() : "",
73
74
condIcon: dailyForecasts[x].icon,
74
75
wind_speed: dailyForecasts[x][wind_units].windSpeed,
75
76
wind_dir: dailyForecasts[x].windDir,
76
77
humid: dailyForecasts[x].humidity,
77
78
precip: +(dailyForecasts[x][precip_units].rain || dailyForecasts[x][precip_units].snow || 0).toFixed(2),
78
79
prop_precip: ((dailyForecasts[x].propPrecip !== undefined && ""+dailyForecasts[x].propPrecip) || ""),
80
precip_type: dailyForecasts[x].precipType || "",
81
uv: (dailyForecasts[x].uv !== undefined) ? dailyForecasts[x].uv.toString() : "",
79
82
press: dailyForecasts[x].pressure || false,
80
83
hours: dailyForecasts[x]["hourly"]