I think the fundamental flaw in doing this with rain is the "maximum time." I stand to be corrected, but the maximum temperature, wind speed, etc., is something that is measured at a point in time. I believe in the case of weewx, to the one-second granularity. E.g., the highest daily (or monthly) reading might occur on "02 Jun at 15:41:22." In reading the Customizing Guide (https://www.weewx.com/docs/customizing.htm), as Tom suggested to me, I don't see a way to get the sum and the day.
The rain total and date you seek are available in the NOAA-YYYY-MM.txt file under the Rain column. A kludge would be to write a batch script of Python script that runs as a cron job between the update interval to extract the value and put it in your index.html.tmpl file. There may be a way to do it similar to the way that temperature min and max are determined, but the lack of response from the weewx experts suggests that it's not simple. - Paul VE1DX On Sunday, June 6, 2021 at 12:21:07 PM UTC-3 remy.l...@gmail.com wrote: > *In the same genre but for the rain (not rain rate) ... Is it possible to > recover in Seasons on a period, the day of the maximum rain (the > $day.rain.sum maximum) ?* > > <span class="timestamp">$archive[1].rain.maxtime</span><br> > $archive[1].rain.max.format(add_label=False)</td> > <span class="timestamp">$archive[1].rain.maxtime</span><br> > > *Gives the day and time of the maximum value of rain in the loop packets > ... OK no problem, but it does not give me the day with the maximum rain... > :-( * > > > $archive[1].rain.sum.format(add_label=False)</td> > > *Gives the total rainfall over the period ... OK not always the maximum > rain day... :-(* > > *How to get the maxi day rainfall over the period considered ??* > > *Thank-you...* > > Le samedi 5 juin 2021 à 21:46:35 UTC+2, WindnFog a écrit : > >> Thanks, Tom. I always take the longest path between two point! >> >> - Paul VE1DX >> >> >> On 2021-06-05 4:32 p.m., Tom Keffer wrote: >> >> You're making this a lot more complicated than it needs to be. Try this: >> >> #set $mnth=$month.dateTime.format("%B") >> <p>Minimum temp for $mnth was $month.outTemp.min on >> $month.outTemp.mintime.format("%d %b at %H:%M") >> <br/> >> Maximum temp for $mnth was $month.outTemp.max on >> $month.outTemp.maxtime.format("%d %b at %H:%M") >> <br/> >> Maximum 10-min avg. wind speed for $mnth was $month.windSpeed.max >> <br/> >> #set t = $month.windSpeed.maxtime >> (From the $current($timestamp=$t.raw).windDir.ordinal_compass on >> $t.format("%d %b at %H:%M"))</p> >> >> >> Take a look through all the formatting options in the Customizing Guide. >> There's no need to do strftime manipulations. >> >> On Sat, Jun 5, 2021 at 12:13 PM WindnFog <foc...@gmail.com> wrote: >> >>> I embellished this a bit by adding the temperature ranges: >>> >>> #set t = $month.outTemp.mintime.raw >>> #import time >>> #set mnth=time.strftime("%B", time.localtime(t)) >>> #set str_t=time.strftime("%d %b at %H:%M", time.localtime(t)) >>> <p>Minimum temp for $mnth was $month.outTemp.min on $str_t >>> <br/> >>> #set t = $month.outTemp.maxtime.raw >>> #set str_t=time.strftime("%d %b at %H:%M", time.localtime(t)) >>> Maximum temp for $mnth was $month.outTemp.max on $str_t >>> <br/> >>> #set t = $month.windSpeed.maxtime.raw >>> #set str_t=time.strftime("%d %b at %H:%M", time.localtime(t)) >>> Maximum 10-min avg. wind speed for $mnth was >>> $month.windSpeed.max >>> <br/> >>> (From the $current($timestamp=$t).windDir.ordinal_compass on >>> $str_t)</p> >>> >>> - Paul VE1DX >>> >>> On Friday, June 4, 2021 at 5:07:09 AM UTC-3 remy.l...@gmail.com wrote: >>> >>>> Thanks for the quick response! And it actually works :-))) >>>> >>>> Two slight corrections are however to be made to work fine : >>>> >>>> -1 / You forgot the "$" at timestamp. We must read >>>> $current(*$*timestamp=$t).windDir >>>> instead of $current(timestamp=$t).windDir >>>> -2 / The time format must be in raw to work. We must read #set t = >>>> $month.windSpeed.maxtime*.raw* instead of #set t = >>>> $month.windSpeed.maxtime >>>> >>>> Aside from that it was a perfect solution !! Thanks again Tom >>>> >>>> Le jeudi 3 juin 2021 à 22:41:54 UTC+2, tke...@gmail.com a écrit : >>>> >>>>> You could do something like (NOT TESTED): >>>>> >>>>> #set t = $month.windSpeed.maxtime >>>>> <p>The max wind speed this month is $month.windSpeed.max from >>>>> direction $current(timestamp=$t).windDir at time $t.</p> >>>>> >>>>> >>>>> >>>>> On Thu, Jun 3, 2021 at 8:38 AM Remy Lavabre <remy.l...@gmail.com> >>>>> wrote: >>>>> >>>>>> Good morning all, >>>>>> >>>>>> To have the maximum wind gust over a period this works very well and >>>>>> also gives the time and date of this wind gust: >>>>>> >>>>>> <td class="label">Win Gust Max</td> >>>>>> #for $archive in $archive_data >>>>>> <td class="data new_row hilo_$archive[0]"><font color = >>>>>> "DarkRed"> >>>>>> <span title="$archive[1].wind.maxtime"> >>>>>> $archive[1].wind.gustdir.ordinal_compass >>>>>> ($archive[1].wind.gustdir.format(add_label=False)$unit.label.windDir) >>>>>> - $archive[1].wind.max.format(add_label=False)</span><br> >>>>>> <span class="timestamp">$archive[1].wind.maxtime</span> >>>>>> </td> >>>>>> >>>>>> >>>>>> Over the same period, I get the maximum wind value (not the gust) >>>>>> with the following formula: >>>>>> >>>>>> <span title="$archive[1].windSpeed.maxtime"> >>>>>> >>>>>> $archive[1].windSpeed.max.format(add_label=False)</span><br> >>>>>> <span >>>>>> class="timestamp">$archive[1].windSpeed.maxtime</span><br> >>>>>> >>>>>> My problem is that I cannot recover the direction of the wind during >>>>>> this maximum : >>>>>> >>>>>> $archive[1].windDir.ordinal_compass ( $archive[1].windSpeed.max ) >>>>>> does not work ! :-( >>>>>> >>>>>> How should I do it? >>>>>> 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 weewx-user+...@googlegroups.com. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/weewx-user/85fa1519-24ba-45a0-bc45-20bf18a9b9ben%40googlegroups.com >>>>>> >>>>>> <https://groups.google.com/d/msgid/weewx-user/85fa1519-24ba-45a0-bc45-20bf18a9b9ben%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 weewx-user+...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/e2555ed6-93cb-4081-9ad1-9c56a0379b6dn%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/e2555ed6-93cb-4081-9ad1-9c56a0379b6dn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> >> You received this message because you are subscribed to a topic in the >> Google Groups "weewx-user" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/weewx-user/w8QBuJtV6Tc/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> weewx-user+...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/CAPq0zEB2b1DJ%2BOPZkURqjoyuRUSnkG4OLRNqM6iKSH%2BOm2xGQA%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEB2b1DJ%2BOPZkURqjoyuRUSnkG4OLRNqM6iKSH%2BOm2xGQA%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6bdb9bc1-c915-4be6-9bc0-829cdb29e950n%40googlegroups.com.