WORLD WEATHER Plugin for Meteotemplate Features: - displays weather conditions for various cities in the world - possibility to choose parameters (temperature, humidity, pressure, apparent temperature, dewpoint, wind speed, visibility) - values also provided in table (clicking on rows shows location on the map with an infobox and detailed data) - data in table can be sorted - weather conditions shown as icons, also reflecting day/night - points on map colored based on values - conditions cached for faster loading (10 minutes) - units reflect global Meteotemplate settings - easy customization ------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------ Installaton: Simply unzip into your plugins folder. If you want to create your own set and customize the template, you can do so. Instructions below. ------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------ Customization instructions: 1. Open cityConditions.php in a text editor 2. Each set of cities is defined by name, abbreviation and list of ids identifying the location. These IDs correspond to the Yahoo WOEID numbers. 3. In order to create a new set of cities or modify existing, do the following: Find the lines, where various locations are defined Add new location set by pasting the following code: $location['name'] = "Name"; $location['abbr'] = "XXXXX"; $location['woeids'] = array(12345,6789); array_push($locations,$location); // DO NOT EDIT this line In the above code, the name is what is displayed in the selection box for selecting data set under the map. Abbr is abbreviation of that set, please note: THE ABBREVIATION MUST BE A 5 CHARACTERS LONG STRING - for example ABCDE, WORLD, EU100, US_50 etc. Woeids is a list of IDs of locations, to find specific locations, use for example this link http://woeid.rosselliot.co.nz/. Numbers must be separated with commas as shown above. 4. The only other setting that you can do is set the default set loaded upon first load of the page. This is specified at the top and by the abbreviation of the set you want to load first. 5. Save changes and close