Offload Webpage Generation?

96 views
Skip to first unread message

mlewi...@gmail.com

unread,
Oct 11, 2022, 6:36:04 PM10/11/22
to weewx-user
I have a working WeeWx install on a Pi that is struggling to generate the webpages in a timely fashion due to overall workload on the Pi. I would like to offload the webpage generation to another machine somehow.

The sole reason it is on the Pi is because I can put the Pi close to the station for USB connectivity. 

Stringing a longer cable is not an option.
Moving the station is not an option.
Reducing overall load on the Pi is not an option.

The current instance logs to a MySql/Maria DB on another machine.

What are my options here? Some kind of USB over the network? The data is all in a database, so this should be pretty simple to do. Tell WeeWx where the data is and have it generate the reports, but not have it try to update the data.

Tom Keffer

unread,
Oct 11, 2022, 7:24:51 PM10/11/22
to weewx...@googlegroups.com
You could remove all report generation from the RPi, then on a different computer use cron jobs to launch wee_reports on a regular basis. 

--
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/6e2e55eb-c874-4799-a43f-d54712af6a06n%40googlegroups.com.

Doug Jenkins

unread,
Oct 12, 2022, 1:08:11 PM10/12/22
to weewx...@googlegroups.com
Another option that I have tested in the past is to setup your Pi with MySQL/MariaDB and WeeWX to perform the archive activities only. Then setup WeeWX on another machine on the network, using the Pi database connection to just run the stdreport function.

That way you collect and hold the data on your Pi and use another machine to query and render the html/reports.



vince

unread,
Oct 12, 2022, 2:28:41 PM10/12/22
to weewx-user
Sounds like a great wiki howto article (hint......)
Reply all
Reply to author
Forward
0 new messages