-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Hi MM-Team !
It's a windy day today for me and I noticed a bug by looking at my beautiful magic mirror ! (docker / up-to-date)
Without any parameter (config.js) the wind speed displayed is: 7 (Beaufort)
With the parameter "useBeaufort: false" the wind speed displayed is: 16 (m/s because I'm in "metric" units).
And it's just the rounded value from the OpenWeatherMap API: 15.8
But with the parameter "usebeaufort: false" and "useKmh: true" the displayed value is: 207 (km/h) (HURRICANE ?! ^^)
It should be ~57 (56,8 Km/h)... (m/s * 60 * 60) / 1000.
I have tried to challenge the logical tests in current.njk file...
And to find a bug in the weatherobject.js file (line 93)...
... but I'm not JS "fluent", I don't see anything wrong :-(
Could you please trying to solve this issue with me ? Thanks
