shouldn't it be $span($time_delta=900).windGustDir.avg.ordinal_compass possibly $span($time_delta=900).windGustDir.avg.ordinal_compass.formatted
why not just try them, and see if they work On Saturday, 30 September 2017 23:39:33 UTC+3, Nicolas Cazan wrote: > ok, so if I do > > $span($time_delta=900).windGustDir.ordinal_compass.avg.formatted > > this should not work? > > > Le samedi 30 septembre 2017 14:30:36 UTC+2, Andrew Milner a écrit : >> >> I think that if you are trying to get the direction which corresponds to >> the gust you are asking too much from cheetah. This is beginning to look >> more like an sql issue rather than a reporting issue. The template has >> retrieved the gust, but not the time of that gust which you would need to >> be able to use sql to retrieve the dirsction, temp, barometer or any other >> value for that time. You could always just try the average gust direction >> for the 15 minute period however >> $span($time_delta=900).windGustDir.avg.formatted >> >> >> >> On Saturday, 30 September 2017 15:22:09 UTC+3, Nicolas Cazan wrote: >> >>> awesome !! it works, but a priori not with the direction of the wind? You >>> think it's possible? >>> >>> Le samedi 30 septembre 2017 11:01:22 UTC+2, Andrew Milner a écrit : >>>> >>>> If you want the max wind gust in the previous 15 minutes shouldn't it >>>> be something like >>>> $span($time_delta=900).windGust.max.formatted >>>> or for the average >>>> $span($time_delta=900).windGust.avg.formatted >>>> >>>> >>>> >>>> On Saturday, 30 September 2017 10:01:50 UTC+3, Nicolas Cazan wrote: >>>> >>>>> <realtime><data >>>>> realtime="rainheuretest">$span($time_delta=900).windGust.formatted<!--dailyRain--></data></realtime> >>>>> >>>>> Sure enough I forgot one. but it still does not work, I have to >>>>> forget something. >>>>> >>>>> Le samedi 30 septembre 2017 02:35:20 UTC+2, gjr80 a écrit : >>>>>> >>>>>> Hi, >>>>>> >>>>>> If you look carefully at the $span documentation you will see that >>>>>> you have an error in your syntax. Your post suggests you are using: >>>>>> >>>>>> >>>>>>> <realtime> <data realtime = "raintimetest"> $span ($time_delta = >>>>>>> 900) windGust.formatted <! - dailyRain -> </ data> >>>>>>> >>>>>> >>>>>> The correct $span syntax in your case is: >>>>>> >>>>>> $span($time_delta=900).windGust.formatted >>>>>> >>>>>> The spaces are not critical but the periods (.) are. >>>>>> >>>>>> Gary >>>>>> >>>>> >>>>> >>> > -- 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]. For more options, visit https://groups.google.com/d/optout.
