Daily rainfall

143 views
Skip to first unread message

Geni

unread,
Apr 1, 2022, 4:19:20 AM4/1/22
to weewx-user
The Vantage Pro2 does not show the same daily rain amount as weewx.
How can this be corrected?
Geni

Tom Keffer

unread,
Apr 1, 2022, 9:11:04 AM4/1/22
to weewx-user
How about a little more information? What are you comparing? 

--
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/071710fd-4118-45fe-bde7-1a13159829d2n%40googlegroups.com.

Geni

unread,
Apr 2, 2022, 7:58:58 AM4/2/22
to weewx-user
I noticed the error only now since my MQTT at least works locally.
The value 1 is the same as is displayed in the Vantage Console and 2 is the daily sum which in my opinion should always be the same as 1 after the generation of the graphics (for me every 10').
This morning this value was still identical and during the day the difference is getting bigger and bigger. Yesterday it was 0.8 mm.
Is the Vantage Console calculating incorrectly or why are not all values correctly transferred to weewx?
Geni
weewx01.jpg

Geni

unread,
Apr 2, 2022, 8:02:26 AM4/2/22
to weewx-user
Weewx 4.7.0 runs on a Raspberry 3B+ the database is MariaDB on Synology as well as the webserver

Tom Keffer

unread,
Apr 2, 2022, 8:31:11 AM4/2/22
to weewx-user
What tag did you use for the two values? Check to make sure they are both $day.rain.sum.

Geni

unread,
Apr 2, 2022, 11:56:09 AM4/2/22
to weewx-user
Where should this $day.rain.sum entry be?

Tom Keffer

unread,
Apr 2, 2022, 12:24:03 PM4/2/22
to weewx-user
It will be in one of the skin's templates, but I can't say which or where, because you are not using a WeeWX skin. You will either have to ask the skin's author, or look through its templates yourself (which generally end with ".tmpl") and find what tag is being used.

I will say that it's possible that #1 is a tag like $day.rain.sum, while #2 is some integration over an unknown time that the skin author is using. Again, you'll have to ask the author.

I apologize for that unsatisfying answer, but I simply cannot debug every 3rd party skin. There's just too many of them.

Geni

unread,
Apr 3, 2022, 2:39:51 AM4/3/22
to weewx-user
I use the template Belchertown (Version: 1.3b1), and without the feature MQTT the values 1 and 2 are always the same it is then displayed with both the daysumm of weewx.
If now MQTT is active under 1 the value of the daysumm of the Vantage Pro2 console is displayed and this is larger also visible in the console. (Observation phase the last 3 days with much precipitation).
My opinion is that not all rain values are correctly transmitted to weewx or received by weewx.
Do others also have this error one must compare the daily rain values of the console display with weewx?

Karen K

unread,
Apr 3, 2022, 9:28:02 AM4/3/22
to weewx-user
May be that: Belchertown Issue #685

Quote from weewx/restx.py line 326ff.:
if 'dayRain' not in _datadict: 
    # NB: The WU considers the archive with time stamp 00:00
    # (midnight) as (wrongly) belonging to the current day
    # (instead of the previous day). But, it's their site,
    # so we'll do it their way. That means the SELECT statement
    # is inclusive on both time ends:
    _result = dbmanager.getSql(
        "SELECT SUM(rain), MIN(usUnits), MAX(usUnits) FROM %s "
        "WHERE dateTime>=? AND dateTime<=?"
        % dbmanager.table_name, (_sod_ts, _time_ts))

Some connection?
Reply all
Reply to author
Forward
0 new messages