My understanding was that when weewxd is invoked the first command line parameter is the path and file name of the config file to be be used and no attempts are made to search elsewhere for the config file. My further understanding is that searches for the config file 'in the usual places' occur in the likes of the WeeWX utilities etc. Back to weewxd. If the config file (as given on the command like) does not exist WeeWX exits.
In the case above the command: pi@raspberrypi:~ $ sudo weewxd weewx.conf irrespective of WeeWX installation type, will cause weewxd to use /home/pi/weewx.conf as the config file, but of course that file does not exist so WeeWX exits. If WeeWX was installed via a deb package then weewx.conf will be in /etc/weewx and the correct command to use is: $ sudo weewxd /etc/weewx/weewx.conf Unless of course the present working directory is /etc/weewx in which case the original command would work. Perhaps there is some confusion here over the command used to run WeeWX directly. The command is frequently given as: $ sudo weewxd weewx.conf which is often taken literally when in fact there is an implied need to include the path to weewx.conf. I don't have a problem with this format but perhaps there is a need for an explanatory note about the requirement for a path. Though I am not sure this is the only instance of an implied path in the documents, so if it is done for one it may need to be done for many. In this case I would also remove all of the files copied to /home/pi (and any other non-standard WeeWX deb package locations), WeeWX may work with them in place now but you are setting yourself up for chasing your tail in the future when something does not work and you have multiples copies of WeeWX on your system. Gary On Tuesday, 7 May 2019 07:35:22 UTC+10, JM wrote: > > To clarify, my understanding is that setup.py installs to different paths > than the DEB package. it almost seems as if they got switched. > > > On Monday, May 6, 2019 at 5:32:08 PM UTC-4, JM wrote: >> >> No its there, I copied the weewx.conf and weewx.conf.dist there. >> without it, it will not run. >> FWIW, I originally set up Raspian on a different, New MicroSD and >> encountered the same problem. both instances behaved the same way. >> Initially I thought maybe the SD card was defective. >> So I imaged another card and encountered the same result. >> >> I also copied the entire weewx folder from /etc/weewx/ to home/pi/ I >> dont think this made any difference. I'm confused, since I didn't run >> Setup.py and that installs to the paths this version is expecting. >> Any help is appreciated. >> >> >> >> On Sunday, May 5, 2019 at 8:47:52 PM UTC-4, JM wrote: >>> >>> I have previously set up two other weather stations using weewx. Just >>> set up a new instance and I am finding that the default installation path >>> for weewx.conf is incorrect. >>> below is a error received in it's initial installation state. I have >>> moved weewx.conf to the /home/pi/ directory and it runs. The weewx >>> documentation indicates that the default DEB package will install to : >>> /etc/weewx/weewx.conf. >>> Can anyone give me insight on how to point weewx to the /etc/weewx >>> directory instead of /home/pi ? >>> >>> >>> pi@raspberrypi:~ $ sudo weewxd weewx.conf >>> Traceback (most recent call last): >>> File "/usr/bin/weewxd", line 64, in <module> >>> weewx.engine.main(options, args) >>> File "/usr/share/weewx/weewx/engine.py", line 848, in main >>> sane = os.stat(config_path).st_ctime >>> OSError: [Errno 2] No such file or directory: '/home/pi/weewx.conf' >>> >>> -- 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/9d87d861-3da0-44b7-9c95-54f3af4eb0e2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
