Hi,

To answer some of your questions. WeeWX records rain on a per interval basis, 
so the rain field in an archive record holds the amount of rain that fell in 
the archive period concerned. Day, week, month, year etc values are calculated 
from this underlying data. The WU dailyrainin field is the rainfall since 
midnight in inches. You would need to calculate the difference between 
consecutive records to get the rain per interval required by weeWX. The WU 
rainin field is the rainfall in the last hour in inches. You could use this as 
rainRate or you could have weeWX calculate rainRate from the rain data. There 
has been a lot of discussion on calculation of rainRate, have a search of the 
forum if you want. If you have weeWX calculate rainRate then the StdWXCalculate 
service (http://weewx.com/docs/usersguide.htm#StdWXCalculate) can take care of 
it. You can ignore weeklyrainin, monthlyrainin and yearlyrainin; weeWX does not 
store these, rather they are calculated as required.

How you deal with units (not just rain units) will depend on how you get your 
data into weeWX. Almost all WeeWX records have a field 'usUnits' that stores 
the unit system (US, METRIC or METRICWX - have a look at bin/weeWX/units.py) 
used by the observation fields in the record concerned. If you are adding data 
to a record then you need to observe the records unit system. If you are 
creating your own record for weeWX to process you can usually use whatever unit 
system you want as weeWX will take care of any conversions.

It is not clear how you are getting your data into weeWX. If you are inserting 
directly into the database you are making things tough for yourself, there are 
a lot of internal goings on that you will need to take care of, certainly more 
than just inserting data into a table. You are far better if you let weeWX take 
care of as much as possible. In fact, if there is no weeWX driver for your 
station you may be best served implementing a driver based on the fileparse 
driver (/home/weewx/examples/fileparse). The fileparse driver reads data from a 
formatted text file.

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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to