Page 1 of 4

airstrip use

Posted: Tue 03 Dec 2013 9:43 pm
by wbliss
I want to create a cumulus webpage for an private airstrip with data from a Davis Vantage Vue station. I would like to include the wind speed and direction specific for the runways which would be presented as headwind and crosswind. Is this best done via VBA or HTML? I have seen the Sherburn in Elmett weather site, but the wind did not appear to be presented in this way. Has anyone else done it? Thanks

Re: airstrip use

Posted: Wed 04 Dec 2013 1:28 am
by beteljuice
A couple of old beteljuice experiments: (I think they are still mostly working !)

http://www.beteljuice.co.uk/betel_cumulus/doNZDA.php

http://www.beteljuice.co.uk/betel_cumulus/doNZMO.php

The above examples are using JavaScript to parse realtime.txt and workout head / tail winds.

see also short comment on mag bearings:

https://cumulus.hosiene.co.uk/viewtopic.p ... 36&p=54608

Re: airstrip use

Posted: Sun 10 Aug 2014 8:44 am
by laulau
Hi,
Is it possible to do something similar on a google map or openstreetmap view ?
I'd like to have the wind speed and direction on a map of my area.
Thanks

Re: airstrip use

Posted: Wed 13 Aug 2014 1:18 pm
by laulau
Hi,
I started to do something with the SteelGauges :
Capture.JPG
But I'd like to add the wind direction arrow as in Beteljuice old experiments!

@Beteljuice : Is your codesource free and available somewhere so i can try to suit it to my own needs? :oops:

Or does anyone have any idea how to do it?

Thanks

Re: airstrip use

Posted: Wed 13 Aug 2014 2:06 pm
by nitrx
I did never see this thread shoud be awesome for the chessna airport over here ( 10 km northeast ) https://www.google.nl/maps/@52.2424658, ... a=!3m1!1e3

Re: airstrip use

Posted: Wed 13 Aug 2014 2:09 pm
by beteljuice
The way to do it now would be html5 <canvas> or other similar manipulation techniques.

You already have some ajax script that parse your realtime.txt, so 'all' you would have to do is add some code to fire up the image using the avg (or whatever) values.

Re: airstrip use

Posted: Wed 13 Aug 2014 3:22 pm
by mcrossley
I'd do in with CSS3 now, that is how I did the Instromet Climatica display - it hands off the animation to the browser which is usually using hardware accelerated graphics.

Re: airstrip use

Posted: Sat 16 Aug 2014 9:41 pm
by JennyLeez
Hi beteljuice,

I played with this when you first posted but could not work out how to display the large runway arrow so flagged it.
I am playing again now.
I have 16 arrows in red, green and amber but I am guessing there may be more.
When you have some time could you please head me in the right direction to display the large arrow.

In your dummy you have the runway beside the Wairoa River and in my google map so have I :)

Anyway here is my feeble attempt:
http://wairoaweather.net/NZWO.php

and using my realtime.txt here is yours.
http://www.beteljuice.co.uk/betel_cumul ... 690403.txt

Cheers and thanks for any help on this.

Jenny.

Re: airstrip use

Posted: Sat 16 Aug 2014 11:00 pm
by beteljuice
Hi Jenny - well lifted ... almost :lol:

A few points, the two examples I posted use slightly different techniques for the map wind arrows - talking of which ....

Magnetic Deviation ... the sooner they use satnav and True North the better !!!!!
My background was the 'official' Airport Approach document, and as you can see in the NZDA example Mag Dec at that time was 19 deg E, you now have it as 21.1 deg E

This means the compass graphic is 2 deg out and unless you've changed the value in the code the direction draphics will be slightly out too !!!

Did you know ..... runway numbers are the Magnetic approach bearings rounded to 10s and the end zero dropped.
Thus runway 22 (to land on) is 'pointing' roughly 220 deg. Magnetic .....
This also means every so often all runways are renumbered due to Magnetic Deviation shift over time. There are a few exceptions near polar regions (Northern Canada, Alaska) where the runways number with regard to True North due to the incredible Mag variations they experience.
JennyLeez wrote:...
I have 16 arrows in red, green and amber but I am guessing there may be more.
There are less !!!
In the NZDA example I created some php code to rotate and crop 3 graphics (North versions of green, orange, red) - this can now be acheived by CSS3. There is also a seperate 'Calm' graphic.

Please remove / mod the second link, it won't work because it's addressing a single session tmp file.

The format to 'post' for NZDA is

Code: Select all

http://www.beteljuice.co.uk/betel_cumulus/getitNZDA.php?source=http://yoursite/realtime.txt
You've done VERY well to lift all (well most) of the OOD code and graphics, as you've noticed it uses <IFrame> and two sets of code, this is because trying to run all the code on 'one' page ground the browser to a halt :shock:

Dumping the wind compass / speed indicator or redesigning it in CSS3 should clarify / neaten things up considerably.

If you wish to continue with code you've lifted I will zip up the rarrow.php and the graphics it uses, and create a new 21.1 deg compass background (If I can remember how I did it, and still have the original pastiche !!!)

EDIT: You are also missing the Nix tube graphics ...

Re: airstrip use

Posted: Sun 17 Aug 2014 11:20 am
by JennyLeez
Hi beteljuice,

Yes I would very much like to have this functioning correctly and of course your permission to public.

From what you are saying all I will need to do is turn my run way around to match your alterations and I should be correct with the Google Earth one I have made.
I am not sure where you found the background you have but I have been unable to find anything similar hence my google earth version.

Yes please to all the images including the ajax images if possible so I may use as 'standalone'.

and yes that damn 'rarrow.php' had me beat but you know that :)

Thank you heaps beteljuice :)

Cheers
Jenny

Re: airstrip use

Posted: Sun 17 Aug 2014 12:38 pm
by beteljuice
Jenny wrote:From what you are saying all I will need to do is turn my run way around to match your alterations and I should be correct with the Google Earth one
The code as stands assumes the map background is orientated 'true' North. If you decide to change that then that will need to be taken into account for the 'arrows'.

Speaking of which, you will have noticed o/p code for runways you don't have ! - you can of course remove those (the code was being ongoing modified for different places - in fact I've 'lost' an experiment where the head / crosswinds had runway arrows which varied in size, colour and opacity - ah well, needs to be CSS3'd anyway - a JS function to change CSS rather than the external PHP fiddle)

From memory, the only ajax_images used are for the 'weather' box - rising, falling, steady. So as long as you refer to the correct directory in the set-up section there shouldn't be a problem, although of course you can isolate them if you wish (You would still need to alter the user vars !)

BTW - in my example the 19 deg Dec is NOT a month but DEClination.

You can get New Zealand airport charts here: http://www.aip.net.nz/NavWalk.aspx?section=CHARTS
It can be a bit slow on the PDF diagram fully loading !
The one I used seems to be dated 2010 (showing 19 deg DEC)

Re: airstrip use

Posted: Sun 17 Aug 2014 1:02 pm
by JennyLeez
Ok found, this will be better.
http://www.aip.net.nz/pdf/NZWO_51.1_52.1.pdf

I will play with this tomorrow and thank you.

Here is where I found the 21.1E in case I have this all wrong.
http://airportguide.com/airport/New_Zea ... -NZWO-WIR/

I understand the images/paths. Thanks.

Cheers
Jenny

Re: airstrip use

Posted: Sun 17 Aug 2014 11:44 pm
by beteljuice
@ Jenny

NOTE: there is unecessary (and unwanted) content in your php files !
They were only php instead of html because I needed to construct and carry around the tmp file that picked up other peoples realtime.txt ;)

Main file:

Code: Select all

/* REMOVE */
<script type="text/javascript">
var currdatFile = "tmp_52a836e72d81c.txt";
</script>



/* CHANGE 
	<iframe  id="wind0_panel_wrapper" src ="http://wairoaweather.net/NZWO_mag.php?go=tmp_52a836e72d81c.txt" scrolling="no" frameborder="0" style="position: relative; top: 0px; left: 0px; height: 226px; width: 396px;" ALLOWTRANSPARENCY=TRUE>
TO */

	<iframe  id="wind0_panel_wrapper" src ="http://wairoaweather.net/NZWO_mag.php" scrolling="no" frameborder="0" style="position: relative; top: 0px; left: 0px; height: 226px; width: 396px;" ALLOWTRANSPARENCY=TRUE>								
In the _mag page

Code: Select all

/*REMOVE */
 <script type="text/javascript">
currdatFile = "";
</script>

/* CHANGE
<img src="blank_19.png" width="396" height="201" alt="" style="position: relative; top: 0px; left: 0px;">
TO */

<img src="blank_21.png" width="396" height="201" alt="" style="position: relative; top: 0px; left: 0px;">

// because I've done you a 21 deg offset graphic :-)
Missing files:
JL_missing.zip
EDIT: Don't forget to change var mag_deviation = 21.1 in BOTH the JS files.

Bon chance !

Re: airstrip use

Posted: Mon 18 Aug 2014 8:12 pm
by laulau
Hi,
I tried this scripts out, but was not lucky with arrow.php script, i always get the default (N_Red.png) arrow!
http://meteo.laurentmey.fr/carte/NZDA.php
I really don't understand why.
Any advice?
Thanks

Re: airstrip use

Posted: Mon 18 Aug 2014 11:00 pm
by beteljuice
@laulau

It's behaving like rarrow.php is NOT receiving the posted variables.

Check your PHP / file / folder permissions.

I seem to remember someone else who had PHP set up in way that variables couldn't be 'passed'.
Have you had problems in the past with eg. PHP forms etc. ?

EDIT: You'll need a 1.5 deg offset compass rose graphic if you wish to show Magnetic bearings (assuming the background map is True North)