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.lava...@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+unsubscr...@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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEBk9Dpq7LG0_TwZY%3D5pMXS4ECZgvjkg4sL5t1K3OBBGGw%40mail.gmail.com.