There are two general strategies: 1. Run multiple instances of weewx on one computer <https://github.com/weewx/weewx/wiki/weewx-multi>, then combine the results in the reporting stage. Each will have its own device driver --- one for the LaCrosse station, one for the AC monitor. This method will result in two independent databases. They can then be queried for the final reports.
2. Run one instance of weewx, then augments the data stream coming off the device driver. This requires writing a custom weewx service that adds on to the data coming off the one device driver. For example, you could run a regular weewx instance that monitors your LaCrosse weather station. Then the custom service would add you extra data onto the packets coming out of the LaCrosse. Generally, your service should run and monitor a separate thread that talks to your AC monitor. This way, you won't slow down the main thread should the AC monitor block. This is the method documented in the Customizing Guide *Adding a new observation type <http://weewx.com/docs/customizing.htm#Adding_a_new_observation_type>*, although not very well. The new V3.7 documentation (to come out Real Soon Now) does a slightly better job of documenting this. Hope this helps. -tk On Tue, Feb 7, 2017 at 6:22 AM, <[email protected]> wrote: > I'm still working out how to integrate my alternate data source + a > weather station into weewx. The one LaCrosse station is already running > with weewx-interceptor just fine. This other thing monitors AC current for > my sump pumps, dehumidifier, circ fan, furnace, and its own power supply. > The point is to log when things turn on and off, or more precisely, > determine if they have failed. It's run with some custom hardware I made on > a Pi3. All this is in my crawl space. I've looked through the > customization guide, and I think I've worked out the kinds of values I want > to use (thank Tom). Where I'm lost is how to have a single weewx instance > listen to two drivers, or how to have one driver consume data from the two > stations. Looking at weewx-interceptor and the weewx-observer (pretty > close to what I need for the monitor). In interceptor, could a second > listener thread be started that uses the same queue? From the > customization guide for Services, the electric meter example was read as an > extra service. Is that the same idea as running two drivers? > Is there a better idea? > > Thx, Chris > >
