Vince, the log is not querying a purple air device every two seconds. A purple air could not handle that. It is inserting purple air values from the most reading in every loop packet. As for rsyncing every two seconds, I do it ALL THE TIME. Between machines and also to the Google cloud. Two seconds is an enormous amount of time. In fact, in a single weewx instance, I’m rsyncing every two seconds to various devices (perhaps four or more places) every two seconds. I’ve done this on Raspberry Pi 3s, 4s and now 5s. Because this is my code, I can tell you that the rsync is on a separate thread and typically a short connection timeout. For longer connection timeouts, if a queue develops (slow CPU, slow network), it throws away queue entries older than n seconds (configurable). It never builds up a long queue and, if it skips a loop record, it is recorded in the log. Looking at my public weewx instance, which rsyncs to a Google compute instance every two seconds, I can see how many skips I’ve had so far today. I use a 1s timeout with a connection timeouts also of 1 s. rsync: conn timeouts 7 rsync: conn timeouts (banner exchg) 6 rsync: io timeouts 1 I’ve also contributed this rsync code to Gary’s real time gauges. Again, it rsyncs on every loop packet (which, for vantage, is every two seconds). John On Dec 16, 2023, at 1:52 PM, Chris Alemany <[email protected]> wrote: -- 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/89D8FB38-E79D-4AC0-B92C-CF9F58BAA1E3%40johnkline.com. |
Re: [weewx-development] No archive db updates but loop works - WeeWx 5.0b15 and b17
'John Kline' via weewx-development Sat, 16 Dec 2023 14:41:17 -0800
- Re: [weewx-development] WeeWX 5.0.0b17 ... Tom Keffer
- Re: [weewx-development] WeeWX 5.0.0b17 ... Greg
- Re: [weewx-development] WeeWX 5.0.0b17 ... Tom Keffer
- Re: [weewx-development] WeeWX 5.0.0b17 ... Greg
- [weewx-development] No archive db updat... Chris Alemany
- [weewx-development] Re: No archive db u... Vince Skahan
- Re: [weewx-development] No archive db u... Vince Skahan
- Re: [weewx-development] No archive db u... Chris Alemany
- Re: [weewx-development] No archive db u... Vince Skahan
- Re: [weewx-development] No archive db u... Chris Alemany
- Re: [weewx-development] No archive db u... 'John Kline' via weewx-development
- Re: [weewx-development] No archive db u... Tom Keffer
- Re: [weewx-development] No archive db u... Chris Alemany
- Re: [weewx-development] No archive db u... Tom Keffer
