It appears that your daily summaries have somehow ended up in a state where 
they are out of sync with the archive records in the database. When the 
daily summaries are in this state the partial update of the daily summaries 
that occurs after missing derived records are calculated is prevented from 
being run. This is what you are seeing. The solution is to rebuild your 
daily summaries separately before re-importing the data concerned. To do 
this try running:

weectl database rebuild-daily

This will rebuild the daily summaries and should see the daily summaries 
back in sync with the archive. You should then be able to re-import your WU 
data. Note the original non-dry-run import should have resulted in the 
imported WU records being saved to archive (it was just the re-calculated 
derived obs and daily summary rebuild that failed), so when you re-import 
the same data you will likely see many 'duplicate record' warnings in the 
log. These warnings can be ignored, the important thing is the import 
completes and exits normally.

Gary

On Monday, 17 February 2025 at 22:55:27 UTC+10 Artvd wrote:

>  I am trying  to import wunderground data with weectl import using the 
> Weewx 5.1 guidance and standard settings in wu.config
>
> During dry run there were no problems. But in the " wet" run i get the 
> message:
> "Daily summaries are not complete. Try again without from/to dates" 
> I would like to import 4 years and hesitate to work without dates. Is 
> there another possibility for resolve this problem? 
> Below the relevant part from the terminal. 
>
> $ weectl import --import-config=/var/tmp/wu.conf  --from=2021-01-01T00:00 
> --to=2021-01-10T00:00
> Using configuration file /home/avd/weewx-data/weewx.conf
> Starting weectl import...
> Observation history for Weather Underground station 'IVAUXS11' will be 
> imported.
> Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
> Destination table 'archive' unit system is '0x01' (US).
> Imported records will not overwrite existing database records.
> Missing derived observations will be calculated.
> Observations timestamped after 2021-01-01 00:00:00 CET (1609455600) and up 
> to and
> including 2021-01-10 00:00:00 CET (1610233200) will be imported.
> Starting import ...
> Records covering multiple periods have been identified for import.
> Period 1 ...
> Proceeding will save all imported records in the WeeWX archive.
> Are you sure you want to proceed (y/n)? y
> Unique records processed: 74; Last timestamp: 2021-01-01 23:45:54 CET 
> (1609541154)
> Period 2 ...
> Unique records processed: 74; Last timestamp: 2021-01-02 23:45:54 CET 
> (1609627554)
> Period 3 ...
> Unique records processed: 94; Last timestamp: 2021-01-03 23:45:53 CET 
> (1609713953)
> Period 4 ...
> Unique records processed: 96; Last timestamp: 2021-01-04 23:45:54 CET 
> (1609800354)
> Period 5 ...
> Unique records processed: 96; Last timestamp: 2021-01-05 23:45:53 CET 
> (1609886753)
> Period 6 ...
> Unique records processed: 84; Last timestamp: 2021-01-06 23:45:54 CET 
> (1609973154)
> Period 7 ...
> Unique records processed: 70; Last timestamp: 2021-01-07 23:45:53 CET 
> (1610059553)
> Period 8 ...
> Unique records processed: 71; Last timestamp: 2021-01-08 23:45:53 CET 
> (1610145953)
> Period 9 ...
> Unique records processed: 71; Last timestamp: 2021-01-09 23:45:54 CET 
> (1610232354)
> Period 10 ...
> Period 10 - no records identified for import.
> Calculating missing derived observations ...
> Processing record: 730; Last record: 2021-01-10 00:00:00 CET (1610233200)
> Recalculating daily summaries...
> **** Daily summaries are not complete. Try again without from/to dates.
> **** Nothing done, exiting.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/bf46a4f2-b5bc-4b36-8d06-daf48eaf00bbn%40googlegroups.com.

Reply via email to