Fixed wind speed units for Open-Meteo Weather Provider (#3054)

Resolved technical debt for
[2964](https://github.com/MichMich/MagicMirror/pull/2964):

- Set wind speed unit to m/s
- Rename parameter `past_days` to `pastDays` to be consistent with all
configs
This commit is contained in:
Andrés Vanegas Jiménez 2023-03-01 03:38:38 -05:00 committed by GitHub
parent 1b2785cc56
commit 23ee155ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -38,6 +38,7 @@ _This release is scheduled to be released on 2023-04-01._
- Cleanup jest coverage for patches
- Update `stylelint` dependencies, switch to `stylelint-config-standard` and handle `stylelint` issues
- Convert lots of callbacks to async/await
- Fixed Open-Meteo wind speed units
### Fixed

View File

@ -24,7 +24,7 @@ WeatherProvider.register("openmeteo", {
apiBase: OPEN_METEO_BASE,
lat: 0,
lon: 0,
past_days: 0,
pastDays: 0,
type: "current"
},
@ -227,12 +227,12 @@ WeatherProvider.register("openmeteo", {
longitude: this.config.lon,
timeformat: "unixtime",
timezone: "auto",
past_days: this.config.past_days ?? 0,
past_days: this.config.pastDays ?? 0,
daily: this.dailyParams,
hourly: this.hourlyParams,
// Fixed units as metric
temperature_unit: "celsius",
windspeed_unit: "kmh",
windspeed_unit: "ms",
precipitation_unit: "mm"
};