(I'm fairly new to Weewx and Python but not programming. I'm trying to go 
through the code to see if I can work this out for myself, but this is a 
'parallel' line of enquiry.)

I have written a new driver (to access a XC0422/HP1000/WS1001 clone WiFI 
workstation over the network) and it seems to be working well. All of the 
various values are being recorded in Weewx correctly except the 'rain' and 
'rainRate' values.

I've checked that the driver is correctly setting the values in the 
dictionary that is passed back on each 'loop' packet (which is called as 
frequently as possible and takes roughly 3 to 5 seconds to get a response 
from the weather station each time).

For example, right now, the weather station is showing that 1.5mm of rain 
has fallen since midnight and, as the following snippet from WU shows:

<https://lh3.googleusercontent.com/-l_flDXxwq_M/WDdwpYxvqGI/AAAAAAAAAAM/gT8BQaonNRgRzd6e45YoRILG8yjO8OmBwCLcB/s1600/to-date-rain.JPG>

The corresponding period from Weewx web page is:

<https://lh3.googleusercontent.com/-EwTxcX0OiZ0/WDdxOUuxlJI/AAAAAAAAAAQ/1GmpiEVQyR8G3rExUcaItJ91HN4THysbwCLcB/s1600/Weewx%2Bro-date-rain.JPG>
The numerical values (given my system has been working on and off for about 
a week now) are:

<https://lh3.googleusercontent.com/-s00dyAu9fN0/WDdxo0mE5LI/AAAAAAAAAAU/schkyFBZQvwPvFVoS7Ux6VAIpX2YBdkKwCLcB/s1600/Rain%2BTotals.JPG>
The driver is setting the 'usUnits' as 'METRICWX' and all other values 
appear to be reasonable.
I'm starting with the assumption that there is some unit conversions going 
on and that these are being mess up somehow. 
Can anyone suggest a good place to start looking (I'm still trying to 
understand the architecture from the code)?
Is there something "different" about how the rain and rain rate values are 
handled from other values from the driver dictionary?
Thanks
Susan

Reply via email to