Is it possible for a StdService to submit it's own loop packet? I don't see genLoopPackets within the function but wanted to ask. It would be nice to be able to submit this MQTT packet as it's own loop in addition to the driver's loop. Right now I'm seeing a bit of a mis-timing problem with the StdService waiting for the driver's loop, and the MQTT data is being aggregated instead of added as it comes in.
On Tuesday, February 2, 2021 at 1:09:42 PM UTC-5 Pat O'Brien wrote: > Thanks. Been so disconnected that it feels like I need to re-learn > extensions again (ingest from mqtt, submit to loop). > > On Tuesday, February 2, 2021 at 1:07:48 PM UTC-5 Tom Keffer wrote: > >> On Tue, Feb 2, 2021 at 9:20 AM Pat <[email protected]> wrote: >> >>> Guess I need to dust off my memory on all this stuff :) I was thinking >>> of a driver, but I think I need an extension which hooks to the loop, then >>> I can track the max wind speed for the archive period and submit it to the >>> record. Then reset it. >> >> >> That's basically the way the Vantage driver does it. See class >> VantageService in drivers/vantage.py. >> >> -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/248cb3f4-1dc1-4d61-8eb0-cc3bbede3952n%40googlegroups.com.
