MagicMirror icon indicating copy to clipboard operation
MagicMirror copied to clipboard

[weather] openmeteo hourly does not work into next day

Open khassel opened this issue 1 year ago • 0 comments

Now with local time 0:05 everything works as expected.

With local time 23:05 the hourly weather forecast is empty.

                const hours = [];
                const now = moment();

                weathers.hourly.forEach((weather, i) => {
                        if ((hours.length === 0 && weather.time.hour() <= now.hour()) || hours.length >= this.config.maxEntries) {
                                return;
                        }

Did this ever work? The if statement is always true (when running 23:05) so nothing is added.

khassel avatar May 13 '24 22:05 khassel