If I understand your question correctly, you want the energy production for
the week, summarized by day. Is that correct?

If so, you can do something like (NOT TESTED)

#for $day in $week.days
<p>The energy production for $day.dateTime is $day.electric_ed.sum</p>
#end for


See if that helps.

-tk

On Fri, Mar 30, 2018 at 10:45 AM, Marco Biner <[email protected]> wrote:

> Hello
> I need help to calculate in a weekly report the sum of energy production
> from a solar panel.
> The collection of the data works fine with with a selfmade added second
> data source as given in the electricity.py exemple.
> Now my issue is, that the the solar panels feeds:
>
> the actual voltage: *current.electric_psol* in [V]
> the actual power: *current.electric_ed* in [W¨]
>
> the value *week.electric_ed.sum* summarizes all records during the period
> of a week, which is not the sum of the daily production i a week.
> I need only the sum of the latest record of a day.
> googling did give any serious hints to solve my wish.
> Actually I a running weewx version 3.6.2
>
> Thanks in advance for any help
> Marco HB9UQC
>
> http://hb9y.dyndns.org/weewx/
>
> --
> 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.
>

-- 
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