No Wind = windDir windGustDir being set to NULL on Davis Serial Logger

51 views
Skip to first unread message

Oz Greg

unread,
May 21, 2013, 7:36:18 PM5/21/13
to weewx...@googlegroups.com
Not sure if this is a bug but It is dead calm outside (pretty rare for my location) and I have been getting both windDir and windGustDir being set to NULL which is not optional.  For now I have inserted a code fix if the event.record is null then set it to 0..

Should this be happening??



Thomas Keffer

unread,
May 21, 2013, 7:53:53 PM5/21/13
to weewx-user
Yes. If the wind speed is zero, the wind direction is undefined (not zero, which would be due north).

-tk


On Tue, May 21, 2013 at 4:36 PM, Oz Greg <ozg...@gmail.com> wrote:
Not sure if this is a bug but It is dead calm outside (pretty rare for my location) and I have been getting both windDir and windGustDir being set to NULL which is not optional.  For now I have inserted a code fix if the event.record is null then set it to 0..

Should this be happening??



--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Tom Keffer
kef...@threefools.org
+1 541-386-8891 (h)
+1 541-490-9507 (c)
Skype: tkeffer

Oz Greg

unread,
May 21, 2013, 10:55:57 PM5/21/13
to weewx...@googlegroups.com
Thanks Tom,

I will keep my zero code in place as it is breaking the WD output (NULL)
Reply all
Reply to author
Forward
0 new messages