Open diceit-git opened 8 months ago
That makes sense, but maybe with a time comparison so that short bursts of lost connection don't cause too much of a problem.
I get occasional lost connection and have never noticed this problem though. But my logging interval is the recommended 5 minutes rather than the 30 minutes you appear to be using.
Hi Jim, maybe it's working 'accidentally' with 5 min, because the value exceeds the delay*5 border, if I look at the code.
After reconnecting the raw data look like:
process.py calculates the rain delta without recognizing that the WSStatus of previous value is "not connected", so you get a peek in rain values of, in this case, 243.6mm, which is incorrect.
The WSStatus should be recognized and rain value only be calculated if both readings are valid