>Thinking about this a little bit more - can't you just change the
>template
>to use, for example
>rainfall for last 27 hours is $span(hour_delta = 27).rain.sum
>or
>rainfall for last 30 days is $span(day_delta=30).rain.sum
>or
>max temp in last 24 hours is $span(hour_delta=24).outTemp.max
Almost works! Many thanks for your help. But.... I tried dew point for 30 days and changed its template:
min 30 days: $span(day_delta=30).dewpoint.min u $span(day_delta=30).dewpoint.mintime<br/>
max 30 days: $span(day_delta=30).dewpoint.max u $span(day_delta=30).dewpoint.maxtime<br/>
min: $month.dewpoint.min u $month.dewpoint.mintime<br/>
max: $month.dewpoint.max u $month.dewpoint.maxtime
That extracts data from correct data span. But fails to print the corresponding date. Here is new output above the old wrong one. I can not say if the time is correct but the date is missing.
min 30 days: -6,2°C u 10:30:00
max 30 days: 24,0°C u 08:40:00
min: 3,5°C u 04.10.2019 12:46:09
max: 20,0°C u 02.10.2019 15:14:57
Plus, I must find a date format without leading zero in day and hour.
>
>and so on
>
>in this way you are specifying the span of the total or over which the
>max
>is calculated, and should satisfy your needs I suspect.
>
>
>
>On Saturday, 5 October 2019 14:37:44 UTC+3, Thomas Keffer wrote:
>>
>> On Sat, Oct 5, 2019 at 1:11 AM Pila <
mrzim...@gmail.com
><javascript:>>
>> wrote:
>>
>>> Terrible choice in a great program. Sort of like writing close over
>the
>>> switch that opens.
>>>
>>
>> Sorry you feel that way.
>>
>> Allowing it to be done either way is something I could spend my time
>on,
>> but I'm not --- there are other, higher, priorities.
>>
>> A central feature of WeeWX is its *extensibility*, allowing anyone to
>
>> customize it to just the way they want. In this case, not only is
>your way
>> possible, there are examples of how to do it.
>>