Problem with bookworm install wee_config appears missing

180 views
Skip to first unread message

William Webb

unread,
May 31, 2024, 5:06:40 PM5/31/24
to weewx-user
First some background then my question:

I just installed a fresh installation of Weewx 5 on a PI 4 running bookworm .  I uses the apt-get install method. All is nearly well.  I discovered that: 

to look at a real-time system log you need to use: journalctl -f

to stop and start you need to use: sudo service weewx stop
                                                             sudo service weewx start

Files appear to be located in:  /usr/share/weewx/ and /etc/weewx

Strange but okay.  I had to put my wmII.py driver directly in the driver folder.

Now the question:  I can not find wee_config anywhere.  Am I blind?  Is it missing?  I am starting to be sorry that I am using bookworm.  There doesn't appear to be bookworm instructions.

I don't have any hair left to tear out.
Bill


michael.k...@gmx.at

unread,
May 31, 2024, 5:17:03 PM5/31/24
to weewx-user
5.0 did change the utilities. Take a look at


If you don't like journalctl, you can configure your own weewx logs like this (just an example, it will, log to  /home/pi/weewx-data/log/weewxd.log  ):
##############################################################################

[Logging]
    version = 1
    disable_existing_loggers = False
   
    # Root logger
    [[root]]
        level = INFO
        handlers = rotate,    #console
   
    # Additional loggers would go in the following section. This is useful for tailoring logging
    # for individual modules.
    [[loggers]]
   
    # Definitions of possible logging destinations
    [[handlers]]
       
        # Log to a set of rotating files    
        [[[rotate]]]
            level = INFO
            formatter = verbose
            class = logging.handlers.RotatingFileHandler
            filename = /home/pi/weewx-data/log/weewxd.log
            maxBytes = 10000000
            backupCount = 4
   
    # Log to console
    #[[[console]]]
    #    level = DEBUG
    #    formatter = verbose
    #    class = logging.StreamHandler
    # Alternate choice is 'ext://sys.stderr'
    #stream = ext://sys.stdout
   
    # How to format log messages
    [[formatters]]
        [[[simple]]]
            format = %(levelname)s %(message)s
        [[[standard]]]
            format = {process_name}[%(process)d] %(levelname)s %(name)s: %(message)s
        [[[verbose]]]
            format = %(asctime)s {process_name}[%(process)d] %(levelname)s %(name)s: %(message)s
            # Format to use for dates and times:
            datefmt = %Y-%m-%d %H:%M:%S



vince

unread,
May 31, 2024, 5:53:42 PM5/31/24
to weewx-user
RTFM and RTFFAQ and RTFWIKI as always.   

That's why hundreds of hours were spent writing and updating them.

https://www.weewx.com/docs/5.0/utilities/weectl-about/ - the utilities guide (hint - it's all under weectl now)
https://www.weewx.com/docs/5.0/upgrade/#upgrading-to-v50 - what changed in v5 relative to previous versions


William Webb

unread,
May 31, 2024, 11:29:44 PM5/31/24
to weewx-user
Got it, thanks.  Hopefully, I am straight now.  I have not gone "live" yet on the WMII station, so there is still room for problem.  

Oddly, in my googling I did not run across the 5.0 dicumentation.

Reply all
Reply to author
Forward
0 new messages