How to use last non-null value in loop?

37 views
Skip to first unread message

Kevin Key

unread,
Apr 2, 2024, 9:08:34 PM4/2/24
to weewx-user
Hi,

How do I get Weewx to always report the last non-null value?

I've tried...

[StdCalibrate]
    [[Corrections]]
        pressure = last.pressure

and also

    pressure = last(pressure)


with no luck.

What am I doing wrong?

Tom Keffer

unread,
Apr 2, 2024, 9:35:53 PM4/2/24
to weewx...@googlegroups.com
The aggregation ".last" will return the last non-null value in the aggregation period. So, for example, you could use $day.pressure.last

--
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/611aedb8-a5a6-435f-a67b-c0b04ae42ac1n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages