Calculating delta from running total

59 views
Skip to first unread message

bell...@gmail.com

unread,
Nov 24, 2025, 8:01:35 PM (4 days ago) Nov 24
to weewx-user
I am pretty sure that WeeWX can calculate the delta of an observation from a running total (for example a driver/service that reports a cumulative value for rain). I have searched the WeeWX docs and wiki, but I can't find out how to do it. Could someone point me to the documentation or wiki page?
Thanks! rich

John Smith

unread,
Nov 24, 2025, 8:40:38 PM (4 days ago) Nov 24
to weewx...@googlegroups.com
Over what time period?

On Tue, 25 Nov 2025 at 12:01, bell...@gmail.com <bell...@gmail.com> wrote:
I am pretty sure that WeeWX can calculate the delta of an observation from a running total (for example a driver/service that reports a cumulative value for rain). I have searched the WeeWX docs and wiki, but I can't find out how to do it. Could someone point me to the documentation or wiki page?
Thanks! rich

--
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 visit https://groups.google.com/d/msgid/weewx-user/1e425d9c-a2f9-447c-b78e-3a8c1c6e7aedn%40googlegroups.com.

Tom Keffer

unread,
Nov 24, 2025, 8:46:58 PM (4 days ago) Nov 24
to weewx...@googlegroups.com
There is an XType service Delta that can do this. For example, it is used to calculate rain from a running total:

    [StdWXCalculate]
        [[Calculations]]
            ...
            rain = prefer_hardware
            ...
        [[Delta]]
            [[[rain]]]
                input = totalRain



On Mon, Nov 24, 2025 at 5:01 PM bell...@gmail.com <bell...@gmail.com> wrote:
I am pretty sure that WeeWX can calculate the delta of an observation from a running total (for example a driver/service that reports a cumulative value for rain). I have searched the WeeWX docs and wiki, but I can't find out how to do it. Could someone point me to the documentation or wiki page?
Thanks! rich

--

bell...@gmail.com

unread,
Nov 24, 2025, 8:56:20 PM (4 days ago) Nov 24
to weewx-user
Bingo! Thanks Tom!

Nitpicking a bit, should this be added to, https://weewx.com/docs/5.2/reference/weewx-options/stdwxcalculate/
rich


Reply all
Reply to author
Forward
0 new messages