Version 4.1.1

240 views
Skip to first unread message

Tom Keffer

unread,
Jun 1, 2020, 9:25:01 PM6/1/20
to weewx-user
This fixes a few smallish errors introduced by V4.0 and V4.1.

CHANGE LOG:
4.1.1 06/01/2020

Fixed problem that caused wind speed to be reported to AWEKAS in m/s instead
of km/h.

Fixed problem that caused FTP attempts not to be retried.

Fixed problem that caused monthly and yearly summaries to appear only
sporadically.

Fixed problem when using the ultimeter driver under Python 2.

Fixed problem when using the ws1 driver under Python 2.

Fixed problem that prevented remote directories from being created by FTP.

New strategy for calculating system uptime under Python 3. Revisits
issue #428. Alternative to PR #561.


Jacques Terrettaz

unread,
Jun 2, 2020, 4:53:34 AM6/2/20
to weewx-user


Hi,

I just updated to V4.1.1, and since the update a syntax error is generated for each report : Syntax error: missing option "levelname" in interpolation 

2020-06-02 10:29:27  weewx[1944] INFO __main__: Starting up weewx version 4.1.1
2020-06-02 10:29:27  weewx[1944] DEBUG weewx.manager: Daily summary version is 2.0
2020-06-02 10:29:28  weewx[1944] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
2020-06-02 10:29:28  weewx[1944] INFO weewx.engine: Clock error is -0.07 seconds (positive is fast)
2020-06-02 10:29:28  weewx[1944] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx'
2020-06-02 10:29:28  weewx[1944] INFO weewx.manager: Starting backfill of daily summaries
2020-06-02 10:29:28  weewx[1944] DEBUG weewx.drivers.vantage: Getting archive packets since 2020-06-02 10:25:00 CEST (1591086300)
2020-06-02 10:29:28  weewx[1944] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
2020-06-02 10:29:28  weewx[1944] DEBUG weewx.drivers.vantage: Retrieving 0 page(s); starting index= 0
2020-06-02 10:29:28  weewx[1944] INFO weewx.engine: Starting main packet loop.
2020-06-02 10:29:28  weewx[1944] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
2020-06-02 10:29:28  weewx[1944] DEBUG weewx.drivers.vantage: Requesting 200 LOOP packets.
2020-06-02 10:29:28  weewx[1944] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
2020-06-02 10:30:16  weewx[1944] DEBUG weewx.drivers.vantage: Getting archive packets since 2020-06-02 10:25:00 CEST (1591086300)
2020-06-02 10:30:19  weewx[1944] DEBUG weewx.drivers.vantage: Retry #0 failed
2020-06-02 10:30:19  weewx[1944] DEBUG weewx.drivers.vantage: Rude wake up of console successful
2020-06-02 10:30:19  weewx[1944] DEBUG weewx.drivers.vantage: Retrieving 1 page(s); starting index= 1
2020-06-02 10:30:19  weewx[1944] INFO user.sunduration: Calculated sunshine_time = 5.000000, based on radiation = 508.000000 and threshold = 507.500000
2020-06-02 10:30:19  weewx[1944] INFO weewx.manager: Added record 2020-06-02 10:30:00 CEST (1591086600) to database 'weewx'
2020-06-02 10:30:19  weewx[1944] INFO weewx.manager: Added record 2020-06-02 10:30:00 CEST (1591086600) to daily summary in 'weewx'
2020-06-02 10:30:19  weewx[1944] DEBUG weewx.drivers.vantage: DMPAFT complete: page timestamp 2020-05-24 13:15:00 CEST (1590318900) less than final timestamp 2020-06-02 10:30:00 CEST (1591086600)
2020-06-02 10:30:19  weewx[1944] DEBUG weewx.drivers.vantage: Catch up complete.
2020-06-02 10:30:19  weewx[1944] DEBUG weewx.reportengine: Running reports for latest time in the database.
2020-06-02 10:30:19  weewx[1944] DEBUG weewx.drivers.vantage: Requesting 200 LOOP packets.
2020-06-02 10:30:19  weewx[1944] DEBUG weewx.reportengine: Running report 'SeasonsReport'
2020-06-02 10:30:19  weewx[1944] DEBUG weewx.drivers.vantage: Gentle wake up of console successful
2020-06-02 10:30:19  weewx[1944] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine: Syntax error: missing option "levelname" in interpolation.
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine:    ****       Report ignored
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Running report 'tagssciez'
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/tagssciez/skin.conf for report 'tagssciez'
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine: Syntax error: missing option "levelname" in interpolation.
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine:    ****       Report ignored
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Running report 'StackedWindRose'
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/StackedWindRose/skin.conf for report 'StackedWindRose'
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine: Syntax error: missing option "levelname" in interpolation.
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine:    ****       Report ignored
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Running report 'xstats'
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/xstats/skin.conf for report 'xstats'
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine: Syntax error: missing option "levelname" in interpolation.
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine:    ****       Report ignored
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Running report 'Belchertown'
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Belchertown/skin.conf for report 'Belchertown'
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine: Syntax error: missing option "levelname" in interpolation.
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine:    ****       Report ignored
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Running report 'sftp'
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/sftp/skin.conf for report 'sftp'
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine: Syntax error: missing option "levelname" in interpolation.
2020-06-02 10:30:20  weewx[1944] ERROR weewx.reportengine:    ****       Report ignored
2020-06-02 10:30:20  weewx[1944] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.



 

Jacques Terrettaz

unread,
Jun 2, 2020, 5:11:13 AM6/2/20
to weewx-user

After some investigation, it seems to be related to the [Logging] section I added in my weewx.conf.  This was working perfectly with version 4.1.0.  If I remove the [Logging] section, the log is going back /var/log/syslog, and the syntax error disappears.

[Logging]
    version = 1
    disable_existing_loggers = False
    
    # Root logger
    [[root]]
        level = {log_level}
        handlers = rotate,
    
    # 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 = DEBUG
            formatter = verbose
            class = logging.handlers.RotatingFileHandler
            filename = /var/log/weewx.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



Jacques Terrettaz

unread,
Jun 2, 2020, 5:49:35 AM6/2/20
to weewx-user
I observed also that during the update to 4.1.1, the quotes of the "format" lines were removed.  I added them back, but the syntax error is still here.


[Logging]
    ...

Graham Eddy

unread,
Jun 2, 2020, 6:52:19 AM6/2/20
to weewx...@googlegroups.com
in weewx.conf, try changing “level = {log_level}” to “level = DEBUG"
____________
Graham Eddy

Jacques Terrettaz

unread,
Jun 2, 2020, 7:27:47 AM6/2/20
to weewx-user
Thanks for the suggestion, but the syntax error is still here after this change..

Graham Eddy

unread,
Jun 2, 2020, 7:42:56 AM6/2/20
to weewx...@googlegroups.com
when i copy&paste your logging config of Jun 2020 02:11:13 -0700 (PDT)⁩ into my weewx.conf for 4.1.0, it works fine.
i think look elsewhere for your issue
____________
Graham Eddy

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/31de8947-7553-46a3-9771-e729669eff00%40googlegroups.com.

Jacques Terrettaz

unread,
Jun 2, 2020, 7:59:31 AM6/2/20
to weewx-user
Yes, it was also working here with 4.1.0, but no more with 4.1.1


Le mardi 2 juin 2020 13:42:56 UTC+2, Graham Eddy a écrit :
when i copy&paste your logging config of Jun 2020 02:11:13 -0700 (PDT)⁩ into my weewx.conf for 4.1.0, it works fine.
i think look elsewhere for your issue
____________
Graham Eddy
On 2 Jun 2020, at 9:27 pm, Jacques Terrettaz <jterr...@gmail.com> wrote:

Thanks for the suggestion, but the syntax error is still here after this change..

Le mardi 2 juin 2020 12:52:19 UTC+2, Graham Eddy a écrit :
in weewx.conf, try changing “level = {log_level}” to “level = DEBUG"
____________


--
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 weewx...@googlegroups.com.

Tom Keffer

unread,
Jun 2, 2020, 8:05:52 AM6/2/20
to weewx-user
I was able to replicate your error. It has to do with some obscure side-effects of deep copying the configuration dictionary. 

I will figure out a workaround.

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/29c10a28-de1c-4ec7-ada2-349cb7c02138%40googlegroups.com.

Jacques Terrettaz

unread,
Jun 2, 2020, 8:17:58 AM6/2/20
to weewx...@googlegroups.com
Thanks Tom

You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/AoMpHUamrUY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEC9Fow-L%2Bzac5TFohnveQ5qFNaORpZxr8wvRdxpoSGWUw%40mail.gmail.com.

Tom Keffer

unread,
Jun 2, 2020, 6:21:55 PM6/2/20
to weewx-user
Wow. That was an obscure bug. Fixed in commit b6d2424, to appear in V4.1.2... someday.

If you want something that works now, you have two choices:
  1. Either use Python 2.7, or Python 3.5. Later versions of Python won't work. Or,
  2. Replace files weeutil/config.py, weewx/cheetahgenerator.py, and weewx/reportengine.py with their corresponding versions from the repository. I've supplied the links.
-tk

Jacques Terrettaz

unread,
Jun 3, 2020, 4:32:26 AM6/3/20
to weewx-user

Tom,
 I replaced the three files and everything is OK now.

Thanks
Reply all
Reply to author
Forward
0 new messages