Skip to content

[Bug] weather provider openmeteo fails handling summer/winter time #3930

@khassel

Description

@khassel

Environment

MagicMirror² version: develop

Which start option are you using?

node --run server

Are you using PM2?

No

Module

None

Have you tried disabling other modules?

  • Yes
  • No

Have you searched if someone else has already reported the issue on the forum or in the issues?

  • Yes

What did you do?

Configuration
                {
                        module: "weather",
                        header: "openmeteo forecast",
                        position: "top_right",
                        config: {
                                weatherProvider: "openmeteo",
                                type: "forecast",
                                appendLocationNameToHeader: false,
                                lat: 50.17659,
                                lon: 8.62685,
                                useCorsProxy: true,
                                roundTemp: true,
                                showPrecipitationProbability: true,
                                windUnits: "kmh",
                                fade: false,
                                forecastDateFormat: "dd HH",
                                absoluteDates: true
                        },
                },
                {
                        module: "weather",
                        header: "yr forecast",
                        position: "top_right",
                        config: {
                                weatherProvider: "yr",
                                type: "forecast",
                                appendLocationNameToHeader: false,
                                lat: 50.17659,
                                lon: 8.62685,
                                roundTemp: true,
                                windUnits: "kmh",
                                fade: false,
                                forecastDateFormat: "dd HH",
                                absoluteDates: true
                        },
                },
Image

What did you expect to happen?

openmeteo should display

SA 00
SU 00
MO 00
TU 00
WE 00

What actually happened?

openmeteo displays

SA 00
SU 00
SU 23
MO 23
TU 23

Additional comments

I added the same with yr provider which works. Because they use other hours they are not impacted by the openmeteo problem.

openmeteo data are linux timestamps:

Image

At the moment it is not clear if this is a problem of openmeteo or a general problem of the weather module.

Participation

  • I am willing to submit a pull request for this change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions