[weewx-user] Very simple utility

2018-01-13 Thread gjr80
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.


[weewx-user] Very simple utility

2018-01-12 Thread Ruben Navarro Huedo
Hello friends:
I need a very simple utility for my weewx.
Check If exists a file.
If file exists ignore wind data (windspeed and windgust).
If file doesn't exist all is "normally".
Please... how could i do it?
A lot of thank's.

-- 
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.