Thanks for the responses. It’s interesting stuff. I should note that my
desire is to push this average value out over MQTT as I have a web page
displaying the real time data and when something changes I want it to be
pushed out. So I actually don’t think anything to do with templates or
cheetah will be relevant.

I am considering setting my archive interval to one minute instead of 5, am
not sure it’s possible yet but it should give me almost what I want. I
wonder if that would have any repercussions apart from extra storage space
being required?

That said, the MQTT output has been running for a while and it’s emitting
the LOOP parameters perfectly but no archive data so that’s another issue
to solve!

On Sun, 29 Sep 2024 at 22:00, vince <[email protected]> wrote:

> Uncertain my previous answer actually helps any given how short your
> desired average periods are but also see
> https://www.weewx.com/docs/5.0/custom/cheetah-generator/#wind
> On Sunday, September 29, 2024 at 1:57:56 PM UTC-7 vince wrote:
>
>> I don't know if this will help any given you want to get averages within
>> the 5-minute archive period but does
>> https://www.weewx.com/docs/5.0/custom/cheetah-generator/#tag-span help
>> any ?
>>
>> $span(time_delta=60).windGust.avg
>> $span(time_delta=120).windGust.avg
>> $span(time_delta=600).windGust.avg
>>
>> (untested)
>>
>> On Sunday, September 29, 2024 at 11:53:54 AM UTC-7 James Pattinson wrote:
>>
>>> Bit of background, I have been asked to set up a simple weather screen
>>> for an airfield manned by hobbyists. They bought a Davis ISS and 6313
>>> console combo, and I found that the console is essentially a closed/cloud
>>> system and not good for real time data.
>>>
>>> So, I've since installed a Pi with an RTLSDR dongle and WeeWx. It's
>>> receiving data from the iSS and populating reports every 5 minutes.
>>>
>>> At the airfield we generally need a pretty up to date wind direction and
>>> speed, averaged over the last 1 or 2 minutes, and a real time 'instant'
>>> wind display.
>>>
>>> The instant wind I am OK with. I've installed the MQTT extension to
>>> WeeWx so I get the LOOP data every few seconds with the wind info.
>>>
>>> Now, I'm not sure how to go about getting the average wind. Ideally,
>>> what I want is that at every update of the raw wind value (ie at the LOOP
>>> time) it also computes the average wind speed / vector over the last 1,2
>>> and 10 minutes, so basically three moving averages all updated every few
>>> seconds, so I think these updates will be quite 'smooth' and not jumping
>>> all over the place like the instant wind reading.
>>>
>>> Problem is I've no idea where to start with this, or even if it's
>>> possible. I would appreciate any ideas anyone may have.
>>>
>>>
>>> --
> 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/AvOx55kq49g/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/0c672f89-b119-4566-be10-141abb358058n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/0c672f89-b119-4566-be10-141abb358058n%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CANF1PgsohhpDVmjALjg3W0Dc5pAY_d4cD23W1g45VBd59GjCaw%40mail.gmail.com.

Reply via email to