Closed nifoc closed 2 years ago
I think the AppVeyor pipeline is failing for unrelated reasons.
Agree it is unrelated. I’ll get this merged shortly. Any interest in updating this page with a coming soon? Thanks for the help!
I don't think I can edit the wiki page. I would've added the following description:
total_wrap_around
To be used in conjunction with contains_total
.
Set to true
if the incoming cumulative value can wrap around (yearly rain for example). The default is false
.
Ok. Thanks again.
Allow for the detection of the wrap around of a
contains_total
field and adjust the new value accordingly.Before this commit
current_total
being smaller thanprevious_total
would result in the field being set toNone
and it would take another packet to actually calculate the difference again. This can result in some data being "lost", because the data right after the wrap around is essentially discarded. Setting the newtotal_wrap_around
option toTrue
will result incurrent_total
being used as the return value right away.The option is set to
False
by default, so you have to explicitly opt-in.Some examples:
yearlyrainin
of some Ecowitt/FineOffset stations wraps around every yearlightning_num
of some Ecowitt/FineOffset stations wraps around every day