Janne,

You've encountered a bug that shows when wee_import is run under python 2 
using a user defined field map. The fix required was not to wee_import but 
elsewhere in WeeWX and will appear in the next release (expected to be 
4.6.3). In the meantime since you are using WeeWX v4.6.2 you can safely 
just download the patched file, replace the corresponding file on your 
system and wee_import should work fine. To download and install the patched 
file:

1. move aside the file to be patched:
$ mv /usr/share/weewx/weeutil/weeutil.py 
/usr/share/weewx/weeutil/weeutil_orig.py

2. download the patched file:
$ wget -P /usr/share/weewx/weeutil/ 
https://raw.githubusercontent.com/weewx/weewx/master/bin/weeutil/weeutil.py

3. stop WeeWX (if it is running) and perform your import

I did a test import using the patched file, your import config file and 
your CSV data. The raw_datetime_format setting in your import config file 
needs to be changed to match the format of the date-time field your are 
using in your source data, it needs to be set as follows:

raw_datetime_format = "%d.%m.%y %H:%M"

With this change your data imported correctly and with out error. Note that 
you will likely receive the following message during the import:

Warning: Import field 'gustDir' is mapped to WeeWX field 'windGustDir' but 
the
         import field 'gustDir' could not be found in one or more records.
         WeeWX field 'windGustDir' will be set to 'None' in these records.

This is just a warning that you have a mapped field for which there is no 
source data. It can be safely ignored. 

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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/0468043d-46dc-4238-a86b-0944b2938384n%40googlegroups.com.

Reply via email to