You can set the rain year, which might have been what you were looking for
anyway.
In weewx.conf
rain_year_start = 9
(for sept)


On Sat, Apr 24, 2021 at 1:43 PM Manuel <[email protected]> wrote:

> Thank you very much Tom. My knowledge doesn't go that far. I do it
> manually by adding the rainfall of the months since September, which is the
> beginning of the hydrological year.
>
> El sábado, 24 de abril de 2021 a las 22:36:03 UTC+2, [email protected]
> escribió:
>
>> Geez, my apologies. I don't know what I was thinking.
>>
>> Unfortunately, no, it is not possible to sum from an arbitrary time. It's
>> a reasonable thing to do, but at the moment, weewx does not support it. You
>> would have to write a search list extension to do it.
>>
>> On Sat, Apr 24, 2021 at 1:05 PM Manuel <[email protected]> wrote:
>>
>>> Hi Tom I have put that in the index.html.tmpl and it gives me the
>>> following error:
>>> Apr 24 21:51:13 raspberrypi weewx [9579]: cheetahgenerator: Generate
>>> failed with exception '<type' exceptions.TypeError '>'
>>> Apr 24 21:51:13 raspberrypi weewx [9579]: cheetahgenerator: ****
>>> Ignoring template /etc/weewx/skins/Standard/index.html.tmpl
>>> Apr 24 21:51:13 raspberrypi weewx [9579]: cheetahgenerator: **** Reason:
>>> current () got an unexpected keyword argument 'current_time'
>>> Apr 24 21:51:13 raspberrypi weewx [9579]: **** Traceback (most recent
>>> call last):
>>> Apr 24 21:51:13 raspberrypi weewx [9579]: **** File
>>> "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
>>> Apr 24 21:51:13 raspberrypi weewx [9579]: **** fd.write (str
>>> (compiled_template))
>>> Apr 24 21:51:13 raspberrypi weewx [9579]: **** File
>>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in
>>> __str__ Apr 24 21:51:13 raspberrypi weewx [9579]: **** rc = getattr (self,
>>> mainMethName) ()
>>> Apr 24 21:51:13 raspberrypi weewx [9579]: **** File
>>> "cheetah__etc_weewx_skins_Standard_index_html_tmpl_1619293873_73_36940.py",
>>> line 825, in respond
>>> Apr 24 21:51:13 raspberrypi weewx [9579]: **** File
>>> "cheetah__etc_weewx_skins_Standard_index_html_tmpl_1619293873_73_36940.py",
>>> line 98, in __errorCatcher5
>>> Apr 24 21:51:13 raspberrypi weewx [9579]: **** File "<string>", line 1,
>>> in <module>
>>> I don't know what I'm doing wrong.
>>> Thanks for your quick response.
>>>
>>> El sábado, 24 de abril de 2021 a las 19:04:41 UTC+2, [email protected]
>>> escribió:
>>>
>>>> If you know the unix epoch time, it's easy enough. For example, for all
>>>> the rain since 1-Jan-2021 0000 UTC:
>>>>
>>>> <p>Rain since the start of the year UTC:
>>>> $current(current_time=1609459200).rain.sum</p>
>>>>
>>>>
>>>> On Sat, Apr 24, 2021 at 9:54 AM Manuel <[email protected]> wrote:
>>>>
>>>>>
>>>>> Good afternoon. How can I get the accumulated rain from a date .
>>>>> Example from September until now. Thank you.
>>>>>
>>>>> --
>>>>> 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/2856f638-d857-4966-94a8-9a1975020e4bn%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/weewx-user/2856f638-d857-4966-94a8-9a1975020e4bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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/e65cade1-28b2-4493-9b87-f4131332f456n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/e65cade1-28b2-4493-9b87-f4131332f456n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/fbfac242-b383-4c91-8339-d9ba2b61ed90n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/fbfac242-b383-4c91-8339-d9ba2b61ed90n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Peter Quinn
(415)794-2264

-- 
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/CAA1SM22iNejPVbeM%2Bj-vt1V_OUCoDk9QHQHr3yx7yNpQSi70HQ%40mail.gmail.com.

Reply via email to