Re: [weewx-user] Direction of the maximum wind value

2021-07-02 Thread WindnFog
It's also in the NOAA files that are updated every 5 minutes. The following works with two caveats. First, there may be a "built-in" more straightforward way to do it within weewx AND my Python programming is in its infancy. Second, if you do this in python 2.7 instead of Python 3.x, you'll ha

Re: [weewx-user] Direction of the maximum wind value

2021-06-07 Thread Remy Lavabre
However, the total rainfall for each day is recorded in the SQL database : In the "archive_day_rain" section, there are the fields "dateTime" which corresponds to the current date, "min" which is obviously always zero, max which most certainly corresponds to the maximum packet loop, and "sum" whic

Re: [weewx-user] Direction of the maximum wind value

2021-06-07 Thread WindnFog
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 mon

Re: [weewx-user] Direction of the maximum wind value

2021-06-06 Thread Remy Lavabre
*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) ?* $archive[1].rain.maxtime $archive[1].rain.max.format(add_label=False) $archive[1].rain.maxtime *Give

Re: [weewx-user] Direction of the maximum wind value

2021-06-05 Thread Paul Dunphy
    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") Minimum temp for $mnth was $month.outTemp.min on

Re: [weewx-user] Direction of the maximum wind value

2021-06-05 Thread Tom Keffer
You're making this a lot more complicated than it needs to be. Try this: #set $mnth=$month.dateTime.format("%B") Minimum temp for $mnth was $month.outTemp.min on $month.outTemp.mintime.format("%d %b at %H:%M") Maximum temp for $mnth was $month.outTemp.max on $month.outTemp.maxtime.format("%d %b a

Re: [weewx-user] Direction of the maximum wind value

2021-06-05 Thread WindnFog
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)) Minimum temp for $mnth was $month.outTe

Re: [weewx-user] Direction of the maximum wind value

2021-06-04 Thread Remy Lavabre
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

Re: [weewx-user] Direction of the maximum wind value

2021-06-03 Thread Tom Keffer
You could do something like (NOT TESTED): #set t = $month.windSpeed.maxtime The max wind speed this month is $month.windSpeed.max from direction $current(timestamp=$t).windDir at time $t. On Thu, Jun 3, 2021 at 8:38 AM Remy Lavabre wrote: > Good morning all, > > To have the maximum wind gust

[weewx-user] Direction of the maximum wind value

2021-06-03 Thread Remy Lavabre
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: Win Gust Max #for $archive in $archive_data $archive[1].wind.gustdir.ordinal_compass ($archive[1].wind.gustdir.f