Subject: Weather blocks/module.
Posted on: 13/02/02 02:08pm
How does it work?
Posted on: 13/02/02 03:09pm
I, at one time, had phpWeather working flawlessly on my site. i will probably get it working again but how does your weather software work? I'm assuming it uses METAR data, right? Also, can the user change the city is that on the to-do list?
phpWeather provide current weather conditions (updated hourly) and you can do forecasts as well. Only down side is there isn't a one-to-one correlation between current weather feeds and forecast feeds (i.e. it's possible one city will have a current weather feed but no forecast feed.
The reason people blame things on previous generations is that there's only one other choice.
How does it work?
Posted on: 13/02/02 03:17pm
Humm i looked also to phpMYwheather but it didn't do what i want. This weather module use msnbc.com information which provide everything we want.
Also things like if it's rainning/sunny etc... is much more easy to do with msnbc.
The per-user option is not implemented, i should do it, but i'm a litle lazzy since i don't really i'll check that this weekend if it's easy to do..
Posted on: 14/02/02 09:10pm
I installed the weather module and like it a lot.
It would be great if user can select the temperature measurement either Celsius or Fahrenheit or both.
Posted on: 14/02/02 11:58pm
It's fairly easy to do i'll add that soon (before the end of weekend).
Posted on: 15/02/02 01:34am
Ok i have just added the per-user configuration (download it from the same tarball), just need to add the Fareinheigh <=> Celcius conversion and i'm done.
Posted on: 15/02/02 03:27am
Ok the celcius/fareinheight conversion is add, now the module is same featured of the phpnuke version.
Posted on: 16/02/02 02:39pm
It works nice. Thank you.
Posted on: 17/02/02 09:25pm
Geez, Chmouel... you're working too hard... =) But I must admit, it's really sweet... (and here I thought you were going to keep your website low profile... can't help yourself can you? <grin>
Posted on: 18/02/02 06:59am
Humm for information there is a new version which fix the admin.php add location when user is not in weather group.
Posted on: 19/02/02 08:31pm
Works great but when I try to click on "details", I get:
Fatal error: Cannot redeclare get_from_msnbc() in /www/t10/main/gl/public_html/weather/display_weather.php on line 28
Any ideas? Thanks.
http://m.t10.net to see
Posted on: 20/02/02 02:42am
weird i don't have this problem, what php version ?
Posted on: 20/02/02 07:25am
I've searched google for this error and I can't find a good answer...
I wish I knew what: Cannot redeclare get_from_msnbc() mean.
Posted on: 28/02/02 03:32pm
I too am now getting this error - but only when I choose Detail. Otherwise it works fine. This occurs either from the main block view or in the "edit" screen.
I had it all installed and working a few days ago.
I was tweaking with display formating but that's working fine.
I'm running FreeBSD 4.5
- Apache 1.3
- Mysql 3.23.47
- PHP 4.1.1
- Geeklog v1.3.2-1
I'm going to go back and check all the punctuation again.
Any Ideas ?
Posted on: 28/02/02 08:19pm
The problem appears to be that, there are two functions with the same name in the files:
Specifically getweather() and get_from_msnbc().
Everything is fine when the block first comes up. Once you click on detail you get the duplicate declare error()
I changed the names in detailed_weathers.php and it works again.
I have been installing additional ports and modules so I suspect there is a config file in which a default was changed. This worked initially when I installed it.
Geeklog - Forum