John, Don't worry about the import config file, I think I have found the issue. You have uncovered a bug in how the import field mapping is processed; normally wee_import needs to be told what units a given imported field is in eg C or F if a temperature based field. In such cases the field map is of the format:
weewx field name = import field name, weewx unit code eg outTemp = temp, degree_C Normally you must include the weewx unit code for each import field. Date-time fields are a bit special, wee_import checks if the import field is a timestamp, if not it checks if it is a date-time format it can decode and if not it throws an error. So for the date-time fields the weewx unit code can be omitted (which is what you have done). The bug you have uncovered is in the parsing of the field map; in essence the whole dateTime map is discarded if there is no weewx unit code which is why you get the error you have encountered. I will need to make a couple of changes to some of the wee_import code to fix the bug but you can avoid the bug by including the weewx unit code against your dateTime map as follows: dateTime = timestamp, unix_epoch Let us know how you go. Gary On Sunday, 6 November 2016 07:11:38 UTC+10, gjr80 wrote: > > Hi John, > > > Sorry to be incompetent. This is the last import and should fill the gap > from 2011 to 2013 > > I see no need to be sorry, the tool has not worked as it should. I will > have a look at this later today. I know you have posted an extract of > /home/weewx/import11.conf but could I ask you to attach the actual file, > there should not be anything sensitive in it. > > 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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.