I haven't done that, so that's the answer, I assume.

and I had just modified sdr.py to try to see what was happening:

    def _calculate_delta(label, newtotal, oldtotal):
        delta = None
        if newtotal is not None and oldtotal is not None:
            if newtotal >= oldtotal:
                delta = newtotal - oldtotal
                loginf("%s updated:"
                       " new: %s old: %s" % (label, newtotal, oldtotal))
            else:
                loginf("%s decrement ignored:"
                       " new: %s old: %s" % (label, newtotal, oldtotal))
        return delta



I may leave that in, anyway.  We've got another thunderstorm forecast for 
this afternoon.

Thanks for the reply.


On Sunday, April 16, 2017 at 11:08:54 AM UTC-4, mwall wrote:
>
> be sure that you set the right accumulator for any counters that you add 
> to the database schema.
>
> given the names you chose, in your weewx config file, do something like 
> this:
>
> [Accumulator]
>     [[lightningStrikes]]
>         extractor = sum
>
> this is for weewx 3.7 and later.  pre-3.7 requires a line of python code 
> for each observation.
>
> m
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to