MagicMirror
MagicMirror copied to clipboard
[weather] openmeteo hourly does not work into next day
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.