delaying rsync uploads to let reports complete

26 views
Skip to first unread message

Vince Skahan

unread,
Jun 9, 2026, 3:16:43 PM (13 hours ago) Jun 9
to weewx-user
After switching to the new (nice) belchertown fork I'm noticing my internet site is behind by 5 minutes.  Looking at the logs, there seems to be a timing thing in the various threads.  The rsync handler runs 'before' the belchertown report processes.

Is there a way to delay the rsync handler running until after the reports are all run ?

2026-06-09T12:15:16.605451-07:00 pi5 weewxd-vp2[821254]: INFO weewx.manager: Added record 2026-06-09 12:15:17 PDT (1781032517) to database 'purpleair.sdb'
2026-06-09T12:15:16.609374-07:00 pi5 weewxd-vp2[821254]: INFO weewx.manager: Added record 2026-06-09 12:15:17 PDT (1781032517) to daily summary in 'purpleair.sdb'
2026-06-09T12:15:16.615078-07:00 pi5 weewxd-vp2[821254]: INFO weewx.manager: Added record 2026-06-09 12:15:17 PDT (1781032517) to database 'mem.sdb'
2026-06-09T12:15:16.616591-07:00 pi5 weewxd-vp2[821254]: INFO weewx.manager: Added record 2026-06-09 12:15:17 PDT (1781032517) to daily summary in 'mem.sdb'
2026-06-09T12:15:16.634397-07:00 pi5 weewxd-vp2[821254]: INFO weewx.manager: Added record 2026-06-09 12:15:00 PDT (1781032500) to database 'vp2.sdb'
2026-06-09T12:15:16.647352-07:00 pi5 weewxd-vp2[821254]: INFO weewx.manager: Added record 2026-06-09 12:15:00 PDT (1781032500) to daily summary in 'vp2.sdb'
2026-06-09T12:15:16.677100-07:00 pi5 weewxd-vp2[821254]: INFO weewx.cheetahgenerator: Generated 1 files for report lastrain in 0.01 seconds
2026-06-09T12:15:16.891156-07:00 pi5 weewxd-vp2[821254]: INFO weewx.restx: PWSWeather: Published record 2026-06-09 12:15:00 PDT (1781032500)
2026-06-09T12:15:17.040192-07:00 pi5 weewxd-vp2[821254]: INFO weewx.restx: Wunderground-PWS: Published record 2026-06-09 12:15:00 PDT (1781032500)
2026-06-09T12:15:17.093956-07:00 pi5 weewxd-vp2[821254]: INFO weewx.cheetahgenerator: Generated 12 files for report vds-local in 0.40 seconds
2026-06-09T12:15:17.094024-07:00 pi5 weewxd-vp2[821254]: INFO weewx.reportengine: Copied 0 files to /home/pi/weewx-data/public_html/vp2
2026-06-09T12:15:17.289242-07:00 pi5 weewxd-vp2[821254]: INFO weewx.imagegenerator: Generated 17 images for report vds-local in 0.20 seconds
2026-06-09T12:15:17.301756-07:00 pi5 weewxd-vp2[821254]: INFO weewx.cheetahgenerator: Generated 1 files for report mem in 0.01 seconds
2026-06-09T12:15:17.406831-07:00 pi5 weewxd-vp2[821254]: INFO weewx.imagegenerator: Generated 2 images for report mem in 0.10 seconds
2026-06-09T12:15:17.407424-07:00 pi5 weewxd-vp2[821254]: INFO weewx.reportengine: Copied 0 files to /home/pi/weewx-data/public_html/vp2/mem
2026-06-09T12:15:17.655068-07:00 pi5 weewxd-vp2[821254]: INFO weewx.cheetahgenerator: Generated 12 files for report forecast in 0.24 seconds
2026-06-09T12:15:17.655446-07:00 pi5 weewxd-vp2[821254]: INFO weewx.reportengine: Copied 0 files to /home/pi/weewx-data/public_html/vp2/forecast
2026-06-09T12:15:17.704983-07:00 pi5 weewxd-vp2[821254]: INFO weewx.cheetahgenerator: Generated 6 files for report vds-bootstrap in 0.04 seconds
2026-06-09T12:15:17.705776-07:00 pi5 weewxd-vp2[821254]: INFO weewx.reportengine: Copied 0 files to /home/pi/weewx-data/public_html/vp2/bootstrap
2026-06-09T12:15:17.792319-07:00 pi5 weewxd-vp2[821254]: INFO user.stackedwindrose: Generated 1 images for StackedWindRose in 0.03 seconds
2026-06-09T12:15:19.886810-07:00 pi5 weewxd-vp2[821254]: INFO weeutil.rsyncupload: rsync'd 114 files (2,372,120 bytes) in 2.09 seconds
2026-06-09T12:15:21.722678-07:00 pi5 weewxd-vp2[821254]: INFO weewx.cheetahgenerator: Generated 16 files for report new-belchertown in 1.82 seconds
2026-06-09T12:15:21.725274-07:00 pi5 weewxd-vp2[821254]: INFO weewx.reportengine: Copied 3 files to /home/pi/weewx-data/public_html/vp2/belchertown
2026-06-09T12:15:21.733843-07:00 pi5 weewxd-vp2[821254]: INFO user.new_belchertown: Using forecast.json AQI fallback for observation 'aqi'

Tom Keffer

unread,
Jun 9, 2026, 3:42:14 PM (12 hours ago) Jun 9
to weewx...@googlegroups.com
The reason why rsync, ftp, and the copy generator are run as report generators is so that the timing is synchronous. They are run in order: the next one does not run until the previous one finishes, thus guaranteeing that the reports are finished before rsync does its thing.

If this is not happening, then either the ordering under [StdReport] in weewx.conf is incorrect, or the belchertown skin is creating some asynchronous process, then returning.

--
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 visit https://groups.google.com/d/msgid/weewx-user/85889c46-e691-4b14-b3a6-990424b5bd1fn%40googlegroups.com.

Vince Skahan

unread,
Jun 9, 2026, 3:44:58 PM (12 hours ago) Jun 9
to weewx-user
Thanks.  Yup.  Bad ordering by me. RSYNC is unusual as it is a StdReport so I just moved it to the bottom 'after' all the actual skins.  Sigh.  Shoulda thought about it.  
Reply all
Reply to author
Forward
0 new messages