WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Mat Gargano v3.2.5

Easy Weather Widget

Easy Weather Widget provides you with an easy to use widget which outputs weather information. When creating the widget just enter in your U.S.

Easy Weather Widget

The facts

Rating
4.3★ from 6
Active installs
70+
Price
Free
Last updated
30 Dec 2017
Added
Oct 2012
Requires WP
2.8
Tested up to
WP 4.9.31
Downloads
23,257

Our analysis

AI-assisted

Easy Weather Widget is a WordPress plugin that allows you to display current weather information on your site by entering a U.S. zip code. After setting up the widget, it retrieves weather data using an API key from OpenWeatherMap, which has a free tier suitable for many users.

The plugin includes options for customisation through filters, allowing advanced users to modify the output template and use different classes for data retrieval. It is designed for beginners and those looking for an easy way to integrate weather information into their WordPress sites.

Best for: This plugin suits beginners and users looking to add weather information to their WordPress sites.

What it does well

  • Easy to set up with a U.S. zip code
  • Customisable output template using filters
  • Free to use with a basic API key from OpenWeatherMap

Where it falls short

  • Last updated in December 2017
  • Limited to U.S. zip codes for weather data
  • Requires familiarity with Grunt for editing or forking

Verdict

Easy Weather Widget provides a straightforward solution for displaying weather data, but its age and limited functionality may be a concern for some users.

From the developer

Mat Gargano's own description of Easy Weather Widget, lightly tidied.

Easy Weather Widget provides you with an easy to use widget which outputs weather information. When creating the widget just enter in your U.S. zip code and save, it will display the current weather on your site.

I completely rewrote the widget and made it filterable. You need to obtain and enter an API key, which has a free tier that should cover many use cases to obtain at Settings > General in your WP backend. See http://openweathermap.org/api for more information.

The following filters are available:

eww_template to override the output template for the widget, see below for more information.

note, if you are overriding the template, please heed the notice to comply with the OpneWeatherMap license which states the OpenWeatherMap name must be mentioned as a weather source in a visible part of the application. (obtained 8/2016 from http://openweathermap.org/price)

eww_ioc_container to override the IoC container if you want to use different classes in the application (including the API to grab weather data)

Usage of eww_template filter

Add a “views” directory and file named “custom-eww.php” to your template directory. The “custom-eww.php” file will be your custom template for this example.

Example of using a custom template from within your theme PHP 5.3+ which allows closures

    <?php

        add_filter( 'eww_template', function ( $template ){
            $template_dir = get_template_directory();
            return $template_dir . '/views/custom-eww.php';
        } );
        ?>

Grunt

This plugin takes advantage of Grunt for validating JavaScript, SASS compilation and minification. To take advantage of Grunt you have to have both npm and Grunt installed. Visit the respective sites for the applications and make sure they are installed. Once installed, if you want to edit/fork this plugin, it will be helpful to be familiar with these two tools.

Read the full description on the official page →

Tagged as