Your import config file needs a source 
<http://weewx.com/docs/utilities.htm#General> entry and it appears it does 
not exist. Neither of your pastebin links appear to work. If you can’t 
solve the source problem just paste a copy of trou.conf here, can’t provide 
any further advice without seeing trou.conf.

Gary

On Saturday, 23 October 2021 at 21:10:14 UTC+10 [email protected] wrote:

> Hello,
>
> I come back to you with my English comprehension problem -> French for the 
> Wee_import utility.
> The facts: I have a hole of a good month in my data (from 13/05/21 to 
> 19/06/21). As I am in the "Meteo Belgique" network, I was able to retrieve 
> some data in CSV format: https://pastebin.com/pccbnzhs
> I placed the configuration file (named "trou.conf") 
> https://pastebin.com/essg6rbp and the CSV in the /home/pi file
> The " wee_import --import-config=/home/pi/trou.conf --dry-run " returns:
>
> Using WeeWX configuration file /etc/weewx/weewx.conf
> Starting wee_import...
> Traceback (most recent call last):
>   File "/usr/share/weewx/weeimport/weeimport.py", line 302, in 
> sourceFactory
>     source = import_config_dict['source']
>   File "/usr/lib/python3/dist-packages/configobj.py", line 554, in 
> __getitem__
>     val = dict.__getitem__(self, key)
> KeyError: 'source'
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/usr/share/weewx/wee_import", line 903, in <module>
>     main()
>   File "/usr/share/weewx/wee_import", line 832, in main
>     args)
>   File "/usr/share/weewx/weeimport/weeimport.py", line 306, in 
> sourceFactory
>     _source_keys = [s for s in SUPPORTED_SOURCES if s in 
> import_config_dict.keys]
>   File "/usr/share/weewx/weeimport/weeimport.py", line 306, in <listcomp>
>     _source_keys = [s for s in SUPPORTED_SOURCES if s in 
> import_config_dict.keys]
> TypeError: argument of type 'method' is not iterable
>
>

-- 
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/fc8382ff-7788-42b5-baa7-e6c60a982b7bn%40googlegroups.com.

Reply via email to