Skip to content

Commit

Permalink
🔀 Merge pull request #1369 from sachahjkl/fix/weather
Browse files Browse the repository at this point in the history
fix(weather forecast): updated widget
Fixes #1321
  • Loading branch information
Lissy93 authored Oct 28, 2023
2 parents 974c116 + 5adf9ef commit 56bd835
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/components/Widgets/WeatherForecast.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default {
icon: day.weather[0].icon,
main: day.weather[0].main,
description: day.weather[0].description,
temp: this.processTemp(day.temp.day),
temp: this.processTemp(day.main.temp),
info: this.makeWeatherData(day),
});
});
Expand All @@ -109,15 +109,15 @@ export default {
makeWeatherData(data) {
return [
[
{ label: 'Min Temp', value: this.processTemp(data.temp.min) },
{ label: 'Max Temp', value: this.processTemp(data.temp.max) },
{ label: 'Feels Like', value: this.processTemp(data.feels_like.day) },
{ label: 'Min Temp', value: this.processTemp(data.main.temp_min) },
{ label: 'Max Temp', value: this.processTemp(data.main.temp_max) },
{ label: 'Feels Like', value: this.processTemp(data.main.feels_like) },
],
[
{ label: 'Pressure', value: `${data.pressure}hPa` },
{ label: 'Humidity', value: `${data.humidity}%` },
{ label: 'wind', value: `${data.speed}${this.speedDisplayUnits}` },
{ label: 'clouds', value: `${data.clouds}%` },
{ label: 'Pressure', value: `${data.main.pressure}hPa` },
{ label: 'Humidity', value: `${data.main.humidity}%` },
{ label: 'wind', value: `${data.wind.speed}${this.speedDisplayUnits}` },
{ label: 'clouds', value: `${data.clouds.all}%` },
],
];
},
Expand Down
2 changes: 1 addition & 1 deletion src/utils/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ module.exports = {
walletBalance: 'https://api.blockcypher.com/v1',
walletQrCode: 'https://www.bitcoinqrcodemaker.com/api',
weather: 'https://api.openweathermap.org/data/2.5/weather',
weatherForecast: 'https://api.openweathermap.org/data/2.5/forecast/daily',
weatherForecast: 'https://api.openweathermap.org/data/2.5/forecast',
xkcdComic: 'https://xkcd.vercel.app/',
},
/* URLs for web search engines */
Expand Down

1 comment on commit 56bd835

@vercel
Copy link

@vercel vercel bot commented on 56bd835 Oct 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dashy – ./

dashy-git-master-alicia.vercel.app
dashy-delta.vercel.app
dashy-alicia.vercel.app

Please sign in to comment.