Page 1 of 1
wind direction Interactive graph
Posted: Fri Jan 19, 2018 7:25 am
by ON1GL
Got a request from a user last night, is it possible to add a graph with the 'wind direction' in Weather Station -> Interactive views -> Interactive graph ?
Luc
Re: wind direction Interactive graph
Posted: Fri Jan 19, 2018 7:34 am
by Jachym
Hi,
the problem with wind direction is the aggregation process. You cannot average the values like you average numbers.
Eg:
Wind direction 359 and 1° are both almost exactly N.
If you make an average you get 150 which is exactly S.
The numbers for Interactive graph are calculated by MySQL to make them fast enough and the averaging of MySQL in this case would fail because it would be misleading. PHP can use some very complex trigonometric calculations which are used in some reports etc. but they take too long to calculate for the block especially for longer intervals, which is why I did not include it
Re: wind direction Interactive graph
Posted: Fri Jan 19, 2018 8:35 am
by ON1GL
on the 'mobile' page there is a graph like this with the bearing and it runs fast
Re: wind direction Interactive graph
Posted: Fri Jan 19, 2018 3:08 pm
by Dehatter
My site has a bearing graph both mobile and desktop.
I cannot load your site, ON1GL for some reason.
Tom
Re: wind direction Interactive graph
Posted: Fri Jan 19, 2018 3:20 pm
by ON1GL
Dehatter wrote: ↑Fri Jan 19, 2018 3:08 pm
My site has a bearing graph both mobile and desktop.
I cannot load your site, ON1GL for some reason.
Tom
very nice Tom, what is the name of that block ?
Luc
Re: wind direction Interactive graph
Posted: Fri Jan 19, 2018 3:44 pm
by ON1GL
ON1GL wrote: ↑Fri Jan 19, 2018 3:20 pm
Dehatter wrote: ↑Fri Jan 19, 2018 3:08 pm
My site has a bearing graph both mobile and desktop.
I cannot load your site, ON1GL for some reason.
Tom
very nice Tom, what is the name of that block ?
Luc
was to fast (happens sometime), found it.
Thanks for the info
Luc