Yes, I see what you mean!!  Seems as though compass is the only reading 
that does this averaging - I wonder why, unless it is to dampen down an 
oscillating vane??!!!  
You could see if this is the cause of the problems - as a workaround - by 
just returning the last value and not doing the average.  
See what that gives you!!  
You can verify the driver is the cause if you can manipulate the weather 
vane by hand rather than waiting for the wind to be in the right direction 
and have debug =1 so you can see the loop records output by the driver as 
you manually move the vane beween 330, 0, 30

On Wednesday, 21 September 2016 12:37:27 UTC+3, Miguel Iniesta wrote:

> Hello Andrew,
> I have found the method "_extract_heading" (WMR 300 driver v0.10) is doing 
> an arithmetic average to get the winDir compass direction.
> Can this method be the cause of the wrong directions?
> Cheers.
> On Tuesday, September 20, 2016 at 8:47:27 AM UTC+2, Andrew Milner wrote:
>> I think you are going to have to run with debug=1 and see what data is in 
>> the LOOP and REC records.  Is the REC coming from the station, or being 
>> generated by weewx software?  As far as I can see from a quick look through 
>> weewx code it sure seems as though Tom is handling wind\Dir correctly as 
>> vectors - and I am sure we would all have had issues like you if it had 
>> been a flaw within weewx itself - which kind of leaves the WMR300 driver or 
>> the station doing some form of averaging.  
>> You could also try record_generation = software to see if it 
>> changes/removes the problem.
>> On Tuesday, 20 September 2016 09:06:56 UTC+3, Miguel Iniesta wrote:
>>> Hello Andrew,
>>> Currently, I donĀ“t have remote access to the server. I will test it as 
>>> soon as I can.
>>> Just one question, as current winDir will continue getting wrong values, 
>>> this fix is a partial solution to the issue, isn't it?
>>> Thank you very much.

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 
For more options, visit

Reply via email to