Some variables are not calculated automatically in version 4.0.0b18

78 views
Skip to first unread message

Lucas Heijst

unread,
Apr 12, 2020, 9:39:35 AM4/12/20
to weewx-development
Tom,

In version 4.0.0b18 the follwing settings are commented out in wxservices:

    [[Calculations]]
        # Order matters! Type 'pressure' must come before 'altimeter' and 'barometer'
        # pressure = prefer_hardware
        # altimeter = prefer_hardware
        # appTemp = prefer_hardware
        # barometer = prefer_hardware
        # beaufort = prefer_hardware        
        # cloudbase = prefer_hardware
        # dewpoint = prefer_hardware
        # ET = prefer_hardware
        # heatindex = prefer_hardware
        # humidex = prefer_hardware
        # inDewpoint = prefer_hardware
        # maxSolarRad = prefer_hardware
        # rainRate = prefer_hardware
        # windchill = prefer_hardware
        # windrun = prefer_hardware

While they were not commented out in version 4.0.0.b14 and earlier.

As a result the values of cloudbase, maxSolarRad, appTemp, humidex (and others) are nor calculated automatically anymore in version 4.0.0b18
I had to add them explicitely in the [Calculations] section of weewx.conf.

What is the reason of this change?

Luc

Thomas Keffer

unread,
Apr 12, 2020, 10:39:52 AM4/12/20
to Lucas Heijst, weewx-development
Not sure what you are referring to. If you look at the current version of weewx.conf, as well as the version in the weewx-4.0.0b18.tar.gz tarball, the options are not commented out.

-tk

--
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/8604aa4a-9efd-403f-ab41-079c4836d447%40googlegroups.com.

Lucas Heijst

unread,
Apr 12, 2020, 10:55:11 AM4/12/20
to weewx-development
See the differences of both versions of wxservices in the attachment.

As an example how it used to work in version 4.0.0b14 and earlier:
To have the value of 'cloudbase' calculated automatically, you had to add the field 'cloudbase' to the database.
No other actions were needed. 

Since the change in wxservices.py (4.0.0b17 and later) you have to add the line:
        cloudbase = prefer_hardware
yourself to the [[Calculations]] section of weewx.conf

Luc


On Sunday, 12 April 2020 11:39:52 UTC-3, Tom Keffer wrote:
Not sure what you are referring to. If you look at the current version of weewx.conf, as well as the version in the weewx-4.0.0b18.tar.gz tarball, the options are not commented out.

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-de...@googlegroups.com.
wxservices difference.htm

Thomas Keffer

unread,
Apr 12, 2020, 11:00:03 AM4/12/20
to Lucas Heijst, weewx-development
Luc, download the file weewx-4.0.0b18.tar.gz from the weewx downloads directory. The entries are not commented out. I don't know where you got your copy.

I'll check into cloudbase.

-tk


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/8ee34c40-f1d5-4f04-b593-b430d471d8b3%40googlegroups.com.

Lucas Heijst

unread,
Apr 12, 2020, 11:24:18 AM4/12/20
to weewx-development
Sorry Tom,

I was wrong. The change happened between version 4.0.0a4 and 4.0.0b13 (the versions in between I didn't download)

Version 4.0.0a4 had in wxservices a section _dispatch_list which 'did the trick' of the automatic calculations, see below.
So my question is: why is this feature removed?

Luc

Part of wxservices 4.0.0.a4
==================================================
    # these are the quantities that this service knows how to calculate
    _dispatch_list = [
        'pressure', # pressure must be before altimeter
        'barometer',
        'altimeter',
        'windchill',
        'heatindex',
        'dewpoint',
        'inDewpoint',
        'rainRate',
        'maxSolarRad',
        'cloudbase',
        'humidex',
        'appTemp',
#        'beaufort',
        'ET',
        'windrun',
        ]
==================================================

 
On Sunday, 12 April 2020 12:00:03 UTC-3, Tom Keffer wrote:
Luc, download the file weewx-4.0.0b18.tar.gz from the weewx downloads directory. The entries are not commented out. I don't know where you got your copy.

I'll check into cloudbase.

-tk


Thomas Keffer

unread,
Apr 12, 2020, 12:40:40 PM4/12/20
to Lucas Heijst, weewx-development
It  was removed because not all weewx installations deal with weather. It makes no sense to try and calculate 'barometer' in an installation that monitors energy use.

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/d6d09b35-ec7d-44f0-9afe-5c77a9ec4a07%40googlegroups.com.

Lucas Heijst

unread,
Apr 12, 2020, 1:34:22 PM4/12/20
to weewx-development
Tom,

OK, clear. I’m fine with that.

Could you please make a note in the changes document that this feature has gone and that one manually must add the corresponding lines to the weewx.conf file?

Now, unfortunately, I miss 14 days of values for humidex, appTemp, cloudbase, windrun and maxSolarRad.

Luc


On Sunday, 12 April 2020 13:40:40 UTC-3, Tom Keffer wrote:
It  was removed because not all weewx installations deal with weather. It makes no sense to try and calculate 'barometer' in an installation that monitors energy use.

Thomas Keffer

unread,
Apr 12, 2020, 1:43:35 PM4/12/20
to Lucas Heijst, weewx-development
Take a look: it's in not only changes.txt, but also the Upgrading Guide.

Luc, let me remind you: this is beta software. Don't use it if you're worried about data loss.

-tk

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/88a944e3-c5b7-49a7-ac22-bdd71f8f25ae%40googlegroups.com.

Lucas Heijst

unread,
Apr 12, 2020, 1:54:01 PM4/12/20
to weewx-development
Tom,

You are right (as always :-) ).

Well, now I can use option  --calc-missing of wee_database!

Thanks for your time!

Luc


On Sunday, 12 April 2020 14:43:35 UTC-3, Tom Keffer wrote:
Take a look: it's in not only changes.txt, but also the Upgrading Guide.

Luc, let me remind you: this is beta software. Don't use it if you're worried about data loss.

-tk

Reply all
Reply to author
Forward
0 new messages