Several ways. One is to have station2 publish pertinent items to MQTT and have station1 subscribe to those topics and save to station1's db using one of the extraWhateverN elements in its db.
A second way is to run the two instances on the same system and write to differently named databases in the same archive directory. You'd then define the station2 db in [DataBindings] and [Databases] so it's known to the station1 weewx instance. Then you'd just need to explicitly reference which db to get the pertinent item from in your .tmpl files and let station1's weewx instance generate the aggregate result. See https://www.weewx.com/docs/5.1/custom/multiple-bindings/?h=binding for the long description of the howto and why. On Monday, June 2, 2025 at 1:23:41 PM UTC-7 Benedict wrote: > Yes, I would like know this as well. How does the wee-reports generate one > site with both station outputs combined, in graphs and text-td's etc ? Thus > far I have separated config for two source drivers, which both generate the > same web root output, but this of course does not work. How does one merge > both into one page? > Did you ever find out how to accomplish this? > > On Monday, March 7, 2022 at 8:13:59 AM UTC+1 [email protected] wrote: > >> How is this done: >> " you can then run wee_reports on a third .conf that combines data from >> the stations, or does a single upload of data from both stations, etc." >> ? >> Could i choose certain sensors of each station? >> >> Dawei Zhang schrieb am Donnerstag, 19. Mai 2016 um 18:56:46 UTC+2: >> >>> Thanks a lot for the clarification, with two .conf files, two sdb >>> databases, and two initd scripts, both sudo /etc/init.d/weewx-a(and b) >>> work. May I know which kind of logs should I upload? >>> >>> >>> On Thursday, May 19, 2016 at 6:43:57 AM UTC-7, mwall wrote: >>>> >>>> On Thursday, May 19, 2016 at 1:11:00 AM UTC-4, Dawei Zhang wrote: >>>>> >>>>> Sorry for the confusion. >>>>> >>>>> I used TCP/IP for the interface to vantage pro2 on local and remote >>>>> sides. >>>>> >>>>> On step 3) I copied two conf file: weewxLocal.conf and >>>>> weewxRemote.conf. >>>>> >>>>> On step 4) Both database_name = vantage.sdb >>>>> >>>>> On step 5) and 6) weewx_vantagelocal and weewx_vantageremote were used >>>>> accordingly >>>>> >>>>> Step 7) is followed too, both defaults update are the identical >>>>> >>>>> Step 8) weewx_vantagelocal [fail], weewx_vantageremote [ok] >>>>> >>>>> In addition, I am uploading weewx data to graphite server using the >>>>> weewx graphite extension, on the graphite server "http://localhost >>>>> 81" weewx was shown instead of weewxremote >>>>> >>>>> I hope it makes sense, and I will double check on each .conf file too. >>>>> Thanks. >>>>> >>>> >>>> >>>> maybe i'm just thick, but i still don't follow. is there a single >>>> vantage station, or two vantage stations? one computer talking to a >>>> single >>>> vantage station via two different network interfaces? or a single >>>> computer >>>> talking to two different vantage stations, each via tcpip? or something >>>> else? >>>> >>>> assuming that you mean 'one computer getting data from two vantage >>>> stations via tcpip, one local and one remote', then: >>>> >>>> - you must have two different config files, say vantage-a.conf and >>>> vantage-b.conf >>>> - you must have separate databases, say vantage-a.sdb and vantage-b.sdb >>>> - you need either two different init scripts, or you'll have to do >>>> considerable rewrite to make a single init script >>>> >>>> i highly recommend splitting the log output to separate files, say >>>> /var/log/weewx-a.log for one station and /var/log/weewx-b.log for the >>>> other. do this with an rsyslog.d conf file (see the sample in >>>> util/rsyslog.d) and the --log-label option in the init scripts. you'll >>>> need to make logrotate manage those logs (see util/logrotate.d). >>>> >>>> i highly recommend using a separate invocation of wee_reports, with its >>>> own .conf, to generate any reports that use data from both stations. >>>> >>>> you'll have to post the logs if you want any help with failures. >>>> >>>> m >>>> >>> -- 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 visit https://groups.google.com/d/msgid/weewx-user/8caafd45-6e8d-46f3-b14d-4ff2d0542721n%40googlegroups.com.
