Robin, There is no practical way for your shell script to access loop data directly, best solution I can think of is to write a custom service bound to the NEW_LOOP_PACKET event that writes the required data to a text file that you then read as you currently do. The service will be very basic, but unlike a template (which uses the cheetah template engine to do the hard work) your service will need to write the data to a file itself. Fairly straightforward, any of the loop based services that write data to a file (eg crt - https://github.com/weewx/weewx/wiki/crt) have all the building blocks you need, they are just a bit more complex.
Gary -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c52014d2-2864-4ee4-8bec-2a0d0adc8a9d%40googlegroups.com.