Formatted Wind Direction returning N/A instead of a number

57 views
Skip to first unread message

Gerard Cerchio

unread,
Sep 4, 2022, 11:39:38 AM9/4/22
to weewx-user
This morning we had a very unusual occurrence here at Ocean Beach San Francisco. The wind speed dropped to 0 mph for a short period. This resulted in the value of $currentwindDir.formatted being set to N/A upsetting my wind gauge javascript which expects a numerical value.

Do I need to add some code to check the $currentwindDir.formatted  is numerical or is there a more reliably numerical weewx value I may use to set my wind direction gauge?

Thanks.

Tom Keffer

unread,
Sep 4, 2022, 11:43:43 AM9/4/22
to weewx-user
See the section There is no wind direction when wind speed is zero in the User's Guide.

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e8b59da7-8362-4626-a120-de4ac657a939n%40googlegroups.com.

Gerard Cerchio

unread,
Sep 4, 2022, 11:46:42 AM9/4/22
to weewx-user
Thanks Tom, That'll fix it!

p q

unread,
Sep 4, 2022, 1:20:27 PM9/4/22
to weewx...@googlegroups.com
Zero wind at Ocean Beach? It's definitely going to be a hot one today in Contra Costa County. (NWS says 104F today and 112 tomorrow)



--
Peter Quinn
(415)794-2264
Reply all
Reply to author
Forward
0 new messages