Sure! That sounds pretty reasonable. On Thu, May 2, 2024 at 8:35 AM bell...@gmail.com <bellri...@gmail.com> wrote:
> Background: > I am experimenting with a driver/service pair that performs a > ‘lightweight’ (Not sure a reliable synchronization can be light weight) > synchronization of sqlite DBs over MQTT v5. When the driver is > instantiated, it retrieves the ‘lastGoodStamp’ from the database. It then > makes a MQTT request to the primary DB for all records since that > timestamp. By the time genStartupRecords is called, the catchup data should > (hopefully) be available. But, the DBBinder has not been instantiated yet. > I can get around this using ‘weewx.manager.open_manager’. > > I’m wondering if you would be open to a pull request that just moves > ‘self.db_binder = weewx.manager.DBBinder(config_dict)’ prior to ‘ > self.setupStation(config_dict)? Then when the driver retrieves the > db_manager, it would be cached and available to the rest of the WeeWX > pipeline/infrastructure. > > Thanks. rich > > -- > 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 weewx-development+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-development/5e16890b-b3c3-41b2-aa79-f441dda52625n%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/5e16890b-b3c3-41b2-aa79-f441dda52625n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 weewx-development+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/CAPq0zECnwuQJuWOx0DE_72AtBKMSD5hvBfH7QJS6EwtmVJ%2BccA%40mail.gmail.com.