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
2 changed files with 4 additions and 3 deletions

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"
};