diff --git a/bin/weewx/xtypes.py b/bin/weewx/xtypes.py index b8997d33..6365c4a8 100644 --- a/bin/weewx/xtypes.py +++ b/bin/weewx/xtypes.py @@ -1084,12 +1084,8 @@ class WindVecDaily(XType): if aggregate_type not in ['avg', 'not_null']: raise weewx.UnknownAggregation(aggregate_type) - # We cannot use the day summaries if the starting and ending times of the aggregation - # interval are not on midnight boundaries, and are not the first or last records in the - # database. - if not (isStartOfDay(timespan.start) or timespan.start == db_manager.first_timestamp) \ - or not (isStartOfDay(timespan.stop) or timespan.stop == db_manager.last_timestamp): - raise weewx.UnknownAggregation(aggregate_type) + # Check to see whether we can use the daily summaries: + DailySummaries._check_eligibility('wind', timespan, db_manager, aggregate_type) if aggregate_type == 'not_null': # Aggregate type 'not_null' is actually run against 'wind'. diff --git a/docs/changes.txt b/docs/changes.txt index a102b72d..7a179fdc 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -8,6 +8,8 @@ Image.ANTIALIAS were deprecated in Pillow 9.2 (1-Jul-2022), then removed in Pillow 10.0 (1-Jul-2023). Replaces them with alternatives. Fixes issue #884. +Fixed problem when plotting wind vectors using database without daily summaries. + 4.10.2 02/22/2023