mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-23 13:24:06 +00:00
fixed type=daily for provider openmeteo having no data … (#3451)
… when running after 23:00 Fixes #3449
This commit is contained in:
@@ -420,7 +420,7 @@ WeatherProvider.register("openmeteo", {
|
||||
const now = moment();
|
||||
|
||||
weathers.hourly.forEach((weather, i) => {
|
||||
if ((hours.length === 0 && weather.time.hour() <= now.hour()) || hours.length >= this.config.maxEntries) {
|
||||
if ((hours.length === 0 && weather.time <= now) || hours.length >= this.config.maxEntries) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user