Title: Easy Weather Widget
Author: Mat Gargano
Published: <strong>7 outubro, 2012</strong>
Last modified: 30 dezembro, 2017

---

Pesquisar plugins

![](https://ps.w.org/easy-weather-widget/assets/banner-772x250.png?rev=1794435)

Este plugin **não foi testado com os 3 lançamentos principais mais recentes do WordPress**.
Ele pode não ser mais mantido ou suportado e pode ter problemas de compatibilidade
quando usado com versões mais recentes do WordPress.

![](https://ps.w.org/easy-weather-widget/assets/icon-256x256.png?rev=1794437)

# Easy Weather Widget

 Por [Mat Gargano](https://profiles.wordpress.org/matstars/)

[Baixar](https://downloads.wordpress.org/plugin/easy-weather-widget.3.2.5.zip)

 * [Detalhes](https://br.wordpress.org/plugins/easy-weather-widget/#description)
 * [Avaliações](https://br.wordpress.org/plugins/easy-weather-widget/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/easy-weather-widget/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/easy-weather-widget/#developers)

 [Suporte](https://wordpress.org/support/plugin/easy-weather-widget/)

## Descrição

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](https://npmjs.org/)
and [Grunt](http://gruntjs.com/) 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.

## Instalação

 1. If installing manually, unzip and copy the resulting directory to your plugin directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Add the “Easy Weather Widget” widget to any widgetized area/sidebar and configure
    as desired.

## Perguntas frequentes

  Installation Instructions

 1. If installing manually, unzip and copy the resulting directory to your plugin directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Add the “Easy Weather Widget” widget to any widgetized area/sidebar and configure
    as desired.

  Does this work outside of the United States?

Current version uses OpenWeathermap.org’s API and it works in the US and Canada

## Avaliações

![](https://secure.gravatar.com/avatar/83dca0cc15fe8ffe43835a20b4db6af54498ddb58f3ea351aacf267dad1541d5?
s=60&d=retro&r=g)

### 󠀁[Loved this Plug-in until updating to WP 5.7.2](https://wordpress.org/support/topic/loved-this-plug-in-until-updating-to-wp-5-7-2/)󠁿

 [mathisbrogers](https://profiles.wordpress.org/mathisbrogers/) 9 junho, 2021

I’ve been using this Plug-in for a few years now and I love it. I like for my visitors
to know what the weather is doing here. I updated my WP sites to 5.7.2 the other
day, and this afternoon I got a notice from someone on an email notification list
that the Skype link in the email for our Tuesday meeting wasn’t working. I checked
and discovered that he did not have today’s email—the Skype link remains the same
so that didn’t matter—and I hadn’t received it either. I went to the website and
got a notice the sight had a critical error. I checked my email and had received
a message with a link to WP Recovery Mode and it pointed to this Plug-in as being
the problem. After deactivating it, the email went out automatically, and the site
came back online. Again, I love this app. Please update it to work with 5.7.2 and
beyond. Thanks, Mathis…

![](https://secure.gravatar.com/avatar/d0cc6be0de39a13fcd1f790b558c7f70a0c95cb16c57f0a247fb93f5a97154bc?
s=60&d=retro&r=g)

### 󠀁[Well constructed plugin](https://wordpress.org/support/topic/well-constructed-plugin-2/)󠁿

 [Matt Barrett (corradomatt)](https://profiles.wordpress.org/corradomatt/) 19 dezembro,
2017 1 resposta

This plugin works great! Simple and uses a great API for the data. I like how easy
it is to customize the template. Also, from a PHP standpoint, the code is well written,
documented and organized. I especially like the fact that they’re autoloading things
and using object oriented design. This makes it much faster for me to walk through
the code and see what’s going on.

 [ Leia todas as 6 avaliações ](https://wordpress.org/support/plugin/easy-weather-widget/reviews/)

## Colaboradores e desenvolvedores

“Easy Weather Widget” é um programa de código aberto. As seguintes pessoas contribuíram
para este plugin.

Colaboradores

 *   [ Mat Gargano ](https://profiles.wordpress.org/matstars/)
 *   [ statenweb ](https://profiles.wordpress.org/statenweb/)

[Traduzir o “Easy Weather Widget” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/easy-weather-widget)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/easy-weather-widget/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/easy-weather-widget/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/easy-weather-widget/)
por [RSS](https://plugins.trac.wordpress.org/log/easy-weather-widget/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

#### 3.2.5

 * Validate that this plugin works with WordPress 4.9.1

#### 3.2.4

 * Fix for missing `wi-day-partly-cloudy` class (changed to `wi-day-cloudy`)

#### 3.2.3

 * Add translation domain

#### 3.2.0

 * Fix translation issue
 * Clean up the widget’s markup
 * Adapt the SCSS to be more BEM like
 * Fix some issues where we were not implementing interfaces properly

#### 3.1.0

 * Adding more information to help show users how to obtain an API
 * Refactor IoC container for cache
 * Add filter to hook into IoC container

#### 3.0.1

 * Internal efficiency updates
 * Fix bugs for unset widgets throwing warnings

#### 3.0

 * Breaking changes, rewrote from the ground up!

#### 2.2

 * Added ability to have multiple instances of the widget on a single page

#### 2.1.0.1

 * Fix for malformed markup in the admin

#### 2.1

 * Made plugin translatable

#### 2.0.5

 * CSS bugfix

#### 2.0.4

 * Bugfix causing classes not to be loaded properly

#### 2.0.1

 * Fix to enable caching

#### 2.0

 * Rewrote widget
 * Ability to change the title of the widget
 * Ability to set the temperature scale (Fahrenheit, Celsius or Kelvin)

#### 1.0

 * Initial Release

## Meta

 *  Versão **3.2.5**
 *  Última atualização **8 anos atrás**
 *  Instalações ativas **80+**
 *  Versão do WordPress ** 2.8 ou superior **
 *  Testado até **4.9.29**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/easy-weather-widget/)
 * Tags
 * [weather](https://br.wordpress.org/plugins/tags/weather/)[widget](https://br.wordpress.org/plugins/tags/widget/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/easy-weather-widget/advanced/)

## Classificações

 4.3 de 5 estrelas.

 *  [  5 avaliações com 5 estrelas     ](https://wordpress.org/support/plugin/easy-weather-widget/reviews/?filter=5)
 *  [  0 avaliação com 4 estrela     ](https://wordpress.org/support/plugin/easy-weather-widget/reviews/?filter=4)
 *  [  0 avaliação com 3 estrela     ](https://wordpress.org/support/plugin/easy-weather-widget/reviews/?filter=3)
 *  [  0 avaliação com 2 estrela     ](https://wordpress.org/support/plugin/easy-weather-widget/reviews/?filter=2)
 *  [  1 avaliação com 1 estrela     ](https://wordpress.org/support/plugin/easy-weather-widget/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/easy-weather-widget/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/easy-weather-widget/reviews/)

## Colaboradores

 *   [ Mat Gargano ](https://profiles.wordpress.org/matstars/)
 *   [ statenweb ](https://profiles.wordpress.org/statenweb/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/easy-weather-widget/)