Report generation is done in a separate thread, so there is no event
created when the reports finish.

However, what you can do is create a new report generator
<https://www.weewx.com/docs/5.0/custom/introduction/#generators>. Right
now, there are 5 report generators: CheetahGenerator, ImageGenerator,
CopyGenerator, FtpGenerator, and RsyncGenerator, generally run in that
order.

Create a new generator that does what you want, following the pattern of an
existing generator (say, FtpGenerator). Then create a report which runs it.
Look at the "FTP" report, which does something similar. Put your "report"
at the end of all the other reports, and it will be run last.

That's a brief description. Let me know if you have any questions.

On Wed, Feb 28, 2024 at 6:17 AM [email protected] <[email protected]> wrote:

> Hi -
>
> There are a couple of programmatic tasks I would like to perform the
> moment weewx has finished its every 5-minute 'round' of updating its
> webpages, graphics, etc. Essentially, I am wanting an 'event' to trigger
> when this generation is complete, so then I can execute some tasks at that
> moment.
>
> Does such an event exist?
>
> Thanks!
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" 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-development/4528e321-2455-4abc-a80f-0c3b142e1d51n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/4528e321-2455-4abc-a80f-0c3b142e1d51n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/CAPq0zEBCcBDKSm1zm%3Du-Kk%2BGifWJFcxq%2BKaUURJfsigH5jNO1A%40mail.gmail.com.

Reply via email to