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.