If not specified, the utility weectl (and, for that matter, weewxd) looks in the "usual places," which are ~/weewx-data, /etc/weewx, and /home/weewx. If a config file is located someplace other than those three places, it must be specified explicitly using the --config option.
Because sudo is being used, ~/weewx-data resolves to /root/weewx-data. Is that what you intended? In your install.py file, you do some path arithmetic around /usr/local/bin, which may or may not require root privileges. Any particular reason? Generally, pip installs do not use root privileges. On Sun, Jul 14, 2024 at 11:29 AM Karen K <[email protected]> wrote: > vince schrieb am Sonntag, 14. Juli 2024 um 20:19:45 UTC+2: > > Agree. Your install.py should 'not' be run under sudo, you also need to > modify it to be able to copy and symlink into /usr/local/bin (which > requires sudo). > > > I am afraid, the installation crashes before all those copying and > linking. It looks for weewx.conf and does not find it. Why? > > > Why aren't the /usr/local/bin items simply installed and running out of > the bin/user directory ???? > > > I found no way to get the original location of the files within the > configure() method. That's the reason. > > -- > 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/c7b9e991-67fd-4c24-861e-7b3ca8c766c1n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/c7b9e991-67fd-4c24-861e-7b3ca8c766c1n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zEAzcXxmdZZeQ3-%2BwS3jy7SpXp%3D9k2BvxjkNqXNfUaXSVg%40mail.gmail.com.
