There is no need to use all that space when most loop packets will have zero rain.

I just record the rainfall (non-zero rain in a loop packet) as a list of debits.  On each loop packet, I look at the top of the list to see if any have matured (24 hours later).  If so, I decrement rainfall by the amount in the entry and delete that entry.

On Sep 18, 2023, at 9:00 AM, Geoff Cusick <[email protected]> wrote:

So you’re maintaining a circular buffer of (24h/loop packet interval) rainfall samples.  Is that right?
G

Web: http://www.cusick.org.uk

On 18 Sep 2023, at 16:53, 'John Kline' via weewx-user <[email protected]> wrote:


I wrote this extension; although, I no longer use it because I have generalized the functionality to work on any observation and for any time length in my weewx-loopdata extension.

What you are missing is that the plug-in operates at the loop packet level.  Other than loading from the database at start up, with archive interval precision, it does not read the database.  Rather, it keeps track of any rain recorded in loop packets such that they can be decremented from rain 24 hours later.  For example, if .01 rain occurs 87s into an archive interval; and another .01 rain occurs 20s later; the 24 hour rain will decrement (i.e., the rain24 value injected into the loop packets) when each .01 occurrence falls out of the 24 hour window; not when the archive record in the database is older than 24 hours.

Of course, this is all meaningless if you are just going to use it in reports that are only generated on the archive interval; but the for insane (I resemble that remark) who want to see 24 hour rain decrement at loop interval precision on their weather sites that update on every loop packet, it is useful.

John

On Sep 18, 2023, at 8:26 AM, Geoff Cusick <[email protected]> wrote:

Seems a bit of a roundabout way to provide data that’s already easily available - presumably retrieving the 24h rain sum from the database, then injecting it back into the loop packets.  I’m obviously missing something.

G

Web: http://www.cusick.org.uk

On 18 Sep 2023, at 16:18, kufuu <[email protected]> wrote:

https://github.com/chaunceygardiner/weewx-rain24h

On Monday, September 18, 2023 at 7:02:06 AM UTC-4 gjr80 wrote:
You might have to help us out here, what or where is the 'weewx-rain24h add on'. My quick google failed to find such an extension.

Gary

On Monday, 18 September 2023 at 02:06:12 UTC+10 [email protected] wrote:
I installed the weewx-rain24h add on and was wondering how to get he 24hr rain totals to display on the season skin desktop ?

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/RHdDkdSTN68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/9dca3a07-38df-4606-b412-a3c040159944n%40googlegroups.com.

--
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/93806518-A6D9-40B9-AA6B-6DC7C268951E%40gmail.com.

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/RHdDkdSTN68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/899373C3-8626-4DDF-AC9C-D7AE48600646%40johnkline.com.

--
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8ACFE559-1D1F-447F-9A6E-23A2E633E467%40gmail.com.

--
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8B90242A-C8CA-4CB6-A2B7-6ED03B8942D6%40johnkline.com.

Reply via email to