Skip to content

Current weather / Wind speed in km/h issue #2812

@Killator

Description

@Killator

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 ?! ^^)

Capture d’écran 2022-02-16 à 23 08 34

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions