Echo 7 Foxtrot <[email protected]> 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).

-- 
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/rmilfl0m0fe.fsf%40s1.lexort.com.

Reply via email to