Loading...
Loading...
Loading...
Loading...

weather.php

PHP

Display weather data using METAR reports, showing city and country based on ICAO code.

<?php
/*
Plugin Name: METAR Weather Display
Description: A plugin to display weather data using METAR reports, showing city and country based on ICAO code.
Version: 2.0.3
Author: Mike Vahldieck
Plugin URI: http://it-breeze.info
Author URI: http://it-breeze.info
License: GPL2
*/

weather.js

JAVASCRIPT
jQuery(document).ready(function ($) {

    function fetchMetarData(icao, container) {
        $.ajax({
            url: metarWeather.ajax_url,
            method: 'GET',
            data: {
                action: 'get_metar_weather',
                icao: icao,
            },

weather.css

CSS
 .weather{
    font-size: 10px;

 }

 .weather_header{
    font-size: 12x;
    font-weight: bold

 }

stations.db

OTHER
AGGH:Honiara / Henderson:Solomon Islands:SB                                                                                    
AGGL:Santa Cruz:Solomon Islands:SB                                                                                             
AGGM:Munda:Solomon Islands:SB                                                                                                  
ANAU:Nauru Airport:Nauru:NR                                                                                                    
AYMD:Madang:Papua New Guinea:PG                                                                                                
AYPY:Moresby:Papua New Guinea:PG                                                                                               
AYWK:Wewak:Papua New Guinea:PG                                                                                                 
BGAM:Tasiilaq:Greenland:GL                                                                                                     
BGAS:Angisoq:Greenland:GL                                                                                                      
BGAT:Aputiteeq:Greenland:GL