Hi Tom, I get what you mean. I have been making all kind of tests to avoid wrong observations to get into the data base and I even think I began setting min-max values for rainRate, but I'll try again.
What I get from your excellent explanation is that I should try to filter rainRate, not rain, and see if that keeps "pollution" out of the DB, isn't it? I think I'll use this: rainRate = 0, 3 Do you think it would be enough? Or would you suggest me any other way of filtering? Do you think I should also try to modify the rain_period parameter from its default 1800 seconds? Regarding the [[RainRate]] section you see in my config, I've to be honest and say that because of my desperation I even asked ChatGPT how to proceed and this is what he propossed. I have already removed it. Thanks again for your support and patience. El sábado, 11 de enero de 2025 a las 23:56:00 UTC+1, Tom Keffer escribió: > It looks like the field "rain" was nulled out (otherwise, it would be 0.0, > not NULL), so no bug. > > The field rainRate is not null, *however* the fields "rain" and > "rainRate" are completely different. The former represents the amount of > rain that fell, the latter how fast it fell. The field rainRate may be > emitted from your device, in which case, by default, WeeWX uses that value. > I suspect your byows hardware does not do this, so WeeWX will calculate it > using a *running average* over 15 minutes. So, if you get a bad rain > value, it will continue to "pollute" the rainRate value for up to 15 > minutes afterwards. You need to filter rainRate as well, or set its running > average window, given by option rain_period > <https://www.weewx.com/docs/5.1/reference/weewx-options/stdwxcalculate/#rainrater>, > > to something shorter. > > [StdQC] >> > >> >> [[RainRate]] >> min = 0 >> max = 3 >> min_delta = 0 >> max_delta = 3 >> reject = True >> > > I don't know what any of this is. Did you write an addition to StdQC? If > so, you're going to have to debug it! > > -tk > -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/weewx-development/213c928e-f316-42bf-9b81-b3a074def005n%40googlegroups.com.
