We already have this. *weewx.__version__ *
has the current version, which can be printed out using *weectl --version* -tk On Wed, Jul 19, 2023 at 6:35 PM Vince Skahan <[email protected]> wrote: > Wild thought here - why not drop a file someplace within the installed > code base (possibly 'weewx.version' or .version or the like) with a version > identifier, and then it wouldn't need to be in weewx.conf....... > > On Wednesday, July 19, 2023 at 4:54:24 PM UTC-7 Tom Keffer wrote: > >> The version number is useful if and when "weectl station upgrade" is >> called upon to update weewx.conf. Then the utility knows where to start and >> what upgrades might be needed. >> >> On Wed, Jul 19, 2023 at 4:48 PM Greg Reive <[email protected]> wrote: >> >>> Ok, thanks for the clarification. >>> >>> That's the bit I didn't understand. As the file says do not modify it is >>> used when installing and updating. >>> I assumed updating meant that the version would get updated in this file >>> as well. >>> >>> Does it have any other purpose? If not, just remove it? >>> >>> I am easily confused. 😀 >>> >>> >>> On Thu, 20 Jul 2023 at 09:40, Tom Keffer <[email protected]> wrote: >>> >>>> The pip upgrade upgrades the *code base*, not the station data. The >>>> configuration file, weewx.conf, is part of the latter. >>>> >>>> To upgrade the station data, you use "weectl station upgrade". By >>>> default, this upgrades the documentation, examples, and utility files, but >>>> it can also (optionally) upgrade the configuration file and skins. Because >>>> we work hard at backwards compatibility, that should be necessary only >>>> rarely. >>>> >>>> It's best to think of the version number in weewx.conf (and, for that >>>> matter, the skin.conf's) as "Installed by", not the current version. >>>> >>>> If you want the current version, use >>>> >>>> *weectl --version* >>>> >>>> >>>> You're not the first to get confused by this. I'm thinking at the very >>>> least to put a comment in weewx.conf stating that the version number is the >>>> "Installed by" number. Or, even removing it completely. >>>> >>>> -tk >>>> >>>> On Wed, Jul 19, 2023 at 4:26 PM Greg <[email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> I have weewx V5 installed and all is running fine but when I do an >>>>> upgrade >>>>> pip install --upgrade weewx then version doesn't change in the >>>>> weewx.conf. I assume it is supposed to be changed? >>>>> >>>>> I am running 5.0.0.b9 but the weewx.conf shows: >>>>> # Do not modify this. It is used when installing and updating weewx. >>>>> version = 5.0.0b6 >>>>> >>>>> Do I have to do something extra as I have the weewx set up to use >>>>> /opt/weewx/weewx-data/weewx.conf file >>>>> >>>>> Thanks >>>>> >>>>> -- >>>>> 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/39ea8a71-dd6e-44e2-8711-b76cd80de198n%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/weewx-development/39ea8a71-dd6e-44e2-8711-b76cd80de198n%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/cae919c0-355c-4c92-bfaa-11efa7766f80n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/cae919c0-355c-4c92-bfaa-11efa7766f80n%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/CAPq0zEAuLTN1nYSOQsNN7Wr0Dh6P1g6m%3DGU8FvcSHMSLXd1r2A%40mail.gmail.com.
