Re: [weewx-user] Acurite 6045 Lightning, distance with no new strikes

54 views
Skip to first unread message
Message has been deleted

Greg Troxel

unread,
Jun 6, 2020, 3:58:19 PM6/6/20
to Echo 7 Foxtrot, weewx-user
Echo 7 Foxtrot <michael...@echo7foxtrot.com> writes:

> weewx.conf (below). Is there a way to tell either the driver or StdQC to
> override distance based on the derived lightning_strike_count field?
> Something akin to "if lightning_strike_count < 1 then lightning_distance =
> null else lightning_distance=distance.0027.AcuriteLightningPacket"? Or is
> this going to be as involved as the whole wind direction when no wind speed
> topic? I'd like to try and put the right data into the database rather
> than scheduling a nightly sqlite update to correct the distance field. TIA
> for any suggestions.

The way you asked the question suggests you aren't reading the source
code with an eye to modifying it. That's fine, but I don't think other
approaches are likely to work.

This is all about a more complex mapping from transmitted bits (from the
6045M, which rtl_433 pretty much outputs verbatim) to desired semantics.
If there is processing from the strike count field to some de-wrapped or
delta strike count, as you suggest, that seems like an obvious place to
have code to deal with storm_distnance (set to logical NULL if this
record isn't reporting new strikes).
Reply all
Reply to author
Forward
0 new messages