wind direction Interactive graph

Post Reply
ON1GL
Observer
Observer
Posts: 34
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

wind direction Interactive graph

Post by ON1GL » Fri Jan 19, 2018 7:25 am

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
Last edited by ON1GL on Fri Jan 19, 2018 4:12 pm, edited 1 time in total.

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: wind direction Interactive graph

Post by Jachym » Fri Jan 19, 2018 7:34 am

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

ON1GL
Observer
Observer
Posts: 34
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: wind direction Interactive graph

Post by ON1GL » Fri Jan 19, 2018 8:35 am

on the 'mobile' page there is a graph like this with the bearing and it runs fast

User avatar
Dehatter
Professional
Professional
Posts: 350
Joined: Sun Jan 07, 2018 5:11 am
Location: Matthews, NC, USA
Station model: Ecowitt WH80
Software: Ecowitt GW1000
Contact:

Re: wind direction Interactive graph

Post by Dehatter » 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
Image

ON1GL
Observer
Observer
Posts: 34
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: wind direction Interactive graph

Post by ON1GL » 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

ON1GL
Observer
Observer
Posts: 34
Joined: Mon Nov 06, 2017 10:37 am
Location: Antwerp
Station model: Davis Vantage Pro 2
Software: Meteotemplate/MeteoBridge
Contact:

Re: wind direction Interactive graph

Post by ON1GL » Fri Jan 19, 2018 3:44 pm

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

Post Reply