Max wind in last... hour?

31 views
Skip to first unread message

Rob Cranfill

unread,
Dec 12, 2020, 8:28:51 PM12/12/20
to weewx-user
(My last question was answered so quickly and well, let's see if that can happen again!)

Can my skin (which I'm developing for a little RPi LCD display, and I will share once I'm semi-done) display the max wind in the last, say, 60 minutes?

I've tried

   <div class="currentWind">Recent peak wind: $span($hour_delta=1).wind.max</div>

and variations thereon, to no avail.

Anyone?

 

Tom Keffer

unread,
Dec 12, 2020, 8:43:01 PM12/12/20
to weewx-user
LOL! Yes, this error is a little obscure.

The observation type 'wind' is found only in the daily summaries, not the main archive table. So, tags involving "wind" will only work for multiples of a day, such as $month.wind.max.

However, observation type 'windSpeed' does exist in the main archive table. So, instead use 

$span($hour_delta=1).windSpeed.max

Maybe 'wind' should be used as a synonym for 'windSpeed' in queries involving the main archive table...

-tk

--
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/a9777308-2ce8-42ca-b667-eb79afd9ffbdn%40googlegroups.com.

Rob Cranfill

unread,
Dec 12, 2020, 9:12:41 PM12/12/20
to weewx-user
Thanks, that seems to be what I wanted! (Actually, I think I'm going to use $span($time_delta=1800).windSpeed.max  for a 30-minute peak.)

(Altho we have no wind here in Seattle at the moment so I can't really see the results... but at least it does evaluate to *something*. ;-) )

Reply all
Reply to author
Forward
0 new messages