Simple Weather Demo Block

Simple Weather Drupal Module

There are several other "weather widget" type modules available as Drupal.org projects. I tried most of them before coming to the conclusion that I needed to create my own. I found that most of the other weather widget projects did not work without significant errors, considerable performance expense and were quite complicated to install and configure. Also, none of the other weather widget modules that I tested uses the simpleWeather jQuery plugin which I found to be very well written and uses the Yahoo weather WOEID to generate a current weather report for nearly any location on planet Earth. I thought this functionality was awesome enough to push the Simple Weather module forward as a Drupal project and share it with the Drupal Community.

The Simple Weather project provides a module that when installed creates a block that displays current weather conditions for a location. The location for the current weather report is defined by the user who has permission to administer blocks by submitting the block configuration form for the Simple Weather block.

There are two fields that can determine the location of the weather report: US ZIP code field and the Where On Earth Identification (WOEID) field. The data in these fields are passed to the simpleWeather jQuery plugin that queries the data from Yahoo's Weather service and returns it for display in the Simple Weather block. There is also a field that sets the temperature scale as Celsius or Fahrenheit and returns the information accordingly.

The module is authored to honor Drupal's coding standards and is written to leverage the Libraries API module as a dependency.

Configuration Form Screenshot

Simple Weather Block Configuration Form

Currently, the module is only written for Drupal 7. I am working on the Drupal 6 and Drupal 8 versions of the module and I expect to have them completed soon. It is my goal to the have the Drupal 8 version of the Simple Weather module ready before Drupal 8 is officially released.

Download and install it to try it out for yourself. Feel free to send feedback or file an issue.

The completed Drupal module project application.

Enjoy!