Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Please add the weather forecasts (for i.e. 3 next days) or the possibility of choosing the day of the weather information (today, tomorrow, etc.)!
Comment | File | Size | Author |
---|---|---|---|
#17 | Screen shot 2010-07-25 at 12.57.21 AM.jpg | 60.04 KB | sokrplare |
Comments
Comment #1
fm CreditAttribution: fm commentedseconded.
Comment #2
toddy CreditAttribution: toddy commentedI'm currently not able to implement weather forecasts, sorry.
Comment #3
toddy CreditAttribution: toddy commentedI'm currently not able to implement weather forecasts, sorry.
Comment #4
mherchelthirded... I would like the ability to show the weather for a set date in the future (assuming the data is available).
Thanks for a great module by the way! Happy New Year!
Comment #5
Alpha5 CreditAttribution: Alpha5 commentedMe too, feature request: weather forecasts
Comment #6
fm CreditAttribution: fm commentedTerrific module, however ...
without the ability to forecast, a weather report is no more helpful than poking your head out the window.
Comment #7
j0k3z CreditAttribution: j0k3z commentedI would love this feature
Comment #8
marius.s CreditAttribution: marius.s commentedForecast is definitely needed, that's the whole point of having a Weather module.
What are the obstacles for implementing it? Maybe the community can help.
Comment #9
fm CreditAttribution: fm commentedAny progress on this? Forecast is really a must have feature.
Comment #10
klonossubs
Comment #11
kentr CreditAttribution: kentr commentedIf one of you others want to take a stab at it, I think what you want is to parse the TAF data. It seems that METAR data doesn't contain forecast information.
Some details on TAF data:
http://weather.noaa.gov/weather/taf.shtml
http://en.wikipedia.org/wiki/Terminal_Aerodrome_Forecast
Looks like PEAR already has a forecast function, so you could start there as well:
http://pear.php.net/manual/en/package.webservices.services-weather.php
Update: Here's a better starting point, along with code samples (one of which presents a full icon-based forecast - the final one, I think):
http://phpstarter.net/2008/12/5-sources-of-free-weather-data-for-your-site/
http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/
Comment #12
CKIDOWsubscribing
Comment #13
dufferin CreditAttribution: dufferin commentedWould love that too...
Comment #14
seaslug CreditAttribution: seaslug commentedI would also like TAF implemented in this module.
I have PHP code available for Converting TAF into a readable format if your interested. Cant honestly say its well coded but it does work.
As well as some other additional METAR features such as Instrument meteorological conditions etc for pilots. (DISPLAYS IMV, VMC or VFR depending on conditions)
I'll try spend some time and see if i can develop TAF module to plugin with this one...
Comment #15
rbrownell+1 subscribe
Comment #16
sokrplare CreditAttribution: sokrplare commentedAny progress on this, seaslug? Need this for a current project so would be willing to commit some developers / money to this but don't want to duplicate anything you've done?
For other's reference, it looks like two other modules provide some semblance of forecast functionality (haven't tried them myself):
Comment #17
sokrplare CreditAttribution: sokrplare commentedJust tried installing a plain vanilla of the nws_weather and it will do the trick! Very well done end result.
Attached a screenshot of the default block made available (see the README for how to call programmatically).
Comment #18
kfurlotte CreditAttribution: kfurlotte commentedsubscribe
Comment #19
seaslug CreditAttribution: seaslug commentedSorry for the seriously delayed reply, my excuse is Life ....
I'm months away from getting stuck into creating this module, most of the code is in PHP but will take me sometime to get into using Drupal API
Comment #20
kentr CreditAttribution: kentr commentedI have a simple Weather Underground forecast module if anyone's interested. Just send me a PM.
Comment #21
klonosHey Kent! What a great chance to start a new project in d.o. ;)
Comment #22
kentr CreditAttribution: kentr commented@klonos:
I thought about it, but I have no time for management or development of the project. It's already pretty much at "abandoned" status...
There are 2 other forecast modules available, so I don't think the community is lacking in this area.
Comment #23
klonosIf you have no time, you can always start a project and immediately ask for a co-maintainer and hand it over to them.
Comment #24
kentr CreditAttribution: kentr commented@klonos:
I have no time to go through the process of starting a project and handing it over to someone else.
Drupal already has 2 weather forecast modules. Would a half-built, unmaintained 3rd actually benefit the community? My perspective is that it would be more of a thorn in the paw than an asset for the majority of the Drupal users trying to decide which to use.
Comment #25
klonosPoint taken... you can perhaps upload it in an issue of the Weather Underground module then. This way if it has functionality that is not already included in the module, the maintainers might consider adding it ;)
Comment #26
picacsso CreditAttribution: picacsso commentedI wanted to share this with the community.
The weather forecast is not included within this module but there is a quick work around for this.
The only drawback is that in order to view the forecast, you'll need to be redirected to the weather.gov website.
Open your weather.tpl.php file and paste this code right before the closing div tag:
This will create an active link in your weather block that will take you to the websitesite where you'll see your locations' forecast, and a much more.
I know this isn't the best solution, but it worked for me.
Comment #27
greg0ryv CreditAttribution: greg0ryv commentedHas anyone been able to add TAF's to this? I'd like to use the Metar data and the TAF data - no formatting required. Some locations do not have TAF's so that's fine.
Comment #28
aj2 CreditAttribution: aj2 commentedSimilar to Post #26, this will also work for the Location module, but again is a poor work around.
Before the end div tag, paste the following:
Note: to embed the forecast properly, would probably want to use the National Weather Service SOAP web service. (http://graphical.weather.gov/xml/ )
Comment #29
aj2 CreditAttribution: aj2 commentedForecasts can be obtained from the National Weather Service SOAP web service. Below is an example code snippet for grabbing and displaying forecast data. Perhaps this could be integrated into the weather module as an optional block?
References:
http://graphical.weather.gov/xml/
http://graphical.weather.gov/xml/sample_products/ndfdXML.tar
tested with xsl style sheets from the weather.gov sample tar file in XSLT dir.
Comment #30
toddy CreditAttribution: toddy commentedWeather forecasts are now possible with weather 7.x-2.0. Enjoy!
Comment #32
klonos...correct branch where this is fixed then ;)