Your second approach would be more "WeeWX-like". It's likely to be a very
simple "report." Use the "CopyGenerator" as an example to follow.

On Thu, Aug 17, 2023 at 12:58 AM [email protected] <
[email protected]> wrote:

> I want to inform the front end a certain event occurs on the backend, to
> be more exact: when a report is finished. Does something like this exist?
>
> If not, my ideas:
>
> My front end is running a MQTT client and can be configured to listen to
> such events. My idea is to hook into a report and emit a MQTT message when
> finished. Is this possible, if yes, how? Something like this:
>
> [StdReport]
>     [[FTP]]
>         skin = Ftp
>         enable = true
>         user = replace_me
>         password = replace_me
>         server = replace_me
>         path = replace_me
>         secure_ftp = False
>         #HTML_ROOT = /var/www/html/weewx
>         port = 21
>         passive = 1
>
>         afterReport = run_something
>
>
> The other idea is to create a report and placing it after the report I
> want to trigger the message, assuming Reports in[StdReport] are run
> sequentially:
>
> [StdReport]
>     [[FTP]]
>         ...
>
>     [[MQTTInform]]
>         skin = mqttInform
>         topic = weather/reportFinished
>         ...
>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/1eda5109-e33d-456f-8671-5ef57bea4f8bn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/1eda5109-e33d-456f-8671-5ef57bea4f8bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zECd7M3jUA1Kb0yJjYwEXZ_q%3DBcpYu7ZM_cpphEuh4Mh8g%40mail.gmail.com.

Reply via email to