-
Invité
- rang:
- 1
- enregistré depuis:
- décembre 2003
- Status:
- hors ligne
- dernière visite:
- 06.03.05
- Messages:
- 0
I am running a website for a model flying club. Wind direction and speed is important to the members.
I was wondering if it would be possible to enhance both the main modules 5 day forcast and the blocks display to show the wind direction and speed as a picture.
I would also like to ability to have the block show the details it does for today with a simple summary for the next 5 days with condition, temp, wind direction and wind speed.
Thanks for a great module
Mudry.
-
- rang:
-
Site Admin
- enregistré depuis:
- décembre 2003
- Status:
- hors ligne
- dernière visite:
- 21.07.08
- Messages:
- 261
The problem is that the current version try to stay compatible both with MSNBC and weather.com.
So I tried to make minimal change to the record sructure saved in the cache table from the one that was used when the programm was only used with MSNBC.
Implementing the change you want will require to save the data for wind in the forecast array and will require changes in several parts of the program to account for this change (the data from the forecast part are serialized before been saved and unserialized when read from the cache table)
I still plan to one day release a future version of this module where the full XML data received from weather.com will be saved in the cache table.
This will permit to retreive any data later.
I have used this method in another module (AmaZone) where the full XML data received from Amazon are saved in the database.
The problem is that I also need to upgrade this module to make it pnRendered so that users can more easily customize the display. And I am lacking time ... and i developp several PostNuke modules and also participate to other open source projects !!!
And of course I must work to make a living !
So I can't give any date for this future version release.
If you are interested I already have a pnRendered version of the block. If you know a little about templates you will be able to customize it to add for instance the display of temp for 5 days forecast. But unfortunately you will not be able to display the wind direction and speed for 5 days as currently this data is not available in the 5 days forecast.
-
- rang:
-
Site Admin
- enregistré depuis:
- décembre 2003
- Status:
- hors ligne
- dernière visite:
- 21.07.08
- Messages:
- 261
Well, as often after saying it was not easy to do I did it
Look at the weather forecast on this website, is it what you were looking for ?
In fact I realized I had empty places in my forecast array structure and I used these places for wind speed and direction.
Doing so doesn't break anything.
You need to replace 2 files (modules/weather/pnuser.php and modules/weather/weather.class.php) with the one I can send you if you mail me your address to vedrine _AT__ vedrine __DOT net (don't put it on this forum if you beware spams
)
So now that the wind data are in the database, it's up to you to add them to the pnrendered block once I send it to you.








