dwaine [dwaine]

Created on 20 December 2009, almost 15 years ago
Updated 16 April 2023, over 1 year ago

CVS edit link for dwaine

We hope to release a module that allows users simple access to the National Weather Services SOAP based seven day weather forecast.

My partner and I have developed a fair amount of knowledge about acquiring, parsing, and displaying weather data while developing a sailing website. San Francisco sailors and Drupalcon attendees can see a sample here:

http://www.raceonedesign.com/weather?lat=37.794&lon=-122.347&title=San%2...

The module we have developed and would like to contribute is similar in concept to the existing 'weather' module in that it uses a SOAP interface to request weather data from the National Weather Service. Our new module, however, compliments 'weather' by displaying forecast data instead of the 'weather' modules current weather conditions.

The link above will bring up weather data for San Francisco, CA. Clicking the '3 Day Forecast' gives a reasonable preview of what our proposed module will provide to the Drupal community.

Our new module requires 'SOAP' to be enabled on the host. It has not other dependencies.

We have included two methods to utilize our module. The simple method is a Drupal admin configurable 'single location' mode. The administrator defines a latitude/longitude and name along with a few details about how the data is displayed. Our module exposes a block that the administrator can place appropriately. This mode is obviously limited to just one location.

The second mode is to expose a function to a Drupal coder. A coder might need to get weather for multiple locations and this would allow him or her to make multiple function calls to assemble weather forecasts for multiple locations. This method also requires the coder to parse a rather obtusely arranged array to retrieve the weather data. The format of this array is dictated by the complexity and variability of weather data.

The theming is not fancy but uses standard Drupal theming practices so that it can be rethemed as appropriate.

Thanks
Dwaine

📌 Task
Status

Fixed

Component

new project application

Created by

🇺🇸United States dwaine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024