mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
fixed type=daily for provider openmeteo having no data … (#3451)
… when running after 23:00 Fixes #3449
This commit is contained in:
parent
d1c17e7fc0
commit
cd0bc5b160
@ -20,6 +20,7 @@ _This release is scheduled to be released on 2024-07-01._
|
||||
### Fixed
|
||||
|
||||
- [weather] Fixed precipitationProbability in forecast for provider openmeteo (#3446)
|
||||
- [weather] Fixed type=daily for provider openmeteo having no data when running after 23:00 (#3449)
|
||||
|
||||
## [2.27.0] - 2024-04-01
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user