You just have to be careful how you write the file (the external process). You want something along the lines of writing to a temp file, syncing to flush buffers and then moving that file to the filename that will be read by weewx.
> On Jun 5, 2020, at 8:41 AM, 'Peter Fletcher' via weewx-user > <[email protected]> wrote: > > > The copy and paste for the code in my previous post didn't work properly. The > last two lines of code should be as shown below. > event.packet['inTemp'] = self.lastT > event.packet['inHumidity'] = self.lastH > -- > 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/4f181486-590e-4977-a740-46614d9da27do%40googlegroups.com. -- 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/B35BFC47-B4EA-4BD8-99AE-2700CD88E1E0%40johnkline.com.
