Page 1 of 1
<#wgust> bearing ==> direction (compass) help!!!
Posted: Sun 17 Nov 2013 3:33 am
by nikokara
Hi
Steve has not the time for the ticket #97 for Enhancement requests
<#wgust> bearing & direction (compass) WEBTAGS since 05 Jan 2011, 14:29
https://cumulus.hosiene.co.uk/tracker.php?p=1&t=97
Can please anyone help me to do it with javascript? for my webpages??
Thank you
Re: <#wgust> bearing ==> direction (compass) help!!!
Posted: Sun 17 Nov 2013 8:21 am
by SpaceWalker
Think for a moment - how can the direction of the wind gust (both in decimal degrees and in compass points) be displayed if there is no tag containing that data (I just checked the list of available tags) - where should that information be coming from - is the direction of the wind gust even captured by the weather station?
If the direction of the wind gust is not provided by Cumulus, it is my understanding that neither a JavaScript nor a PHP script would be able to display data that does not exist!
Or am I missing some information...
Re: <#wgust> bearing ==> direction (compass) help!!!
Posted: Sun 17 Nov 2013 10:25 am
by steve
SpaceWalker is correct on both points. And until the lazy Cumulus author gets around to writing the code to provide the bearing at the the time of the <#wgust> value, there's no easy way to do this, and even then the station (in the case of Fine Offset) doesn't actually provide the required information to do it properly.
The web tag <#wspddata> contains the last 3600 readings from the station (the 'gust' value in the case of Fine Offset stations), and <#wdirdata> contains the bearing at the time of the reading, so you could use those somehow, but it's a bit messy. And the bearing isn't actually the bearing at the time of the gust, the station doesn't provide that.
Re: <#wgust> bearing ==> direction (compass) help!!!
Posted: Sun 17 Nov 2013 12:39 pm
by nikokara
In the Cumulus main window i see in the recent extremes for today's HIGH GUST 4,1 m/s at 12:30 and BEARING for this 135 SE
for yesterdays HIGH GUST 6,5 m/s at 09:32 BEARING 270 W. or is the Bearing not for the High Gust?
2013-11-17_140920.jpg
Re: <#wgust> bearing ==> direction (compass) help!!!
Posted: Sun 17 Nov 2013 12:47 pm
by steve
It's the current bearing reported by the station in the same reading that the high gust was reported. It's not necessarily the direction that the wind vane was pointing at exactly the same time as the high gust, because as I said, Fine Offset stations don't supply that information, they only ever supply the current bearing.
Re: <#wgust> bearing ==> direction (compass) help!!!
Posted: Sun 17 Nov 2013 1:08 pm
by nikokara
Ok Steve Thanks. I understand now.
But how to translate the wind - gust - high wind or any "wind" from 270 grad to compass values ( NE -SE -N - WNW etc)
Re: <#wgust> bearing ==> direction (compass) help!!!
Posted: Sun 17 Nov 2013 1:12 pm
by steve
In JavaScript? A quick search on the forum found this thread:
https://cumulus.hosiene.co.uk/viewtopic.php?f=11&t=1214