pywws converter using undocumented wee_import feature

39 views
Skip to first unread message

Konrad Skeri Ekblad

unread,
Oct 28, 2021, 3:34:52 PM10/28/21
to weewx-user
Just finished my pywws2weewx converter (available at https://github.com/LapplandsCohan/pywws2weewx) which takes pywws raw files and creates a csv and a config file for wee_import. It would probably not be too much work to make that into a proper wee_import module if one would like.

Anyway. According to the wee_import guide the interval setting has to be one of derive, conf or an integer. For derive there muse be no missing datapoints as I understand the documentation, while the other options uses a fixed interval and is ok with missing datapoints, but on the other hand requires that all datapoints have the same time interval.
However, according from how I interpret how wee_import actually handles things you can use derive and have missing datapoints if you in the datafile also include a column for interval (which conveniently happens to be available in the pywws data) as wee_import in this case actually does not derive but uses the csv data instead.
From my tests this works fine on a pywws dataset with missing points and varying datapoint intervals, but can someone confirm that this is a working but undocumented usage of the wee_import?

regards
Konrad Skeri Ekblad

gjr80

unread,
Oct 29, 2021, 2:54:06 AM10/29/21
to weewx-user
Hi,

If by missing data points you mean missing records then yes your understanding of interval = derive appears correct. If your data includes a column named interval and it contains valid data (ie can be converted to an integer) then yes it will be used for the interval field for each imported record in preference to whatever interval = setting you have, in effect in such cases the interval setting in the import config file is ignored.

I will make a note to add some clarifying words to the Utilities Guide.

Gary
Reply all
Reply to author
Forward
0 new messages