Thank you Tom. I am still not so sure if this i a good idea, since it isn't self contained in any way. Having a web page generated by a report (a skin) uploaded by a second report (FTP) being informed by a third report isn't really straight forward :)
Tom Keffer schrieb am Donnerstag, 17. August 2023 um 15:47:23 UTC+2: > 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/6c133e79-a3cc-44ac-bd50-a7fc2cea469en%40googlegroups.com.
