Version 4.3.0 released

114 views
Skip to first unread message

Tom Keffer

unread,
Jan 4, 2021, 6:28:26 PM1/4/21
to weewx-user, weewx-development
This release fixes a bug in V4.2 that caused average values to be calculated incorrectly if the archive interval changes.

4.3.0 01/04/2020

Version 4.2.0 had a bug, which caused the sums in the daily summary to be
incorrectly calculated. This version includes a patch to fix the problem. It
runs once at startup. Fixes issue #623.

The WMR200 driver is no longer supported. An unsupported version can be found
at https://github.com/weewx/weewx-wmr200. Support for LaCrosse WS23xx and
Oregon WMR300 will continue.

Service weewx.wxxtypes.StdDelta was inadvertently left out of the list of
services to be run. Fortunately, it is not used. Yet. Added it back in.

Added the "old" NWS algorithm as an option for calculating heat index.

Changed how various undocumented parameters in [StdWXCalculate] are specified.
The only one people are likely to have used is 'ignore_zero_wind'. Its name has
changed to 'force_null', and it has been moved. See the Upgrading Guide.

Documented the various [StdWXCalculate] options.

Fixed corner case for windDir when using software record generation,
ignore_zero_wind=True, and windSpeed=0 for entire record interval. Now emits
last windDir value.

Fixed problem when looking up stars with more than one word in their name.
Fixes issue #620.

Fixed problem where wind gust direction is not available when using software
record generation.

Added --no-prompt action to wee_import allowing wee_import to be run unattended.

Fixed problem that prevented option `observations` from being used in the
simulator. Thanks to user Graham!

Fixed problem where wind chill was calculated incorrectly for METRICWX
databases. PR #627. Thanks to user edi-x!

Allow wind vectors to be converted to unit of beaufort. Fixes issue #629.

Option log_failure under [StdReport] is set to True by the upgrade process.
See the Upgrading Guide.

Vince Skahan

unread,
Jan 4, 2021, 7:58:53 PM1/4/21
to weewx-development
Tom - here's some autopatch timings from my wimpy 128MB RAM Seagate Dockstar which has a slow USB laptop drive.

 - weewx.sdb took 17:14 minutes to update
 - purpleair.sdb took 2:30
 - I didn't see my other three little db update at all in the logs (not that I care really for those)

Total start to backfill begin was about 20.5 minutes

John Kline

unread,
Jan 4, 2021, 8:23:53 PM1/4/21
to Vince Skahan, weewx-development
Daily summary patch times for 5 upgrades on NUCs and Pis...
NUC7i5: 15s
NUC7i5: 15s
RPi4     :  1m 29s
RPi4     :  1m 26s
RPi4     :  1m 21s

On Jan 4, 2021, at 4:58 PM, Vince Skahan <vince...@gmail.com> wrote:

Tom - here's some autopatch timings from my wimpy 128MB RAM Seagate Dockstar which has a slow USB laptop drive.
--
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 weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/215b4d82-8064-45c0-ba53-288513c54f3bn%40googlegroups.com.

Vince Skahan

unread,
Jan 4, 2021, 9:32:52 PM1/4/21
to weewx-development
My pi3 with SD card was 90 seconds to patch up.

Ryan Stasel

unread,
Jan 4, 2021, 10:04:49 PM1/4/21
to Vince Skahan, weewx-development
I assume this was supposed to happen during the upgrade, but I'm not seeing any logs saying how long it took. I updated via apt-get on my Pi4. sorry I can't add to the dataset. =/



--
-Ryan Stasel

John Kline

unread,
Jan 4, 2021, 10:08:45 PM1/4/21
to Ryan Stasel, Vince Skahan, weewx-development
You should see something like the following in the log:
   Jan  4 15:55:34 ella weewx[30235] INFO weewx.manager: Daily summaries at V2.0. Patching to V3.0
   Jan  4 15:55:34 ella weewx[30235] INFO weewx.manager: recalculate_weights: Using database 'weewx.sdb'
   Jan  4 15:55:49 ella weewx[30235] INFO weewx.manager: Patch finished.

On Jan 4, 2021, at 7:04 PM, Ryan Stasel <rcst...@gmail.com> wrote:



Ryan Stasel

unread,
Jan 4, 2021, 10:23:55 PM1/4/21
to John Kline, Vince Skahan, weewx-development
Thanks! 

I had to restart weewx (/etc/init.d/weewx restart) to trigger seems like. 

On my pi4 8gb, it took... what, like 111 seconds? Looks good!  

Jan  4 19:15:12 raspi-server-misc weewx[19528] INFO weewx.manager: Daily summaries at V2.0. Patching to V3.0
Jan  4 19:15:12 raspi-server-misc weewx[19528] INFO weewx.manager: recalculate_weights: Using database 'weewx.sdb'
Jan  4 19:17:03 raspi-server-misc weewx[19528] INFO weewx.manager: Patch finished.

The backfill of dailys took longer at another 5 minutes or so

Jan  4 19:17:03 raspi-server-misc weewx[19528] INFO weewx.manager: Starting backfill of daily summaries
Jan  4 19:22:22 raspi-server-misc weewx[19528] INFO weewx.manager: Added record 2021-01-04 19:20:00 PST (1609816800) to database 'weewx.sdb'
Jan  4 19:22:22 raspi-server-misc weewx[19528] INFO weewx.manager: Added record 2021-01-04 19:20:00 PST (1609816800) to daily summary in 'weewx.sdb

But I could be misreading that. 

--
-Ryan Stasel

John Kline

unread,
Jan 4, 2021, 10:39:46 PM1/4/21
to Ryan Stasel, Vince Skahan, weewx-development
Yes, you have to restart to run the new version.

The backfill of dailys took longer at another 5 minutes or so... But I could be misreading that. 

I think you are misreading that.  You had no backfill.  The daily summary being written seems to be for the current archive period.

On Jan 4, 2021, at 7:23 PM, Ryan Stasel <rcst...@gmail.com> wrote:



Ryan Stasel

unread,
Jan 4, 2021, 11:00:10 PM1/4/21
to John Kline, Vince Skahan, weewx-development
Right. Except it does normal daily entries every minute. So there was a 5ish minute gap between those log entries. 

On Jan 4, 2021, at 19:39, John Kline <jo...@johnkline.com> wrote:



jpb...@gmail.com

unread,
Jan 5, 2021, 7:21:36 AM1/5/21
to weewx-development
My update seemed possibly a bit odd? My WeeWX database is stored in MySQL. However, the data from the purpleair extension is stored in an 'sdb' file.

Here's my log output upon upgrading. My question is: Did my MySQL entries get upgraded from V2.0 to 3.0? It mentions purpleair.sdb - but not anything about weewx itself, sdb or no.

-Joel

Jan  5 03:50:46 www weewxd: purpleair: service version is 0.1
Jan  5 03:50:46 www weewx[8001] INFO weewx.manager: Daily summaries at V2.0. Patching to V3.0
Jan  5 03:50:46 www weewx[8001] INFO weewx.manager: recalculate_weights: Using database 'purpleair.sdb'
Jan  5 03:50:48 www weewx[8001] INFO weewx.manager: Patch finished.

On Monday, January 4, 2021 at 3:28:26 PM UTC-8 Tom Keffer wrote:

jpb...@gmail.com

unread,
Jan 5, 2021, 7:25:41 AM1/5/21
to weewx-development
Some more info that might be useful from weewx.conf

[DataBindings]

    [[wx_binding]]
        # The database must match one of the sections in [Databases].
        # This is likely to be the only option you would want to change.
        database = archive_mysql
        # The name of the table within the database
        table_name = archive
        # The manager handles aggregation of data for historical summaries
        manager = weewx.wxmanager.WXDaySummaryManager
        # The schema defines the structure of the database.
        # It is *only* used when the database is created.
        schema = schemas.wview.schema
    [[purpleair_binding]]
        manager = weewx.manager.DaySummaryManager
        schema = user.purpleair.schema
        table_name = archive
        database = purpleair_sqlite

Reply all
Reply to author
Forward
0 new messages