Skip to content

Commit 31855f4

Browse files
committed
Fixup forecast changes
1 parent e7f39cc commit 31855f4

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/components/WeatherList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default {
2424
methods: {
2525
getCityDetails () {
2626
let self = this
27-
axios.get('/group?id=2643743,2759794,2988507,3054643,2950159')
27+
axios.get('/group?id=2643743,2759794,2988507,3054643,2950159') // Get different location IDs from the API
2828
.then(response => {
2929
self.cities = response.data
3030
})

src/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ Vue.axios.defaults.params = {}
2020
// API key
2121
Vue.axios.defaults.params['appid'] = process.env.VUE_APP_WEATHERKEY // Get your own at openweathermap.com
2222

23-
console.log(process.env.VUE_APP_WEATHERKEY);
24-
2523
// set default unit type
2624
Vue.axios.defaults.params['units'] = 'imperial'
2725

src/views/CityDetail.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="detail__header">
66
<div class="detail__title">
77
<strong class="strong">{{ details.city.name }}, {{ details.city.country}}</strong>
8-
5 Day Weather Forecast
8+
Future Weather Forecast
99
</div>
1010
<v-link
1111
class="detail__back button--secondary"
@@ -55,7 +55,7 @@ export default {
5555
filteredDays () {
5656
return this.details.list.filter((item) => {
5757
const date = new Date(item.dt * 1000)
58-
return date.getHours() !== 0
58+
return date.getHours() === 11
5959
})
6060
}
6161
},

0 commit comments

Comments
 (0)