88
88
dateRel: "",//Tomorrow",
89
89
date: formatTimestamp(dailyForecasts[x].date, 'dddd, dd MMMM'),
90
90
temp: (dailyForecasts[x]["current"] === undefined) ? dailyForecasts[x][units].tempMax :
91
dailyForecasts[x]["current"][units].temp,
92
tempMin: dailyForecasts[x][units].tempMin,
93
tempMax: (dailyForecasts[x]["current"] !== undefined) ? dailyForecasts[x][units].tempMax :
95
cond: dailyForecasts[x].condition.id,
91
dailyForecasts[x]["current"][units].temp,
92
tempMin: dailyForecasts[x][units].tempMin.toString(),
93
tempMax: (dailyForecasts[x]["current"] !== undefined
94
&& dailyForecasts[x][units].tempMax !== undefined) ? dailyForecasts[x][units].tempMax.toString() : "",
96
95
condIcon: dailyForecasts[x].icon,
97
96
wind_speed: dailyForecasts[x][wind_units].windSpeed,
98
97
wind_dir: dailyForecasts[x].windDir,
99
98
humid: dailyForecasts[x].humidity,
100
99
precip: +(dailyForecasts[x][precip_units].rain || dailyForecasts[x][precip_units].snow || 0).toFixed(2),
101
press: dailyForecasts[x].pressure,
100
prop_precip: ((dailyForecasts[x].propPrecip !== undefined && ""+dailyForecasts[x].propPrecip) || ""),
101
precip_type: dailyForecasts[x].precipType || "",
102
uv: (dailyForecasts[x].uv !== undefined) ? dailyForecasts[x].uv.toString() : "",
103
press: dailyForecasts[x].pressure || false,
102
104
hours: dailyForecasts[x]["hourly"]
192
196
LastUpdatedComponent{
193
197
id: lastUpdatedComponent
198
anchors.bottom: (tabFooter.visible) ? tabFooter.top : parent.bottom
198
width:parent.width-units.gu(10)
199
anchors.centerIn:parent
200
anchors.verticalCenterOffset: -units.gu(10)
204
text: i18n.tr("No weather data available at the moment, please try to refresh later again!")
206
wrapMode: Text.WordWrap
202
objectName: "TabFooter"
203
visible: !dataProviderLogo.visible
210
206
id: dataProviderLogo
207
objectName: "DataProviderLogo"
208
visible: (settings["service"] === "openweathermap")
211
209
source: Qt.resolvedUrl("../resources/images/openWeatherMapLogo.png")
213
211
bottom: parent.bottom
223
221
onClicked: Qt.openUrlExternally("http://m.openweathermap.org/city/" + locationData.location.services.openweathermap)
227
width:parent.width-units.gu(10)
228
anchors.centerIn:parent
229
anchors.verticalCenterOffset: -units.gu(10)
233
text: i18n.tr("No weather data available at the moment, please try to refresh later again!")
235
wrapMode: Text.WordWrap