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

- 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
on the 'mobile' page there is a graph like this with the bearing and it runs fast
- Dehatter
- 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
My site has a bearing graph both mobile and desktop.
I cannot load your site, ON1GL for some reason.
Tom
I cannot load your site, ON1GL for some reason.
Tom
-
ON1GL
- 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
very nice Tom, what is the name of that block ?
Luc
-
ON1GL
- 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
was to fast (happens sometime), found it.
Thanks for the info
Luc