Yes indeed, I understand the overflow on 2023-20-28. It’s a notion of milestone that I didn’t understand. The language barrier and translation approximations do not help in understanding the subtleties of language.
I just understood that the --from determines the inclusive close date values while the --to determines the exclusive date of the imported records. So why these errors? For the .conf files that you tell me about must be weewx.conf: *https://pastebin.com/91m9eRPK* and my import file wu-example.conf: *https://pastebin.com/NzwNsgcM* You may discover a configuration error. While manipulating the dates and their formatting to be compatible with wu__import's formatting, I discovered that specifying dates with times --from=2023-10-27T12:54 --to=2023 -10-28T00:45 does not generate any errors and exits with the success message. Le vendredi 27 octobre 2023 à 19:53:05 UTC+2, vince a écrit : > For the question about dates, you specified --date=2023-10-27 and it > looked for all records up to and the end of that date, which is 00:00:00 > 2023-10-28, so it seems to have worked as expected according to the > description in https://www.weewx.com/docs/5.0/devnotes/#archive-records > > Without seeing your .conf files (please remove any identifiers and keys) > it's difficult to guess about your TypeError in the transcript you provided > > On Friday, October 27, 2023 at 9:45:03 AM UTC-7 Sylvain M wrote: > > $ p*ython3 wee_import.py --config=/home/sylvain/weewx-data/weewx.conf > --import-config=/home/sylvain/weewx-data/util/import/wu-example.conf > --date=2023- 10-27 --verbose* > > > *Using WeeWX configuration file > /home/sylvain/weewx-data/weewx.confStarting wee_import...**Observation > history for Weather Underground station 'IG******' will be imported.* > > > *The following options will be used: > config=/home/sylvain/weewx-data/weewx.conf, > import-config=/home/sylvain/weewx-data/util/import/wu-example.conf* > > > * station=IG******, date=2023-10-27 > apiKey=****************************0b80 dry-run=None, > calc_missing=True, ignore_invalid_data=True slice=250, interval=1, > wind_direction=[0.0, 360.0]* > > > > *Using database binding 'wx_binding', which is bound to database > 'weewx'Destination table 'archive' unit system is '0x11' (METRICWX).Missing > derived observations will be calculated.* > > *Observations timestamped after 2023-10-27 00:00:00 CEST (1698357600) and > up to andincluding 2023-10-28 00:00:00 CEST (1698444000) will be > imported.Starting import...* > > > > *Records covering multiple periods have been identified for import.Period > 1...Obtaining raw import data for period 1 ...* > > > > > > > > > > > > > > > > > > > > *Raw import data read successfully for period 1.Mapping raw import data > for period 1 ...Mapped 155 records.Raw import data mapped successfully for > period 1.Saving mapped data to archive for period 1 ...Proceeding will save > all imported records in the WeeWX archive.Are you sure you want to proceed > (y/n)? yUnique records processed: 155; Last timestamp: 2023-10-27 12:54:52 > CEST (1698404092)Mapped data saved to archive successfully ""for period > 1.Period 2...Obtaining raw import data for period 2 ...**** Unable to load > source data for period 2.**** Possibly a bad station ID, an invalid date or > data does not exist for this period.****Period 2 will be skipped. > Proceeding to next period.Calculating missing derived observations > ...Processing record: 155; Last record: 2023-10-28 00:00:00 CEST > (1698444000)Recalculating daily summaries...Finished recalculating daily > summariesFinished calculating missing derived observationsFinished import* > > > > > > *Traceback (most recent call last): File > "/home/sylvain/weewx-venv/lib/python3.11/site-packages/wee_import.py", line > 899, in <module> hand() File > "/home/sylvain/weewx-venv/lib/python3.11/site-packages/wee_import.py", line > 829, in main source_obj.run()* > > > * File > "/home/sylvain/weewx-venv/lib/python3.11/site-packages/weeimport/weeimport.py", > > line 509, in run _msg = "%d records were processed and %d unique > records " \ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > ^^TypeError: must be real number, not NoneType* > > > > -- 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 on the web visit https://groups.google.com/d/msgid/weewx-user/e066b4e7-33bf-432a-8f6e-9c57b6df91f6n%40googlegroups.com.