Remote image generation (cheetah)

45 views
Skip to first unread message

cavalon cavalon

unread,
Apr 11, 2020, 4:43:34 PM4/11/20
to weewx-user
Hi there

Could not find anything related in this forum for my next steps of optimizing my system :-)

I'm running a VP2 with weewx for years, collection data with a RPi. As the SD-Card was frequently dying, the www-folder is located on a RAM drive and the data is stored on a remote server (mysql DB). So far so good and the system runs smoothly...

As I use more than one skin, the RPi is running at max. generating images, resulting in a delay of a few minutes of my weather-page.

My question: is there a (easy) way of a setup like this:

- Use the local RPi only to collect and store data in the remote mysql DB
- Have the images generated and published on the remote server, reading from this mysql DB

... maybe like a remote 2nd weewx instance without station and data writing...?

Thx for this great piece of software!

Regards



William Burton

unread,
Apr 11, 2020, 6:56:18 PM4/11/20
to weewx-user
Hello,
Exactly.
  1. Make sure the clocks on both the VPS and the Pi are running ntp so they stay in sync. Also make sure they are configured with the same timezone at the system level.
  2. Install the same version of WeeWX on your VPS but DO NOT start as a daemon or manually. If you installed via a package manager, then you have to stop the weewx daemon and disable it so it will not start on reboot.
  3. Install your skin on the VPS.
  4. Copy over your weewx.conf, skin.conf and any other customizations related to your skin to the VPS.
  5. On the Pi, disable your skin(s) and FTP or RSYNC in weewx.conf and restart the daemon so they are no longer generated.
  6. On the VPS, configure a cron job to run wee_report every 5 minutes (the same as your archive interval) but a minute or two later to give time for the archive process to complete on the Pi. See http://www.weewx.com/docs/utilities.htm#wee_reports_utility.
Someone with more WeeWX experience should correct or clarify the above.

Hope this helps,
-Bill
Reply all
Reply to author
Forward
0 new messages