Never mind. I left off the degree_F  for the dew point and heat index
dry run indicated multiple different interval values.
I need to investigate although result indicated that all 43,483 records 
would be added.
Maybe I need to condense the data by hour and forget about the minutes?

On Friday, April 21, 2017 at 12:30:15 PM UTC-4, MRL wrote:
>
> Where and how is 'units' set? There is no 'units' in the data
>
>
> MRLiMac:bin Marc$ ./wee_import 
> --import-config=/Users/Shared/weewx/util/import/WD-csv.conf --dry-run
>
> Starting wee_import...
>
> A CSV import from source file 
> '/Users/Shared/weewx/util/import/12017lg.csv' has been requested.
>
> Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
>
> Destination table 'archive' unit system is '0x01' (US).
>
> Missing derived observations will be calculated.
>
> All weeWX UV fields will be set to None.
>
> All weeWX radiation fields will be set to None.
>
> This is a dry run, imported data will not be saved to archive.
>
> Traceback (most recent call last):
>
>   File "./wee_import", line 703, in <module>
>
>     main()
>
>   File "./wee_import", line 653, in main
>
>     source_obj.run()
>
>   File "/Users/Shared/weewx/bin/weeimport/weeimport.py", line 345, in run
>
>     _mapped_data = self.mapRawData(_raw_data, self.archive_unit_sys)
>
>   File "/Users/Shared/weewx/bin/weeimport/weeimport.py", line 707, in 
> mapRawData
>
>     self.map[_field]['units'],
>
> KeyError: 'units'
>
>
>     [[FieldMap]]
>
>         dateTime    = datetime, unix_epoch
>
>         barometer   = barometer, inHg
>
>         outTemp     = temperature, degree_F
>
>         outHumidity = humidity, percent
>
>         windSpeed   = windspeed, mile_per_hour
>
>         windGust    = gustspeed, mile_per_hour
>
>         windGustDir = direction, degree_compass
>
>         rain        = rainlastmin, inch
>
>         dewpoint    = dewpoint
>
>         heatindex   = heatindex
>
>         
>
>
> datetime,temperature,humidity,dewpoint,barometer,windspeed,gustspeed,direction,rainlastmin,dailyrain,monthlyrain,yearlyrain,heatindex
>
> 2017-01-01 
> 00:01:00,44.1,46,24.6,29.953,0.2,0.0,245,0.000,0.000,0.000,0.000,44.1
>
> 2017-01-01 
> 00:02:00,44.1,46,24.6,29.953,0.0,0.0,60,0.000,0.000,0.000,0.000,44.1
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to