@@ -99,7 +99,7 @@ export default {
99
99
icon: day .weather [0 ].icon ,
100
100
main: day .weather [0 ].main ,
101
101
description: day .weather [0 ].description ,
102
- temp: this .processTemp (day .temp . day ),
102
+ temp: this .processTemp (day .main . temp ),
103
103
info: this .makeWeatherData (day),
104
104
});
105
105
});
@@ -109,15 +109,15 @@ export default {
109
109
makeWeatherData (data ) {
110
110
return [
111
111
[
112
- { label: ' Min Temp' , value: this .processTemp (data .temp . min ) },
113
- { label: ' Max Temp' , value: this .processTemp (data .temp . max ) },
114
- { label: ' Feels Like' , value: this .processTemp (data .feels_like . day ) },
112
+ { label: ' Min Temp' , value: this .processTemp (data .main . temp_min ) },
113
+ { label: ' Max Temp' , value: this .processTemp (data .main . temp_max ) },
114
+ { label: ' Feels Like' , value: this .processTemp (data .main . feels_like ) },
115
115
],
116
116
[
117
- { label: ' Pressure' , value: ` ${ data .pressure } hPa` },
118
- { label: ' Humidity' , value: ` ${ data .humidity } %` },
119
- { label: ' wind' , value: ` ${ data .speed }${ this .speedDisplayUnits } ` },
120
- { label: ' clouds' , value: ` ${ data .clouds } %` },
117
+ { label: ' Pressure' , value: ` ${ data .main . pressure } hPa` },
118
+ { label: ' Humidity' , value: ` ${ data .main . humidity } %` },
119
+ { label: ' wind' , value: ` ${ data .wind . speed }${ this .speedDisplayUnits } ` },
120
+ { label: ' clouds' , value: ` ${ data .clouds . all } %` },
121
121
],
122
122
];
123
123
},
0 commit comments