Hi,
Sounds like a bit of a clunky way to do things, but sticking to the question as
written...
One approach could be to write your own weeWX service that would check for your
file and act accordingly. Just subclass off class StdService (in
bin/weewx/engine.py), create a couple of methods that check for your file and
make the changes you want, one each to handle loop packets and one to handle
archive records (assuming you want to alter both loop and archive data) and
bind the methods to the NEW_LOOP_PACKET and/or NEW_ARCHIVE_RECORD as necessary.
Class StdCalibrate in bin/weewx/engine.py uses a similar structure.
Your service should be added to the process_services list in weewx.conf.
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.
For more options, visit https://groups.google.com/d/optout.