Page 2 of 2
Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 19 Jan 2013 10:45 am
by William Grimsley
Yes, I am showing "Few Clouds" in my METAR condition and I would like it to show "Few clouds"...
Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 19 Jan 2013 1:18 pm
by beteljuice
@Neil
This is what I get back from Kens site for your approx. location.
Code: Select all
// Metar(ICAO) | Name of station | dist-mi | dist-km | direction |
'EGKA|Shoreham-By-Sea, United Kingdom|9|14|SW|', // lat=50.8333,long=-0.3000, elev=2, dated=05-JUL-11
'EGKK|London/Gatwick A, United Kingdom|14|23|0|', // lat=51.1333,long=-0.1667, elev=62, dated=05-JUL-11
'EGKB|Biggin Hill, United Kingdom|28|45|NNE|', // lat=51.3167,long=0.0167, elev=183, dated=05-JUL-11
'EGLF|Farnborough, United Kingdom|36|57|NW|', // lat=51.2833,long=-0.7667, elev=65, dated=05-JUL-11
'EGLL|London/Heathrow, United Kingdom|40|64|NNW|', // lat=51.4833,long=-0.4500, elev=24, dated=05-JUL-11
'EGVO|Odiham Raf, United Kingdom|40|64|WNW|', // lat=51.2333,long=-0.9500, elev=123, dated=05-JUL-11
'EGLC|London City Airp, United Kingdom|41|65|NNE|', // lat=51.5000,long=0.0500, elev=5, dated=05-JUL-11
'EGWU|Northolt Raf, United Kingdom|44|71|NNW|', // lat=51.5500,long=-0.4167, elev=40, dated=05-JUL-11
'EGMD|Lydd Airport, United Kingdom|47|76|E|', // lat=50.9500,long=0.9167, elev=3, dated=05-JUL-11
// list generated Sat, 19-Jan-2013 5:11am PST at http://saratoga-weather.org/wxtemplates/find-metar.php
As you can see the Gatwick distance is 14 miles
Have you double checked your icons directory and its content ?
Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 19 Jan 2013 1:24 pm
by nking
nking wrote:I wonder if someone might be able to point me in the right direction. I have installed the script and, I think, made the right variable changes but as you will see it's not working correctly.
http://www.pc-king.co.uk/weather/metar-display.php
1. The icons are not being diplayed
2. The distance from station are way off e.g. Gatwick 40 miles, actual is 15 miles.
3. Cloud details reported in metres and not feet.
The trouble is I don't know php and...... I'm proably not to bright

OK - I've sorted 1., some how I had got an incomplete metar-images folder. If anyone knows an answer for 2 & 3 please let me know.
Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 19 Jan 2013 1:57 pm
by beteljuice
I gave you the correct code for 2/

Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 19 Jan 2013 2:43 pm
by nking
Thanks betel juice, our posts must have crossed as I hadn't seen your response. Appreciate your reply and investigation on my behalf.

Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 26 Jan 2013 6:36 pm
by William Grimsley
Hi guys,
Has anyone noticed that the date format in the wxmetar.php is really odd? It's currently showing Y/m/d h:i and I want it to to show d/m/Y h:i...is there a fix for this?
Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 26 Jan 2013 6:47 pm
by avoorpool
HI William,
Nothing odd on this side (see attachment).
Day-Date-Year are displayed correctly.
Cheers,
Arthur
Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 26 Jan 2013 6:50 pm
by avoorpool
Hi William,
Checked the settings and this is what it shows in my script:
$SITE['timeFormat'] = 'D, d-M-Y g:ia T'; // Day, 31-Mar-2006 6:35pm Tz (USA Style)
$SITE['latitude'] = '43.8225'; //North=positive, South=negative decimal degrees
$SITE['longitude'] = '-79.1370'; //East=positive, West=negative decimal degrees
Cheers,
Arthur
Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 26 Jan 2013 6:51 pm
by William Grimsley
Hi Arthur,
No, it's the code at the bottom of each METAR box like the one in your attachment!
Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 26 Jan 2013 6:53 pm
by saratogaWX
William Grimsley wrote:Hi guys,
Has anyone noticed that the date format in the wxmetar.php is really odd? It's currently showing Y/m/d h:i and I want it to to show d/m/Y h:i...is there a fix for this?
Umm.. this is the wrong thread for this discussion (which is for
non-Saratoga template implementation of the METAR display)
Also,
your page (using the Saratoga template) is showing
Updated: 18:20 26/01/2013
which is in d/m/Y format.
Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 26 Jan 2013 6:55 pm
by saratogaWX
William Grimsley wrote:Hi Arthur,
No, it's the code at the bottom of each METAR box like the one in your attachment!
Still the wrong thread, but...
The display at the bottom of each METAR display is the RAW METAR from NOAA .. it is not reformatted, it is simply displayed as-is.
Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 26 Jan 2013 6:56 pm
by William Grimsley
Ah right, ok.

Re: Now available - metar-display.php for non-Saratoga templ
Posted: Sat 26 Jan 2013 6:58 pm
by avoorpool
I think this has to do with the code (format) the actual METAR station is reporting.....????
Cheers,
Arthur