> I have a plug-in that will generate a json file on every loop packet. Furthermore, it supports rsyncing that file (on every loop packet).
That's pretty interesting. Are you saying it can do averaging for periods shorter than the archive interval? It sounds like it would be possible to modify that to publish MQTT messages instead of writing the JSON file, and that'd be exactly what I need. Thanks for the pointer. On Monday 30 September 2024 at 02:32:56 UTC+1 John Kline wrote: > I have a plug-in that will generate a json file on every loop packet. > Furthermore, it supports rsyncing that file (on every loop packet). > > You need to specify in weewx.conf what you want written to the file. > Besides tags you can write in the your reports (e.g, current.outTemp.raw, > day.windGust.max), it will support arbitrary time lengths (e.g., > 10m.windGust.max). That will get you the moving averages you want (e.g, > 1m.wind.avg, 2m.wind.avg). > > The extension is only tested for Davis Vantage Pro 2 and RainWise CC3000, > but likely works for all drivers which include all obervations on every > loop packet. Drivers generating sparse readings are very much NOT > supported. > > If you want to give it a try, it’s at: > [image: weewx-loopdata.png] > > chaunceygardiner/weewx-loopdata: A WeeWX service to generate a json file > (loop-data.txt) containing observations from loop events. > <https://github.com/chaunceygardiner/weewx-loopdata> > github.com <https://github.com/chaunceygardiner/weewx-loopdata> > <https://github.com/chaunceygardiner/weewx-loopdata> > > > > On Sep 29, 2024, at 3:44 PM, matthew wall <[email protected]> wrote: > > its not a moving average, but if you have an archive interval of 5 > minutes and you post both loop and archive to MQTT then you'll get 5 minute > averages as well as near-real-time values. > > > [StdRESTful] > [[MQTT]] > ... > binding = loop, archive > this is with the weewx-mqtt restful service: > > https://github.com/matthewwall/weewx-mqtt > > and this is what the result looks like in grafana with influx as the > backend (this is tide data from a maxbotix ultrasonic sensor sampled every > 1 second with a 5 minute archive interval) > > -- > 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/35efa133-9f08-45dc-bc65-fd959065aebbn%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/35efa133-9f08-45dc-bc65-fd959065aebbn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > <tide-loop+archive.png> > > -- 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/35985797-d964-4aba-9e99-8efd86377244n%40googlegroups.com.
