> > The data have now been added to weewx.sdb. Thanks again. > That is good to hear.
> I found that when i set the interval=30 in the configuration file, and > also provided a mapping for interval, then i got: > Warning: Records to be imported contain multiple different 'interval' > values. > This may mean the imported data is missing some records and it > may lead > to data integrity issues. If the raw data has a known, fixed > interval > value setting the relevant 'interval' setting in wee_import > config to > this value may give a better result. > I would have to check the code but I suspect that when you tell wee_import to set the interval via 2 different methods (in this case setting it to 30 minutes and also giving it a field to map) it defaults to the mapped field and some of the vales in those fields may be different, would need to look at the data. So i changed to interval=derived, with the field map still in place, and > get the same error. > Does not surprise me for the same reasons as above. > Then i removed the interval mapping and get a different error: > > Cannot derive 'interval' for record timestamp: 2010-10-31 01:15:13 IST > (1288484113). > **** Raw data is not in ascending date time order. > **** Nothing done, exiting. > Hmm, thought I pointed out in the Utilities Guide that wee_import needs its records in chronological order, but a check just now and it seems I did not. wee_import does not do any sorting of records, so if you are trying to derive the interval from successive records they need to be in date-time order. Finally i reverted to interval=30, with no mapping and all proceeded > without error. > That would work, no confusion over methods for working out interval, doesn't matter about order or differing values as every one is set to 30. Seems I will need to revisit the code and the docs. Thanks for the feedback. Gary -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
