Disable database and reports?

76 views
Skip to first unread message

DrTron

unread,
Jan 18, 2022, 7:58:26 PM1/18/22
to weewx-user
All,
As probably many here do, I intend to use weewx not to display weather data on a webserver, but just to collect data from a weather station and feed the data into an existing database. That is working now, at least with the Simulator.
So the whole sqlite database, archive, report generation etc. are not needed.

Is there a way to disable these services without digging too deep into the python scripts?

Thanks!

Tom Keffer

unread,
Jan 18, 2022, 8:08:48 PM1/18/22
to weewx-user
Disabling report generation is simple enough: simply remove weewx.engine.StdReport from the option report_services.

However, the database is pretty integral to the running of the engine, and cannot be easily disabled. Just use the sqlite database and ignore it.

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1ade102c-5937-4357-8bab-e5621ce78e4en%40googlegroups.com.

DrTron

unread,
Jan 18, 2022, 9:13:01 PM1/18/22
to weewx-user
Thanks!
Disabling the report_services definitively stops the write into /var/www/html.
Additionally, I found that disabling archive_services disables writes to the database. So exactly what I wanted.

Tom Keffer

unread,
Jan 19, 2022, 7:12:17 AM1/19/22
to weewx-user
Disabling archive_services will disable writes to the database, but it will also prevent archive records from being generated.

DrTron

unread,
Jan 19, 2022, 3:57:22 PM1/19/22
to weewx-user
That's entirely possible. But as I only need to feed data in realtime from my sensors to my (influx) database, that is totally acceptable for me.
Reply all
Reply to author
Forward
0 new messages