Thank you Tom. I had not tried doing this since early last year. I ran into lots of issues, but after your comment I reviewed the changelog and see that version 4.0 now loads services. I had read the documentation before, but had not done so recently. Apologies for my laziness and thank you for such a simple fix!
On Tue, Mar 9, 2021 at 10:31 AM Tom Keffer <[email protected]> wrote: > Why not just use the utility wee_reports > <http://www.weewx.com/docs/utilities.htm#wee_reports_utility>? > > On Tue, Mar 9, 2021 at 8:10 AM [email protected] <[email protected]> > wrote: > >> I am trying to setup a comparative/combination report between multiple >> weather stations. As they already have their own instance of WeeWx >> running, I am only needing to run reports on existing data. I setup an >> instance of WeeWx using the Simulator and then added the additional >> bindings: >> >> [DataBindings] >> >> [[wx_binding]] >> database = archive_mysql >> table_name = archive >> manager = weewx.manager.DaySummaryManager >> schema = schemas.wview_extended.schema >> >> [[wx_binding2]] >> database = archive_mysql2 >> table_name = archive >> manager = weewx.manager.DaySummaryManager >> schema = schemas.wview_extended.schema >> >> [Databases] >> >> [[archive_mysql]] >> database_name = weewx >> database_type = MySQL >> >> [[archive_mysql2]] >> database_name = weewx >> database_type = MySQL2 >> >> [DatabaseTypes] >> >> [[MySQL]] >> driver = weedb.mysql >> host = hostIPone >> user = remoteweewx >> password = itsasecret >> >> [[MySQL2]] >> driver = weedb.mysql >> host = hostIPtwo >> user = remoteweewx >> password = itsasecret >> >> On the respective remote MySQL connections, the user was granted only >> SELECT privileges so that it doesn't corrupt or double process any data >> being collected by the initial WeeWX installation for that station. >> >> For the actual processes I only need/want reports, so I removed all >> process except for the reports. >> >> [Engine] >> >> [[Services]] >> # This section specifies the services that should be run. They are >> # grouped by type, and the order of services within each group >> # determines the order in which the services will be run. >> prep_services = >> data_services = >> process_services = >> archive_services = >> restful_services = >> report_services = weewx.engine.StdPrint, weewx.engine.StdReport >> >> When I run the instance it loads with no errors, but never runs any of >> the reports. Is there a particular service which is required to run before >> reports will run? Debug log below. >> >> TIA, Jonathan >> >> >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22236] INFO __main__: >> Initializing weewx version 4.1.1 >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22236] INFO __main__: Using >> Python 2.7.16 (default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0] >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22236] INFO __main__: >> Platform Linux-5.4.51-v7+-armv7l-with-debian-10.4 >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22236] INFO __main__: Locale >> is 'en_US.UTF-8' >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22236] INFO __main__: PID >> file is /var/run/weewx-ranch-multi.pid >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] INFO __main__: Using >> configuration file /etc/weewx/ranch-multi.conf >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] INFO __main__: Debug >> is 1 >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] DEBUG __main__: >> Initializing engine >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] INFO weewx.engine: >> Loading station type Simulator (weewx.drivers.simulator) >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] DEBUG weewx.engine: No >> services in service group prep_services >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] DEBUG weewx.engine: No >> services in service group data_services >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] DEBUG weewx.engine: No >> services in service group process_services >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] DEBUG weewx.engine: No >> services in service group archive_services >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] DEBUG weewx.engine: No >> services in service group restful_services >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] DEBUG weewx.engine: >> Loading service weewx.engine.StdPrint >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] DEBUG weewx.engine: >> Finished loading service weewx.engine.StdPrint >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] DEBUG weewx.engine: >> Loading service weewx.engine.StdReport >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] DEBUG weewx.engine: >> Finished loading service weewx.engine.StdReport >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] INFO __main__: >> Starting up weewx version 4.1.1 >> Mar 9 10:07:56 Gugelhupf weewx-ranch-multi[22240] INFO weewx.engine: >> Starting main packet loop. >> >> -- >> 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 on the web visit >> https://groups.google.com/d/msgid/weewx-user/46f6f4be-ba71-4a70-8043-3c3207f86af2n%40googlegroups.com >> <https://groups.google.com/d/msgid/weewx-user/46f6f4be-ba71-4a70-8043-3c3207f86af2n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "weewx-user" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/weewx-user/9syETYhl7Oc/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/CAPq0zEARU9ubRjvmmqqJsD6ExMfo9gNvnmiJvtWQudX5BXyOFA%40mail.gmail.com > <https://groups.google.com/d/msgid/weewx-user/CAPq0zEARU9ubRjvmmqqJsD6ExMfo9gNvnmiJvtWQudX5BXyOFA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 on the web visit https://groups.google.com/d/msgid/weewx-user/CAFwS2r3PS6dLafaSvfN%2BXV6VxeJxfgjuFak1hSFaNZrROMfEuA%40mail.gmail.com.
