Read on this forum, that dateTime does not need a unit. Fine
However, running the following config against the sample data, here:
#No,Time,Interval(mi),Indoor Humidity(%),Indoor Temperature(°C),Outdoor
Humidity(%),Outdoor Temperature(°C),Absolute
Pressure(hPa),Wind(km/h),Gust(km/h),Direction,Relative
Pressure(hPa),Dewpoint(°C),Windchill(°C),Hour Rainfall(mm),24 hour
Rainfall(mm),Week Rainfall(mm),Month Rainfall(mm),Total Rainfall(mm),Wind
Level(bft),Gust Level(bft),lightmeter(lux),UV
#1,16-02-2017
09:00,10,57,28.8,64,26.2,993.1,2.5,5.0,NW,1012.0,18.9,26.2,0.0,0.0,0.0,0.9,654.0,1,1,86352.0,0
#2,16-02-2017
13:46,10,57,28.4,64,26.5,993.0,5.0,8.6,N,1010.6,19.2,26.5,0.0,0.0,0.0,0.9,654.0,1,2,148704.0,0
#3,16-02-2017
13:56,10,57,28.4,57,28.7,992.9,1.1,3.6,N,1010.5,19.4,28.7,0.0,0.0,0.0,0.9,654.0,1,1,96896.0,0
[[FieldMap]]
dateTime = Time
usUnits =
interval = 10
barometer = Relative Pressure(hPa), hPa
pressure = Absolute Pressure(hPa), hPa
altimeter =
inTemp = Indoor Temperature(°C), degree_C
outTemp = Outdoor Temperature(°C), degree_C
inHumidity = Indoor Humidity(%), percent
outHumidity = Outdoor Humidity(%), percent
windSpeed = Wind(km/h), km_per_hour
windDir = Direction, compass
windGust = Gust(km/h), km_per_hour
windGustDir = Direction, compass
rainRate =
rain = Rainfall(mm), mm
dewpoint =
windchill =
heatindex =
ET =
radiation = lightmeter(lux), lux
UV = UV
I get this error:
wee_import --import-config=/home/maxg/wwimport/csv.conf --dry-run
Starting wee_import...
Traceback (most recent call last):
File "/usr/bin/wee_import", line 703, in <module>
main()
File "/usr/bin/wee_import", line 652, in main
wlog)
File "/usr/share/weewx/weeimport/weeimport.py", line 315, in sourceFactory
log)
File "/usr/share/weewx/weeimport/csvimport.py", line 49, in __init__
log)
File "/usr/share/weewx/weeimport/weeimport.py", line 183, in __init__
self.import_QC = weewx.qc.QC(config_dict, parent='weeimport')
File "/usr/share/weewx/weewx/qc.py", line 49, in __init__
minval = converter.convert(vt)[0]
File "/usr/share/weewx/weewx/units.py", line 762, in convert
new_val_t = convert(val_t, new_unit_type)
File "/usr/share/weewx/weewx/units.py", line 1079, in convert
conversion_func = conversionDict[val_t[1]][target_unit_type]
KeyError: 'inch'
No idea how to solve this?! :(
--
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.