Hi,

We need to display the current weather for our different locations besides a 7 day forecast. We are currently obtaining the 7 day forecast using the inbuilt features of the module and just theming the output. For the current weather condition we are using the NDFDgen function. The parameters that needs to be passed to this function include: Latitude, Longitude, product, Start time, End time, weatherParameters. (http://www.nws.noaa.gov/xml/#use_it) We are unclear as to Date format that should be passed to this function. We need the current 1 hour weather.

Thanks in Advance.
Bala

Comments

dwaine’s picture

Hi Bala,

The date format is a date-time string with a 'year-mo-daThr:mn' format. This sample line below shows examples of dates that the NDFD soap service expects.

$forecast=nws_weather_NDFDgen($lat, $lon, "time-series", "2009-12-08T12:00", "2009-12-09T12:00", array('wdir', 'temp', 'maxt', 'mint'));

But I'm afraid you might be better served by a different NOAA 'product' if you are looking for current conditions. Current conditions, unlike the forecast data my module, is not a meteorological guess but is based on actual observations and is guaranteed to be accurate. To get that information via a Drupal module I would suggest the 'Weather' module.

http://drupal.org/project/weather

If I've misunderstood what you are looking for please feel free to contact me directly.

Dwaine

nightmarepatrol’s picture

Actually it would be nice to see these two modules merged. Being able to have user definable forecasts made available like the weather module allows for metar evaulation viathe user profile would be great. Why? Many of us run sites that span multiple weather stations and it would be a great feature towards empowering users being able to personalize their home page.

btw.. sorry or stcking this here, I know it belongs under feature requests.

dwaine’s picture

Assigned: Unassigned » dwaine
Status: Active » Closed (works as designed)