Note: trouble with registration? See this for more info.
0 Members and 1 Guest are viewing this topic.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><base href="aviationweather.gov" /><title>AWC - METeorological Aerodrome Reports (METARs)</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" ><meta http-equiv="content-type" content="text/html; charset=utf-8" ><meta http-equiv="Refresh" content="900" ><meta name="DC.language" content="en-us" scheme="DCTERMS.RFC1766" ><meta name="description" content="Aviation Weather Center Homepage provides comprehensive user-friendly aviation weather Text products and graphics." ><meta name="keywords" content="aviation, weather, icing, turbulence, convection, pirep, metar, taf, airmet, sigmet, satellite, radar, surface, wind, temperature, aloft, airplane, NEXRAD, GOES, WSR-88D, precipitation, rain, snow, sleet, thunderstorm, en-route, prognosis, chart" ><meta name="DC.title" content="AWC - Aviation Weather Center" ><meta name="DC.description" content="Aviation Weather Center Home Page ... METARs Page" ><meta name="DC.creator" content="NOAA's National Weather Service - Aviation Weather Center Homepage" ><meta name="DC.date.created" content="2013-03-15" scheme="ISO8601" ><meta name="DC.date.reviewed" content="2013-03-15" scheme="ISO8601" ><link href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css" media="screen" rel="stylesheet" type="text/css" ><link href="/images/favicon.ico" rel="shortcut icon" ><link href="/images/noaa_logo.png" rel="apple-touch-icon" ><link href="/css/layout.css" media="" rel="stylesheet" type="text/css" ><script type="text/javascript" src="//code.jquery.com/jquery-1.9.1.js"></script><script type="text/javascript" src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script><script type="text/javascript" src="/lib/OpenLayers-2.13.1/OpenLayers.js"></script><script type="text/javascript" src="/javascript/awc_openlayers.js"></script><script type="text/javascript" async="true" id="_fed_an_ua_tag" src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=DOC&subagency=AWC&pua=ua-33523145-2"></script></head><body ><div id="awc_pagewrapper"><!-- Main content --><div id="awc_main"><div id="awc_main_content"><script type="text/javascript"> function goto(format,hours, taf, layout){ var id_elem = document.getElementById("ids"); var url = "/metar/data?ids="+id_elem.value+"&format="+format+"&hours="+hours+"&taf="+taf+"&layout="+layout; window.location = url; }</script><div id="title">METAR Data<div id="title_linkbar"><div class='title_link'><a href='/metar?date=' title = 'METAR Home'>METAR Home</a></div><div class='title_link'><a href='/metar/plot?date=' title = 'METAR Plots'>Plot</a></div><div class='title_link on_page'>Data</div><div class='title_link'><a href='/metar/board?date=' title = 'METAR Board'>Board</a></div><div class='title_link'><a href='/metar/help?page=text&date=' title = 'METAR Information'>Info</a></div></div></div><div id="awc_main_content_wrap"> <p clear="both"><strong>Data at: 0123 UTC 07 Nov 2019</strong></p><!-- Data starts here --><code>KBOS 070054Z 30006KT 10SM CLR 09/M07 A3035 RMK AO2 SLP276 T00891072</code><br/><hr width='65%' /><!-- Data ends here --></p></div></div> <!-- awc_main_content --></div> <!-- awc_main --></div> <!-- awc_pagewrapper --></body></html>
Jasiu - what would a rewrite involve and a cost of a re-write? According to the template web list on Ken's page I'm not the only one having this issue.
P.S. On a side note I noticed that some of the metar (Ken's site for example) say "Night time" then the conditions. Mine never did say the time of day... ex - night time, dawn
Quote from: ed_heaton on November 07, 2019, 06:30:59 AMJasiu - what would a rewrite involve and a cost of a re-write? According to the template web list on Ken's page I'm not the only one having this issue. It's essentially a replacement of get-metar-conditions-inc.php. The code would be a bit simpler because the values would be taken straight from the JSON returned rather than having to decode a METAR string.Let's let Ken chime in as this is his code. I could be recruited to to do the initial code (I don't want to be on the hook for maintenance, although I'm not going anywhere soon - I hope!).QuoteP.S. On a side note I noticed that some of the metar (Ken's site for example) say "Night time" then the conditions. Mine never did say the time of day... ex - night time, dawn Can't say I ever saw that. The icon choice is dependent upon the time of day, so that e.g. clear sky at night gives you a dark image with a moon instead of blue sky and a sun. It may have something to do with that.
I'll work up a get-metar-conditions-inc.php script to use it as an option. Thanks for the suggestion.
The tgftp.noaa.nws.gov server has been accumulating world-wide METAR reports for years now and was the only public-available source for that raw data (AFAIK). Several aviation based sites now do the same, and ogimet.net does also.I just checked out the api.weather.gov/stations/{ICAO}/observations/latest feeds for several US and international sites, and it appears that it also has international data. I'll work up a get-metar-conditions-inc.php script to use it as an option. Thanks for the suggestion.
$SITE['useMetarAPI'] = true;
"timestamp": "2019-11-07T20:29:00+00:00", "rawMessage": null,
the rawMessage part of the JSON is supposed to have the raw METAR observation. Since it's empty, there's nothing to decode