There are two parts to WeeWX: the code, and user data. Code is most of the things in /home/weewx/bin. User data are the 'archive', 'public_html', and 'skins' directories, plus 'weewx.conf', plus the 'user' subdirectory (/home/weewx/bin/user). In Version 5, this separation will become explicit.
You can always reinstall the code. You don't want to reinstall the user data because you will lose your previous settings and data. The setup.py install method explicitly recognizes this separation and does not touch the user data with one exception: it does create a new weewx.conf, but it will just have the same contents as your old weewx.conf, plus, possibly, a version number change. For older versions of WeeWX (V4.2 and earlier) it may also make some changes in your new copy of weewx.conf to reflect configuration changes. Newer versions of WeeWX do not do this. In any case, it always saves a timestamped version of your old weewx.conf. Bottom line: you can run setup.py as many times as you want. All you will do is accumulate timestamped weewx.conf files. Same with the upcoming Version 5: you can reinstall with pip as many times as you want. Just don't run "weectl station upgrade" afterwards. Hope this helps. -tk On Sat, Feb 18, 2023 at 1:15 AM Joel Bion <[email protected]> wrote: > I’d like to apologize for the somewhat scattered earlier email. Sent in a > hurry, and not cleaned up. > > My question is based on my particular situation: I have a custom build of > Linux, based on (but diverging from) a build-it-yourself model called Linux > From Scratch. > > I’ve also built a series of scripts to help me update packages and > anything that directly or indirectly depends on the changed packages. It’s > a bit of a hobby of mine that’s part of the backyard weather station hobby > many of us enjoy. > > But a result of this is that packages will often get rebuilt and > reinstalled after updates to packages they leverage happen. A great example > of this is PHP, which leverages so many packages I’ve installed that it > gets rebuilt once a month on average. > > But… I’ve generally _not_ done that with Weewx, one of the few packages > that I don’t rebuild in this routine matter. Why? Because WeeWX generates > _real world data_. The entire rest of the system is in place _just_ so > Weewx and a web server can run. I’ve been careful upgrading Weewx as I > don’t want to make a mistake in “rebuilding the same version on top of > itself” that corrupts or loses my weather data. I’ve also appreciated that > Weewx has been self-contained - everything in /home/Weewx. > > I am curious if that caution is still necessary and if I can reinstall > version XYZ of Weewx on top an installation _already_ running XYZ. > > The kind replies to my earlier question answers this. > > Sent from my iPhone > > On Feb 16, 2023, at 3:36 PM, Vince Skahan <[email protected]> wrote: > > Packagers generally won't overwrite a pre-existing copy of the identical > copy unless you specifically tell it to do so, usually by passing it a > switch to say --force or --reinstall or the equivalent explicitly. > > Do you mean 'pip' or 'apt' or 'yum' or 'rpm' specifically, and what do you > mean by 'rebuilds' in your question ? > > - yum has a 'reinstall' command > - apt-get has a --reinstall option > - pip has a --upgrade --force-reinstall option > > What exactly is your scenario and what are you concerned will be > overwritten (or not overwritten) ? > > -- > You received this message because you are subscribed to the Google Groups > "weewx-development" 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-development/de69c906-9ace-482c-812a-3b6dbe278152n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/de69c906-9ace-482c-812a-3b6dbe278152n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > You received this message because you are subscribed to the Google Groups > "weewx-development" 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-development/95B204C1-11AB-4438-9F4B-3A887F790F1A%40gmail.com > <https://groups.google.com/d/msgid/weewx-development/95B204C1-11AB-4438-9F4B-3A887F790F1A%40gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/CAPq0zEDnNORZqS17kiGPq5Hvz4UrcELrpy10rp7ngHpmLQmmyw%40mail.gmail.com.
