Re: [weewx-user] Re: Calculate the sum of a weekly energy production for a solar panel

2018-04-02 Thread Thomas Keffer
The "months_ago" feature was not introduced until V3.7. You are using V3.6.2. Upgrade! -tk On Mon, Apr 2, 2018 at 4:13 AM, Marco Biner wrote: > Hi Tom > I am again disturbing you. > As I said I managed it to summarize my energy production with your hint, > but it is

[weewx-user] Re: Calculate the sum of a weekly energy production for a solar panel

2018-04-02 Thread Marco Biner
Hi Tom I am again disturbing you. As I said I managed it to summarize my energy production with your hint, but it is still not satisfiying my wish. Here my code to summarize the production of a month: #set $month_total=0 #for $day in $month.days

Re: [weewx-user] Re: Calculate the sum of a weekly energy production for a solar panel

2018-04-01 Thread Marco Biner
Hi Tom my answers between your lines. Am Samstag, 31. März 2018 17:13:48 UTC+2 schrieb Tom Keffer: > > 1. This may be resulting from confusion of what the timestamps represent. > In weeWX, all data in a time period is timestamped by the *end* of that > period. As an example, data for a 5 minute

Re: [weewx-user] Re: Calculate the sum of a weekly energy production for a solar panel

2018-03-31 Thread Thomas Keffer
1. This may be resulting from confusion of what the timestamps represent. In weeWX, all data in a time period is timestamped by the *end* of that period. As an example, data for a 5 minute archive period with a timestamp 0950 Tuesday, is the data from (but not including) 0945 up to *and including*

[weewx-user] Re: Calculate the sum of a weekly energy production for a solar panel

2018-03-31 Thread Marco Biner
Hi Tom thank you for the fast reply. I added your code to my report, but it summarisez all stored values from a day, not the last value. I have to clarify that the logger of the solar panel gives everytime it is polled the sum of the daily solar production. The modification of your code, like