Hi, more info.
I fixed with ducktape the first problem by commenting out the line 635 from 
weeimport.py 

            #                        and _val['units'] not in 
weewx.units.USUnits.values()

But this did not solve my import troubles. Now it looks that csv.conf and 
weewx.conf does not understand each other. csv.conf is asking for unkonwn 
units

   Using WeeWX configuration file /etc/weewx/weewx.conf
   Starting wee_import...
   A CSV import from source file '/var/tmp/data.csv' has been requested.
   Using database binding 'wx_binding', which is bound to database 
'weewx.sdb'
   Destination table 'archive' unit system is '0x11' (METRICWX).
   Missing derived observations will be calculated.
   This is a dry run, imported data will not be saved to archive.
   Starting dry run import ...
   **** Unknown units 'uv_index' specified for field 'UV' in 
/var/tmp/csv.conf.
   **** Nothing done, exiting.

If I comment out UV, from my csv.conf wee_import finds next unknown unit... 
I also have tried to create group_uv to weewx.conf. The unkonwn units are 
uv_index, percent, degree_compass.

regards
Janne
maanantai 21. helmikuuta 2022 klo 14.44.40 UTC+2 jannep...@gmail.com 
kirjoitti:

> hi
> python 2. Here is log. When I start weewx, LOOP is working. I can get 
> weather station info to terminal, but maybe not to database. I have a 
> Ventus weather station and I download data every now and then to windows. 
> From there I import the data in csv to weewx. 
>
> Janne
>
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO __main__: Initializing weewx 
> version 4.6.2
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO __main__: Using Python 2.7.17 
> (default, Feb 27 2021, 15:10:58) #012[GCC 7.5.0]
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO __main__: Platform 
> Linux-5.4.0-99-generic-x86_64-with-LinuxMint-19.3-tricia
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO __main__: Locale is 
> 'fi_FI.UTF-8'
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO __main__: Using configuration 
> file /etc/weewx/weewx.conf
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO __main__: Debug is 0
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.engine: Loading station 
> type WS6in1 (user.ws6in1)
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.engine: StdConvert 
> target unit is 0x11
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.wxservices: 
> StdWXCalculate will use data binding wx_binding
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.engine: Archive will use 
> data binding wx_binding
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.engine: Record 
> generation will be attempted in 'hardware'
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.engine: Using archive 
> interval of 300 seconds (specified in weewx configuration)
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.restx: StationRegistry: 
> Registration not requested.
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.restx: Wunderground: 
> Posting not enabled.
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.restx: PWSweather: 
> Posting not enabled.
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.restx: CWOP: Posting not 
> enabled.
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.restx: WOW: Posting not 
> enabled.
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.restx: AWEKAS: Posting 
> not enabled.
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.engine: 'pyephem' not 
> detected, extended almanac data is not available
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO __main__: Starting up weewx 
> version 4.6.2
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.engine: Using binding 
> 'wx_binding' to database 'weewx.sdb'
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.manager: Starting 
> backfill of daily summaries
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.manager: Daily summaries 
> up to date
> Feb 21 14:31:09 janne-Lat weewx[21011] INFO weewx.engine: Starting main 
> packet loop.
>
> maanantai 21. helmikuuta 2022 klo 9.37.18 UTC+2 gjr80 kirjoitti:
>
>> Janne,
>>
>> Could you please let me know whether WeeWX is being run under python 2 or 
>> 3? You can tell by looking at the WeeWX log during WeeWX startup (the 
>> python version is logged) or you can look at the first line of any of the 
>> wee_xxxxxx (eg wee_database) utilities in the /usr/share/weewx directory.
>>
>> If yo cannot work it out please restart WeeWX and post a log extract 
>> showing the full WeeWX startup.
>>
>> Gary
>>
>> On Monday, 21 February 2022 at 04:21:57 UTC+10 jannep...@gmail.com wrote:
>>
>>> Hi, I updated from 4.5 to 4.6.2 and my wee_import stop to next message:
>>>
>>> I use WS6in1-driver with my Ventus.
>>>
>>> .......................
>>> Using WeeWX configuration file /etc/weewx/weewx.conf
>>> Starting wee_import...
>>> A CSV import from source file '/var/tmp/data.csv' has been requested.
>>> Using database binding 'wx_binding', which is bound to database 
>>> 'weewx.sdb'
>>> Destination table 'archive' unit system is '0x11' (METRICWX).
>>> Missing derived observations will be calculated.
>>> This is a dry run, imported data will not be saved to archive.
>>> Starting dry run import ...
>>> Traceback (most recent call last):
>>>   File "/usr/share/weewx/wee_import", line 899, in <module>
>>>     main()
>>>   File "/usr/share/weewx/wee_import", line 829, in main
>>>     source_obj.run()
>>>   File "/usr/share/weewx/weeimport/weeimport.py", line 372, in run
>>>     _raw_data = self.getRawData(period)
>>>   File "/usr/share/weewx/weeimport/csvimport.py", line 246, in getRawData
>>>     self.map = self.parseMap('CSV', _csv_reader, self.csv_config_dict)
>>>   File "/usr/share/weewx/weeimport/weeimport.py", line 635, in parseMap
>>>     and _val['units'] not in weewx.units.USUnits.values():
>>> AttributeError: 'ListOfDicts' object has no attribute 'values'
>>> ..........................................
>>>
>>> What this does mean? Any help? 
>>>
>>> Is there easy way to get back to working configuration (4.5)? 
>>>
>>> regards
>>> Janne
>>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a67086bb-2ce9-42f0-83d6-c99e40149312n%40googlegroups.com.

Reply via email to