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. So you’re maintaining a circular buffer of (24h/loop packet interval) rainfall samples. Is that right? G Web: http://www.cusick.org.uk 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 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
--
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.
|