Hi,

No you are not missing anything, wee_import is expecting there to be more 
fields in your Cumulus log file than you currently have. I think I see why 
and a way ahead, just going to take a day or two to put together an updated 
Cumulus import module for wee_import.

I trust you are using WeeWX 3.9.2?

Gary

On Monday, 23 September 2019 08:09:54 UTC+10, Hyrules Hyrules wrote:
>
> Hi,
>
> I just discovered Weewx and i'm in the process of converting from Cumulus 
> and I'm trying to import 
> my monthly logs to my weewx database but after uploading the cumulus log 
> files and setting up my cumulus.conf
> file I get the following errow when I try a dryrun :
>
> Starting wee_import...
> Cumulus monthly log files in the '/var/tmp/cumulus' directory will be 
> imported
> The following options will be used:
>      config=/etc/weewx/weewx.conf, import-config=/var/tmp/cumulus.conf
>      from=None, to=None
>      dry-run=True, calc_missing=True, ignore_invalid_data=True
>      tranche=250, interval=derive
>      UV=True, radiation=True
> Using database binding 'wx_binding', which is bound to database 'weewx'
> Destination table 'archive' unit system is '0x01' (US).
> Missing derived observations will be calculated.
> This is a dry run, imported data will not be saved to archive.
> Obtaining raw import data for period 1...
> Raw import data read successfully for period 1.
> Mapping raw import data for period 1...
> Traceback (most recent call last):
>   File "/usr/bin/wee_import", line 834, in <module>
>     main()
>   File "/usr/bin/wee_import", line 784, in main
>     source_obj.run()
>   File "/usr/share/weewx/weeimport/weeimport.py", line 350, in run
>     _mapped_data = self.mapRawData(_raw_data, self.archive_unit_sys)
>   File "/usr/share/weewx/weeimport/weeimport.py", line 664, in mapRawData
>     _temp = float(_row[self.map[_field]['field_name']].strip())
> AttributeError: 'NoneType' object has no attribute 'strip'Enter code here
> ...
>
> I`ve been following the docs. Am I missing something ?
>
> My configuration file and sample monthly cumulus log file has been 
> attached to this message. Any help would be appreciated.
>
> My setup :
>
> Ubuntu server 19.04
> Davis Vantage Pro 2
>
> Thanks
>
>
>

-- 
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/a981ae36-9862-4855-8f38-4b301071e786%40googlegroups.com.

Reply via email to