Steve, Answers below.
Gary On Thursday, 16 April 2020 02:55:42 UTC+10, Steve Preston wrote: > > 1. Is it OK to run the wee_import process during an archive interval > "update"? > Not exactly sure what you mean here. Do you mean is it OK to run wee_import in between WeeWX adding records to the database during normal operation. If so there is not technical reason why wee_import can not be run while WeeWX is running though I guess you run the risk of contention, WeeWX (wee_import uses the WeeWX API to access the database) and the DBMS in use should handle this but I guess the risk remains that data to be imported may not be imported fully. If I have missed your question please clarify. 2. How does wee_import handle changes in the archive interval. All of the > data I have imported to this point has been from wlk files that had a five > minute interval. I may eventually find some earlier wlk files with a > shorter, 1 min, interval. Will this be a problem for wee_import? > For a CSV import wee_import can import the interval value directly from the imported data if (1) there is a field in the imported data containing the interval data and (2) there is a suitable entry in the import config file field map (refer [[FieldMap]] <http://weewx.com/docs/utilities.htm#csv_fieldmap> in the wee_import section of the Utilities Guide). Otherwise wee_import determines the interval value in one of three ways. wee_import can derive the interval value from the timestamps of subsequent records, this works well if the data being imported in consistent and has not missing records. If the data to be imported is inconsistent and has missing records you can get some odd interval values which may or may not significantly skew the resulting imported data, really depends in the actual interval value and the number of missing records. Secondly, wee_import can use a fixed interval value as specified in the import config file. Finally, wee_import can use the archive_interval value specified under [StdArchive] in weewx.conf. You will find basic guidance on the interval field for CSV imports here <http://weewx.com/docs/utilities.htm#csv_interval> in the wee_import section <http://weewx.com/docs/utilities.htm#wee_import_utility> of the Utilities Guide. Similar guidance is also provided for WU <http://weewx.com/docs/utilities.htm#wu_interval57> and Cumulus <http://weewx.com/docs/utilities.htm#cumulus_interval65> imports. So back to your question, wee_import should handle changes to the interval just fine (from a data display viewpoint WeeWX has been able to handle a changing interval value since v3.7.0). Mind you I don't recall specifically testing changes to the interval value when developing wee_import so it is possible there may be an issue or two. I guess we will see when you come to import that data :) -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/ab71c343-b243-4eff-8559-b113eb80e68e%40googlegroups.com.
