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
Fixed
new project application
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.