The weather plugin shows current conditions in your area. The plugin for weather data connects with Weather underground API and collects the data:
conditions string, icon, current temperature, feels like temperature, all in Fahrenheit and Celsius degrees.
To show the plugin datam first you have to setup the plugin on settings page. The settings are:
- API Key - your api key from weather underground
- Country - select your country, or the country for which you want to show the conditions.
- City - write the name of the city for which you want to show the conditions. As you start writing the list of locations woll be shown beside the "Select your location" option.
- Location - this is the measuring station that you/ll get the data from. You'll see the list of the stations for the entered City, and may choose one of them.
- Use icon set - Do you want to sho graphical presentation of the conditions, or not. Also if you want to use icon set provided by the weather underground api or weather font.
- Show feels like - show feels like temperatures (Fahrenheit or Celsius)
- Show weather label - show the weather conditions (i.e. Partly sunny, Clear, Snow ... )
- Preview - not an options, but shows how will your sweather snippet look like.
After setting up, you have 2 options:
- simply echo pdsWeather() where you want the conditions to show. Make sure the plugin is activated before echoing pdsWeather() otherwise it will throw an error.
or
- go to Appearance -> Widgets and drop and drag the widget to your desired widget area.
From 3.0 Weather Underground API key is required. Please go to Weather underground for your key.
To manually install the extension:
- Upload
plugin-name.php
to the /wp-content/plugins/
directory
- Activate the plugin through the 'Plugins' menu in WordPress
- Setup the plugin on the settings page
- Place
<?php echo pdsWeather(); ?>
in your templates
or
- Go to Appearance -> Widgets in wp-admin area and add Weather plugin widget to your plugin area