You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two methods to install weewx: using the weewx-repository, and using setup.py. Both ways lead to different locations of weewx, config files and utilities. Current method in davis_csv.conf is using the 'setup.py' method. When weewx is installed the repository way, wee_import cannot be found.
As per the weewx manual, location of weewx when setup.py is used
I've used the repository way. Setting WEEWX_ROOT in davis_csv.conf is not enough for me, as bin/wee_import is at another location (/usr/bin/wee_) as where the conf file is (/etc/weewx/weewx/conf). When setting WEEWX_ROOT to /usr (finding the wee_ utilities), the conf file cannot be found. When setting WEEWX_ROOT to /etc (finding the conf file), the weewx utilities cannot be found. So, when WEEWX_ROOT is set to /usr, wee_import fails:
Traceback (most recent call last):
File "/usr/share/weewx/wee_import", line 900, in <module>
main()
File "/usr/share/weewx/wee_import", line 801, in main
config_path, config_dict = weecfg.read_config(options.config_path, args)
File "/usr/share/weewx/weecfg/__init__.py", line 172, in read_config
config_path = find_file(config_path, args,
File "/usr/share/weewx/weecfg/__init__.py", line 147, in find_file
raise IOError("%s is not a file" % file_path)
OSError: /usr/weewx.conf is not a file
The text was updated successfully, but these errors were encountered:
In the next build I will let the program look for the config file in /etc and /home/weewx. I also will add custom config parser. Similar like wee_import --config=CONFIG_FILE
There are two methods to install weewx: using the weewx-repository, and using setup.py. Both ways lead to different locations of weewx, config files and utilities. Current method in davis_csv.conf is using the 'setup.py' method. When weewx is installed the repository way, wee_import cannot be found.
As per the weewx manual, location of weewx when setup.py is used
And when using the repository way, location is:
I've used the repository way. Setting WEEWX_ROOT in davis_csv.conf is not enough for me, as bin/wee_import is at another location (/usr/bin/wee_) as where the conf file is (/etc/weewx/weewx/conf). When setting WEEWX_ROOT to /usr (finding the wee_ utilities), the conf file cannot be found. When setting WEEWX_ROOT to /etc (finding the conf file), the weewx utilities cannot be found. So, when WEEWX_ROOT is set to /usr, wee_import fails:
The text was updated successfully, but these errors were encountered: